yashsingh1/xdaforums huggingface dataset:
[Android Software Development] loveubuntu:
gopinb,

I assume you are trying to root your phone. I am not familiar with your phone or how to root it. This thread gives you the tools but how to root your phone is beyond the scope of this thread and my abilities. Sorry.

Did you see this?

http://xdaforums.com/showthread.php?t=1268695

and this:

http://xdaforums.com/showthread.php?t=1274972
[Android Software Development] gopinb:
hi,

Thanks for your reply.

These links are new to me I will try it today.

I hope these will definitely help me to root my phone very easily than the superonclick tool, where I the tool got hanged on first try, and succeed in the second attempt.

Earlier, I was able to root it with superonlick tool. But it won't remove the NAND lock.

However, my aim is not only to root this mobile but also to access its phone memory in Ubuntu.

In windows if I connect the mobile in download mode I can see a new drive called "FTH" and i can browse through the phone memory folders like

/system

/system/bin

I am looking for the same in ubuntu which I am not able to do till so far.

In one of the post, it was mentioned if I connect the phone in download mode, I can access the phone using "nautilus" but I couldn't.

So I am also looking for tips to access my phone in ubuntu.

Thanks again for your reply...:-)

Gopi
[Android Software Development] brainard52:
loveubuntu, I followed your tutorial for installing the SDK on Ubuntu 11.10, and I am unable to get past "./adb devices" after stopping and starting the adb server. It always says ??????????????? or something when I use it. any suggestions?
[Android Software Development] loveubuntu:
I'm sure you have the debugging enabled on your phone, right? menu/settings/applications/development/check mark debugging to enable.
[Android Software Development] boomam:
Good guide, all works for me bar the 'run adb anywhere' bit.

Just doesnt work. All i get it 'adb command not found'.

About the only difference is that it now works without ./ in the platform-tools folder.

Any ideas?

I have the paths in as follows:

# Android tools

#export PATH=${PATH}:~/android-sdk-linux/tools

#export PATH=${PATH}:~/android-sdk-linux/platform-tools

Ive also tried it as:

# Android tools

export PATH=${PATH}:~/home/boomam/android-sdk-linux/tools

export PATH=${PATH}:~/home/boomam/android-sdk-linux/platform-tools

And as:

# Android tools

export PATH=${PATH}:/home/boomam/android-sdk-linux/tools

export PATH=${PATH}:/home/boomam/android-sdk-linux/platform-tools

Any ideas anyone?
[Android Software Development] loveubuntu:
did you follow the original post or my post?
[Android Software Development] boomam:
The one that was linked in your sig in another thread. :-p

##EDIT##

Googled about, added the path info into the profile file, now works. :)
[Android Software Development] Deathbyfugu:
Regarding having fastboot work with one's device. The device serial for adb and for fastboot are 2 different codes. If I want to have fastboot recognize my device how would I append the "99-android.rules" file created?

Text of my rules file:

The extra line at the top is because of my running a VM and it being required for the device to be recognized at all.
[Android Software Development] argenisaz:
Hi,

I'm having a little trouble with adb and my phone. When I run adb devices the list of attached devices is blank. I set up the rules properly and still nothing (device ID 18d1:0001).

For some background, I'm trying to connect my HTC TP2 using ACL's nand project. I installed LK and it gets me to a message that says fastboot: processing commands. But neither fastboot nor adb see the device.

I know I set up adb properly because I tested it with another device and it works.

Help, please.
[Android Software Development] arrrghhh:
Have you tried to adb in CWM...? That will test it too.

Fastboot in Linux seems quite a bit more difficult than it is in Windows, for whatever reason. adb in Linux seems easier than adb in Windows, so go figure.
[Android Software Development] argenisaz:
I'll give adb in CWM a try, thanks.

Fastboot under Windows doesn't work either.

Quick question: first time I installed nand I used a desktop PC, now I'm on a laptop, does it make any difference? I know it sounds crazy, but I'm quite paranoid now! :eek:
[Android Software Development] swift2989:
Hey guys after i install sun-java6 (with no errors) i get this error when i open sdk manager for updating: (java:2609): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"). Cause of that error the sdk won't update correctly. If its any help Im running Ubuntu 11.10 x64 and i tried both the op along with the updated one for 11.10 that loveubuntu posted.
[Android Software Development] argenisaz:
I decided to reinstall Ubuntu and follow this guide to the letter. Everything is fine now. Maybe the christmas ghosts got into my previous ubuntu install! :confused:
[Android Software Development] loveubuntu:
this Ubuntu 11.10 is a piece of garbage. I switched back to 11.04.
[Android Software Development] LockheedX:
Just for everyone's search purposes

Hey I was able to follow the 11.10 guide mostly... until for some reason I got to using ADB, which did not work for me. I got this error: ./adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64

I'm pretty new to this environment, but a Google search turned up that installing ia32-libs fixed this problem and I was able to continue on to the guide's completion.

The only reason I'm posting is that the next time someone runs into this problem this Ubuntu install guide and this solution to that problem appear together in a search.

:)
[Android Software Development] sairegsx:
In case someone else have any issues with fastboot!

I was having trouble with fastboot, i keep giving me permissions errors when invoke from any folder as ¨fastboot devices¨ i would not work as ¨sudo ./fastboot devices¨ or ¨sudo fastboot devices¨ giving command not found error, only way it worked was by going all the way to the folder of allocation and then running it as ¨sudo ./fastboot devices¨, posted on Evo3d QA and Joeykrim fixed my issue, by telling me to give fastboot execution priviledges ¨sudo chmod +x fastboot¨ that fixed all issues on my Ubuntu 11.10 :D
[Android Software Development] JKILO:
ubuntu 11.10....lsusb not showing device..suggestions? i could be in the rom or recovery..nothing
[Android Software Development] arrrghhh:
Different cable, different port? Try port first, then cable.
[Android Software Development] Pneuma1985:
Having problems getting my .bashrc file to actually work... I have my android-sdk located at /home/username/android-sdk-linux so how should my .bashrc look?

export PATH=${PATH}:~/home/pneuma/android-sdk-linux/tools
export PATH=${PATH}:~/home/pneuma/android-sdk-linux/platform-tools

Is this right or should it be the original way either way I set it it doesnt work when i just open a terminal and type adb????
[Android Software Development] mattsm:
echo your $HOME path and see if it is default /home/username

if it is, then when setting path leave out username, cuz default for home includes username

example for you: export PATH=${PATH}:~/home/android-sdk-linux/platform-tools
[Android Software Development] nilsja:
loveubuntu, i am running 11.10 but i only get "List of devices attached " when i enter ./adb devices. kill-server and start-server, unplug/plug the device and restarting udev also doesn't help.

lsusb contains

Bus 002 Device 014: ID 22b8:41d9 Motorola PCS Droid/Milestone

so

/etc/udev/rules.d/99-android.rules

looks like this

SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8:41d9", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{action} –device=$env{DEVNAME}"

Any ideas what i might be doing wrong?
[Android Software Development] lanternslight456:
Have you rebooted the computer?

this has been a message from the dead pool.
[Android Software Development] loveubuntu:
I had a typo in the rules. sorry. Try again and see if it works. Copy and paste the corrected rules.

---------- Post added at 09:08 AM ---------- Previous post was at 09:02 AM ----------

what ubuntu version are you using? I found it easier to set it at the root like I mentioned in my writeup (signature)
[Android Software Development] mateorod:
Loveubuntu-

Worked great for me with Nook Color! Thanks for typing it up. I am pretty sure in followed another of your guides installing Java. That, or another guy writing Ubuntu tutorials and is using your avatar. I don't know anything about anything, especially Ubuntu, so thanks again!

I went through the 99-android steps before I realized that my serial number and Google-etc meant I was done. You would think the Nook pop-up telling me adb was enabled would have been a hint...

I am also going to try your advice with Gnome. My laptop is a million years old, and unity laaaaaaaaaaaaagggggggssssssssss.

For real, it's slow. The next step is rolling down to Lbuntu.
[Android Software Development] justlovejoy:
for anyone coming across the ?????????? error

i did this and it worked:

sudo bash

adb devices

adb kill-server

adb start-server

adb devices

exit

it was ? before and 42348 after.

i did everything else mentioned in op first.

Thanks!
[Android Software Development] xdaco:
This happens if you do not create a rule and set permission properly for your device.

You always have to run adb as root. But I do not like to run adb as root and I do not suggest that too . So my suggestion is to create a

rule in udev and set proper permission to that. But setting udev rule is different for different versions of ubuntu. I have seen with ubuntu 11.10 you need not set any udev rule for HTC and sony device. Thats amazing !!
[Android Software Development] loveubuntu:
You're welcome. The Java instruction is mine too I think. No one is as ugly as I am and my avatar :)

---------- Post added at 06:58 PM ---------- Previous post was at 06:55 PM ----------

If I were to guess, your USB debugging i snot checked. Does the KF have that option in the settings? Also, you can get a traditional hard drive based Ubuntu and see if it works. Trust me you won't go back to Windows.
[Android Software Development] runarorn:
I followed your guide but when i get to the point to write in terminal "./adb devices" i always get this error "bash: ./adb: No such file or directory" Does anyone know why that is?

I have tried running it as root and without "./" but i can't see my device.

I have debugging enabled.

And thanks to this i can mount my phone as storage but in GParted it shows my SD-Card as "unallocated" but it is Fat32 and ext4 partitioned.

If it matters i am using ubuntu 11.10 with gnome-shell.
[Android Software Development] loveubuntu:
did you setup udev rules as in the guide?
[Android Software Development] xdaco:
you have to run ./adb devices in the directory where adb is . Generally the folder is android-sdk-linux_x86/platform-tools/

So open the terminal and cd to the directory where your adb file is , then run ./adb devices

If you want to run the adb command as global ( from anywhere is terminal ) then you have to add the adb path to your bash profile by executing the following commands.

export PATH=${PATH}:~/android-sdk-linux_x86/tools

export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools

add the following entry in .profile file of your home directory .

PATH="$HOME/android-sdk-linux_x86/tools:$HOME/android-sdk-linux_x86/platform-tools:$PATH"

Then run ,

export PATH="$HOME/android-sdk-linux_x86/tools:$HOME/android-sdk-linux_x86/platform-tools:$PATH"

Also , as global you can not run adb as root until you symlink it to the /usr/bin
[Android Software Development] runarorn:
I did it now as i couldn't figure out what 9 characters you were talking about but i found it, did it.

Then i tried to kill and start the server but got the same error

"runar@ubuntu:~$ sudo service udev restart

[sudo] password for runar:*

udev start/running, process 2711

runar@ubuntu:~$ cd android-sdk-linux/platform-tools

runar@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices

bash: ./adb: No such file or directory

runar@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server

bash: ./adb: No such file or directory"

Yes i ran it in /android-sdk-linux/platform-tools/ where the adb is.
[Android Software Development] xdaco:
Can you post output of ls command in android-sdk-linux/platform-tools directory ??
[Android Software Development] runarorn:
You mean this?

runar@ubuntu:~/android-sdk-linux/platform-tools$ ls

aapt aidl dx lib NOTICE.txt source.properties

adb dexdump fastboot llvm-rs-cc renderscript

runar@ubuntu:~/android-sdk-linux/platform-tools$
[Android Software Development] xdaco:
Everything seems to be fine. adb is there.

Try the following :

runar@ubuntu:~/android-sdk-linux/platform-tools$ chmod a+x adb

runar@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
[Android Software Development] runarorn:
Still get it.

runar@ubuntu:~/android-sdk-linux/platform-tools$ chmod a+x adb

runar@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices

bash: ./adb: No such file or directory

runar@ubuntu:~/android-sdk-linux/platform-tools$

Don't know if this helps

runar@ubuntu:~/android-sdk-linux/platform-tools$ ls -l adb

-rwxrwxr-x 1 runar runar 159620 2012-03-15 22:52 adb

And by the way thanks for taking the time to reply :)
[Android Software Development] xdaco:
Its really weired. Can you confirm me that you are able to run any bash script ?? (May sound funny but please check it . I doubt about your bash shell) Just write a small script with the following echo command and try to run it.

#! /bin/bash

echo "hello world"

If you see the terminal is returning "hello world"

then you are able to run the script.

Then try following.

Cd to tools folder.

run ./android and update the sdk and try to run adb. or redownload the sdk.
[Android Software Development] runarorn:
Not sure how to create a script, i am ultra new to ubuntu.

But i wrote it in terminal and got:

runar@ubuntu:~$ #! /bin/bash

runar@ubuntu:~$ echo "hello world"

hello world

runar@ubuntu:~$

-------

And in sdk when i set it up the first time i downloaded everything and like loveubuntu said it took forever. So now i there were no updates but some files were not installed but now i have installed everything but i still get

runar@ubuntu:~$ cd android-sdk-linux/platform-tools/

runar@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices

bash: ./adb: No such file or directory

-------

And this is what it says in my 99-android.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4:0c87", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"

TEST=="/var/run/ConsoleKit/database", \

RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

but when i type in: "sudo gedit /etc/udev/rules.d/99-android.rules" i get this in terminal

(gedit:6160): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.42OGBW': No such file or directory

(gedit:6160): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

------

I also get "(java:6048): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"," when i type in "./android" don't know if that matters.

------

And if i re-download sdk do i have to download all the files in sdk manager back or will they still be installed if i re-download the android-sdk-linux?
[Android Software Development] byakkotai:
Try this

Use synaptic to install "ia32-libs" along with whatever it needs when you mark it for installation. Worked a treat for me.

edit: also just create the directory "/root/.local/share/" if you need to. Not sure if you do though.
[Android Software Development] runarorn:
That seems to have done the trick :) Thank you !
[Android Software Development] xdaco:
Great input.
[Android Software Development] Justin Buser:
Talk about the blind leading the blind
[Android Software Development] k.janku1:
Thank you, everything went fine except for making adb a command and I think I need it for eclipse.
[Android Software Development] tanclo:
Thanks for a helpful post

The repo's on Ubuntu 12.04 LTS I used are

sudo apt-add-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
[Android Software Development] Rasa11:
How about this?

http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html

Same thing?
[Android Software Development] ePYK me.:
Guide to install adb on 12.10 ... For HTC devices ?

I just installed ubuntu! Thanks

sent from my oc'd incS
[Android Software Development] MaLiXs:
I've used this guide and it work
[Android Software Development] k1dtw1st:
great thread! i got ADB fully working in ubuntu. however, i am having trouble with fastboot. when i send the command "fastboot devices" i get "????????????" and when i try to use fastboot to flash a recovery image, i get "no such device". any suggestions?

EDIT: i should mention that "adb devices" returns the device. it is only fastboot that is not working
[Android Software Development] demkantor:
ive been searching through these guides and not finding what i need, probably more because im tired or stupid or drunk or whatever my excuse is tonight

anyway i normally use windows but dual boot ubuntu for years now and well ive always wondered two thing about adb on linux vs windows.

1) can i and if so how can i make it so when i open a terminal and type ./adb devices well it auto shows up, like in windows i can add a path in enviromental varriables and then i dont have to keep changing directories.

2) if i can do the above (i think there is a way but not finding it right now) then is there a quick way to open a terminal from any folder so i dont have to change directories to it. like in windows i hold shift and right click in a folder and choose open command here... is there something similar to this in linux?

.... i guess i just hate cd

anyway thanks to all and op i do appreciate your guide just wasnt what i was looking for but if what im looking for exists i suggest add it to your guide

thanks!
[Android Software Development] orbital_71:
Any changes for ubuntu 12.10 setup?
[Android Software Development] My Gnexi:
I did it and it didn't work; then I found out that the folder is called android-sdk-linux and not android-sdk-linux_x86, maybe they changed it

You can download "SDK Tools Only" from http://developer.android.com/sdk/index.html and see for yourself.

You may want to search and replace the op to correct this.

Great guide BTW!
[Android Software Development] niteridet:
Hey there,:confused:

so i downloaded - http://developer.android.com/sdk/index.html

I'm running Ubuntu 12.04 Precise on Dell Dimension C521 and my ZTE is already rooted. But I want to customize stuff on my phone other than downloading stuff for root from the play store and not knowing what to do with these apps:silly:. should I install and see if this works for my phone? Should I unroot and reroot it with this current system I on now? I rooted it on a laptop that I no longer have access too. But I still have all the ZTE stuff to root saved on a cloud and I believe usb flash drive. I'm very new to all this, not just andorid stuff, but ubuntu stuff...any threads about ubuntu and android together? thx in advance for your help.
[Android Software Development] topaza:
first, thanks for this nice guide.

i tried to get adb working on ubuntu 12.04. however i am stuck at

ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached
????????????	no permissions

There are 2 ways to fix this in your guide for version 10.10 an 11.04 but not 12.04.

so I tried the version 11.04 fix, which didn´t work for me. then i also anted to try version 10.10 fix but i could not find the vendor id for alcatel...

//EDIT: it works with version 11.04 fix now. reconnecting the device did the trick...
[Android Software Development] topaza:
Hi,

I am on Ubuntu 13.10. Do I have to do anything else than executing

sudo apt-get install android-tools-adb android-tools-adbd android-tools-fastboot

to get adb and fastboot working propperly?

Is there any good reason to go the manual way described in this Thread with Ubuntu 13.10?
[Android Software Development] Super_Dork_42:
Could you update the commands to ones that work for 14.04 in this post please?

http://xdaforums.com/showthread.php?p=11823740#post11823740

I keep getting errors when trying to do step one.
[Android Software Development] topaza:
Just try the steps in my post above yours. Works fine for me!
[Android Software Development] Super_Dork_42:
That says it doesn't work with 12.04, so since ubuntu is a bit different after 12.04 than before, if it doesn't work on 12.04 then it probably won't on 14.04 either. I'm looking for how to make it work on 14.04.
[Android Software Development] topaza:
I meant post #117. Just try to install the packages i mentioned there. Worked in 13.10 and still does in 14.04
[Android Software Development] Punchieo:
[MENTION=2605063]bloodychaos[/MENTION] why is "add-apt-repository" command not found?
[Android Software Development] ishan bhanot:
hello i am on ubuntu 16.10 and my device is not being detected in adb while it is detecting other devices any help on that?
[Android Software Development] topaza:
Are you in normal android mode or Recovery/Bootloader? USB Debugging is enabled?
[Android Software Development] ishan bhanot:
I hav tried both modes and yes debugging and oem was on
[Android Software Development] topaza:
what exactly does "adb devices" show?

Does "sudo adb devices" make any difference?

Have you ever tried to connect your device to another adb system? (i.e. windows pc with adb)
[Android Software Development] ishan bhanot:
When i enter the command it says list of devices connected but there is nothing under that just blank ... And i hav tested my device on windows ...auto installation of drivers were failed but thn i installed pdanet ...after that adb worked fine ... It is because of installed custom rom i guess...

---------- Post added at 05:03 PM ---------- Previous post was at 05:01 PM ----------

Also i hav tested my friend's honor 5x and it worked fine on ubuntu...
[Android Software Development] topaza:
That´s strange. If your device is detected on other systems and other devices are detected on your system both seem be working correctly.

I had an issue with an adb version that was to old on ubuntu with my nexus 5. I had to exchange the adb binary to a newer one to get it working. (but I think I got at least some kind of error message)

You could check what adb you are using (probably 1.0.32 on latest ubuntu) and try to exchange the binary to a newer version if available.
[Android Software Development] ishan bhanot:
I will try it.. thanx fr ur time buddy...
[Nexus S Q&A, Help & Troubleshooting] mayhem1983:
Ok Yesterday I charge my phone it said it was fully charge I took it off the charger and immediately went from 100% to 97% did it again today. Is there any way to fix it or does the battery need to be replace??
[Nexus S Q&A, Help & Troubleshooting] mayhem1983:
Nevermind I found my answer sorry guys!
[Nexus S Q&A, Help & Troubleshooting] djustan:
i have the same proplem

can u tell me how can i fix it
[Nexus S Q&A, Help & Troubleshooting] KidCold:
Its in the FAQs. Its a safety feature of the phone
[Nexus S Q&A, Help & Troubleshooting] djustan:
do u mean cant I fix it or what
[Nexus S Q&A, Help & Troubleshooting] djustan:
please i need someone answer me
[Nexus S Q&A, Help & Troubleshooting] RogerPodacter:
there is no fix for this yet.
[Nexus S Q&A, Help & Troubleshooting] zephiK:
Fix? It isn't a problem. It's intended to be like that as a measure for safety.
[Nexus S Q&A, Help & Troubleshooting] jkreddy:
This is supposed to enhance the life of the battery. So you will not get 100% unless you bump charge. This is just a feature no need to be worried.
[Nexus S Q&A, Help & Troubleshooting] RogerPodacter:
i know people think that, but i dont believe it for a second. its just an inherent trait of the type of battery driver used by samsung on some of their phones.