Broken display, backup app data? - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

My display is broken, i can't see anything on my Mi9T pro.
But i can boot blind into recovery or system, enter the pin via an USB-keyboard and then browse my files on my computer. I can also find the phone with adb.
Is there any chance to get my app data from the phone? Can i backup my app data without using the screen? Or even a chance to browse it? Or can i see my screen via usb?
I have titanium backup on my phone, can i make a backup without seeing it? And then get the files via mtp to my computer?
I'm on the latest xiaomi.eu release (from second august-week).

If you have enabled usb debugging then try scrcpy.

sagar29 said:
If you have enabled usb debugging then try scrcpy.
Click to expand...
Click to collapse
I get:
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...
Does that mean, that USB-debugging is not enabled? But i can access internal storage and find the device via adb.
Edit: I can find it in ADB when i'm in recovery. After entering the pin, i can also access data in recovery. When i am in OS and entered the pin, i can access the storage.

if you can access your storage from adb then copy your data to your pc.

sagar29 said:
if you can access your storage from adb then copy your data to your pc.
Click to expand...
Click to collapse
When i get an answer with "adb devices", then i am connected. What should i enter next?

McFlypants said:
When i get an answer with "adb devices", then i am connected. What should i enter next?
Click to expand...
Click to collapse
if you want to backup data in your internal storage then type "adb pull sdcard/Android"
if you want to backup data partition then type "adb backup --twrp data" it will create a backup.ab file, you cannot browse this file you can only restore.
you can also copy appdata from data patrition like this "adb pull /data/app"
you can browse folders like this
adb shell
cd data
ls

sagar29 said:
if you want to backup data partition then type "adb backup --twrp data" it will create a backup.ab file, you cannot browse this file you can only restore.
Click to expand...
Click to collapse
This is not working because i have to unlock my phone for that - what i can't do because i can't use the screen. When i disconnect the usb-connection to connect the usb-keyboard, adb closes.
sagar29 said:
you can also copy appdata from data patrition like this "adb pull /data/app"
Click to expand...
Click to collapse
That works, i will try to restore the needed app data on my new phone!
Thanks!!

Related

Any way to get data back after wipe?

Ive used programs like TestDisk to get pictures from a "formatted" flash card. I forgot to backup my SMS messages before doing a wipe (backed up everything...). Is there a way I can access the phones built-in memory using software like TeskDisk?
http://www.cgsecurity.org/wiki/TestDisk
androidmonkey said:
Ive used programs like TestDisk to get pictures from a "formatted" flash card. I forgot to backup my SMS messages before doing a wipe (backed up everything...). Is there a way I can access the phones built-in memory using software like TeskDisk?
http://www.cgsecurity.org/wiki/TestDisk
Click to expand...
Click to collapse
Did you do a nandroid? if not then I am pretty sure the answer is no.
That's like formatting my HDD then asking if can i recover all those programs.
Ace42 said:
That's like formatting my HDD then asking if can i recover all those programs.
Click to expand...
Click to collapse
Umm... you do know that when you format your hard drive you can still get some of the data back, right? Unless you use a secure erase program, the data is still on the hard drive. The same goes for flash memory. Format or delete images from your flash card and use TestDisk to see what you can get back. If you havent written anything to the drive, chances are you can get it all back. For your sake, I hope you securely wipe your hdds before throwing/giving them away. That goes for everyone.
Back to the topic. I just want to know how to access the built-in memory where this stuff is stored. Some type of developer tool maybe?
I'd personally like to know what this really has to do with development. You may be looking for some "developer tool" to recover lost data, but this adds nothing to any development going on or anything.
grandomegabosses said:
I'd personally like to know what this really has to do with development. You may be looking for some "developer tool" to recover lost data, but this adds nothing to any development going on or anything.
Click to expand...
Click to collapse
The chances of such a tool existing would be known by the smart developers/coders in this forum
androidmonkey said:
The chances of such a tool existing would be known by the smart developers/coders in this forum
Click to expand...
Click to collapse
Check the rules of the forum. This section isn't meant to ask developers something. It's meant for development.
I would try booting into recovery and then use adb to manually mount your partitions. I would assume you just need to mount the /data partition.. I know this works on my Magic so just check and make sure that you have the right block device if your running on a Dream!
1. open adb shell
2. make a new directory with mkdir "name of new dir"
3. mount /data with mount -t yaffs /dev/block/mtdblock5 "name of new dir"
4. open new terminal/command prompt and use adb pull command as follows
to bring the data partition over to your computer:
adb pull "name of new dir" "name of file to be placed on computer"
5. now see if you have any files and attempt recovery of your sms database
Good Luck
[EDIT] Oh yeah the other guy's are right you should post this type of question in General next time. Fortunately I'm not a **** so I posted how I would try to rescue my stuff and remember Nandroid would have saved your ass
nrmerritt said:
I would try booting into recovery and then use adb to manually mount your partitions. I would assume you just need to mount the /data partition.. I know this works on my Magic so just check and make sure that you have the right block device if your running on a Dream!
1. open adb shell
2. make a new directory with mkdir "name of new dir"
3. mount /data with mount -t yaffs /dev/block/mtdblock5 "name of new dir"
4. open new terminal/command prompt and use adb pull command as follows
to bring the data partition over to your computer:
adb pull "name of new dir" "name of file to be placed on computer"
5. now see if you have any files and attempt recovery of your sms database
Good Luck
[EDIT] Oh yeah the other guy's are right you should post this type of question in General next time. Fortunately I'm not a **** so I posted how I would try to rescue my stuff and remember Nandroid would have saved your ass
Click to expand...
Click to collapse
Thanks nrmerritt, ill give it a try. How do I get root in adb shell via windows? When I try to mkdir, it says "Read-only file system"
Also, I do have a Dream (G1), any ideas which block to use?
Thanks
Are you using Amon_Ra's latest recovery? On my phone when I boot into recovery mode and connect with adb it's already in a root environment.
About the block device I would try the one I posted. You can always just do an "ls" command on the new directory you mounted it on before you copy it to the computer so can you see if/what files are possibly still left.
As a last resort effort you could also try the "dd" command to make an image of the partition while it's still on the phone then copy that to your computer with adb.
One more thing..If you did a wipe and rebooted your phone, your chances are not very good for recovery since the phone would have written a whole bunch of files to the data partition on first boot into Android. Side note, maybe one day Google will incorporate messages into sync and improve our lives a little.

[Q] Wiped all internal storage data and ROM HELP!?

I'm using twrp and i accidentally deleted everything from my phone, now my pc doesn't recognise it on usb.
Tried adb push and it says device not found.
Any way I can get a ROM on it or set it backj to factory settings?
Kaichu said:
I'm using twrp and i accidentally deleted everything from my phone, now my pc doesn't recognise it on usb.
Tried adb push and it says device not found.
Any way I can get a ROM on it or set it backj to factory settings?
Click to expand...
Click to collapse
Just because you wiped it, shouldnt have anything to do with the PC not recognizing it. Reboot PC, just in case and try again. (Was adb/fastboot working before? otherwise you may need to update your drivers).
Another way would be to use an OTG cable to flash the ROM directly from a USB stick.
Kaichu said:
I'm using twrp and i accidentally deleted everything from my phone, now my pc doesn't recognise it on usb.
Tried adb push and it says device not found.
Any way I can get a ROM on it or set it backj to factory settings?
Click to expand...
Click to collapse
What OS are you using? Have you attempted ADB while in twrp, just twrp, not sideload?
Kaichu said:
I'm using twrp and i accidentally deleted everything from my phone, now my pc doesn't recognise it on usb.
Tried adb push and it says device not found.
Any way I can get a ROM on it or set it backj to factory settings?
Click to expand...
Click to collapse
Unplug your phone
Reboot the phone and the PC.
Make sure your phone is in recovery mode.
Make sure the adb files and drivers are up to date.
Plug in the phone.
Open a command prompt in the folder that has your adb file.
Type:
adb devices
Click to expand...
Click to collapse
What is the return?
Sent from my HTC One using XDA Premium 4 mobile app

[Q] Moving files from live to pc?

I recently had the success of rooting and installing twrp on my gear live. I used twrp to make a backup, yet I don't know how to move that to my pc. Anyone know how?
On your PC "adb pull \sdcard\TWRP c:/watch backup" will pull the twrp folder to your C drive
You can then use adb shell on your PC to remove the folder as its about 450mb in size. Use "adb shell" then "rm -r \sdcard\TWRP" then "exit". You can always push the folder back using adb if you need to restore
Thanks
skitty said:
On your PC "adb pull \sdcard\TWRP c:/watch backup" will pull the twrp folder to your C drive
You can then use adb shell on your PC to remove the folder as its about 450mb in size. Use "adb shell" then "rm -r \sdcard\TWRP" then "exit". You can always push the folder back using adb if you need to restore
Click to expand...
Click to collapse
Thanks for the help dude. I'm not to familiar with the commands for adb. Anyways thanks for the help.:good:

Broken Screen, Not Rooted, Lockscreened.

SOLVED
(No success for me personally, but I'd still like to explain how I realised there's no hope left - description is at the bottom of this post)
Hi, not a regular poster in the S3 mini section, but a friend of mine has had his entire screen smashed. Somehow though, the phone is still breathing and can be turned on/off.
The problem is: My friend has asked me to extract his photos and similar media from the device's memory.
The device isn't rooted and I'm not sure if there's a default recovery mode or something like that built in the device.
I've tried connecting the device to my PC and it gets recognized and the drivers install themselves, but the device is empty. Moreover, I've downloaded KIES which also recognized the device, but says that there's a lockscreen and he can't go any further.
Any advices? Most of the other xda answers are for rooted phones so they haven't been very helpful, unfortunately.
There's a picture of the device in the attachments below, and KIES interface aswell.
<<EDIT>>
I'm using this http://forum.xda-developers.com/showthread.php?t=2339530 Recovery operation but it keeps saying "adb.exe" not found. I've installed ADB via the 15sec install ( http://forum.xda-developers.com/showthread.php?t=2588979 ) and entered the path correctly, but it still can't detect it. Any tips? perhaps i'm using the wrong ADB - I don't have c:\android\platform-tools folder - it's simply c:\adb\adb.exe.
SOLVED PROBLEM:
After messing with this for 2-3 days, I've decided to go with the simplest method - find a way to list all directories on the device and then see if there's anything in "sdcard" or a similar folder. To do this, after ADB recognizes your device, type : adb shell ls -R
adb shell ls -R will list a zillion directories so you may want to save the data into a .txt file. to do this, type adb shell ls -R > output.txt (or any other name).
After that, open the output.txt file and then use ctrl-f to find the sdcard folders and check if there's any data left in them.
IMPORTANT:
I've read that, without root permission, one cannot access the data or sdcard directories. The device I was working on had USB debugging OFF so there was no way I could root the phone in order to access the data directories.
Silly question, but did you use option 2 in RecoverData to change the path of ADB to c:\adb\?
aumedina said:
Silly question, but did you use option 2 in RecoverData to change the path of ADB to c:\adb\?
Click to expand...
Click to collapse
Yup, but it still can't find it. That's why I think the ADB-15sec install might be flawed.
There's a screencap of the Recovery + TotalCMD in the background in the attachments.
<EDIT>
Alright so I've followed an ADB tutorial (http://forum.xda-developers.com/showthread.php?t=2266638), installed all the SDK packages just to be sure.
ADB now recognizes the device after I've booted it into recovery mode. I've tried doing adb pull /data and it says 0 files pulled, 0 files skipped. Does this mean the device's internal memory is blank? No it doesn't, only the folder "data" is blank, other system data is present.
<EDIT 2> Can anyone please tell me the path to the internal camera storage folder? I may have fixed the problem if only I knew the correct path. SOLVED: The correct path is one of 4 combinations, usually these: /mnt/sdcard0/ /mnt/sdcard/ /storage/sdcard0/ /storage/sdcard/

Please help ! How to pull data from internal storage with adb

My mind a2 display is broken I am able to connect my phone via adb can anyone please tell me command to pull data?
If phone has Oreo, you can boot into TWRP and then pull /data partition content into image, and then expand it or use for pushing.
As current TWRP does not decrypt Pie /data, this won't work for Pie.
For Pie you can only backup user applications and their settings:
Code:
adb backup -apk -shared -all -keyvalue -f .\backup_yymmdd_hhmm.ab
and then try to expand .ab file (search the net)
There is also program called MyPhoneExplorer, but to use it one have to get root and install MyPhoneExplorer android client beforehand - prior to breaking display.
Aerobatic said:
If phone has Oreo, you can boot into TWRP and then pull /data partition content into image, and then expand it or use for pushing.
As current TWRP does not decrypt Pie /data, this won't work for Pie.
For Pie you can only backup user applications and their settings:
Code:
adb backup -apk -shared -all -keyvalue -f .\backup_yymmdd_hhmm.ab
and then try to expand .ab file (search the net)
There is also program called MyPhoneExplorer, but to use it one have to get root and install MyPhoneExplorer android client beforehand - prior to breaking display.
Click to expand...
Click to collapse
My phone was dropped badly . . . Only display is working finger print works device get unlocked adb can detect the device, I don't want any apps I want my data Pics and all . .
I am on pie
It is possible?
razor17 said:
My phone was dropped badly . . . Only display is working finger print works device get unlocked adb can detect the device, I don't want any apps I want my data Pics and all . .
I am on pie
It is possible?
Click to expand...
Click to collapse
try to use: adb pull /sdcard/
if your device is not completely dead then there is a chance to recover the data by connecting it to PC and use any data recovery software like Android Recovery etc, on it to backup the data.
MIN313 said:
if your device is not completely dead then there is a chance to recover the data by connecting it to PC and use any data recovery software like Android Recovery etc, on it to backup the data.
Click to expand...
Click to collapse
That's what . . .adb can detected in PC, problem is I am not able to pull data
I will try recovery softwares etc, thank you
razor17 said:
I will try recovery softwares etc, thank you
Click to expand...
Click to collapse
Have you tried
Code:
adb pull /sdcard/
as @leonardcoutinho suggested? Works for me from PC which was previously authorized for ADB
Aerobatic said:
Have you tried
Code:
adb pull /sdcard/
as @leonardcoutinho suggested? Works for me from PC which was previously authorized for ADB
Click to expand...
Click to collapse
It says remote object/sdcard/ does not exist
razor17 said:
It says remote object/sdcard/ does not exist
Click to expand...
Click to collapse
Does that mean that you have not previously authorized the PC to ADB phone? Or even have not got developer state and have not enabled "Debugging via USB" in phone? If that's the case, then I do not see a solution.

Categories

Resources