factory reset / wiping data from Z3 via ADB (windows/os x) - Xperia Z3 Q&A, Help & Troubleshooting

hey,
a couple of months ago I dropped my phone, damaging the touchscreen (unresponsive & dark since then). However, the rest of the device seems to work. A couple of weeks ago, I plugged the device into my PC and saved my stuff from the SD card. In the meantime, I updated my PC from win7 (x64) to windows 10 and now the device does not show up any more in the windows explorer.
I tried to connect it to my girlfriends PC (win7 x64) and here, the device shows up but is "empty" (no files & folders visible).
I downloaded Android SDK on both machines and tried to run ADB commands like "adb devices", but it won't show the device on either of the two machines.
Next, I tried to do it on my macbook. After downloading Java and Android SDK, I navigated to the folder in the terminal and tried to run "adb devices", but all I get is the response "-bash: adb: command not found"
the phone is connected to the machines and USB debugging on the phone should be enabled (otherwise I would not have been able to save my stuff from the SD card previously, right?)
what am I doing wrong?
thanks for any advice

Related

[Q] adb drivers

Okay, I know there are lots of posts about getting adb drivers to work on the g tablet but I can't seem to get to step 1. When I plug in my USB cable, my PC doesn't ask me to install anything. It just seems to assume that it is a USB drive. I tried to force the install via Install Hardware and pointed it to my modified android_winusb.inf file. When I did that it came up with three different options (Android ADB Interface, Android Bootloader Interface, and Android Composite ADB Interface). I tried all three but none of them will start successfully.
My cable connects to the mini-USB port (I have a keyboard connected to the full size USB port). I can't imagine that would make a difference, though.
I can copy files over to the g tablet from my PC; I just can't get ADB to work. What am I doing wrong?
First, you need to install the Android SDK on your computer. ADB shell is a program contained within the Android SDK. If you install the latest version, you also need to install "Android SDK Platform-tools" (launch the SDK and AVD Manager, then select the "Android SDK Platform-tools" package). You can connect the miniusb cable to your tablet and use adb shell, but I prefer to use adbwireless (free app in market); for some reason my computer won't recognize my tablet when connected via the cable. Then just open up cmd.exe (if you're using windows) and go from there. You'll need to locate the actual adb executable file, so you can run it in the command window. You'll also have to learn the commands as to how to do things, but lists of common commands can be found with a simple search.
I had problems with getting the debug usb drivers to install on a win7 dev machine. So I just installed adb wireless onto my gtab from the market. On my win7 box I just use 'adb connect x.x.x.xort' to use adb over the wifi.
It's pretty handy.
I figured it out. For others that run into this, I had to uninstall the drivers with USBDeview. I only uninstalled the one with a description of NVIDIA Tegra 2 USB Device. The second half of this YouTube video shows what to do for a phone:
youtube.com/watch?v=1UF5w1dKe2U
Then disconnecting and reconnecting the USB cable installed the drivers correctly. Weird.

need help retrieving files from my broken Vibrant

i just recently dropped my first generation Samsung Galaxy S Vibrant on the ground. most of the screen went black and i am unable to login into the phone. i am trying to figure out how to retrieve my photos off of the phone's on-board hard drive
i installed the Android SDK on my mac (running 10.6.8) and then installed ADB
i am able to put my phone in recovery mode by plugging it onto my mac and using ADB by running "./adb reboot recovery"
but when i run "./adb devices" it does not recognize my device
usb debugging is enabled on my phone.
i also do not have EasyTetherUSBEthernet installed on my mac
any help getting this to work would be much appreciated.

adb troubles

ive used adb before on a friends computer and on my computer (a macbook pro) in the past and know the works but recently on my computer when i connect any device including my skyrocket with usb debugging on and i try to run adb using the command ./adb shell it starts to run, then says error- no device recognized. any ideas?
Check device USB driver

Adb help

I have a new laptop running Windows 8.1. So I had to reinstall adb and fastboot on it. I used the quick installer described in:
http://forum.xda-developers.com/showthread.php?t=2588979
It installed in seconds.
I now need to issue some adb commands to my rooted nexus 5 running stock 4.4.4. So I
1. opened a command prompt in Windows
2. Connected the nexus 5 to the laptop with its usb cable.
The nexus appeared in Windows as a drive named "internal storage".
3. Typed adb devices and got as a response
"list of devices attached"
But nothing else shown under it.
It's been a while since I used adb. What am I doing wrong?
My nexus 5 is rooted.
Usb debugging is selected.
Should I change something else on it?
Appreciate any help.
Search and download minimal adb for windows on google ..run the program and put whatever file it is your trying to push in the same folder as adb in program files tab ..work like a charmed sideloading ota ..I'm pure stock
I have used the same adb installer in windows 7 and it works.
Are you opening cmd as an administrator? That is the only miss I can find.
It was my fault. When I installed the correct driver, everything went well.
Sorry to have bothered you guys and thanks for helping.

ADB not detecting Xperia XZ

I have a new, unrooted, bootloader-locked F8332 Xperia XZ to which I am trying to connect via adb from my Windows 7 computer so that I can attempt an 'adb restore' of the applications and data from my current device. I already have the Android SDK installed and downloaded the XZ adb and fastboot drivers from the Sony developer site. However, I have not been able to install the drivers. When I connect the XZ (with USB Debugging enabled) and look in the Windows Device Manager, I get "Xperia XZ" listed under Portable Devices and nothing related to adb shows up. If I try to update the drivers and point Windows to the downloaded drivers for the XZ, it tells me that no drivers were found. With the XZ connected, I can run 'adb devices' and what I get is a blank list. I can connect the XZ set up for fastboot and it will show up in Device Manager as an Unknown Device. Attempting to install the drivers there also fails with a similar "no driver found" error.
My current device is a rooted Xperia TX. In order to get that device to show up with 'adb devices' I have to set its USB Storage Mode setting to Mass Storage, otherwise it will not work. The XZ, however, does not let me change the storage mode from MTP because whatever I choose (e.g. PTP) gets reverted to MTP immediately. So the questions is how do I get the XZ to be seen by adb or in a configuration that will allow me to install the relevant drivers? I am probably missing something simple because the threads in the forum relating to adb stop at "install the adb drivers" with no additional details. Any help would be appreciated.
Did some more playing around and figured out how to get the ADB interface to show up in Windows. As with my Xperia TX, the issue is related to the USB Configuration setting under Developer Options. For anyone who might run into this situation, it seems that USB Configuration has to be set to MIDI for ADB to work.
I had tried changing that setting to PTP, but it would not stick, it would always change back to Charging Only. Thinking that perhaps PTP would not stick because I did not have an SD card on the phone at the time, I put in an SD card and tried again, but the result was the same. Thinking that it would not actually work since what I was attempting had nothing to do with music, I set USB Configuration to MIDI and to my surprise the setting stuck. I plugged the phone into my computer and the Windows Device Manager showed a new "ADB Interface" entry with an exclamation mark. Right-clicking on ADB Interface and selecting Update Driver allowed me to choose the driver I downloaded from the Sony Developer Site. Windows accepted the drivers (with a prompt about the drivers being unsigned) and the Device Manager entry changed to "Sony sa0115 ADB Interface Driver." The XZ gave me a prompt about allowing the computer to have debug access, which I accepted. At this point I could go to a command prompt, run "adb devices" and the XZ showed up in the list, as expected.
The "adb restore" that I was attempting was (mostly) successful in transferring my applications and their data to the XZ. I still don't know why the PTP setting will not stick, or if that is normal.
Felix1701D said:
Did some more playing around and figured out how to get the ADB interface to show up in Windows. As with my Xperia TX, the issue is related to the USB Configuration setting under Developer Options. For anyone who might run into this situation, it seems that USB Configuration has to be set to MIDI for ADB to work.
I had tried changing that setting to PTP, but it would not stick, it would always change back to Charging Only. Thinking that perhaps PTP would not stick because I did not have an SD card on the phone at the time, I put in an SD card and tried again, but the result was the same. Thinking that it would not actually work since what I was attempting had nothing to do with music, I set USB Configuration to MIDI and to my surprise the setting stuck. I plugged the phone into my computer and the Windows Device Manager showed a new "ADB Interface" entry with an exclamation mark. Right-clicking on ADB Interface and selecting Update Driver allowed me to choose the driver I downloaded from the Sony Developer Site. Windows accepted the drivers (with a prompt about the drivers being unsigned) and the Device Manager entry changed to "Sony sa0115 ADB Interface Driver." The XZ gave me a prompt about allowing the computer to have debug access, which I accepted. At this point I could go to a command prompt, run "adb devices" and the XZ showed up in the list, as expected.
The "adb restore" that I was attempting was (mostly) successful in transferring my applications and their data to the XZ. I still don't know why the PTP setting will not stick, or if that is normal.
Click to expand...
Click to collapse
i tried what your mentioned and succeed,but i really want my 'mobile device' (a blue screen phone)show in my ‘file manager’。is there any method?
by the way,are all these mtp problem due to unlock bl?
Confirmed on my Xperia ZX F8331. I have to select MIDI interface to access to the ADB interface.
Btw, I'm rooted and the bootloader is unlocked.
Thanks for your report!

Categories

Resources