Script to build Android


After compiling Android all day long you quickly learn a few tricks like “mmm” to do a partial build or “adb sync” to synchronize the device files tree to your compilation output directory. Those tools save you a lot of time, but you are still typing the same list of commands all day long. And here comes my script.

Do you need to compile your Android source ?

$ dt build

Do you need to flash your device with the latest image produced by your compilation ?

$ dt flash

Do you need to do a fast partial build and push changed files to your device ?

$ dt pbuild -p

Do you need to reinstall a bunch of files and apk to your device ?

$ dt reinstall

Here are a few examples of what you can do:

Download dt

comments powered by Disqus