Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Guide] Android development/debugging on ChromeOS - ADB, Fastboot and more!

$
0
0
What you need to know before we begin:
ChromeOS (Or Chromium OS if you installed it on a non-chromebook) is based on Unix, and you can access a terminal with button combinations. This part of the guide is easy, but if I can get apt-get working, that's where it gets really complex.

What you'll need
A computer running ChromeOS/Chromium OS
An internet connection on it, or the files on a USB drive (and you to copy them to Downloads)
A little Linux knowledge
Some patience

1.) Proceed to this page: Android SDK Download and download the 32 Bit version of the Linux sdk. It's big, so it may take a while depending on your connection
2.) When the zip has downloaded, open it using the file manager, and proceed to adt-bundle-x86. Right click and copy the folder named "sdk", and paste it into the Downloads folder. Get a cup of something hot, this takes a while. When it's done, rename the folder to "android-sdk-linux"
3.) It's now time to access the terminal mode. It might be a good idea to get this guide on a phone or some other device so you don't have to switch out at any time.
4.) Press Ctrl-Alt-F2 on your keyboard, and the whole screen will be a terminal. Read the info at the top, and then login
NOTE: If you're using Chromium OS vanilla builds, the username and password are as follows:
Code:

User: chronos
Pass: facepunch

5.) You now have a localhost terminal, with no root permissions.
6.) Run this code, to locate the location of your Downloads folder:
Code:

ls /home
7.) Using the name other than "root" and "user", run this command:
Code:

export PATH=$PATH:/home/<name>/user/Downloads/android-sdk-linux/platform-tools
For example, the Chromium one would be:
Code:

export PATH=$PATH:/home/chronos/user/Downloads/android-sdk-linux/platform-tools
8.) Test that it has worked by running:
Code:

cat $PATH
It should result with the path you added being there.
9.) Reboot the system, so it detects all the files
10.) Open the terminal again and login
11.) Try running adb, it should work, as should fastboot
12.) For more stuff, like Java and ant, wait a while until I work out how to get apt-get installed from dpkg

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>