mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-17 21:47:37 +00:00
Use own busybox for get_outfd
This commit is contained in:
parent
169c0fe4af
commit
bb25edc09e
@ -23,6 +23,10 @@ BOOTSIGNER="/system/bin/dalvikvm -Xnodex2oat -Xnoimage-dex2oat -cp \$APK com.top
|
|||||||
BOOTSIGNED=false
|
BOOTSIGNED=false
|
||||||
|
|
||||||
get_outfd() {
|
get_outfd() {
|
||||||
|
$BOOTMODE && return
|
||||||
|
# Preserve environment varibles
|
||||||
|
OLD_PATH=$PATH
|
||||||
|
setup_bb
|
||||||
if [ -z $OUTFD ] || readlink /proc/$$/fd/$OUTFD | grep -q /tmp; then
|
if [ -z $OUTFD ] || readlink /proc/$$/fd/$OUTFD | grep -q /tmp; then
|
||||||
# We will have to manually find out OUTFD
|
# We will have to manually find out OUTFD
|
||||||
for FD in `ls /proc/$$/fd`; do
|
for FD in `ls /proc/$$/fd`; do
|
||||||
@ -323,9 +327,6 @@ boot_actions() {
|
|||||||
recovery_actions() {
|
recovery_actions() {
|
||||||
# TWRP bug fix
|
# TWRP bug fix
|
||||||
mount -o bind /dev/urandom /dev/random
|
mount -o bind /dev/urandom /dev/random
|
||||||
# Preserve environment varibles
|
|
||||||
OLD_PATH=$PATH
|
|
||||||
setup_bb
|
|
||||||
# Temporarily block out all custom recovery binaries/libs
|
# Temporarily block out all custom recovery binaries/libs
|
||||||
mv /sbin /sbin_tmp
|
mv /sbin /sbin_tmp
|
||||||
# Unset library paths
|
# Unset library paths
|
||||||
|
Loading…
x
Reference in New Issue
Block a user