Tuesday, 5 November 2019

Few Linux App & commands which is going to used to Build AOSP(Android Open Source Project) Source Code

1. sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip unrar
2. sudo apt-get install adb fastboot repo
3. sudo apt-get install geany vim(These're two best code editors)
4. sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    sudo apt-get install oracle-java8-set-default
    sudo apt-get install openjdk-8-jdk
5. sudo apt-get install -y chrpath gawk texinfo libsdl1.2-dev whiptail diffstat cpio libssl-dev
6. sudo apt-get install openssh-server openssh-client

Commands :
lunch:   lunch <product_name>-<build_variant>
   tapas:   tapas [<App1> <App2> ...] [arm|x86|mips|armv5] [eng|userdebug|user]
   croot:   Changes directory to the top of the tree.
   m:       Makes from the top of the tree.
   mm:      Builds all of the modules in the current directory, but not their dependencies.
   mmm:     Builds all of the modules in the supplied directories, but not their dependencies.
            To limit the modules being built use the syntax: mmm dir/:target1,target2.
   mma:     Builds all of the modules in the current directory, and their dependencies.
   mmma:    Builds all of the modules in the supplied directories, and their dependencies.
   cgrep <PATTERN> Greps on all local C/C++ files.
ggrep <PATTERN> Greps on all local Gradle files.
jgrep <PATTERN> Greps on all local Java files.
resgrep <PATTERN> Greps on all local res/*.xml files.
mangrep <PATTERN> Greps on all local AndroidManifest.xml files.
mgrep <PATTERN> Greps on all local Makefiles files.
sepgrep <PATTERN> Greps on all local sepolicy files.
sgrep <PATTERN> Greps on all local source files.
   godir:   Go to the directory containing a file.

Few Linux App & commands which is going to used to Build AOSP(Android Open Source Project) Source Code

1. sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32n...