Enable avd hack for debug build

This commit is contained in:
vvb2060
2023-04-25 04:37:28 +08:00
committed by John Wu
parent 83d837d868
commit 68c2817d40
6 changed files with 13 additions and 32 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env bash
#####################################################################
# AVD Magisk Setup
#####################################################################

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env bash
#####################################################################
# AVD MagiskInit Setup
#####################################################################
@@ -13,10 +12,6 @@
# 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:
#

View File

@@ -92,11 +92,6 @@ export -f wait_for_boot
set -xe
if grep -q 'ENABLE_AVD_HACK 0' native/src/init/init.hpp; then
echo -e '\n\033[41m! Please patch init.hpp\033[0m\n'
exit 1
fi
case $(uname -m) in
'arm64'|'aarch64')
arch=arm64-v8a