Mtp on ubuntu? - Galaxy S II Q&A, Help & Troubleshooting

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.

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

[Q] HELP! not about the phone but adb.exe

Hi.
It's not first time for me to root or flash rom or sth like that.
It's also not the first time for me to use the adb.exe or the android sdk.
Today, I installed the sdk and the java and everything I need. Everything works great until I tried to use the adb.exe.
When I click on adb.exe, it pop out for a second and then disappear. I can see a lot of commands within that second.
Then I try to use cmd and the commands are the following:
Code:
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
These commands are obviously the command: [abd help]
Why the hack would they show out instead of running the normal adb.exe???
Also, any other adb command turns to the same things above( result of the [abd help] command)
Need help, can't use any adb functions..........................
What command are you typing? What guide are you following? This is all very vague!
Kangburra said:
What command are you typing? What guide are you following? This is all very vague!
Click to expand...
Click to collapse
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
NokiaBigS said:
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
Click to expand...
Click to collapse
What do you mean run adb.exe?
adb.exe doesn't run, its a service.
you should set it up your path on your computer to make life easier.
Open a command prompt (search for cmd in start menu) and type "set PATH=%PATH%;C:\sdk\whateverthepathis"
Then once that is set you can just type adb into command without the need for writing the whole path every time.
Like C:\sdk\platform-tools\adb.exe\adb devices becomes adb devices.
Sent from my GT-I9300 using xda premium
NokiaBigS said:
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
Click to expand...
Click to collapse
succeed code
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
nodstuff said:
adb.exe doesn't run, its a service.
you should set it up your path on your computer to make life easier.
Open a command prompt (search for cmd in start menu) and type "set PATH=%PATH%;C:\sdk\whateverthepathis"
Then once that is set you can just type adb into command without the need for writing the whole path every time.
Like C:\sdk\platform-tools\adb.exe\adb devices becomes adb devices.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
shoot....I don't know about that.....I thought exe is to run........
sorry about that.
So what if I got such result after using command: adb devices
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
Glad it is working for you.
NokiaBigS said:
shoot....I don't know about that.....I thought exe is to run........
sorry about that.
So what if I got such result after using command: adb devices
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
Click to expand...
Click to collapse
Ya I thought you were going to the platform-tools folder and clicking adb.exe the icon.
Well try set up the path so you don't need to type all the long path to adb.exe whenever you want to use it.
When you set it up all you need to type in is adb devices. That's it.
Its up to you though.
Sent from my GT-I9300 using xda premium
solved issue

MTP files transfer on LinuxMint / Ubuntu quick how to

Hi,
I always had problem with mtp and GB on linux. With the ICS update I couldn't even find my device listed by nautilus. I'm a little bit tired of using Airdroid, wich seems to be slower now and I never liked to download the pictures from it as a zip file.
for those who like to MTP transfer from xperia NXT series on Mint or Ubuntu:
add this repository Olci PPA launchpad.net/~olci/+archive/ppa1
it contains the new libmtp library, the new mtpfs and gmtp
with this command: sudo add-apt-repository ppalci/ppa1
then update & upgrade if already installed
or
update and install libmtp libmtpfs gmtp
from terminal launch gmtp
wait for a little bit (it takes a while)
once in gmtp go to preferences and set your directories for upload download
and there you go
finally can control and backup everything in your sd to your linux system
there is a smile on the command
sudo add-apt-repository ppalci/ppa1
how can I remove it?
Damn that's my ppa if anyone got questions or issues on that ppa
I can help
Sent from my haida
Thank you so much for the ppa and your job, a friend sms that to me today as we were searching for mtp on mint. I tried it worked and i wanted to share it.
Sent from my ST25a using xda app-developers app
Or you could use Airdroid for file transfers. It's what I use on my Linux laptop.
uao said:
there is a smile on the command
how can I remove it?
Click to expand...
Click to collapse
Code:
sudo add-apt-repository ppa:olci/ppa1
damn can't fix
Sent from my haida
@ The Alpha Gamer
As I wrote I already use airdroid and I'm tired of it. Still it's out topics.
This thread is about xperias, MTP and linux which are working thanks to that ppa
Sent from my ST25a using xda app-developers app

ADB isn't working

So I downloaded ubuntu 12.10 and am running it in VMWare, only so I could untar a package to get GenTop2 set up... Anyways I tried setting up ADB in VMWare using this tut https://help.ubuntu.com/community/AndroidSDK the command adb shell works but NO commands like devices or anything else work... Any tips? example: [email protected]:~/android-sdk-linux/platform-tools$ adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # adb devices
/sbin/sh: adb: not found
Read up on UNIX command line stuff. The adb binary must be in your $PATH. This...
jeffreygtab said:
~ # adb devices
/sbin/sh: adb: not found
Click to expand...
Click to collapse
...tells me it is not.
On a side note, I recommend using VirtualBox instead of VMware. IMO it has better open-source community support and unlike VMware it is free. Better yet, be a real man and install Linux natively.
Other solution is to cd into the platform-tools dir and do ./adb (note the dot slash at the beginning)
Virtualbox (at least on debian) has some problems with the usb subsystem... is better to use unetbootin and make a live ubuntu on a pendrive, with persistence enabled so what you do on thah session remains across boots
Yeah I figured that running it essentially emulated would give me problem. I only did this because im out of discs and my desktop can't boot from USB drive.
jeffreygtab said:
Yeah I figured that running it essentially emulated would give me problem. I only did this because im out of discs and my desktop can't boot from USB drive.
Click to expand...
Click to collapse
So does anyone have a solution? Beyond installing Ubuntu, because that's not really an option...
jeffreygtab said:
So does anyone have a solution? Beyond installing Ubuntu, because that's not really an option...
Click to expand...
Click to collapse
Huh? I already gave you a solution, as did andresrivas...
Read the posts again.
According to the phantom expert at the bottom of this forum you must have AdActivity declared in AndroidManifest.xml with ConfigChanges. I would go with that.
Sent from my PG86100 using xda app-developers app
planb234 said:
According to the phantom expert at the bottom of this forum you must have AdActivity declared in AndroidManifest.xml with ConfigChanges. I would go with that.
Click to expand...
Click to collapse
...What?
I think you missed your intended thread entirley.
I use virtualbox and it works perfectly, cd into the platform-tools as was said, do the ./adb but make sure you mount your phone to virtualbox (there is an icon at the bottom where you can right click and mount it, see screen)

ADB + Linux error: device unauthorized

Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
darkouz said:
Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
Click to expand...
Click to collapse
Normally on Windows the first time you turn on usb debugging it will pop up and ask you to accept the adb key. This is what is preventing you, I haven't had to resolve this in Linux, but essentially you need to go to C:\\Users\You\.android\ (in Windows, path will be different in Linux) and copy the file adbkey. Now you need to move it to data/misc/adb/
This will most likely require root or TWRP. Good luck, my friend.
Sent from my KYOCERA-C6745 using Tapatalk
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
darkouz said:
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
Click to expand...
Click to collapse
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
darkouz said:
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
Click to expand...
Click to collapse
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
i m doing : sh script.sh
i m gonna read that, thanks
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
darkouz said:
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
Click to expand...
Click to collapse
Glad you got it.
Sent from my KYOCERA-C6745 using Tapatalk
sudo rm -rf /home/(username)/.android
that worked with my kde neon machine

Categories

Resources