AOSP partially build and test on emulator
After build AOSP, start emulator with command
adb remountevery time after emulator restart.
Now you can use
mmcommand to partially build modules of AOSP and use
adb pushto replace jars or apps of framework.
You should always use
For example, if you modified /frameworks/base/core/res/res/values/dimens.xml, then you can find its nearest make file Android.bp under /frameworks/base/core/res/, then
After build, you’ll see
[100% 8/8] Install: out/target/product/generic_x86/system/framework/framework-res.apk, then push framework-res.apk to emulator path /system/framework/. Restart emulator.
You can do this simply by
adb sync. Put the following code into a shell script adbsync. Just run it after
mm. Emulator will sync the build outputs and restart.
How to mount /system rewritable or read-only? (RW/RO)
AOSP Part 1: Get the code using the Manifest and Repo tool