Thunderbolt, ADB, Ubuntu? - Thunderbolt Q&A, Help & Troubleshooting

I'm running Ubuntu (latest) and can't get it to recognize my phone. Well, actually it sees it but I keep keep getting "??????????? no permissions". BTW. I've successfully done this on a Windows machine before. Does anyone know of a resource for fixing my issue?
Sent from my ADR6400L using XDA Premium App

farkmeil said:
I'm running Ubuntu (latest) and can't get it to recognize my phone. Well, actually it sees it but I keep keep getting "??????????? no permissions". BTW. I've successfully done this on a Windows machine before. Does anyone know of a resource for fixing my issue?
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
You need to be more descriptive in the steps you were taking to get that error. However, it's probably a permissions error due to not putting sudo in front of whatever command you were executing.

yareally said:
You need to be more descriptive in the steps you were taking to get that error. However, it's probably a permissions error due to not putting sudo in front of whatever command you were executing.
Click to expand...
Click to collapse
Sorry. It's when I type devices, or any other command really, in the ADB shell. I'll try sudo and see if that works.
Sent from my ADR6400L using XDA Premium App

More then likely it's because you haven't set your udev rules yet. Once you have the udev rules set it won't matter if your root or not for running ADB. 99% of the guides out there take you step by step on properly installing the Android SDK including setting the UDEV rules under the Ubuntu OS.
R.F.

rfw2003 said:
More then likely it's because you haven't set your udev rules yet. Once you have the udev rules set it won't matter if your root or not for running ADB. 99% of the guides out there take you step by step on properly installing the Android SDK including setting the UDEV rules under the Ubuntu OS.
R.F.
Click to expand...
Click to collapse
Great. Thanks for your help.
Sent from my ADR6400L using XDA Premium App

yareally said:
You need to be more descriptive in the steps you were taking to get that error. However, it's probably a permissions error due to not putting sudo in front of whatever command you were executing.
Click to expand...
Click to collapse
This is it, but remember that sudo doesn't look at your normal path, so you'll need to restart adb with adb kill server, then sudo [path to android sdk]/platform_tools/adb devices.
I've set up an alias in my .bashrc that lets me start adb with su privileges, then I'm off to the races. It sure makes things easy!
Good luck!

Zennmaster said:
This is it, but remember that sudo doesn't look at your normal path, so you'll need to restart adb with adb kill server, then sudo [path to android sdk]/platform_tools/adb devices.
I've set up an alias in my .bashrc that lets me start adb with su privileges, then I'm off to the races. It sure makes things easy!
Good luck!
Click to expand...
Click to collapse
Thanks everyone, I'm new to Linux and rooting. So your help is invaluable.
Sent from my ADR6400L using XDA Premium App

Related

accessing the root directory from pc?

ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Check out androidcommander.
Sent from my ThunderBolt using XDA Premium App
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
keith.mcintyre26 said:
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
i know i can adb pull but what would be the command to actually browse the system...
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
tflogic said:
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
Click to expand...
Click to collapse
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
B3L13V3 said:
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
Click to expand...
Click to collapse
im also hoping for something with a gui. i stopped using dos commands or whatever when i scrapped my ibm 286 with it's 10mb hd.
It's ridiculously easy to use lol
tflogic said:
It's ridiculously easy to use lol
Click to expand...
Click to collapse
ok, so i'm attempting to post an adb logcat output at another forum regarding an app. at the cmd prompt (of course directed to the proper tools folder) i use the following
adb logcat -f /sdcard/output.txt
hit return and i get a blinking cursor. nothing else appears to happen. am i mssing something? is there another way to create and view/save the logcat output?
thanks
mark
wouldn't it be:
Code:
adb shell
logcat > /sdcard/logcat.txt
markkal123 said:
ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Click to expand...
Click to collapse
http://www.appbrain.com/app/sshdroid/berserker.android.apps.sshdroid
http://www.netsarang.com/forum/xshell/list
http://filezilla-project.org/
*method only works on wifi since your phone is behind NAT

Adb for linux

Can anyone point me in the direction or give me a good tutorial on an easy way to set up Adb for the 3vo in Linux? Thanks
Sent from my PG86100 using XDA Premium App
bballer71418 said:
Can anyone point me in the direction or give me a good tutorial on an easy way to set up Adb for the 3vo in Linux? Thanks
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
ADB is just a binary file, you open terminal in same directory as adb ./adb shell
I keep the binary file on my desktop, then just right click desktop select open terminal here, then type ./adb shell
bballer71418 said:
Can anyone point me in the direction or give me a good tutorial on an easy way to set up Adb for the 3vo in Linux? Thanks
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
This is what I used a while back to get me up and running on my Ubuntu setup when I was using the Evo4g. I was new to Ubuntu at the time, so this guide was very helpful for me. Step 6 is important, because setting ADB in the PATH will allow you to execute adb commands from any directory. You won't need to cd to the directory where your adb drivers are (most likely the platform-tools folder)
http://imransarwar.com/index.php/how-to-install-adb-on-ubuntu-step-by-step-guide/
Here is another guide written by MisFit for ADB on Ubuntu. I'm not sur which flavor of Linux you're running, but if it's Ubuntu these tutorials should be helpful to you. After I started using the Evo3d, I had to do something very similar to this guide. ADB always worked fine with my Evo4g on Ubuntu, but when I started using the Evo3d, I would get "no permissions ?????????" or something to that nature. Following this guide should fix that. Good luck getting it going, shouldn't be too bad.
http://forum.xda-developers.com/showthread.php?t=1158918&highlight=adb+ubuntu+11.04
You need all that just to run a binary on Ubuntu? I guess they really are the windows of Linux.
vampirefo said:
You need all that just to run a binary on Ubuntu? I guess they really are the windows of Linux.
Click to expand...
Click to collapse
Ha, yea. I didn't find it too difficult, and as I said, was a noob at Ubuntu when I did that. Surely there's a quicker way to do it. But I was able to do it with no experience with Ubuntu at all, just followed what was written.
Thank u i will try it when I get home. Thanks for your help
Sent from my PG86100 using XDA Premium App
k2buckley said:
Ha, yea. I didn't find it too difficult, and as I said, was a noob at Ubuntu when I did that. Surely there's a quicker way to do it. But I was able to do it with no experience with Ubuntu at all, just followed what was written.
Click to expand...
Click to collapse
That's cool my comment was meant as a joke, I haven't used windows since 2003, XP was the version, I build my own Linux it's based off of Mepis, I haven't used Ubuntu just poking fun at you.
vampirefo said:
That's cool my comment was meant as a joke, I haven't used windows since 2003, XP was the version, I build my own Linux it's based off of Mepis, I haven't used Ubuntu just poking fun at you.
Click to expand...
Click to collapse
Understood. And yup, I know I'm a noob at Ubuntu and other Linux based stuff. I used Windows my entire life until a few months ago, so I'm learning it slowly. Surely one day I'll also be building my own Linux systems.

[Q] adb ?????????????? no permissions in ubuntu

I'm in a recovery boot loop and need to be able to access adb from recovery. I'm running ubuntu and adb devices while in recovery shows ?????????????? no permissions. Can somebody please help me. I think it may be as simple as a rule change somewhere but thats just a guess. Thanks guys.
newellj79 said:
I'm in a recovery boot loop and need to be able to access adb from recovery. I'm running ubuntu and adb devices while in recovery shows ?????????????? no permissions. Can somebody please help me. I think it may be as simple as a rule change somewhere but thats just a guess. Thanks guys.
Click to expand...
Click to collapse
Try this:
sudo su
adb start-server (preceeded by adb kill-server if adb already running). NOTE: You may have to change the path to adb since you are using Superuser to start the server, it may not be in your .bashrc.
exit
Then, run adb devices and see what you get. Happened to me with the EVO 3D and the above worked for me. Starting the adb server with SU permissions works.
pinky059 said:
Try this:
sudo su
adb start-server (preceeded by adb kill-server if adb already running). NOTE: You may have to change the path to adb since you are using Superuser to start the server, it may not be in your .bashrc.
exit
Then, run adb devices and see what you get. Happened to me with the EVO 3D and the above worked for me. Starting the adb server with SU permissions works.
Click to expand...
Click to collapse
Thanks. That got it,
Sent from my T-Mobile myTouch 3G using XDA
The file to check would an udev rules file. See where ubuntu keeps it.
Sent from my i9250

Mtp on ubuntu?

Can anyone have the solution for working mtp on ubuntu 12.04 ...
I already install mtp library and doesn't work...
I used jb aokp build 4 and dorimanx kernel 5.86b4..
Thank you for your help
Sent from my GT-I9100 using xda premium
arief347 said:
Can anyone have the solution for working mtp on ubuntu 12.04 ...
I already install mtp library and doesn't work...
I used jb aokp build 4 and dorimanx kernel 5.86b4..
Thank you for your help
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
I dunno whether it works on build 4, but if you have exTweaks, you can enable the mtp option from there. That works with 12.04
HAXTREME said:
I dunno whether it works on build 4, but if you have exTweaks, you can enable the mtp option from there. That works with 12.04
Click to expand...
Click to collapse
Thank you, gonna try soon
Sent from my GT-I9100 using xda premium
Still not work mtp on ubuntu...any other advice?
Sent from my GT-I9100 using xda premium
Easy solutions
arief347 said:
Still not work mtp on ubuntu...any other advice?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
There are solutions available, that I am using on a daily basis:
1. first thing: ADB via Terminal
The Android SDK includes a few comandline tools. One of these is adb (Android Debug bridge) which has a few commands included,
Just to name a few: push (sent), pull (copy from device to pc/laptop), backup (user data with or without sdcard) and a few more like shell = remote terminal access to device.
Install it by: (without "")
"sudo apt-get install android-tools-adb"
then: "adb devices" and you should see your device as something like "09A48348HHHF1"
then sent (push) or copy (pull) files with "adb push /home/USER/downloads/1.avi /sdcard" or adb pull /sdcard/movie.avi /home/USER/downloads"
to see the files included in a folder type : "ls" or "ls- la"
2. Use ADB via Graphical frontend: e.g. the ADBfileexplorer by DareT0Be (THX a lot and all credits to you)
http://forum.xda-developers.com/showthread.php?t=1821601
It's written in JAVA and can be executed on every device running java theoretically (Ubuntu, Windows, MacOSx,....)
A little trick is written at the end of the first page to execute it. I wrote a script to run it easily:
#!/bin/bash
DIRECTORY=/home/USER/Downloads
$1 cd $DIRECTORY
$2 java -Xmx512m -jar adbfileexplorer.jar
echo $1
echo $2
Save it: Once again via terminal: "gedit SCRIPTNAME.sh" copy and paste it, change Directory to the directory of adbfileexplorer. save it.
Make it executable: sudo chmod 771 adbfileexplorer.sh
Create an alias at your desktop or where ever to easily open it.
3. USE google to find the MTP scripts and mounting solutions - Which I don't use.
If that helped YOU hit the thanks button.

Can anyone help me on understanding ADB commands?

Hey all I hope I'm not in the wrong section and I tried searching for an already similar if not identical thread but couldn't find one(probably not looking too hard) but I have a rooted LG G2 and I have ADB up and running but I don't know the commands I'm assuming. I type "ADB shell" and it connects and finds device but the only command that works for me is "reboot system". I've tried "boot recovery" and a few iterations but no luck.. Do I just not know the correct commands to tell it?
Sent from my LG-D801
DurbanPoison24 said:
Hey all I hope I'm not in the wrong section and I tried searching for an already similar if not identical thread but couldn't find one(probably not looking too hard) but I have a rooted LG G2 and I have ADB up and running but I don't know the commands I'm assuming. I type "ADB shell" and it connects and finds device but the only command that works for me is "reboot system". I've tried "boot recovery" and a few iterations but no luck.. Do I just not know the correct commands to tell it?
Sent from my LG-D801
Click to expand...
Click to collapse
It would help if you told us what it is you're trying to do. If you just want a full list of every command then there's threads and websites that have it all. If you're trying to do something specific then let us know and we'll try and give you the correct commands.
The most common you'll use are:
adb devices - To ensure phone is connected correctly.
adb shell - To access the phone shell (?).
adb push [filename] /path/to/destination - Send a file from PC to phone, usually the sdcard.
Mr_JMM said:
It would help if you told us what it is you're trying to do. If you just want a full list of every command then there's threads and websites that have it all. If you're trying to do something specific then let us know and we'll try and give you the correct commands.
The most common you'll use are:
adb devices - To ensure phone is connected correctly.
adb shell - To access the phone shell (?).
adb push [filename] /path/to/destination - Send a file from PC to phone, usually the sdcard.
Click to expand...
Click to collapse
If it makes any sense I really wasn't trying to do anything specific I just wanted to make sure everything was working right. And as for what wasn't working for me was telling the phone to go into recovery. That's honestly the only thing I was trying.
Sent from my LG-D801 using xda app-developers app
You don't need a shell for this
adb reboot recovery
Should do the trick, opening a shell gets you into the phones file system which is not needed to reboot to recovery
Just do a quick Google search and you will find many guides on this, especially here in xda
Sent from my Nexus 7 using XDA Premium 4 mobile app

Categories

Resources