Android添加第三方so到APK中

使用aapt命令然后 手动添加签名


mmm packages/apps/FirstRun
cd packages/apps/FirstRun/
aapt a ../../../out/target/product/rk3288/system/app/DeviceTest_Rk.apk lib/armeabi/libremotedisplay_receiver.so
aapt a ../../../out/target/product/rk3288/system/app/DeviceTest_Rk.apk lib/armeabi/libvidecode_share.so
aapt a ../../../out/target/product/rk3288/system/app/DeviceTest_Rk.apk lib/armeabi-v7a/libvidecode_share.so
aapt a ../../../out/target/product/rk3288/system/app/DeviceTest_Rk.apk lib/armeabi-v7a/libremotedisplay_receiver.so
croot
java -jar ./out/host/linux-x86/framework/signapk.jar ./build/target/product/security/platform.x509.pem ./build/target/product/security/platform.pk8 out/target/product/rk3288/system/app/DeviceTest_Rk.apk /workspace/DeviceTest_Rk.apk


你可能感兴趣的:(Android添加第三方so到APK中)