Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
bb25edc0
Commit
bb25edc0
authored
Aug 02, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use own busybox for get_outfd
parent
169c0fe4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
util_functions.sh
scripts/util_functions.sh
+4
-3
No files found.
scripts/util_functions.sh
View file @
bb25edc0
...
@@ -23,6 +23,10 @@ BOOTSIGNER="/system/bin/dalvikvm -Xnodex2oat -Xnoimage-dex2oat -cp \$APK com.top
...
@@ -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() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment