1、Android framework.jar和service.jar替换注意事项
2、单编 adb push service.jar脚本 如下
adb root
adb disable-verity
adb remount
adb push services.jar system/framework
adb push services.jar.prof system/framework
adb push oat/arm64/services.art /system/framework/oat/arm64/
adb push oat/arm64/services.odex /system/framework/oat/arm64/
adb push oat/arm64/services.vdex /system/framework/oat/arm64/
@rem adb reboot
ping 127.0.0.1 -n 3 > nul
3、单编成功如下图所示,单编命令 mmm framework/base/services -j32 或者 make -j32 services
编译 services
4、adb push framework.jar 脚本 如下图所示
编译 framework
Android 12和之前版本有所差异,此处不能使用make framework -j32 或者mmm framework/base -j32都是不行的,编译命令如下:
make -j32 framework-minus-apex
只要动了framework.jar就需要so
adb root
adb disable-verity
adb remount
adb push framework.jar system/framework
adb push arm/ system/framework/arm/
adb push arm64/ system/framework/arm64/
@rem adb reboot
记得push之后adb reboot哈,否则不生效。切记!
转载请注明出处高通Android push framework.jar和service.jar-CSDN博客,谢谢!