AOSP Frequently Used Commands
“Those who cannot remember the past are condemned to repeat it.” — George Santayana
Bonjour Droids! Very warm welcome in the short article of frequently used AOSP commands.
Let’s start with basic’s one first :
Important Command For Build :
- hmm - To list out other all commands
- lunch - Lunch gives the lunch menu which is nothing but a build flavors.
- croot - To come back on the top of a tree.
m commands :
- m - To build the complete AOSP
ex :- m -j12
here -j12 means (No of threads to use in build)
Note it builds from the root of a tree.
- mm - Builds and installs all of the modules in the current directory and their dependencies.
(Suppose inside some app folder, If we start mm compilation then it will only compile the selected directory and not the complete build usefull to save time)
Note : It only builds and compiles the current module build it not change in image file, for that we need to make one final build from source to reflects the changes.
- mmm - It is similar to mm but here we can select the multiple folders / directories / modules.
This command also just do the build and it will not do the changes in system image.
Other useful commands :
- allmod : List all modules
- gomod : Go to directory containing a module
- pathmod : Get the directory containing a module
- outmod : Gets the location / path of modules installed output with a certain expression.
- dirmod : Gets the module defined in a given directory.
- installmod : Adb installs a modules built apk.
- refreshmod : Refresh list of modules for allmod / gomod / pathmod / outmod / installmod
In the next article we’ll see such interesting topics of android internal’s, stay tuned. If you like please share with your friends, Please write your feedback for further improvements. Happy learning.
Let me know your experience about reading of this blog on my email.