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
7717f0a6
Commit
7717f0a6
authored
May 13, 2021
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Android S AVD
parent
5e1fba36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Info.kt
app/src/main/java/com/topjohnwu/magisk/core/Info.kt
+3
-1
emulator.sh
scripts/emulator.sh
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/core/Info.kt
View file @
7717f0a6
...
@@ -35,7 +35,9 @@ object Info {
...
@@ -35,7 +35,9 @@ object Info {
@JvmField
var
ramdisk
=
false
@JvmField
var
ramdisk
=
false
@JvmField
var
hasGMS
=
true
@JvmField
var
hasGMS
=
true
@JvmField
val
isPixel
=
Build
.
BRAND
==
"google"
@JvmField
val
isPixel
=
Build
.
BRAND
==
"google"
@JvmField
val
isEmulator
=
getProperty
(
"ro.kernel.qemu"
,
"0"
)
==
"1"
@JvmField
val
isEmulator
=
getProperty
(
"ro.kernel.qemu"
,
"0"
)
==
"1"
||
getProperty
(
"ro.boot.qemu"
,
"0"
)
==
"1"
var
crypto
=
""
var
crypto
=
""
var
noDataExec
=
false
var
noDataExec
=
false
...
...
scripts/emulator.sh
View file @
7717f0a6
...
@@ -29,7 +29,7 @@ mount_sbin() {
...
@@ -29,7 +29,7 @@ mount_sbin() {
if
[
!
-f
/system/build.prop
]
;
then
if
[
!
-f
/system/build.prop
]
;
then
# Running on PC
# Running on PC
cd
"
$(
dirname
"
$0
"
)
/.."
cd
"
$(
dirname
"
$0
"
)
/.."
adb push native/out/x86
/busybox native/out/x86
/magiskinit
\
adb push native/out/x86
_64/busybox native/out/x86_64
/magiskinit
\
native/out/x86_64/magisk scripts/emulator.sh /data/local/tmp
native/out/x86_64/magisk scripts/emulator.sh /data/local/tmp
adb shell sh /data/local/tmp/emulator.sh
adb shell sh /data/local/tmp/emulator.sh
exit
0
exit
0
...
...
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