Skip to main content

Add Android PATH to your ubuntu profile and make your life less shitty (Updated 15 March 2018)

Like the title say,  let us do it.

After you finish doing installation of the Android SDK, you probably don't want to open the terminal and keep on typing cd to find adb path before doing god know what.

Obviously I'm the latest generation of GNU/Linux user that cannot be bothered with learning vi or emacs, so I'm going to use nano instead.

DISCLAIMER: I've tried it on Ubuntu, Kali Linux and Debian, it works for me so far.


  1. Open your terminal, make sure it is in the home directory, click Ctrl + H and locate your .bashrc file.
  2. type sudo nano .bashrc, enter your password if you are not root (duh).
  3. scroll until the end of all those things that we don't understand.
  4. start typing the path of your Android SDK:
    export PATH="$PATH:/"your_path"Android/Sdk/tools/:/"your_path"/Android/Sdk/platform-tools/:/"your_path"/Android/Sdk/build-tools/26.0.2/"
  5. Save those things by clicking Ctrl + O.
  6. Exit your nano by clicking Ctrl + X.
  7. Now to enable the changes on your profile, simply type on your terminal:
    source .bashrc
  8. At this time hopefully you would be able to simply type adb on any path on your terminal (again hopefully).
The problem you shall encounter is probably the bad spelling like what I do, hence why I provide the path for you to copy.
Simply change "your_path" to the path inside your OS and insert in your  .bashrc


#########(UPDATE 15 MARCH 2018)#########
The steps now simplified!

# Add the directory containing executables in PATH so that they can be found
echo 'export ANDROID_HOME=$HOME/YOUR_ANDROID_SDK_FOLDERNAME' >> ~/.bashrc
echo 'export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bashrc
source ~/.bashrc


Cheers!

Comments

Popular posts from this blog

The 7 Deadly Diseases by Dr. William Edward Deming.

 Good advice to follow when it come to product development. I found this here: https://old.reddit.com/r/BuyItForLife/comments/lx0fyn/i_asked_an_automotive_engineer_whats_the_secret/ The diseases are: Lack of constancy of purpose : You must remain focused on doing the right things because they are the right things to do for your customer and to achieve quality. ITSM is not a fad it is a way of behaving. Emphasis on short-term profits : Cutting costs can bring short-term profits and are easy to achieve. But cutting costs can only go on for so long, before you have cut to the bone and have nothing left to cut. Evaluation by performance, merit rating, or annual review of performance : Management by objectives ends up focusing on the objectives and not on the management. It is about “hitting the numbers” and not improvement. Mobility of management : When management changes jobs constantly there is no continuity or constancy of purpose. Each time a new leader comes in, the efforts of quality

Training that I intend to attend and complete by 2020

 #Update: I failed to attend all because depression during lockdown. Will slowly try to do one in 2021.    As mentioned, I want to do these: https://www.chiheb-chebbi.com/incident-response-and-security-operations-fundamentals/ https://www.enisa.europa.eu/topics/trainings-for-cybersecurity-specialists/online-training-material/technical-operational#mobile_threats https://www.enisa.europa.eu/topics/trainings-for-cybersecurity-specialists/online-training-material/technical-operational#mobile2   This is my checklist, we'll see if I can do it. Finger-crossed.

Memilih Kamera Pertama Anda. Bahagian 2 Tambahan - Kamera Point and Shoot

Edisi Khas untuk kamera Point and Shoot. Penulis merasakan kamera jenis ini tidak mendapat perhatian yang baik dengan ciri yang kompak, ringan dan mudah dibawa. Kebanyakan keluaran lewat 2015 mempunyai spesifikasi yang bagus, setara dengan DSLR dan Mirrorless. Contoh Kamera Point and Shoot keluaran Sony yang terkini bernama Sony ZV-1 Saiz Sensor - Kebanyakan kamera sebegini sensor sebesar 1 inci sehingga APS-C.  Megapixel - Normalnya bermula 12 MP sehingga 26 MP. Hasil gambar juga baik, cuma kekurangan fungsi Penstabil (Stabiliser) menyebabkan kualiti gambar adalah bergantung kepada tetapan (setting) yang betul serta tangan pengambil gambar yang teguh. Saiz Kamera - Kerana saiz yang kompak, ia senang dibawa kemana-mana sahaja, tanpa memakan ruang pada beg mahupun poket. Saiz kecil juga nampak natural, tidak seakan menceroboh momen dengan saiz yang besar, membuatkan orang berasa tidak senang duduk. Versatil - Mempunyai kebolehan merakam video, jadi