I am working on custom ROM, where i need to perform some customization to SytemUI (e.g. statusbar). So, here are the steps that i do
1. $ . build/envsetup.sh
2. $ lunch 1 // normal emulator
3. $ make -j4
Once my emulator is up and running with default jellybean 4.2.2 AOSP, i then do some changes in the statusbar layout e.g. i change the bg color and then i perform
4. $ mmm frameworks/base/packages/SystemUI //Creates the SystemUI.odex & SystemUI.apk in the out/target/product/generic/system/app/
So how do i update this SystemUI apk on to the running emulator/device ? Which all other apks will be required along with SystemUI apk during its upgarde ?
Note: This case would be valid for real devices where i want to send update of SystemUI.apk OTA to the users of that device i.e. e.g. currently what google does for play market app (automatically gets updated without the need of rebooting the device).
So please suggest in these two context (emulator and real device scenarios), how to achieve that.
I have already tried with adb commands using
$ adb install -r out/target/product/generic/system/app/SystemUI.apk
on emulator but it gives the error INSTALL_FAILED_DEXOPT
Help Appreciated!
stop
andstart
commands from the adb shell to restart the Android runtime, rather than process killing. – Wurtz