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
d6fdbfe9
Commit
d6fdbfe9
authored
Mar 09, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utilize standalone mode for emulator.sh
parent
07228279
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
emulator.sh
scripts/emulator.sh
+2
-9
No files found.
scripts/emulator.sh
View file @
d6fdbfe9
...
@@ -45,17 +45,10 @@ chmod 777 busybox
...
@@ -45,17 +45,10 @@ chmod 777 busybox
chmod
777 magiskinit
chmod
777 magiskinit
if
[
`
./busybox
id
-u
`
-ne
0
]
;
then
if
[
`
./busybox
id
-u
`
-ne
0
]
;
then
# Re-
run
script with root
# Re-
exec
script with root
exec
/system/xbin/su 0
sh
$0
exec
/system/xbin/su 0
./busybox sh
-o
standalone
$0
fi
fi
# First setup a good env to work with
rm
-rf
bin
./busybox
mkdir
bin
./busybox
--install
-s
bin
OLD_PATH
=
"
$PATH
"
PATH
=
"/data/local/tmp/bin:
$PATH
"
# Remove previous setup if exist
# Remove previous setup if exist
pgrep magiskd
>
/dev/null
&&
pkill
-9
magiskd
pgrep magiskd
>
/dev/null
&&
pkill
-9
magiskd
[
-f
/sbin/magisk
]
&&
umount
-l
/sbin
[
-f
/sbin/magisk
]
&&
umount
-l
/sbin
...
...
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