Disable AVD hacks by default

This commit is contained in:
topjohnwu
2022-01-19 20:28:01 -08:00
parent 20ef724fad
commit 519bd2f30f
4 changed files with 27 additions and 7 deletions

View File

@ -16,7 +16,7 @@
# the official Android emulator (AVD) instead of a real device.
#
# This only covers the "core" features of Magisk. For testing
# magiskinit, please checkout avd_init.sh.
# magiskinit, please checkout avd_patch.sh.
#
#####################################################################

View File

@ -14,6 +14,10 @@
# After patching ramdisk.img, close the emulator, then select
# "Cold Boot Now" in AVD Manager to force a full reboot.
#
# P.S. If running against the API 28 image, modify init.hpp and set
# ENABLE_AVD_HACK to 1 to enable special hacks designed specifically
# for this use case.
#
#####################################################################
# AVD Init Configurations:
#
@ -39,6 +43,8 @@ if [ -z "$FIRST_STAGE" ]; then
exec ./busybox sh $0
fi
pm install -r $(pwd)/app-debug.apk
# Extract files from APK
unzip -oj app-debug.apk 'assets/util_functions.sh'
. ./util_functions.sh