1. 直接将编译出来的system/framework的全部内容推到机器的/system/下面
2. 通过脚本将如下的文件推到机器中
#!/bin/bash
adb push out/target/product/gin/system/framework/framework.jar system/framework/
adb push out/target/product/gin/system/framework/arm64/boot-framework.art /system/framework/arm64
adb push out/target/product/gin/system/framework/arm64/boot-framework.oat /system/framework/arm64
adb push out/target/product/gin/system/framework/arm64/boot-framework.vdex /system/framework/arm64
adb push out/target/product/gin/system/framework/arm64/boot.art system/framework/arm64/
adb push out/target/product/gin/system/framework/arm64/boot.oat system/framework/arm64/
adb push out/target/product/gin/system/framework/arm64/boot.vdex system/framework/arm64/
// 如下是更新services的内容
adb push out/target/product/gin/system/framework/services.jar system/framework/
adb push out/target/product/gin/system/framework/services.jar.prof system/framework
adb push out/target/product/gin/system/framework/oat/arm64/services.art system/framework/oat/arm64/
adb push out/target/product/gin/system/framework/oat/arm64/services.odex system/framework/oat/arm64/
adb push out/target/product/gin/system/framework/oat/arm64/services.vdex system/framework/oat/arm64/
echo finished