cd ~
git clone https://github.com/rovo89/XposedTools.git
cp build.conf.sample build.conf
vim build.conf
[General]
outdir = /root/n/out #输出目录,out一定要存在
javadir = /root/n/XposedBridge #XposedBridge的 位置
[Build]
# Please keep the base version number and add your custom suffix
version = 89 (custom build by xyz / %s)#我们这里是89版本
makeflags = -j8 #8个线程同步
[GPG]
sign = release
user = 852109AA!
# Root directories of the AOSP source tree per SDK version
[AospDir]
#19 = /android/aosp/440
#21 = /android/aosp/500
25 = /root/n #安卓7.1源码位置,上边两个注释
# SDKs to be used for compiling BusyBox
# Needs https://github.com/rovo89/android_external_busybox
[BusyBox]#下面的都改成25,看资料说不改也行
arm = 25
x86 = 25
armv5 = 25
cd /root/n
cd frameworks/base/cmds/
git clone https://github.com/rovo89/Xposed.git xposed
cd /root/n
rm -rf art
git clone https://github.com/rovo89/android_art.git -b xposed-nougat-mr2 art
cd /root/n
git clone https://github.com/rovo89/XposedBridge.git
sdk.dir=/root/Android/sdk#自己的sdk目录
source build/envsetup.sh
lunch
cd /root/XposedTools
./build.pl -a java
BUILD SUCCESSFUL
Total time: 1.478 secs
Copying APK to XposedBridge.jar...
Skipping non-existent /Users/zxc/Android/n/XposedBridge/app/build/outputs/apk/app-release.apk
Skipping non-existent /Users/zxc/Android/n/XposedBridge/app/build/outputs/apk/app-release-unaligned.apk
/Users/zxc/Android/n/XposedBridge/app/build/outputs/apk/app-release-unsigned.apk => /Users/zxc/Android/n/out/java/XposedBridge.jar
Done!