Android9.0 push framework方法
push framework
以前只需要push*.jar包,但9.0开始push了不会生效。需要其他的文件如下。
创建framework_push.cmd并拷贝以下命令
@ECHO OFF
echo %time%
adb root
adb remount
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\framework.jar /system/framework/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\boot-framework.vdex /system/framework/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot-framework.art /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot-framework.art.rel /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot-framework.oat /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot.art /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot.art.rel /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm\boot.oat /system/framework/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot-framework.art /system/framework/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot-framework.art.rel /system/framework/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot-framework.oat /system/framework/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot.art /system/framework/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot.art.rel /system/framework/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\arm64\boot.oat /system/framework/arm64/
echo %time%
push services
创建services_push.cmd并拷贝以下命令
@ECHO OFF
echo %time%
adb root
adb remount
::adb disable-verity
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\services.jar /system/framework/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\services.core.jar /system/framework/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm64\services.art /system/framework/oat/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm64\services.vdex /system/framework/oat/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm64\services.odex /system/framework/oat/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm\services.core.vdex /system/framework/oat/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm\services.core.odex /system/framework/oat/arm/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm64\services.core.vdex /system/framework/oat/arm64/
adb push Y:\alps\out\target\product\k61v1_64_bsp\system\framework\oat\arm64\services.core.odex /system/framework/oat/arm64/
::adb reboot