How to save data from display broken Samsung Galaxy (SAM-A510) - Android Q&A, Help & Troubleshooting

Hello People,
i have a display broken Samsung Galaxy SAM-A510. If i connect it per USB to my Windows 10 Laptop the Name of the Handy appears as Device in my Windows Explorer, but no Folders for this Handy appear. I cannot switch to MTP per Handy so i have the question if i can switch from my Laptop over ADB to USB-MTP?
If you know a way to select MTP from Laptop with Handy per USB connected please write a step by step solution for this problem!
We only want to save the Data from the Handy to the Laptop!
Thanx a lot
dan813

@dan813
Should work:
Code:
adb devices
adb shell "svc usb setFunction mtp true"

jwoegerbauer said:
@dan813
Should work:
Code:
adb devices
adb shell "svc usb setFunction mtp true"
Click to expand...
Click to collapse
Thank you so much, it worked for me!

Related

[REQUEST] Wireless ADB

The Barnes & Noble Nook uses adb over wifi. How can I setup my N1 to do the same? Ideally I would like to specify on the N1 to only allow connections over wifi, and if possible have some sort of password type security. Can this be done?
why not use ssh?
the dropbear-client is included in most custom roms.
edit: i mean dropbear-server of course
mikecyber said:
The Barnes & Noble Nook uses adb over wifi. How can I setup my N1 to do the same? Ideally I would like to specify on the N1 to only allow connections over wifi, and if possible have some sort of password type security. Can this be done?
Click to expand...
Click to collapse
+1 on this, but I would like it to be included within the ROM with a UI setting or maybe even an applicaion
Getting adbd to listen to tcpip in the phone is quite easy.
Example below:
Code:
[I]# detach adbd from usb and tell it to listen to port tcp 2222
[/I][email protected]$ adb tcpip 2222
restarting in TCP mode port: 2222
[I]# tell your local adb command to use ip:port to connect through instead of usb (192.168.0.151 is my N1 on Wifi)
[/I][email protected]$ adb connect 192.168.0.151:2222
connected to 192.168.0.151:2222
[I]# connect over ip
[/I][email protected]$ adb shell
# uname -a
Linux localhost 2.6.29.6-cyanogenmod #3 PREEMPT Wed Jan 27 07:21:12 EST 2010 armv7l GNU/Linux
# exit
[I]# tell adbd to go back to listen on usb
[/I][email protected]$ adb usb
restarting in USB mode
packetlss said:
Getting adbd to listen to tcpip in the phone is quite easy.
Click to expand...
Click to collapse
Thank you, your method works well.
With my nook all I need to do is "adb connect 192.168.1.x:5555" I don't have to put adb into tcpip mode or enter "uname -a" in shell.
I would love to see "Wireless Debugging" in Settings -> Applications -> Development, or really anywhere in Settings. I haven't voided my N1's warranty, so an app to add this functionality would be great.
mikecyber said:
Thank you, your method works well.
With my nook all I need to do is "adb connect 192.168.1.x:5555" I don't have to put adb into tcpip mode or enter "uname -a" in shell.
I would love to see "Wireless Debugging" in Settings -> Applications -> Development, or really anywhere in Settings. I haven't voided my N1's warranty, so an app to add this functionality would be great.
Click to expand...
Click to collapse
That's because the nook adbd is configured to listen to tcp by default, on most other platforms it just listens to USB by default.
The 'uname -a' was just to show that I actually was connected to the phone. Nothing to do with the actual adb stuff at all, I was just lazy and copied from my terminal
MoDaCo Custom ROMs generally run dropbear by default with a password that is randomly generated on first startup.
I don't mind making an addon update zip for Cyanogen's ROM with this functionality if you want it?
P
bump
Found this really useful as my USB driver causes BSODs. thanks packetlss
1. connect device via usb
2. adb tcpip 2222
3. connect over wifi. adb connect 192.168.3.5:2222
4. adb commands as normal
can the OP remove [request] as this is now a [tip] or [howto]
britoso said:
bump
Found this really useful as my USB driver causes BSODs. thanks packetlss
1. connect device via usb
2. adb tcpip 2222
3. connect over wifi. adb connect 192.168.3.5:2222
4. adb commands as normal
can the OP remove [request] as this is now a [tip] or [howto]
Click to expand...
Click to collapse
Does the USB have to be hooked up each time, or is it a 1 time then WIFI is good after that?
Nice howto!!
britoso said:
bump
Found this really useful as my USB driver causes BSODs. thanks packetlss
1. connect device via usb
2. adb tcpip 2222
3. connect over wifi. adb connect 192.168.3.5:2222
4. adb commands as normal
can the OP remove [request] as this is now a [tip] or [howto]
Click to expand...
Click to collapse
Gotta say that is slick as sh**!!! How to get it to stay on tcpip via terminal on phone??
britoso said:
bump
Found this really useful as my USB driver causes BSODs. thanks packetlss
1. connect device via usb
2. adb tcpip 2222
3. connect over wifi. adb connect 192.168.3.5:2222
4. adb commands as normal
can the OP remove [request] as this is now a [tip] or [howto]
Click to expand...
Click to collapse
interesseting... thanks!
i'll try that
EDIT: worked so good - thx!
tbirdguy said:
Does the USB have to be hooked up each time, or is it a 1 time then WIFI is good after that?
Click to expand...
Click to collapse
Do it once and it stays...perhaps till you reboot the phone.
If your IP address on wifi you will need to run the connect command again. Also set the wifi-sleep mode to 'never', possibly install the wifi-keepalive app.
Its awesome to be able to run stuff on your phone straight from eclipse, unplugged; or install/push/pull files
xkonni said:
why not use ssh?
the dropbear-client is included in most custom roms.
edit: i mean dropbear-server of course
Click to expand...
Click to collapse
Do you know what the default pw is for dropbear? when i try to ssh with my local ip and root, i get a connection refused on port 22. i'm using cm6, do i have to enable it somehow?
TCPIP mode without connecting usb
Is it possible to enable ADBD tcpip mode without connecting device to USB port and use adb command? I mean maybe a command we can run in a Terminal Emulator?
bohlool said:
Is it possible to enable ADBD tcpip mode without connecting device to USB port and use adb command? I mean maybe a command we can run in a Terminal Emulator?
Click to expand...
Click to collapse
re,it's there any possible that get adb work over TCP/IP ,on all android devices(include non-rooted devices)?
wobiu said:
re,it's there any possible that get adb work over TCP/IP ,on all android devices(include non-rooted devices)?
Click to expand...
Click to collapse
I know how to enable it, just connect it with usb to computer and enter "adb connect tcpip <port>" then disconnect usb and connect phone to wifi, find the ip of phone and on your computer type "adb connect <ip>:<port>"
my problem is how can I do the first step without usb cable, i.e. using a terminal emulator. I have root access.
bohlool said:
my problem is how can I do the first step without usb cable, i.e. using a terminal emulator. I have root access.
Click to expand...
Click to collapse
would love to see this as well, can anyone with expertise in the area let us know if this is at all possible?
# adbd
As root on the device returns
Cannot bind tcp 5037
Im not home so i cant test but maybe this could work over tcp port 5037...
Sent from my Nexus One
bohlool said:
I know how to enable it, just connect it with usb to computer and enter "adb connect tcpip <port>" then disconnect usb and connect phone to wifi, find the ip of phone and on your computer type "adb connect <ip>:<port>"
my problem is how can I do the first step without usb cable, i.e. using a terminal emulator. I have root access.
Click to expand...
Click to collapse
for rooted device。you can use"start adbd" command to start adb daemon ,instead of plug into usb.
What am i looking for is a way to use adb over wifi for all device including non-rooted.
wobiu said:
for rooted device。you can use"start adbd" command to start adb daemon ,instead of plug into usb.
What am i looking for is a way to use adb over wifi for all device including non-rooted.
Click to expand...
Click to collapse
What is the port number then? is it 5037? Can I set it somewhere? (for rooted devices of course)

[Q] OSX, adb usb, adb devices = error: device not found

when I type adb devices cmd in the terminal it does not list my device and its plugged in....
when I try to type adb usb it says no devices found...
for the record nothing is wrong with my USB connection cable because, I'm able to connect my HTC ReZound via USB cable to my macbook, the CDROM and STORAGE auto mounts to my desktop so i know the connection is working, because I'm able to copy files, update music via winamp sync playlists, also my paid EasyTeather copy works, etc.
I updated & installed most recent Android SDK adt-bundle-mac-x86_64-20130917 and updated the device manager for my ver 4.0.3 and all tools, even tryed using a stand alone platform-osx-tools.zip that contains a adb and fastboot...\
I read up on this and found nothing tryed everything....
adb kill-server > adb start-server - does nothing
adding device in the adb_usb.ini didn't help either.
chmod a+r /etc/udev/rules.d/51-android.rules after creating file didn't help.
rebooted many times .
i've attached a terminal cmd window below to show.
USB debugging is enabled on the device, yes? Does the "USB debugging enabled" notification show up when you plug it into the computer?
MaxxPayne said:
when I type adb devices cmd in the terminal it does not list my device and its plugged in....
when I try to type adb usb it says no devices found...
Click to expand...
Click to collapse
are you doing proper methods in command prompt for sdk's adb such as directing it to the folder its in...example did you type cd c:/androidsdk/platform_tools/ in command prompt for example
I used to have a mac ....but here
Download htc sync for mac
http://www.iskysoft.com/convert-mobile/sync-htc-to-mac.html
Download the sdk and all you need is a folder called platform tools
http://developer.android.com/sdk/index.html
Extract the platform tools folder Put it on your desktop
Open terminal type "cd" then hit space then drag and drop the platform tools folder into the terminal after that hit enter
Then you can run any command just make sure to put "./ " before the command without quotations so if you wanna flash a boot you would put
./fastboot flash boot boot.img and hit enter
Note that adb works perfectly well on my Mac without the HTC Sync drivers.

[TUT] ADB over WI-FI

ADB over Wi-Fi​Some of us might like to connect the device over WiFi for debugging, instead of using the data cable. Here's the required tutorial to do so
Requirements
1. Android device (duh!!!)
2. ADB in the computer (again duh!!!)
3. Root privileges
4. Terminal emulator (download from here)​
Let's begin then​Open terminal emulator on your device. Enter the following code
Code:
su [color="red"]Grant superuser here[/color]
setprop service.adb.tcp.port 5555 [color="red"]Can be anything else[/color]
stop adbd
start adbd
Check it with this
Code:
getprop service.adb.tcp.port
It will return 5555 or the number you entered in the above code​
Enter the following code on your computer in command prompt or shell
Code:
adb connect 192.168.0.151
Instead of 192.168.0.151, enter your device IP address​
To make your device listen on USB again, just restart the device. And enter the code on your computer
Code:
adb usb
I would definitely use the USB cable to push large files or even small files that you really don't want to risk corrupting (partition images you plan on dding, etc).
Very importantly, keep in mind, when your phone is listening for adb via WiFi, it's wide open... anybody that has adb installed and knows your device's IP address can access it without a password. Again, a simple reboot will turn it off though.​
Credits
JeepFreak for this post in the One X forum​
Reserved
Reserved for app​
I want to thank the OP, however belatedly, for writing these root instructions for users to connect their PC and phone via adb over Wi-Fi without USB cables being involved.
As the OP is well aware, non-rooted Android 10 and below allowed wireless adb connections AFTER a USB connection was first established (adb start-server && adb tcpip 5555 && adb connect [IP]:5555), but that changed (for the better) in Android 11 and above with the new new Developer options Wireless debugging random port assignments (adb connect [IP]:[PORT] or adb pair [IP]:[PORT] [PIN]) such that the adb wireless connection never needs USB cable ever again.
Given Android 11 allows Developer options Wireless debugging via a random port, and Android 12 new Developer options Wireless debugging allows that to be accessed even easier with a new Developer options Wireless debugging tile, the only thing missing is a way to get, after the fact, the random port assignment that Android uses for the adb wireless connection to your PC.
Some related threads for reference might be...
[adb,scrcpy,vysor] What ports does Android 12 randomly set when Wi-Fi connecting via Wireless debugging adb "pair" or "connect" commands?
(PSA) Using the new Android 12 TILE for 'Developer options' 'Wireless debugging' to establish adb connection over Wi-Fi without USB
What's the difference between Windows/Android adb "connect" versus adb "pair" when mirroring Android 12 over Wi-Fi onto a Windows PC?
The only question that's missing an answer preventing a perfect completely Wi-Fi automatic solution is...
Does anyone know how to obtain that random Android port address from the PC?

MTP options do not show when connected to Laptop. (LG G7+ ThinQ)(V20f-IND-XX)

Hi All,
I hope someone here can help me with the issue I have been facing with my LG G7 from the last two weeks.
Earlier my phone used to show me the MTP options each time I connected it to my laptop using the cable. For some reason, the phone does not show me the MTP options anymore and only charges when connected to the laptop.
I have done the below to try & fix but nothing has helped.
Cleaned the charging port on my phone
Tried a different USB cable
Tried USB debugging
I also did a factory reset on the phone
While researching on the internet, I read about the three dots on the storage tab, I don't have that. Also in developer options the Select USB configuration does not pop-up and when I click it 5 to 6 times a window pops-up and vanishes in a fraction of a second.
Any leads on what needs to done to fix the issue I'm facing?
yuvrajsp said:
Hi All,
I hope someone here can help me with the issue I have been facing with my LG G7 from the last two weeks.
Earlier my phone used to show me the MTP options each time I connected it to my laptop using the cable. For some reason, the phone does not show me the MTP options anymore and only charges when connected to the laptop.
I have done the below to try & fix but nothing has helped.
Cleaned the charging port on my phone
Tried a different USB cable
Tried USB debugging
I also did a factory reset on the phone
While researching on the internet, I read about the three dots on the storage tab, I don't have that. Also in developer options the Select USB configuration does not pop-up and when I click it 5 to 6 times a window pops-up and vanishes in a fraction of a second.
Any leads on what needs to done to fix the issue I'm facing?
Click to expand...
Click to collapse
I am having the exact same issue. I even replaced the USB port thinking it was a hardware issue but it keeps happening. Have you had any luck getting this fixed?
MTP mode requires an USB Type-C cable
jwoegerbauer said:
MTP mode requires an USB Type-C cable
Click to expand...
Click to collapse
I know what type of cable it requires. I have tried several cables, done a factory reset, and even replaced the usb port. I still cannot select anything under usb configuration in the developer options menu. The only thing it wants to do is charge when I connect it to my computer.
You use ADB
To switch to MTP mode
Code:
adb devices
adb shell "svc usb setFunctions mtp"
To switch to ADB mode ( default )
Code:
adb devices
adb shell "svc usb setFunctions adb"
Can I use adb if my phone cannot connect to my computer through usb? The connection isn't recognized and it only charges. I don't know anything about using adb but I thought you needed a USB connection to use it.
bryascot said:
Can I use adb if my phone cannot connect to my computer through usb? The connection isn't recognized and it only charges. I don't know anything about using adb but I thought you needed a USB connection to use it.
Click to expand...
Click to collapse
To make use of ADB requires
the USB-driver provided by your phone's manufacturer/carrier is installed on your computer
In phone's Developer options USB Debugging is turned on
The ADB command
Code:
adb devices
tries to establish the USB connection.
I downloaded it and ran all the commands that you listed but it still cannot establish a connection with my phone. It still only charges when I connect it to my computer.
@bryascot
If your phone 's Android is a user-build and it's rooted then install a Terminal Emulator app if not done yet, start a Terminal Session and enter the following commands one by one
Code:
su
mount -o remount,rw / -t auto
echo "persist.service.adb.enable=1" >> /default.prop
echo "persist.service.debuggable=1" >> /default.prop
echo "persist.sys.usb.config=mtp,adb" >> /default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
and afterwards re-boot phone.
No other clues by me. May be others are willing to help to solve your issue. Good luck.
It's not rooted.

DZ09 smartwatch not connecting to PC

Hi! I have a problem with my DZ09 Smartwatch. I am trying to install the APLUS firmware like said on this ht tps://roon by.com/ 2016/10 /02 /update- dz09-fir mware/ website. So I do not know if that would work anyway, but it won't even connect! It connects, shows charging symbol, disconnects, connects again, then shows me SD card contents. I try this without the SD card and it does the same thing, but without showing me SD card contents. Any help is appreciated.
@JBJesseBarryJB
Seems the watch's ADB mode is set to MTP, hence you get shown contents of its SD-card
jwoegerbauer said:
@JBJesseBarryJB
Seems the watch's ADB mode is set to MTP, hence you get shown contents of its SD-card
Click to expand...
Click to collapse
How do I set that otherwise?
JBJesseBarryJB said:
How do I set that otherwise?
Click to expand...
Click to collapse
If your watch's Android is rooted
To get the list of current USB mode
Code:
adb shell "svc usb getFunction"
To set USB mode to adb
Code:
adb shell "svc usb setFunction adb"
jwoegerbauer said:
If your watch's Android is rooted
To get the list of current USB mode
Code:
adb shell "svc usb getFunction"
To set USB mode to adb
Code:
adb shell "svc usb setFunction adb"
Click to expand...
Click to collapse
I'm not rooted. And I do not know how to root a DZ09 Smartwatch, is there another way?

Categories

Resources