Automatically transfer native API to Java Code
The following is required to set up Native2Java:
- MAC system
- Intellj
- git clone git@github.com:sunxiaobiu/Native2Java.git
- cd Native2Java
./res/loadDependencies.sh
mvn clean install
- Parameters are needed here: [your_apk_path.apk],[path of android.jar],[path of os.result files],[path of instrumented file]
- Example: your_path/xxx.apk, your_path/android-platforms/, your_path/, your_path/
- Refer to [path of instrumented file] folder to obtain the instrumented APK.
- This tool use aapt to load manifest of APK, so you need to set appt as an environmental variable as follow:
AAPT_HOME=/your_local_path/Library/Android/sdk/build-tools/29.0.2
export AAPT_HOME
export PATH=$PATH:$AAPT_HOME