设置源码环境,选择编译目标
#进入aosp根目录
source build/envsetup.sh
#选择编译的类型
lunch
编译apk
路径
#编译 framework-res.apk
~/aosp/frameworks/base/core/res$ mm
#编译services.jar
~/aosp/frameworks/base/services$ mm
#编译 framework.jar
~/aosp/frameworks/base$ mm
查看编译结果输出目录
Install: out/target/product/hammerhead/system/framework/framework-res.apk
Install: out/target/product/hammerhead/system/framework/services.jar
Install: out/target/product/hammerhead/system/framework/framework.jar
手机连接电脑执行命令
adb root
adb remount
adb push framework-res.apk /system/framework/
adb push framework.jar /system/framework/
adb push services.jar /system/framework/
查看核对文件修改时间
adb shell
root@hammerhead:/ # cd system/framework/
root@hammerhead:/system/framework # ls -al
重启手机,验证修改是否生效