From 7058c8ff5a41ade539c2302178945ff4c83033e8 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 31 Jul 2017 23:52:30 +0800 Subject: [PATCH] Force main binaries recompile everytime --- build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.py b/build.py index 9eee9883d..6acbab9b4 100755 --- a/build.py +++ b/build.py @@ -58,6 +58,12 @@ def build_all(args): def build_binary(args): header('* Building Magisk binaries') + # Force update Android.mk footprint to trigger recompilation + with open(os.path.join('jni', 'Android.mk'), 'r') as makefile: + content = makefile.read() + with open(os.path.join('jni', 'Android.mk'), 'w') as makefile: + makefile.write(content) + ndk_build = os.path.join(os.environ['ANDROID_HOME'], 'ndk-bundle', 'ndk-build') debug_flag = '' if args.release else '-DMAGISK_DEBUG' proc = subprocess.run('{} APP_CFLAGS=\"-DMAGISK_VERSION=\\\"{}\\\" -DMAGISK_VER_CODE={} {}\" -j{}'.format(