ndk编译可执行文件跨进程读写app内存
52pojie:
https://www.52pojie.cn/thread-1568457-1-1.html
游戏app: 链接:https://pan.baidu.com/s/15N_GaoDQBGPfIfXwfvA9dA 提取码:zd68
进入可执行文件夹
cd libs/x86
adb push jni_test /data/local/tmp
打开游戏,在150阳光下使用
adb shell
su
cd /data/local/tmp
chmod 777 jni_test
./jni_test
下载Android Studio
点击左上角 File->Project Structure->SDK Location 在Android NDK Location 下点击Download Android NDK
进入jni目录,执行ndk-build
cd jni
ndk-build