From e50192a407ed1a776884b4aba1884c3ac5dffcdf Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 12 Jul 2018 11:01:01 +0800 Subject: [PATCH] Use standard ANDROID_NDK_HOME instead of ANDROID_NDK --- README.MD | 2 +- build.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.MD b/README.MD index 433c1cb79..713460da8 100644 --- a/README.MD +++ b/README.MD @@ -5,7 +5,7 @@ 1. Python 3.5+: run `build.py` script 2. Java Development Kit (JDK) 8: Compile Magisk Manager and sign zips 3. Latest Android SDK: set `ANDROID_HOME` environment variable to the path to Android SDK -4. Android NDK: Install NDK along with SDK (`$ANDROID_HOME/ndk-bundle`), or optionally specify a custom path `ANDROID_NDK` +4. Android NDK: Install NDK along with SDK (`$ANDROID_HOME/ndk-bundle`), or optionally specify a custom path `ANDROID_NDK_HOME` 5. (Windows Only) Python package Colorama: Install with `pip install colorama`, used for ANSI color codes ## Building Notes and Instructions diff --git a/build.py b/build.py index 08bfbbddf..b9f01ce24 100755 --- a/build.py +++ b/build.py @@ -36,8 +36,8 @@ import lzma import base64 import tempfile -if 'ANDROID_NDK' in os.environ: - ndk_build = os.path.join(os.environ['ANDROID_NDK'], 'ndk-build') +if 'ANDROID_NDK_HOME' in os.environ: + ndk_build = os.path.join(os.environ['ANDROID_NDK_HOME'], 'ndk-build') else: ndk_build = os.path.join(os.environ['ANDROID_HOME'], 'ndk-bundle', 'ndk-build')