mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Support Android S AVD
This commit is contained in:
parent
5e1fba3603
commit
7717f0a6b0
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user