adb 只要写一次代码,自动执行如下的adb 命令:
1.run_inject.bat
adb push elf /data/local/tmp
adb shell chmod 0777 /data/local/tmp/elf
adb push libelf.so /data/local/tmp
adb shell chmod 0777 /data/local/tmp/libelf.so
adb shell su -c /data/local/tmp/elf /data/local/tmp/libelf.so
pause
2.log.bat
adb logcat -s zygote_log