yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Breakthecycle2:
Ok, so I added rule 51, did all the steps for 9.10 needed. I have the sdk file in my home folder. I have tried everything and still cannot get adb to be recognized. It's runs fine on my vista partition, but not for ubuntu. Any ideas at all?
[G1 Android Development] Breakthecycle2:
Anyone? lol
[G1 Android Development] BombaMyte:
I'll check mine against yours... Hang tight...

EDIT: Put...

#AndroidDev PATH
export PATH=${PATH}:/AndroidSDK/tools

after...

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

so it looks like...

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

#AndroidDev PATH
export PATH=${PATH}:/AndroidSDK/tools

Try that; that's how I have mine set up.
[G1 Android Development] chrisharang:
Do you mean that adb isn't recognizing your G1, or that adb isn't found in your path at all?

- Chris
[G1 Android Development] joe v:
The only way I was able to set. Up 9.10 was to remove the. # AndroidDdev Path" out of and just leave this. export PATH=$PATH:/AndroidSDK/tools/ its on the op's 1st page lol. Just change the /AndroidSDK/tools/ path to were your sdk path is ...

P.s. I also had to use sdk r2,r3 would not work for me..
[G1 Android Development] bmt626:
This is what worked for me

#AndroidDev PATH

PATH="AndroidSDK/tools:$PATH"

i can now use my adb and autosign commands from anywhere
[G1 Android Development] Ekril:
Well,

thanks for the how to.

does anyone know how to find the vendor id for samsung galaxy device?

i would love to use a custom rom but i do not want to go to windoz.

thanks..

Ekrem
[G1 Android Development] Ekril:
http://developer.android.com/guide/developing/device.html

i found it here :)
[G1 Android Development] Ekril:
I still can't make it recognize my device.. its samsung galaxy.. does anyone have any idea?
[G1 Android Development] qakgob:
Terminal error

I followed the instructions on the first page. However, when I start terminal I get this message at the top

bash: /home/qakgob/.bashrc: line 6: syntax error near unexpected token `('
bash: /home/qakgob/.bashrc: line 6: `export PATH=${PATH}:/home/qakgob/AndroidSDK/tools# ~/.bashrc: executed by bash(1) for non-login shells.'

and then if I try to run and comand (eg fastboot devices) I get the error

bash: fastboot: command not found

Any idea what I did wrong?
[G1 Android Development] nicknowsky:
Its funny I installed a ubuntu distro SuperOS few days ago, I figures cause it Linux, and Android is open source also, its developed on LINUX that it would sync and work together nicely. But I found it to be a pain in the butt to get the SDK installed and be able to push apps in, and whatever else. This is a good little to have!!
[G1 Android Development] liam.lah:
I can't get this to work with my nexus one. Fastboot works and detects my device, with some tweaking i got it to recognise adb, but adb wont find the device. This is my .bashsrc

(androidSDK is lowercase as is the actual folder)

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

#AndroidDev PATH
PATH="androidSDK/tools:$PATH"

Example from terminal

user@sandbox:~$ fastboot devices
HT9CPP807263	fastboot
user@sandbox:~$ adb devices
List of devices attached

user@sandbox:~$

Anything else you want to see?

I am running on karmic, not jaunty. Fresh install, no updates.

This is my only hope as windows refuses to even recognise the device anymore so i cant even install drivers for it.
[G1 Android Development] `mods:
Great. Just what I was looking for.
[G1 Android Development] Austin021296:
Well i think i have done everything correctly and still cannot get abd or fastboot to work :confused:
[G1 Android Development] liam.lah:
Give us a screenshot of your terminal when you try a few of the commands.
[G1 Android Development] Austin021296:
Here are the screen shots...

Sorry that they are a little small
[G1 Android Development] studjuice:
try using "./adb"

worked for me
[G1 Android Development] studjuice:
I already had ubuntu installed like a year ago on my external hdd, so i can dual boot between windows and ubuntu easily. So i didn't get to do the optional install, and i don't want to completely redo the install just to make android developing simple... but i almost do

Could anyone tell me how i could go about resetting the mount point to /AndroidSDK like it says in the OP so i don't have to do

cd ..
cd ..
cd AndroidSDK/tools/

before everytime i wanna use adb or fastboot
[G1 Android Development] ayush20m:
****@****-desktop:~/androidSDK/tools$ adb devices
No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'aub' from package 'aub' (universe)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'mdb' from package 'mono-debugger' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'ab' from package 'apache2-utils' (main)
adb: command not found

What am I doing wrong
[G1 Android Development] InsightGoalie:
Sure you could do the optional step. I did and I'm already running Ubuntu. You have to use a live came CD then go into gparted and shrink a partition. That's what I did. I still haven't gone in to mount it as /AndroidSDK yet though. Got busy in the middle of the project.
[G1 Android Development] InsightGoalie:
I followed your instructions and they're quite easy, thanks! However, I'm getting this now:

flexibletoast@joseph-desktop:~$ adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
????????????	no permissions

flexibletoast@joseph-desktop:~$ adb shell
error: insufficient permissions for device

What is this insufficient permissions thing? I'm using a Nexus One btw, if that makes a difference.
[G1 Android Development] InsightGoalie:
Nevermind, I was able to get past this problem. I had to change my 51-android.rules file to this:

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666", OWNER="user"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01",
MODE="0666", OWNER="user"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02",
MODE="0666", OWNER="user"

Of course with user replaced with my username. I have no idea what all that code means but, I pieced it together from various websites and now it works... So, I'm happy.:D
[G1 Android Development] sdc177:
Is this guide appropriate for ubuntu 10.04?
[G1 Android Development] InsightGoalie:
Yes, but use my code that I posted right before yours in the 51-android.rules. Trust me, it took me far too long to piece that all together... I have no idea why it works but, it just does
[G1 Android Development] nlysurferdude03:
ok so i finally got adb working but i have a question that i can't figure out to save my life. currently i have my androidsdk folder in /home so anytime i need to use adb, i have to "cd androidsdk/tools" and then type ./adb before i can do anything whereas when im in windows, i can "adb" from anywhere (ie-desktop).

is there an easier way to accomplish that in ubuntu 10.4? i would just prefer not to have to move my files into the tools folder...then "cd androidsdk/tools" then ./adb everytime i want to use it. :( at this point id almost rather reboot into windows to do all my android stuff but i really like ubuntu and would like to get this worked out if possible. any help would be great! thank you!
[G1 Android Development] artismyrevolt:
william@william-sandbox ~/sdk/tools $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/william/sdk/tools
william@william-sandbox ~/sdk/tools $ pwd
/home/william/sdk/tools
william@william-sandbox ~/sdk/tools $ ls
adb apkbuilder dmtracedump emulator hierarchyviewer layoutopt mksdcard source.properties traceview
android ddms draw9patch etc1tool hprof-conv lib NOTICE.txt sqlite3 zipalign
william@william-sandbox ~/sdk/tools $ adb devices
bash: /home/william/sdk/tools/adb: No such file or directory
william@william-sandbox ~/sdk/tools $

what am i doing wrong? my tools directory is in my path. i'm even in the directory, and the file is there. why can't i use it?
[G1 Android Development] InsightGoalie:
Recently I did a "clean install" upgrade of Ubuntu and it messed up my ADB. Now, of course my /home partition and my /AndroidSDK partition remained intact as I didn't format them during the install. So, my .bash(whatever it is) is still intact and all the AndroidSDK tools and what not are still in tact. However, I did have to recreate the android rules file in the udev. Now that I've done that, if I try say "adb devices" it doesn't work. What do I need to change now?

flexibletoast@joseph-desktop:~$ adb devices
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

Edit: Found a fix to my own problem. Turns out I didn't have the proper 32 bit lib or something like that. It was solved with this.

sudo apt-get install ia32-libs
[G1 Android Development] xcablex:
Hey folks,

I was trying to get my HTC Device (Magic) get recognized by fastboot for the last 2hours under my Ubuntu 10.04. I still did it 2 months ago, but couldn't exactly remember every step. Reading many old threads I was able to do it again.

I followed the instructions in this thread, but the final clue was to start fastboot in this form:

user@system:~/Tools/sdk/tools$ sudo ./fastboot devices
HT957KF01671	fastboot

Perhaps someone else is running nuts and can use this clue.
[G1 Android Development] albatorcobra:
You should try lsusb while in fastboot mode and update udev rule.
[G1 Android Development] Mr_bleu:
Closer.........adb not found, push not found

djr@popeye-laptop:/root/android/tools$ ls

adb ddms fastboot mksdcard zipalign

android dmtracedump hierarchyviewer NOTICE.txt

ant draw9patch hprof-conv source.properties

apkbuilder emulator layoutopt sqlite3

bootanimation.zip etc1tool lib traceview

djr@popeye-laptop:/root/android/tools$ push bootanimation.zip /system

push: connect(bootanimation.zip): Connection timed out

push: failed to contact bootanimation.zip

djr@popeye-laptop:/root/android/tools$

One step close I guess.
[G1 Android Development] VK7HSE:
ADB Debian Sid 2.6.32-5-amd64

Well it was finally time for me to pull my finger out and setup the SDK on Debian. I'm on Sid so I wasn't hopefull that this was even going to work, but I had to remove the { } from the path definition and all is working as expected :D

Great now to start removing **** I don't need/want/use!
[G1 Android Development] liam.lah:
First time since i read this thread that i have had both adb and fastboot working. You sir, are a champion.
[G1 Android Development] ghosty81:
thanks a ot
[G1 Android Development] gitanojr:
Help :)

nevermind i figure it out, but now the adb cant find my g1??
[G1 Android Development] VolcanicSkunk:
I am new to Linux, and just finished installing Ubuntu 10.10 with the /AndroidSDK partition. I made it a logical partition because I am dual-booting with Windows7. It is in ext4 format. I feel like I followed the guide properly, yet I get this error message every time!

"The folder "android-sdk-linux_x86" cannot be copied because you do not have permissions to create it in the destination."

I have gone into my user settings and changed my primary group from my username to "admin" and to "root". I cannot seem to get this to work! :confused: I am very new to Linux and am getting very frustrated. Please Help! :)
[G1 Android Development] Royalknight6190:
You cant just drag and drop...in terminal you need to do either the copy or move command with sudo at the front, it wold look like this,

sudo mv <file> /<enter destination>/

sudo cp <file> /<enter destination>/

make sure you cd into the directory of the file. Hope this helped.
[G1 Android Development] VolcanicSkunk:
Thank you very much RoyalKnight for the quick reply! I finally got it working! Great tutorial!
[G1 Android Development] liam.lah:
Just following on from this, if in the future you need root privileges and wish to move folders visually, "gksudo nautilus" will bring up a window you can browse and change f folders in. use it sparingly though, you are pretty much unrestricted in what you can do at that point.
[G1 Android Development] nanostreak:
I can confirm this works on native Maverick 64bit as well. Important to copy the stuff into /root to make the command line work (tried my own home folder first and while SDK works e.g. fastboot etc won't). I'll use this to apply FroYo to my Dell Streak. I'm amazed MoDaCo is mostly a Windows based community - seems so against the idea of hacking, modifying and full ownership. I'm glad it seems to be doable with Linux as well.
[G1 Android Development] Mr_bleu:
Thanks!

djr@popeye-laptop:/root/android/tools$ sudo ./fastboot devices

HT069HL06527	fastboot

djr@popeye-laptop:/root/android/tools$ sudo ./fastboot flash recovery awrecovery.img

sending 'recovery' (3930 KB)... OKAY

writing 'recovery'... OKAY

djr@popeye-laptop:/root/android/tools$
[G1 Android Development] sudhirkhanger:
This tutorial worked like a charm previously on Maverick developmental release. But it works no longer. adb seems to be working but i get nothing in list of devices.
[G1 Android Development] bala_xda:
use lsusb to figure out the device id

Figure out the phone's USB ID using lsusb. I figured out which entry was that of my phone by doing lsusb with the phone plugged-in and again with the phone not plugged-in.

Sample output from lsusb:

Bus 002 Device 001: ID 1d6b:0002 Some USB device

The "1d6b:0002" is the USB ID. Find the correct ID for your phone. Then write it in the "/etc/udev/rules.d/51-android.rules" as follows:

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666", OWNER="username"

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", MODE="0666", OWNER="username"

NOTE: I assumed the ID from the lsusb output to be the ID of the phone. Replace your phone id in the second line of the configuration. Also replace "username" with your linux user name.

Then restart your udev service.

service restart udev
[G1 Android Development] sudhirkhanger:
Never mind it was problem with zippy 's kernel
[G1 Android Development] masum73:
No command 'adb' found, did you mean...

I have setup my sdk per instructions still i can't get adb to be recognized as a command.

using Ubuntu 10.04.

sdk directory:\home\Technical\android-sdk-linux_x86

i have tried modifying .bashrc with:

#AndroidDev PATH

export PATH=${PATH}:/AndroidSDK/tools

and even:

export PATH=$PATH:/AndroidSDK/tools

added

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

to 51-android.rules

ran

sudo /etc/init.d/udev restart

from terminal and even restarted my system.

still when I run the adb command from

\home\Technical\android-sdk-linux_x86\tools

I get "No command 'adb' found, did you mean...adb command not found"

Is something missing or am i making any mistakes?? any help will be greatly appreciated. Thanks

Mase
[G1 Android Development] liquidmeson:
PATH="asdk/tools:$PATH" in .bashrc in home folder

along with asdk (renamed from android-sdk_r07-linux_x86)

if your on 64Ubuntu you also need to

sudo apt-get install ia32-libs

This worked just dandy for me.
[G1 Android Development] masum73:
no adb

thanks liquidman the issue was with the path in bashrc i had to modify it to my directory and restart.
[G1 Android Development] jmatic:
just to make sure... this is for all android phones right... not just HTC... am I correct?
[G1 Android Development] VolcanicSkunk:
This isn't specifically for any brand of phone. But it is only for setting up access to the Android Software Development Kit and Android Debug Bridge. You may need to install specific drivers for your phone if for any reason Linux is unable to find them for your device.
[G1 Android Development] jmatic:
ok thanks... I have a samsung... vibrant... I'll see how that goes. working on it right now
[G1 Android Development] jmatic:
I need some help

1. The link for android SDK is outdated on the first page. I manually went and downloaded the tar.gz file for linux.

Installed according to the instructions. Also installed fastboot.

But the file on the first page says around 169MB while the file I downloaded was only 16.3MB

Why is this? Has something changed?

2. I am connected to internet via wifi on a TrendNet usb wifi adapter.

Whenever I connect my Samsung Vibrant in debugging mode, my internet connection drops and I

have to restart to get internet back. But I dont know if anyone would be able to help me with that.

But I think that even though the internet goes out, my phone is connected in debugging, and maybe I'll have to do without internet.

Does anybody have any info on how to install Samsung Vibrant Drivers for ubuntu to be recognized in adb?

Thank You very much

EDIT: Solved
[G1 Android Development] nanostreak:
I just tried to fastboot for preparation with a custom ROM a Dell Streak. My 10.10 Ubuntu would recognize the device with lsusb but not with adb or fastboot no matter what. I was pulling my hair for hours!

It turns out one has to enable EMLlist on the device that can be unlocked with *#*#307#*#* on the dialer. Only then will the device be seen by fastboot.

I did not have the same problem with my Streak as I had already applied the unlock.

Man. I went through all instructions a million times checking for typos.

Update: nope - still something else going on:

When I connect that Streak after booting it up normally, it is seen by adb and fastboot. As soon as I put it into fastboot mode for a modified boot image it is invisible to both adb and fastboot but not to lsusb. What is going on?

I used a different computer to flush Steve Hyde's modified FroYos on mine so maybe I did screw up the installation of Android SDK and fastboot somehow? The weird thing is it is working when I connect the device after booting up.
[G1 Android Development] jakeneal22:
I have read every page of this thread and it seems like I am almost the only one having problems with fastboot. My adb devices command works fine and it recognizes my nexus one, but when i try fastboot devices it says no command or whatever. If anyone reads this thread still any help would be great. I had my nexus one rooted when i had windows then i got a mini with linux on it and now and i accidentally unrooted my phone. Now i have no idea how to get amons recovery back on the nexus and trackball wake back! lol

Edit: i dont know why but all the fastboot commands work fine if i put ./ in front of them. Btw typing on my n1 with gingerbread on it :-).
[G1 Android Development] sparksco:
New Link

Here is another tut I stumbled across http://forum.cyanogenmod.com/topic/116-tutorial-ubuntu-android-sdkadbfastboot-updated/

;)
[G1 Android Development] sudhirkhanger:
This tutorial is outdated. I suppose there has been some change in structure of sdk. adb is no longer available in tools. It is in platform tools.
[G1 Android Development] bmbaker:
can some help and let me know if i have set this correctly. User is changed of course ;)

thanks in advance :-)

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666", OWNER="user"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4",ATTR{idProduct}=="0c02", OWNER="user" ,SYMLINK+="android_adb"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4",ATTR{idProduct}=="0c01", OWNER="user" ,SYMLINK+="android_fastboot"
[G1 Android Development] bmbaker:
Bump '-)
[G1 Android Development] Dnajun_Tnuieh:
My fastboot doesn't work at all even with sudo ./ or just ./ in front of it.
[G1 Android Development] cybernetus:
Hello,

When I try to download this file on http://android-dls.com/files/linux/fastboot , I don't see this file on this server.

I receive the 404 result for this server.

Anyone have this file ? Send to me ?
[G1 Android Development] cowai:
Fastboot mirror is down.

Can anybody mirror the fastboot binary?
[G1 Android Development] cowai:
Nevermind! I had a backup!

Multiple mirrors: http://www.multiupload.com/3580DBE6YE
[G1 Android Development] cybernetus:
Hey cowai, thanks for this :)
[G1 Android Development] matzestinks:
Hey,

does the folder AndroidSDK have to be in the "/" direction, or can I just move it somewhere else and just change the paths?

I really don't have enough free space. :rolleyes:

Thanks!
[G1 Android Development] matzestinks:
I just tried and it works.
[G1 Android Development] silverspoon80:
remove the "{}" from $PATH and try again.
[G1 Android Development] tman7510:
java error

I'm using Debian so its a little diff then ubuntu but very similar

I've installed android SDK and installed latest java-jdk

but when trying to find available packages in SDK AVD UI I get this error

XML verification failed for http://dl-ssl.google.com/android/repository/addons_list.xml.

Error: java.lang.NullPointerException

I do have 2 versions of java..I need version 1.5 for other devices but the default is 6 and is what is detected if I test for jvm or execute javaws...? Is there a way to point the UI via ln -s command to the correct version of java???

anyone???
[G1 Android Development] redbullcat:
Thanks for the fastboot mirror :)
[G1 Android Development] Jwtiyar:
this link does not work

http://android-dls.com/files/linux/fastboot

thanks.
[G1 Android Development] Lunchbox115:
Please could you update this link in the first post? Thanks... :)
[G1 Android Development] remorema:
tks for the re-up

managed to get fastboot running in ubuntu 10.11 with tips on the first post.

tks
[G1 Android Development] damiloveu:
it is much eaiser now.
[G1 Android Development] jay652:
(Space saved in case needed later)

PS: Like a wiki, revision history is available (File > Revision History). So, if someone feels the need to vandalize the spreadsheet, it can probably be recovered by reverting to an older version. And of course, it couldn't hurt to backup the Doc on your computer every once in a while!
[G1 Android Development] alritewhadeva:
cyrowski assembled it? Didn't SimonNWalker do it? Great idea however. Im beginning to edit!
[G1 Android Development] phantasm714:
Good call. wiki = good.
[G1 Android Development] jay652:
Oh, you're right. I scrolled down on his page, saw cryowski, and just went with that. Fixed it now; thanks!
[G1 Android Development] alritewhadeva:
no problem! Just finished filled in JAC and most of cyrowski's hero build. You mind adding cupcake builds? Don't want to mess up the layout you built :D
[G1 Android Development] jay652:
Sure, I added an ADP section to get you started. I also put two little tutorial blurbs at this top of this thread; explaining how to add a new ROM and a new base OS (which you were requesting). That way, if you want to add one on your own, you'll know how. Let me know if you need me to clarify anything; it was a little difficult to explain, but not that difficult to actually execute.
[G1 Android Development] Mikey:
Lord help us :rolleyes:
[G1 Android Development] Mikey:
Shouldn't 1.5 be first (left side)cause the G1 is based off of that?? the others are ported
[G1 Android Development] wddglr:
I agree! 1.5 should be first.
[G1 Android Development] superGOAT:
What a great idea. I've deleted two idiotic cells already!
[G1 Android Development] Lieu10ant:
badass!!

f

sd
[G1 Android Development] jay652:
I've rearranged it so that ADP comes before Hero. I suppose I should move Ion too, but maybe I'll leave that for someone else.

The beauty of the spreadsheet is that if you think something should be changed, you can change it!

Of course, that could be a bad thing, too...
[G1 Android Development] ccyrowski:
what about MyTouchski? :rolleyes:
[G1 Android Development] jay652:
Haha, like I said, go ahead and add it. Developers editing their own ROM entries will likely be the most reliable.
[G1 Android Development] alapapa:
love it..great idea.

added to informative thread list
[G1 Android Development] Lieu10ant:
added t-mobile cupcake
[G1 Android Development] Do0zman:
Great idea!