Firstly, install git , using the package manager in your distro.
Then, run these commands
$ git clone https://github.com/akhilnarang/scripts
$ cd scripts
$ bash setup/android_build_env.sh
OR
$ bash -c "$(curl -sL https://raw.githubusercontent.com/akhilnarang/scripts/master/setup/android_build_env.sh)"
Enjoy!
aosip-> some scripts I use for AOSiP.
gerrit -> useful for setting up gerrit and stuff.
github -> some actions on github.
gitlab -> some actions on gitlab.
misc -> stuff.
personal-setup -> scripts to setup git credentials and functions after fresh installation.
push -> scripts to push multiple repos at once if you don't wanna do it manually.
random-html -> generates an index.html with a table with the list of files in current directory.
rr -> some scripts for ResurrectionRemix.
setup -> setup Android Build Environment / Android SDK.