[Q]How to backup with TWRP using ADB? - Android Q&A, Help & Troubleshooting

Hello, developers on xda. Thank you for watching my first post on xda from Japan.
I dropped my cell Mi5. And the screen has broken. Mi5 can't display anything, so I can't do any Mi5 operation.
And now, I wanna backup my app data in Mi5. I tried someway to backup the data, but I couldn't.
Is there a good way to do it?
【MY ENVIRONMENT】
Desktop : Windows 10, ADB is enabled
Mi5 : TWRP is installed, Screen is BROKEN(can't operate anyway), USB Debugging is enabled(but I can't allow the Debugging)
I'm sorry to I can write only not so good ENGLISH like that... Please HELP ME

Hi,
Have you tried powering on your Mi5 and connect it to a PC? Does it not give you the ability to browse your phone's storage? It would require to have the correct driver installed on your computer.
Failing that, the simplest solution would be to replace the broken screen. You can find step by step tutorials on how to do this online for most phone models, I'm sure that they'll be available for the Xiaomi Mi5 as well.
If that is not an option, what you could try is to use a HDMI connection kit, connect it to your phone and to a TV or external monitor. With some luck you should be able to see what's on the screen that way.
Good luck. I hope you can recover your data. And get a cool new phone

Thank you very much for your replying to my post, I'm so glad.
Now I'm trying to restore file using ADB SHELL. It's still working yet. If it failed, I'll try your suggestion.
ありがとう!
I.Abide said:
Hi,
Have you tried powering on your Mi5 and connect it to a PC? Does it not give you the ability to browse your phone's storage? It would require to have the correct driver installed on your computer.
Failing that, the simplest solution would be to replace the broken screen. You can find step by step tutorials on how to do this online for most phone models, I'm sure that they'll be available for the Xiaomi Mi5 as well.
If that is not an option, what you could try is to use a HDMI connection kit, connect it to your phone and to a TV or external monitor. With some luck you should be able to see what's on the screen that way.
Good luck. I hope you can recover your data. And get a cool new phone
Click to expand...
Click to collapse

Related

USB Trouble - Need Serious Help

Please take the time to read this:I flashed and installed SkyRaider a couple days ago and I noticed when I connected to my PC that my PC started recognizing it as HTC Phone (or something of the like). This apparently really screwed up my drivers on my computer because I installed iKReaM and now I can't even get into disk drive mode...it doesn't ask what connection type I want anymore and my computer just says "USB Device Not Recognized". I tried uninstalling the HTC Driver Installer but that didn't do anything either. This is not good as I ran into the same problem when trying to root my friends Samsung Fascinate and never go the problem fixed. Anyways...my phone worked perfect before and SkyRaider evidently messed it up pretty good...to say I am pissed is an understatement. If you need any more info please let me know.
Please link me to the newest HTC Drivers as well, it would be much appreciated.
If no one can help I will have to do a clean install of windows 7, which is not an enjoyable experience
https://market.android.com/details?id=com.dooblou.WiFiFileExplorer&hl=en
You will have to buy the pro version to push files. That would be your easy solution.
You can always use recovery to get into usb mode as well.
Stratejaket said:
https://market.android.com/details?id=com.dooblou.WiFiFileExplorer&hl=en
You will have to buy the pro version to push files. That would be your easy solution.
You can always use recovery to get into usb mode as well.
Click to expand...
Click to collapse
I can't get into recovery anymore using usb mode, computer doesn't recognize the device so no way to use it...and I would use the Wifi app instead of using a usb cable? I see what you mean by easy but I don't wanna avoid the problem...I have a brand new $1600 Alienware so I would like to have it fixed lol...if need be I may just have to do a clean install
I know this isn't your actual problem but just for the record, AirDroid lets you control your phone and push files to it with a web browser and wifi for free.
(I tried linking it but I guess I haven't made enough posts to include links yet, easy to find by searching the Market tho)
You might check under Settings/ Connect to PC to make sure the Ask Me option is turned on.
Sent from my ADR6400L using Tapatalk
When you plug your phone into your computer does the phone start to charge?
If so restart the computer and plug the phone into a different usb port. Check device manager and see if you have it listed in your usb devices, or you have an ! over a usb. Most of the time this ends up being an issue with the computer it is being hooked to, not the phone. The computer isn't launching the driver correctly to show the phone that it is connected to a computer, and not just a wall outlet.
Even when I've had this issue, which is random I have still been able to use recovery usb to manage it. Make sure when your in recovery you mount the sdcard before enabling the usb.

[Q] Help Please! I am NOT a noob- tried many ways but stuck trying with a work around

Happy Holidays Everyone!!!
Phone:
Tmobile T959 aka Samsung Vibrant
It is on stock Froyo 2.2
It has the 3E recovery.
I tried on 2 computers but I can NOT connect via USB it gives me USB malfunction error. The phone does charge. I can put it into download mode vie the 3 finger trick. When you connect it does give you the option to click the green Android icon Connect to USB. So it is talking to the computer, the usb is not totally dead.
Problem:
I need to root this phone. I can not use 1 click or anything else because I think there is a problem with the USB port. I can get files onto the phone via wifi or using the external sd card.
I tried using the update.zip file BUT because I am on the 3E recovery it will say signature failed. I can not run the install.bat to get it back to 2E recovery. I can not use ODIN because the Windows will not detect the phone properly.
What workaround can I use to root this phone? How would I use terminal on the phone?
HOW WOULD YOU ROOT THE PHONE IF YOUR USB PORT WAS "broken"?
THANKS for helping!
As far as I'm aware, you can't root your phone without the USB port working as most (if not all) root methods send their commands and files through ADB. Your pretty much stuck, unless your phone is under warranty. In that case, just go to your carrier and see if they'll give you a replacement device.
TheAndroidGod said:
As far as I'm aware, you can't root your phone without the USB port working as most (if not all) root methods send their commands and files through ADB. Your pretty much stuck, unless your phone is under warranty. In that case, just go to your carrier and see if they'll give you a replacement device.
Click to expand...
Click to collapse
It's out of warranty
I think there may be a way to do it via terminal emulator on the phone.
If this is possible, can someone please post how to do it.
anyone with a work around?
damn!
Am I stuck or does anyone have a way for me to root this phone without the using the USB connection (USB does charge, It will know when you connect to the pc for USB storage BUT windows will say not recognized. I tried it on 4 other pc's same results. I think something is wrong with the OS of the phone. I think the previous owner tried to update with Kies and it messed up the phone. The phone does boot and works.
droiduzr2 said:
damn!
Am I stuck or does anyone have a way for me to root this phone without the using the USB connection (USB does charge, It will know when you connect to the pc for USB storage BUT windows will say not recognized. I tried it on 4 other pc's same results. I think something is wrong with the OS of the phone. I think the previous owner tried to update with Kies and it messed up the phone. The phone does boot and works.
Click to expand...
Click to collapse
Try to install phone drivers for the computer i had to do that for my phone.
maikzen said:
Try to install phone drivers for the computer i had to do that for my phone.
Click to expand...
Click to collapse
I did all of that.
I think something is wrong with the phone's OS that is effecting the usb port.
How do I root this phone WITHOUT the USB port?
There has to be a way!
Can you determinate VID&PID of phone?
I can get into the device with airdroid and see the system files.
Which files do I need (or which apps) and where do I copy them manually to get it rooted?
droiduzr2 said:
I can get into the device with airdroid and see the system files.
Which files do I need (or which apps) and where do I copy them manually to get it rooted?
Click to expand...
Click to collapse
Is there not a device forum where you might could get some better information? My thinking is, a lot of the people (or most of the people) who may know some workarounds can probably help, but they don't check this section very often or at all.
Even if there's not a section for that model, I'm thinking there's probably one quite similar. Also a lot of times, a big portion of the userbase of one phone, will migrate to the same model when they upgrade.
Just throwing out some ideas in case that's helpful. My only advice on the problem itself is that I would look further into the driver issue. I've helped several people with very similar issues that we finally were able to correct.
Have you tried to ADB the device just to pull the serial? With USB debugging enabled. Have you installed the SDK and tried the naked drivers? There's some things to pursue possibly so you can have more information for the person who helps you get things straightened out.

Nexus 9, no OS, only TWRP, and can't connect to PC

So... now that I think with hindsight, I did something pretty stupid, and I'm going to need some help, since I have no idea what to do.
I have a Nexus 9 tablet, and I never liked it. The OS is just so slow and laggy, and it overheats, and it has many other problems. Quite a couple of times, I installed custom ROM's and so on, and I never had a problem. Let me explain what I did now.
Around a month ago, while looking on the internet, I heard this thing that if I install the original software, but with no encryption, it would work better. It sounded cool at the time, so I downloaded the Nexus Root Toolkit, and did it.
Everything went well. But then I heard about a custom ROM that was apparently working even better, Dirty Unicorns, so using the same toolkit, I installed it. For the first time, my Nexus 9 actually worked the way it is supposed to work, but the custom ROM still had its problems, it crashed from time to time. I was thinking about possibly returning or selling the tablet, so that's why using the Toolkit, I reinstalled the original software. But, if I went all the steps, and also locked the OEM, my device then showed a flag saying that it was a development device, while booting up. So, after messing around with the settings of the Toolkit a little, I decided to reinstall the software, but leave the bootloader unlocked.
But after some time, I reinstalled my Windows, and I also reinstalled the Toolkit. But that's when I started to have problems. My tablet wouldn't connect to my laptop anymore. I used the toolkit and uninstalled drivers, reinstalling others quite a couple of times, and that's where I think that I messed something up. I managed to eventually connect my tablet, and I rooted it, after rooting it, I connected it again. But adb wasn't working for some reason. A little annoyed, I simply copy pasted the zip file of CM13 into my tablet's internal storage, and I rebooted it to the recovery, TWRP. But the recovery failed to flash it, saying something about an Error 7.
Now that I think about it, I was stupid, since after that, I performed a complete factory reset, resetting my TWRP backup too. I tried to connect it again, nothing. It didn't connect at all. I plug it in, my computer doesn't even recognize that something is plugged in. No Nexus 9, no Android Device, no anything. I booted it in fastboot mode, and it worked, my computer recognized it, and after I downloaded a ROM zip file again, I tried to connect the tablet back and flash it manually, but nothing. It didn't recognize anything anymore.
I tried to reinstall the drivers countless times. I deleted what I had, reinstalled it, nothing. I uninstalled and reinstalled the Toolkit. But strangely, now, even if I know that I installed the Google USB drivers, and the ADB drivers, as I even installed Android SDK, if I use USB Deview, it doesn't show me any of them. I can't see any Google or ADB drivers, although I tried installing them multiple times. So now, I'm stuck with a tablet with TWRP and no OS, which I can't connect to my PC, and I can't use ADB or fastboot.
Is it something from my laptop? I can't check to see if it will connect to another PC right now, so I don't know for sure. Is there any way to delete all the traces from my (failed) attempts at reinstalling the drivers, and to install them again properly? Or is it something from the tablet itself? I don't have an OS, so I can't enable USB debugging.
So, shortly, I have no idea what's happening. And I'm quite obviously a noob in all of these. Can anyone help me? Please?
If you boot into the bootloader and from a command prompt type fastboot devices you don't get anything?
Sent from my Nexus 9 using XDA-Developers mobile app
I still couldn't get ADB to work, but I managed to work out fastboot. It may be something from my USB cable, it works perfectly.
I flashed the original software back, and I'll go to check my cable, although I feel kinda stupid that I didn't think about that in the first place.
Thanks for the help anyway.
If fastboot is working and bootloader is unlocked, you can still install a factory image.
Depending of your device download for wifi Version:
https://dl.google.com/dl/android/aosp/volantis-mob30p-factory-2cb57a1b.tgz
If you habe the LTE variant:
https://dl.google.com/dl/android/aosp/volantisg-mob30p-factory-ae9ce05a.tgz
Extract the files and put them into the same directory link fastboot and execute the flash-all.bat
WARNING: Any data will be erased!!! Also TWRP
Now it should boot up with stock firmware.
If you want your device decrypted install twrp. format the internal storage and flash the pure nexus rom which i can highly recommend and is decrypted by default. Dont forget do flash gapps
my issue is same
what if someone USB- debug is not enabled , is there any possibility to do that , i have a device nexus 9 , rooted it it went into bootloop then i factory reset it , and now my adb is not communicating , if there is any options?
rohanzakie said:
what if someone USB- debug is not enabled , is there any possibility to do that , i have a device nexus 9 , rooted it it went into bootloop then i factory reset it , and now my adb is not communicating , if there is any options?
Click to expand...
Click to collapse
Use fastboot, not adb.
what if fastboot isn't working, either?
uberSkeptic said:
what if fastboot isn't working, either?
Click to expand...
Click to collapse
Is the tablet in fastboot mode?
madbat99 said:
Is the tablet in fastboot mode?
Click to expand...
Click to collapse
Yup. I can boot into the bootloader, and from there (or from TWRP) into fastboot, but no computer I've connected it to (and I've tried many) will recognize it. Doesn't show up in Device Manger or lsusb, doesn't show up from either "adb devices" or "fastboot list devices" (the latter just hangs there saying "Waiting for any device"). The USB on the tablet itself is fine, and I even replaced the USB daughter-board just to be safe.
uberSkeptic said:
Yup. I can boot into the bootloader, and from there (or from TWRP) into fastboot, but no computer I've connected it to (and I've tried many) will recognize it. Doesn't show up in Device Manger or lsusb, doesn't show up from either "adb devices" or "fastboot list devices" (the latter just hangs there saying "Waiting for any device"). The USB on the tablet itself is fine, and I even replaced the USB daughter-board just to be safe.
Click to expand...
Click to collapse
Hi, uberSkeptic...
Just a quick thought... Have you tried a different USB cable?
Rgrds,
Ged.
Edit & Additional...
The command is not fastboot list devices... it's fastboot devices
One last point... Ensure your Nexus 9 is definitely booted into fastboot mode and not just HBOOT (the bootloader). Take a look at the two screenshots below - your Nexus 9 should look like the screenshot on the right, the one with my green explanatory text.
Apologies for the poor image quality; there's no way of taking a screenshot in the bootloader, so I had to take photographs instead.
Hope this helps and good luck.
Thanks for the advice and going so far as to photograph the hboot/fastboot screens, but unfortunately I have indeed tried multiple USB cables, including the OEM's and I've definitely successfully gotten the tablet into fastboot but it doesn't show on the computer with either fastboot command (devices or devices list).
uberSkeptic said:
Thanks for the advice and going so far as to photograph the hboot/fastboot screens, but unfortunately I have indeed tried multiple USB cables, including the OEM's and I've definitely successfully gotten the tablet into fastboot but it doesn't show on the computer with either fastboot command (devices or devices list).
Click to expand...
Click to collapse
I'm out of ideas then.
One of my first thoughts was possible Windows driver problems, but as you mentioned you'd tried it on several different computers, that didn't seem to be a likely cause of the problem - I mean, you'd expect at least one of 'em to work! Maybe somebody else can help with a solution.
GedBlake said:
I'm out of ideas then.
One of my first thoughts was possible Windows driver problems, but as you mentioned you'd tried it on several different computers, that didn't seem to be a likely cause of the problem - I mean, you'd expect at least one of 'em to work! Maybe somebody else can help with a solution.
Click to expand...
Click to collapse
Sadly, me too. I even tried using a flash drive with a micro-USB connector on it, which I used to use to do nandroid backups, but now TWRP doesn't even "notice" that the USB drive is there (or any USB drive connected via an OTG cable).
Too bad, too - the tablet is otherwise in great condition and even has a custom-painted backplate (long story).
Thanks for trying to help, though!
uberSkeptic said:
...The USB on the tablet itself is fine, and I even replaced the USB daughter-board just to be safe.
Click to expand...
Click to collapse
Mmm...
uberSkeptic said:
...I even tried using a flash drive with a micro-USB connector on it, which I used to use to do nandroid backups, but now TWRP doesn't even "notice" that the USB drive is there (or any USB drive connected via an OTG cable).
Click to expand...
Click to collapse
Mmm... (scratches head, raises eyebrow quizzically)...
If I was Hercule Poirot and this was a murder case, and with all the suspects gathered in one room, prior to revealing a brilliant deduction... I'd be casting very dark glances in the direction of your Nexus 9's USB port right now as the likely culprit here.
Think about it. Different computers. Different USB cables. An OTG cable... And none of them work. What's the one thing they all have in common?
Answer: The USB port on the Nexus 9 itself, and where you've replaced the USB daughter-board.
Maybe, possibly, that replacement don't go so well. Maybe there's some unknown problem with it. I can't comment too much on this, 'cos it outside the scope of my knowledge - I'm a software guy; circuit boards and dismantling devices to fix 'em isn't something I'm comfortable with. I always think I'm going to damage something or rip a wire out somewhere, so I bow to your superior knowledge in this area, as I may be talking complete cobblers here. It certainly wouldn't be the first time.
Anyway... Sorry I wasn't able to help find a working solution for you. If anything occurs to me that might help, I'll be sure to let you know.
Rgrds,
Ged.
I would be suspect if the replacement as well if it weren't for the fact that I did it only AFTER the other symptoms/problems appeared. Hence the replacement (which is known good because the battery charges no problem). There cables and everything inside the tablet tests just fine... It feels like the firmware for USB is somehow corrupt or something.
Thanks for all the advice, though. ?
So I can't believe I didn't think of this before, but when I run "dmesg" from the terminal app included w/ TWRP, I see that there a TON of errors, mostly referencing problems accessing the recovery image. I could screenshot it, if anyone at all might be able to tell me a little more specifically what the dmesg log is trying to tell me...

Tablet bricked, its not visible on computer and no microsd

Hello guys, im really in trouble. I have a general mobile e tab 5 tablet and i'm living some problems. This tablet don't have an microsd card so i can't setup anything from microsd. Don't have an os and when i connect to computer it's not being visible. I setup sdk android tools, fastboot or smth. This didn't work too. I'm updated the java things and it's still not working. I can't wiping datas, it's giving error like "failed to mount '/cache' and '/data' (invalid arguments), Unable to mount storage" and i can't doing any little thing. Im totally stucked, no way, im thinking only i can fix it from terminal but i don't know what i should to write I don't know what i should to do. Really i need help guys. Also ADB sideload not working too as i said, it's not being visible on computer. (Sorry for bad English.)
Is it detected by your computer (showes in device manager) but no storage or is it not detected at all?
You may need to install/reinstall usb drivers for ADB?
bailey239 said:
Is it detected by your computer (showes in device manager) but no storage or is it not detected at all?
You may need to install/reinstall usb drivers for ADB?
Click to expand...
Click to collapse
Nothing being detected, also i'm always keep opened the fastboot (from adb shell, sdk tools) with command "fastboot flashall"
You can check the picture. (I couldn't insert to image because i don't have 10 messages. )
i.hizliresim .com/aXk3nQ.png
I did everything, i deleted every usb drivers and setup again. At the same time i deleted from device manager every usb port and i setup again all of them. It's not detectable. In twrp MTP enabled and im opening adb sideload.
Just judging from the image you provided, it looks like your drivers are not installed properly. There are a few different drivers you can try, googles, Universal Naked Driver, Motorola, etc. I would suggest trying a different route than the one you took already. Your device is not being recognized, it must be related to the adb USB drivers.
bailey239 said:
Just judging from the image you provided, it looks like your drivers are not installed properly. There are a few different drivers you can try, googles, Universal Naked Driver, Motorola, etc. I would suggest trying a different route than the one you took already. Your device is not being recognized, it must be related to the adb USB drivers.
Click to expand...
Click to collapse
Can you help me about the links?
remove any spaces.
http ://koush.com/post/universal-adb-driver
http ://adbdriver.com/
https ://androidmtk.com/download-universal-adb-driver
http ://visualgdb.com/KB/usbdebug-manual/
I setup all of them, google usb drivers and also tablet usb drivers but nothing is working. I'm gonna cry actually.
Note: I think problem is TWRP. But another problem is computer is never seeing tablet because of TWRP. Tablet don't have a microsd card connection. No OS. Hard hard hard bricked. If i connect a USB Flash Memory to my tablet, can it work?
@AKagNA
Be specific with your device info. You still able to go in recovery, try flashing it with stock firmware, Please please please make sure you get proper firmware for your device, please read this information HERE before proceeding, it might take few minutes but this is useful,Also hit thanks button and share if you find it useful
Thanks
Salman
Salman Al-Badgail said:
@AKagNA
Be specific with your device info. You still able to go in recovery, try flashing it with stock firmware, Please please please make sure you get proper firmware for your device, please read this information HERE before proceeding, it might take few minutes but this is useful,Also hit thanks button and share if you find it useful
Thanks
Salman
Click to expand...
Click to collapse
Hello Salman, i tried to setup stock firmware with every usb driver and flash tool. I swear i tried everything and also i'm a programmer. I'm really understand the computer. But nothing is happenning. Even computer doesnt seeing the tablet.(Sorry for bad Eng..)
You could use flashfire download it from the playstore and download a new rom. Can you boot into os?
_Exeedy_ said:
You could use flashfire download it from the playstore and download a new rom. Can you boot into os?
Click to expand...
Click to collapse
There is no OS and i can't boot it.

Question Having a hard time rooting my Motorola Moto G Power (2021)

So I have been trying to root my Moto G Power 2021 all day. I have been following the guide to using Magisk the non-twrp way, and I keep hitting the same snag over and over again. So far, I have successfully unlocked the bootloader, downloaded and installed the latest Magisk apk (Magisk25.2.apk) form the github page, and downloaded and installed the official Rescue and Smart Assistance (LMSA) on my computer. The problem that I am having is that whenever I plug my phone into my computer while I have RSA open, it asks me to authorize the computer to use it, but nothing opens on my phone to give me that option.
Before I am asked, yes I have Developer tools unlocked, the OEM is unlocked already (As I said above), and I have made sure that USB Debugging was allowed.
Please, tell me where I'm going wrong with this if anywhere?
The only other information I can think to add is that my phone IS running Android 11, but I'm unsure if that matters as I have seen other guides that explain how to root on Android 11.
Thanks in advance for any information that can be given!
​
First thing: Have you installed the specific Motorola USB Drivers on your PC?
Link: https://motorola-global-portal.cust...can-i-download-the-usb-drivers-for-my-device?
sdembiske said:
First thing: Have you installed the specific Motorola USB Drivers on your PC?
Link: https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/~/where-can-i-download-the-usb-drivers-for-my-device?
Click to expand...
Click to collapse
Yes I did. I also tried uninstalling and reinstalling it when you linked it in case I didn't have it installed correctly, and that still did not work.
The below image is what I keep getting when I attempt to connect to RSA with my phone, and nothing at all like that shows up on my phone to verify.
Had you previously authorized the phone on that PC, i.e., using adb, etc? If so, you may not have to authorize it again. Have you actually tried to do anything with RSA or just wondered why the authorization notification doesn't show on your phone? Does the USB debugging pop-up show in the status bar on your phone when you're connected? If so, you're connected and were already authorized.
Other than that, your antivirus/firewall software may be blocking the connection and you'll have to allow the app to connect to the phone there. May also want to check that your USB cord isn't the issue by trying another one with data capabilities.
Please see the N.B. in my signature below.
Thanks! I'll give that a shot and update when I've got a chance. I don't believe it's the USB cable since it's the cable that came with the phone, so I'll try the antivirus/firewall software side of things first.
Small edit:
I forgot to actually answer your question before. No, I hadn't already authorized this computer, as this is actually a pretty new computer (Only a few months old at this point). The USB debugging shows up at the top of my phone yes, but RSA won't do anything unless I authorize it, which gives me conflicting impressions that the phone seems to think it's verified the computer, but the computer and program don't see the verification.
sdembiske said:
Had you previously authorized the phone on that PC, i.e., using adb, etc? If so, you may not have to authorize it again. Have you actually tried to do anything with RSA or just wondered why the authorization notification doesn't show on your phone? Does the USB debugging pop-up show in the status bar on your phone when you're connected? If so, you're connected and were already authorized.
Other than that, your antivirus/firewall software may be blocking the connection and you'll have to allow the app to connect to the phone there. May also want to check that your USB cord isn't the issue by trying another one with data capabilities.
Please see the N.B. in my signature below.
Click to expand...
Click to collapse
Thank you! That worked! I was able to get it sorted out, AND following the root guide, I was able to get my phone rooted too! Thank you very much again!
@Cloud557 How did you unlock bootloader? I have cricket moto g power 2021 but I checked with Motorola and apparently this model cannot be unlocked? Thanks

Categories

Resources