编译android上跑的test程序

/home/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -I /home/android-ndk-r10e/platforms/android-14/arch-arm/usr/include -L /home/android-ndk-r10e/platforms/android-14/arch-arm/usr/lib --sysroot= /home/android-ndk-r10e/platforms/android-14/arch-arm -fPIE -pie test.c

 

adb disable-verity

adb push a.out /system/

adb shell chmod 755 /system/a.out

你可能感兴趣的:(编译android上跑的test程序)