I'm having an issue where my touchscreen completely stopped responding to touches, but the physical buttons still work. I'm rooted and have TWRP installed. I'm trying to backup my files before reformatting. I have an OTG cable which i tried using with a mouse but it doesn't work. I'm not sure if it's because OTG isn't enabled by default? I'm currently able to unlock my phone using fingerprint and I'm already on wifi. I haven't restarted the phone yet because I'm afraid of getting stuck at the startup encryption screen that requires me to physically draw the unlock pattern.
I've had something similar happen a few months ago where I rebooted and wasn't able to get into the phone because of the startup lock screen. I followed a thread to delete the lock files but it ended up completely locking me out of the phone (due to new android security i guess) and in the end I had to reformat everything and lose all my data .
What's the best way to go about this now and either be able to get the OTG/mouse working or at least be able to access and backup all my data? Is there anything I should do before restarting while I can still access my phone using fingerprint unlock?
twrp should allow you to activate usb (think its on by default), that way you can make a nandroid and copy it to pc, as well as copy any photos etc from the internal storage
yusuo said:
twrp should allow you to activate usb (think its on by default), that way you can make a nandroid and copy it to pc, as well as copy any photos etc from the internal storage
Click to expand...
Click to collapse
Ah.. thanks, I will try that!
Hi,
I have the same issue: my touchscreen stopped working a couple days ago, and I'm not able to enter my pattern. I have a USB-C mouse, TWRP 2.7.3 installed, my bootloader is unlocked, but for some reason I'm not able to use the mouse in TWRP. Any ideas?
Many thanks!
I found a solution to backup your data, even if USB OTG is disabled.
First, you need a mouse and an adapter. Personally, I bought this one from Amazon (France).
Second, you need to download the latest version of TWRP for cheeseburger.
Finally, plug your device to a computer and boot into fastboot. Open a terminal and type 'fastboot boot C:\path\to\twrp-cheeseburger.img'.
Your device reboots into recovery, and the USB mouse is working. Enter your pattern, mount Data and plug back the phone to your computer: you should see your data!
Hope this help.
adb backup -apk -shared -all -f backup-file.adb
adb restore backup-file.adb
Related
I dropped my N4 on the ground this past weekend and it now has both a shattered front and back glass. The digitizer does not work so I can't use the touchscreen at all.
Here's what I can share about the status of the phone:
It is still on, I can see the screen, and is fully charged receiving messages.
The power button and two volume buttons work.
The phone's storage is encrypted with the stock android encryption.
I have a 4-digit PIN enabled on the lock screen.
The phone did not have USB debugging enabled when this occurred.
I've tried to mount it to a computer to get the files, but nothing shows up as I believe I need to unlock it with the PIN before it will mount.
I can install apps remotely from the Play store.
I have the Sophos mobile app installed and configured but I don't believe there are any commands to UNLOCK the device, only to lock it and wipe it.
Honestly, I just want my data off of the phone and would rather not replace the screen and continue using it. I love the phone but it is way too fragile. Is there any way to transfer my data? I looked into connecting a mouse to the usb and using that to enter the PIN, but the N4 does not support mice. Since USB debugging was not turned on, I can't connect via ADB. Is there some sort of app I can remotely install from the play store to turn on USB debugging? Is there some sort of app I can remotely install to remotely unlock the device with my 4-digit PIN? If I let it die and then try to boot into recovery, will ADB work then? If so, how would I get the data off of the device if it is encrypted? Any guidance would be greatly appreciated.
Thanks in advance!
Is it running a custom recovery?
If yes, just go into recovery and do a nandroid, boot back into android and copy the backup.
If no, there's a thread somewhere with instructions on how to unlock your bootloader WITHOUT wiping your phone.
Unfortunately this is the only android phone I've ever owned that I haven't touched and left completely stock... No custom recovery, no custom ROM. I'll try to look for the instructions on how to unlock the bootloader without wiping the phone, but if I do a nandroid and boot back into android how will I transfer the data? I'd be stuck at the screen where I have to type in my encryption password, and even if I got past that I still can't mount the device in Windows to transfer the data?
Anyone?
Exousia said:
Unfortunately this is the only android phone I've ever owned that I haven't touched and left completely stock... No custom recovery, no custom ROM. I'll try to look for the instructions on how to unlock the bootloader without wiping the phone, but if I do a nandroid and boot back into android how will I transfer the data? I'd be stuck at the screen where I have to type in my encryption password, and even if I got past that I still can't mount the device in Windows to transfer the data?
Click to expand...
Click to collapse
The only way I can think is flash an advanced version of cwm (if it doesn't already have one) that has a file manager and make a backup, and copy the recovery to a location on the SD. Then mount USB storage and copy everything over.
Edit: actually, you could mount USB storage in cwm to copy files over, then make a backup through adb on to your computer, there's some tutorials on how to do that
Sent from my Nexus 4 using xda premium
do you have adb installed? cant you copy the files in bootloader mode to the computer? havent tried yet, and im on my work laptop right now, cant try it.
zakoo2 said:
do you have adb installed? cant you copy the files in bootloader mode to the computer? havent tried yet, and im on my work laptop right now, cant try it.
Click to expand...
Click to collapse
as far as I know no. In bootloader mode is only fastboot, not adb
Sent from Halo.
what i dont understand is how you cannot connect the phone with mtp... that should work without debugging.
EDIT: sorry, youre right, when the device is encrypted, you have to unlock it before mounting.
looks like you made pretty damn sure there is no way for you (or anyone else) to get access to the data on your device :/
although i dont know about unlocking without wiping. maybe that could work.
sent from my Nexus 4...
Google search a program called Motorobo; equivalent to what service providers use.
Sent from a neXus device
Hello
Yesterday, I shattered my glass and digitizer though the lcd and phone are correct.
I'm wondering how much does lg or google charge for repair and is it lengthy process.
Also I'd like to know what are my option to backup the phone. USB debuging is disabled but the phone is rooted and unlocked.
I don't think there is a remote control app that can be installed without user input and I don't think I can enable USB debuging without screen input.
So I guess, I'm stuck with a nandroid backup though I'm not sure what is included. I believe it includes everything but the USB storage ?
Caddish said:
Hello
Yesterday, I shattered my glass and digitizer though the lcd and phone are correct.
I'm wondering how much does lg or google charge for repair and is it lengthy process.
Also I'd like to know what are my option to backup the phone. USB debuging is disabled but the phone is rooted and unlocked.
I don't think there is a remote control app that can be installed without user input and I don't think I can enable USB debuging without screen input.
So I guess, I'm stuck with a nandroid backup though I'm not sure what is included. I believe it includes everything but the USB storage ?
Click to expand...
Click to collapse
Yes, a nandroid includes everything but the data/media folder.
You could however blindly boot in recovery, then use adb to copy the data/media/0 folder (the sdcard).
Soo, boot in recovery, and use this command
adb pull data/media/0 C://NexusSD
Thanks
I have been using the stock 4.4.4 for a while with some occasional crashes and reboots in Skype. Then one day, when I turned on my device, the boot loop struck out of the blue! I had only installed some apps, nothing ROM related was changed.
I need some expert help with recovering my user files (some images in non standard folders, game saves etc..)
Symptoms:
*The device is stuck at the circle logo and won't boot up.
*The boot loader is unlocked, USB debugging is enabled and the device was rooted before with version 4.2, upgraded to stock after that at least twice and lost root.
*When connected to PC, auto driver loading fails with MTP but I hear a USB connection sound when I turn on and off the phone. Although, the device is not recognized in "My computer". I see an "Android Device" and/or "android bootloader interface" in Device Manager.
What I tried:
*Tried wugfresh's toolkit and re-installed all google drivers but when I run adb/fasboot commands from within the toolkit, my device is not listed in either list. I get a blank list of devices.
* I can get to the recovery mode in stock boot loader after the "No data" screen and tried wiping user cache, did no good.
What I would like to achieve:
* Ideally I would like to be able to boot into the system without losing any user data and run my backup app and/or connect via USB to backup files on PC.
* If above wouldn't be possible, accessing files externally would also do as a last resort.
Any help is appreciated!
Thanks
ozgurust said:
I have been using the stock 4.4.4 for a while with some occasional crashes and reboots in Skype. Then one day, when I turned on my device, the boot loop struck out of the blue! I had only installed some apps, nothing ROM related was changed.
I need some expert help with recovering my user files (some images in non standard folders, game saves etc..)
Symptoms:
*The device is stuck at the circle logo and won't boot up.
*The boot loader is unlocked, USB debugging is enabled and the device was rooted before with version 4.2, upgraded to stock after that at least twice and lost root.
*When connected to PC, auto driver loading fails with MTP but I hear a USB connection sound when I turn on and off the phone. Although, the device is not recognized in "My computer". I see an "Android Device" and/or "android bootloader interface" in Device Manager.
What I tried:
*Tried wugfresh's toolkit and re-installed all google drivers but when I run adb/fasboot commands from within the toolkit, my device is not listed in either list. I get a blank list of devices.
* I can get to the recovery mode in stock boot loader after the "No data" screen and tried wiping user cache, did no good.
What I would like to achieve:
* Ideally I would like to be able to boot into the system without losing any user data and run my backup app and/or connect via USB to backup files on PC.
* If above wouldn't be possible, accessing files externally would also do as a last resort.
Any help is appreciated!
Thanks
Click to expand...
Click to collapse
Do you have clockwork mod installed?
You might be able to pull the important stuff over ADB when the phones in recovery
If ADB on your computer recognizes and can connect to your phone you can probably pull off the files
Try this: http://www.xda-developers.com/android/all-in-one-guide-to-adb/
prasanth21 said:
Do you have clockwork mod installed?
You might be able to pull the important stuff over ADB when the phones in recovery
If ADB on your computer recognizes and can connect to your phone you can probably pull off the files
Try this: http://www.xda-developers.com/android/all-in-one-guide-to-adb/
Click to expand...
Click to collapse
Thanks for the suggestion. As a matter of fact, while waiting desperately for a reply here, I tried to flash TWRP recovery and managed to adb pull data and sdcard directories over to my PC. And then a factory reset brought my device back to life.
It's a bummer that all of my home screen settings and account settings are reset..
The question now is how to copy over the backup data back to the phone..
adb push will put them back, but your phone will probably mount normally and show up in 'My Computer' now so you could just do that.
ozgurust said:
Thanks for the suggestion. As a matter of fact, while waiting desperately for a reply here, I tried to flash TWRP recovery and managed to adb pull data and sdcard directories over to my PC. And then a factory reset brought my device back to life.
It's a bummer that all of my home screen settings and account settings are reset..
The question now is how to copy over the backup data back to the phone..
Click to expand...
Click to collapse
I'm glad you were able to pull off the files from the phone.
You can use the adb push command to put the data back into the phone
Try this : adb push /path/to/local/file /mnt/sdcard/path/to/file
or
adb -s [yourdeviceserialnumberhere] push /system/[whateverdirectory]
You can check out this too : http://forum.xda-developers.com/showthread.php?t=2167651
The post clearly explains multiple adb commands
Hope it helps!
Hello Everyone,
I have an issue with my nexus 6p screen all of a sudden being unresponsive to touch. The big error on my part was not setting up my videos and images to automatically backup. So now what i'm trying to do is unlock the phone using ADB and a usb cable but haven't had any luck. I've gotten as far as listing my devices, which show up an unauthorized and seem I can only authorize it from my phone. Q1. is this true? Could there be any other way to authorize my phone, or am I out of luck and my data is kaput? I've also tried an OTG cable but it doesn't load since i'm guessing the OS has to fully load for the cable work.
Do I have any choice on saving my data with a USB cable and command line or can someone suggest a tool that would help me out of this situation?
Put it into fastboot/download mode and flash the latest TWRP recovery.
Use TWRP's file manager or ADB Pull commands to pull your data off. Use ADB push to push a new ROM image and flash over everything except userdata (back it up just in case).
Hi,
My touchscreen stopped working all of a sudden, in a very similar way as these users reported:
> https://forum.xda-developers.com/oneplus-5/help/oneplus-5-touch-screen-stop-t3757724
> https://forum.xda-developers.com/oneplus-5/help/touchscreen-responding-how-access-t3844693
The phone boots up to the "Enter pattern for all data and features" screen, and I'm not able to enter the pattern since my touchscreen doesn't respond. For what it's worth, my phone is rooted and has the latest TWRP installed. However, the phone is encrypted, USB debugging is disabled and I have an anti-theft app (Cerberus Anti-Theft) that can act on settings like "Prevent USB debugging" or "Disable Wi-Fi". I have three users on my phone, and I have been able to recover the data of the first user only so far (see below).
Idea 1: use an USB OTG mouse
I did try this solution, but nothing happens when I plug the USB mouse. The blue LED on the mouse doesn't turn on, and it seems that no power is output at all.
Idea 2: use an USB OTG mouse in recovery
I tried to boot into recovery and plug my USB-C mouse in... but nothing, no pointer, no power drawn from the mouse.
Idea 3: boot into recovery and use TWRP adb commands
The phone boots TWRP and prompts me to enter my pattern, but is not able to communicate with the PC. 'adb devices' shows nothing.
Idea 4: load a temporary TWRP from fastboot
The phone boots fastboot without any problem. I'm able to 'fasboot boot C:\twrp-cheeseburger.img', and TWRP boots just fine. I then try to plug my USB-C mouse, and it works! I can see the pointer, and the mouse's blue LED turns on. I can enter my pattern, decipher my Data partition and backup everyhting to my PC.
HOWEVER, I am not able to access other users' data, and I have a work profile that contains data I would really like to recover. Is there any way to decrypt data from secondary users without booting Android system?
On a side note, I was also able to permanently flash the TWRP I booted from, which means I'm able to use the mouse without having to 'fastboot boot'.
I now have full, untethered recovery access, with full mouse support. I'm still not able to swipe to confirm some adb commands though, as I have to disconnect the PC cable to plug the mouse.
Idea 5: enable USB debugging from temporary TWRP in order to use adb from Android system
I would gladly accept any help on that matter.
From what I've read, I have to edit two files, '/data/property/persist.sys.usb.config' &'/system/build.prop', and then push RSA keys on the device in the '/data/misc/adb/adb_keys' folder.
The pulling / editing / pushing part is OK, but the RSA part seems trickier. I've never connected my phone via adb to my computer (just recently bought it), but I do have the adbkey files in my home folder. I would try and give my results back here, but like I said, I have data that I would like to recover and I can't risk messing with the keys.
Idea 6: find what's causing the USB ports to be disabled
Easier said than done! What could possibly prevent the USB port to be completely disabled (except for charging)? Any ideas? I'm guessing Cerberus Anti-Theft might have to do something with it, but I couldn't find anything specific on that matter.
Idea 7: nandroid backup the phone, wait for quantum computers to become commercially available and bruteforce the private keys
Hmmm...
I'm really running out of ideas here.
EDIT: Solution
> The only way to get to secondary users' files is to boot Android system and enter the pattern.
> The only way to enter a pattern with a broken touchscreen is to use an USB mouse.
> USB OTG wasnt enabled on my phone for some reason, so I had to find a way to enable it from recovery. I booted in fastboot mode, then flashed the latest version of TWRP so I was able to use the mouse in TWRP (OTG mouse is enabled by default in TWRP).
> USB OTG was still disabled in Android system. Luckily, I had Magisk installed so I was able to flash the zip that Axelguitt suggested, which is a Magisk module that enables USB OTG at boot.
Here's a link to the module (by simonsmh): https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922. Simply install the provided zip from recovery.
> This permanently enabled USB OTG in Android system, so I was able to enter the pattern and backup data for all users.
Did you look in /storage/emulated/ in TWRP? There should be some numbered folders, 0 being the primary user. 999 for parallel apps and so on.
Lupus77 said:
Did you look in /storage/emulated/ in TWRP? There should be some numbered folders, 0 being the primary user. 999 for parallel apps and so on.
Click to expand...
Click to collapse
Hi,
On my device, /storage/ is empty (adb pull gives nothing and TWRP File Manager also shows that the folder is empty).
The primary user's files are in /data/media/0 (perfectly readable using TWRP File Manager)
The other users' files are in /data/media/10 & /data/media/11, but are encrypted. I'm looking for a way to decrypt these specific files
This is not really an answer or another idea but a reason, why your mouse doesn't work while in Android - the OTG switch is off.
I think there's a workaround to permanently enable OTG without needing to go to settings, but I think that's kernel based, you'd have to flash a custom kernel with that enabled. I think @nathanchance had it on his now discontinued Flash kernel, maybe he can help.
Is it possible to install a magisk module while you are in recovery?
If so I maybe have an idea :
Go in recovery and find a way to install this magisk module:
https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922
This module enables always on OTG in oxygenOS.
Then boot in system and you should be able to use an OTG mouse.
It is only a suggestion, I have no clue if what I'm suggesting will work.
Axelguitt said:
Is it possible to install a magisk module while you are in recovery?
If so I maybe have an idea :
Go in recovery and find a way to install this magisk module:
https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922
This module enables always on OTG in oxygenOS.
Then boot in system and you should be able to use an OTG mouse.
It is only a suggestion, I have no clue if what I'm suggesting will work.
Click to expand...
Click to collapse
That actually worked!
Many thanks
Bakuryu91 said:
That actually worked!
Many thanks
Click to expand...
Click to collapse
You're welcome!
Can you explain how to install a magisk module from recovery just in case someone with the same issue find this thread?
Axelguitt said:
You're welcome!
Can you explain how to install a magisk module from recovery just in case someone with the same issue find this thread?
Click to expand...
Click to collapse
In this case, the dev (simonsmh) provided a flashable zip of the module. This is usually the case for Magisk modules.
Bakuryu91 said:
In this case, the dev (simonsmh) provided a flashable zip of the module. This is usually the case for Magisk modules.
Click to expand...
Click to collapse
Cool thing to know, I'll remember it if I ever break my touchscreen!
my oneplus 5 keeps getting this issue the touch screen not working ive reset the phone twice now and it still happens. i read its something to do with a bug or hardware problem with the latest android i read this a few times online. is there a custom OS i can load on there that doesnt have this problem?
i already tried to load on an older version of the os and while it worked im still on android 9 when it should have loaded 8. so i know how to load it on but what should i use?
sick of this **** it works then it randomly decides not to work! a reboot works sometimes other times its a full reset