The fastest way to test modified Android source code?

I am going to buy the Nexus 5 when it is available in my country. Then I want to make changes (mainly the user interface) to the Android source code and run it on my phone.

My question is: how to quickly check the code that I changed? Do I need to compile and create a ROM and run it after every change on my phone, or can I use the emulator and build it quickly?

To clarify: I will download the Android source code and modify it. I will change the UI stuff so that I like it. After that, I would like to check what I wrote, preferably in the device, but an emulator is also possible.

I want to test changes to the Android platform. Since I am changing the source code, I need to create a ROM and release it on the device, since the Android system cannot be installed as .apk.

What is the fastest way to check for changes? It would be very unpleasant to create a ROM and blink. At some time, I make a change to the source code, for example, check that my new interface works accordingly.

Is there any way to do this faster?

+4
source share
2 answers

, . frameworks/base/core, // AOSP (, :. Build/envsetup.sh root AOSP):

mm -B

, , framework framework.jar/ext.jar/etc

( ):

adb root;
adb remount;
adb sync;
adb shell stop;
adb shell start

, .

, SAME AOSP, , framework.jar /framework/ ( root).

+4

, .
AOSP factory, ROM, flush ADB.
, android .
. GPS- , AOSP.

0

All Articles