RESTORE data from Android backup or via ADB - Android Q&A, Help & Troubleshooting

Hi all,
Today I smashed my company phone - old Myphone Cube. I dont want to repair him, I will get newer BUT I want to restore my data.
I have there important photos on internal storage + ALL MY CONTACTS.
I tried everything with adb via stock recovery (update via ADB), which gives me ADB error: closed (no matter which version of adb I use.
In stock recovery is also an option "backup data", so I made an backup to sdcard. On sdcard in computer I see 3,5GB big file with .backup extension. I unpacked it via 7-zip and all I see is userdata_20100101_000113.backup. I cannot unpack it via anything.
Iam very lost. I tried many tools and stuff, but nothing helped me do something with ADB or this backup file. I also tried USB OTG to connect mouse, because LCD is still working, only touch doesnt, but this phone doesnt support OTG. I tried also My Phone explorer, but sadly, I dont have turned on USB debugging.
Iam playing with idea to buy digitizer for 10 bucks of ebay and do it this way, If any of those metods will not work.
Any ideas please?
Thank you, Martin!

Related

[Q] Access USB via ADB

Hey guys,
is it possible to access the internal storage via adb, without having a display?
My Galaxy SII Display is broken, but the rest should work.
usually i have to lock in with the security points that have to be connected (i dont know how that is called in english),
to allow access via usb.
now that the display does not work, i can not go that way.
so is it possible to access the internal storage via adb?
or do you have another way for me to get my data back?
i am not going to buy a new galaxy s2 and replacing the motherboard,
because its not worth it.
i have cm10.1 installed with dorimanx kernel, and root is allowed for adb and apps.
i never used adb, so i dont know how to start my search.
i also have the problem that i dont know how to look for that thing,
because im not english.
it would be nice if you can give me a start,
or another way to access the internal storage.
i also thougt about accessing via recovery.
i think i can go into recovery, and by pressing volume and power keys,
i can naviagte to mount data.
but im not sure about the steps,
so if anyone have a dorimanx 7.xx kernel,
can you please write the steps down for me?
thank you.
Grandtheftman said:
Hey guys,
is it possible to access the internal storage via adb, without having a display?
My Galaxy SII Display is broken, but the rest should work.
usually i have to lock in with the security points that have to be connected (i dont know how that is called in english),
to allow access via usb.
now that the display does not work, i can not go that way.
so is it possible to access the internal storage via adb?
or do you have another way for me to get my data back?
i am not going to buy a new galaxy s2 and replacing the motherboard,
because its not worth it.
i have cm10.1 installed with dorimanx kernel, and root is allowed for adb and apps.
i never used adb, so i dont know how to start my search.
i also have the problem that i dont know how to look for that thing,
because im not english.
it would be nice if you can give me a start,
or another way to access the internal storage.
i also thougt about accessing via recovery.
i think i can go into recovery, and by pressing volume and power keys,
i can naviagte to mount data.
but im not sure about the steps,
so if anyone have a dorimanx 7.xx kernel,
can you please write the steps down for me?
thank you.
Click to expand...
Click to collapse
if you can mount in recovery then mount everything in recovery,connect your device to PC and the open command prompt and navaigate to folder where you have set up android sdk.
now do the following
1) adb shell
2) now type ls -it'll list all folder and files.
3) now navigate to your sd-card (can't tell exact name for internal sd card) by typing cd <directory name>
4) you can list all files by using ls command.
5) Once you find the exact directory name of sd card and files to be recovered then type exit
6) now type adb pull /path/to/your/folder/filename.File will be saved in working directory...
i don't have s2,just helping you with some common adb stuffs.
btw you can use adb file managers which provides GUI.Like this one http://forum.xda-developers.com/showthread.php?t=1821601
adb
Connect the phone to system, Open terminal and do adb remount then adb shell.
Now do ls, you will be able to see all the folder and everything. Go to Sd-card folder and there you should have all your data.
There is and app ADBExplorer. I have never used this tool, but you can check it is GUI.
Thanks,
The ADBFileexplorer worked very well for me.
Just booted in recovery and started the explorer.jar in the adb folder.
Thank you for the tips.
This can be closed now

[Q] Trying to Restore Apps with Data (.bak) to cm 10.1

Hello;
This was my first time installing a Rom. I was fed up with my phone responding slowly and in time jams.
1-The first thing I did was install cwm recovery v6.0.2.7.
2-Then use the S3 tool kit available in xda to make a backup of all except system apps and internal storage data and it was stored in a .bak file. So that games and other apps keep their info as it is a hassle to start from the beginning.
3-Installed CM 10.1 nightly used in the instructions provided here.
All is okay up to here.
4-Tried to restore apps and app data through S3 tool kit but it won't display the data in the phone. I did enable the usb debugging on the cm10.1 (by pressing 7 times on the build name to enable the developers option and enabling usb debugging). I had the same problem when trying to do the backup in step 2, but it connected through the adb mode. This problem is that when ever I connect a device via usb windows installs the driver so every time I connect my phone windows installs the drivers.
5- When step 4 did not work I tried to restore using Holo Backup but no use no able to connect through to adb mode.
I can access the phone storage but I believe the appropriate drivers are not running when using the restore programs even though they are installed.
So the questions are:
1- Is there a way to fix the connection to be able to use S3 unified tool kit or if any one has dealt with the same problem?
2- Is there a way to restore the .bak file via cwm recovery?
3-For future use; An app or program that can be stored in the phone to avoid the use of a PC. The app or program would back-up contacts, sms text, apps and app data into the virtual sd or cloud to avoid deletion when "wipe data/ factory reset" after installing a rom.
I look forward to your replies.
Thank you.
What drivers do you have? Have you tried Universal Naked Driver? That's the only way I could get adb to work on mine when running CyanogenMod
wststreet said:
What drivers do you have? Have you tried Universal Naked Driver? That's the only way I could get adb to work on mine when running CyanogenMod
Click to expand...
Click to collapse
The image below shows the Drivers I currently have.
I used to have a lot more but a majority of them were copies of the same driver.
I had 2 other Samsung drivers but I also deleted them. According to an article that stated a fix to the problem is to uninstall all usb drivers except mouse and keyboard and reinstall the usb drivers of the device desired, but no success.
sub-80 said:
The image below shows the Drivers I currently have.
I used to have a lot more but a majority of them were copies of the same driver.
I had 2 other Samsung drivers but I also deleted them. According to an article that stated a fix to the problem is to uninstall all usb drivers except mouse and keyboard and reinstall the usb drivers of the device desired, but no success.
Click to expand...
Click to collapse
I tried to install the universal naked driver but no success. I followed the instruction went into the device manager and under the samsung android phone was the samsung android ADB interface which I uninstalled and checked the delete part. The pc requested to restart which I forgot to turn off the the internet which resulted in the driver being installed once it restarted. Tried a second and third time with no internet but when I uninstall and check the delete marker the pc does not ask to reboot. And if I try to update the driver with VND it notifies me that it is up to date.
Any solutions?
sub-80 said:
I tried to install the universal naked driver but no success. I followed the instruction went into the device manager and under the samsung android phone was the samsung android ADB interface which I uninstalled and checked the delete part. The pc requested to restart which I forgot to turn off the the internet which resulted in the driver being installed once it restarted. Tried a second and third time with no internet but when I uninstall and check the delete marker the pc does not ask to reboot. And if I try to update the driver with VND it notifies me that it is up to date.
Any solutions?
Click to expand...
Click to collapse
Tried ADB wifi but no success the pc says that there are no adb devices.
Also tried PDANet+ to install the drivers but software does not see the s3.
s there a way to restore the .bak file via cwm recovery
tried changing the file name by removing the .bak
jje
JJEgan said:
s there a way to restore the .bak file via cwm recovery
tried changing the file name by removing the .bak
jje
Click to expand...
Click to collapse
removed the .bak extension and placed it in the download folder of my virtual sd folder and pressed restore on cwm but nothing happened.
Could be because the backup is password protected?
Also tried to restore the file via titanium backup through the extract simple adb with and without the extension but only says analyzing file and remains that way for hours.

Screen Dead, Must Retrieve Data

My screen is absolutely dead, it was green and I could see a little bit, through the tint but the touch screen wasn't working. I should've used that time to backup all my stuff. Actually, I couldn't. but instead I tried to get it fixed. They said there was some "unsupported" error and it was because my phone was rooted. Didn't make sense to me because he said the screen came on and had that "unsupported" error.
Anyway I've tried the USB cable but I have a gesture password so it doesn't mount.
If I can open AirDroid, I'll even be able to see the screen on my PC, if someone knows a way to open an app. I am unauthorized on ADB though ...or maybe if there was a way to add an authorization key via adb push in CWM recovery, and then use [email protected] or adb to open airdroid!
I have booted to TWRP and mass storage should automatically start as I've heard but it didn't. I went to Download mode and I was able to flash Philz CWM and I tried to use screenshots of CWM online to get to mount USB storage but I couldn't. Please help me out!
I was able to get my dad's GS5 and I flashed Philz on it. I used it as a guide to navigate on my phone but the problem is that the mount USB storage option in Philz only mounts the micro SD card I have in the phone. Maybe if I remove it it will automatically mount sdcard0?
TWRP MTP doesn't work on my computer, so I will try another computer tomorrow. That might do the trick.
If you have access to Samsung smart dock for Note 2 you could be able access phone without working screen. All you need is usb mouse and hdmi cable and tv. With mouse attached normally screen is disabled because is no longer needed for touch input and that should allow for data retrieval. I think your phone has cover over usb connector and that may need to be removed for smart dock to work.
Sent from my SM-N910T using XDA Free mobile app

Unable to connect with adb

Hi
Just got my A3. I'm unable to connect with adb to restore my backup. I enabled Dev options and USB debugging and when plugged into USB I get P notification icon and USB debugging connected message in notification. However
adb devices
shows nothing is connected. I notice there is no pop up asking if I want to authorize this computer which is iirc normally what happens.
adb can see my blu g6 phone so that's working. When I connect the A3 as a storage device, with no USB debugging, I can transfer files ok, so USB is working. I have a fresh Android studio install which should have the right sdk. I tried
adb connect <ipaddress>
and got "no connection could be made because target machine actively refused it" I did not refuse, because nothing popped up.
Have rebooted both phone and PC (windows 7)
Any idea what's going on? Thanks
Sent from my G6 using Tapatalk
Follow up: okay I figured out I need to install adb driver because A3 shows up in yellow in device manager. But I can't find a driver that works. I googled xiaomi A3 adb driver and downloaded like five of them from different sites and none worked. When I point windows to the folder where I extracted the driver it says could not find driver for your device.
I'm going nuts. Can someone point to a working driver for Windows 7?
Sent from my G6 using Tapatalk
These always worked for me. If they are not automatically installed for the device, follow the instructions in the video.
https://forum.xda-developers.com/showthread.php?t=2588979
Thanks. I figured out where I went wrong.
Instead of using the "browser file on my computer" and point it to where the driver is, I have to choose "let me select from a list" then "all devices", then select the Android composite adb driver. At least this works on Windows 7.
---
So I restored my back up, I got the pop up to confirm restore my data, and it seemed to run through the restore and took a while, but nothing changed. None of my app data was restored. All apps are still in newly installed state.
It did restore the data in SD storage, so my download folder etc got restored, which I could've done just copying to and from my PC.
What I really want is all the app data restored so I don't have to log back into all the different services and do all the settings again.
I did the back up with
adb backup -all -apk -shared -f allbackup.ab
Shouldn't that have worked?
Sent from my G6 using Tapatalk
From what I remember adb restore does not install *.apk back. It only writes back system and data files. So if you wanna all the app data restored - reinstall all apps manually before and then do adb restore.
On Windows you can sort of semi-automate that process in command prompt:
for %f in (C:\<your pak folder location>\*.apk) do adb install "%f"
Make sure though apk don't have spaces in their names or adb will complain.
qwertysmerty said:
From what I remember adb restore does not install *.apk back. It only writes back system and data files. So if you wanna all the app data restored - reinstall all apps manually before and then do adb restore.
On Windows you can sort of semi-automate that process in command prompt:
for %f in (C:\<your pak folder location>\*.apk) do adb install "%f"
Make sure though apk don't have spaces in their names or adb will complain.
Click to expand...
Click to collapse
I looked at adb logcat and there were a bunch of errors. Looks like it did try to restore app data but failed. Google back up already installed the apks back (except for the ones I side loaded) so that wasn't the problem. It's the app data (settings, etc) that I was hoping to get back
Oh well I just spent an hour setting my apps up again. I hear Google has already deprecated adb backup. Android needs a good non root desktop back up solution, not the cloud backup where you're at the mercy of Google and the individual apps to decide what get backed up.

I can't transfer any files from py PC!

Hello!
I have recently bought this phone with installed custom ROM and I wanted to install another one. And then I downloaded the ROM and formatted the phone from TWRP and I just connected it to the PC and there was nothing.. I searched for hours I tried so many adb drivers, usb drivers, etc and I couldn't detect the phone in the ADB powershell nor transfer any files. The only progress I managed to do is side loading it.. The ADB detected it and then I tried adb push (the exact name of the file) /sdcard and after that (error: closed) appeared.. I think the main reason is because before I formatted the phone I didn't allow the usb debuging but apparently you can't allow it from the recovery... I don't have any type-c OTGs laying around.. How in the world am I supposed to transfer the ROM to my phone? Please help me! Thank you!
way2easy said:
Hello!
I have recently bought this phone with installed custom ROM and I wanted to install another one. And then I downloaded the ROM and formatted the phone from TWRP and I just connected it to the PC and there was nothing.. I searched for hours I tried so many adb drivers, usb drivers, etc and I couldn't detect the phone in the ADB powershell nor transfer any files. The only progress I managed to do is side loading it.. The ADB detected it and then I tried adb push (the exact name of the file) /sdcard and after that (error: closed) appeared.. I think the main reason is because before I formatted the phone I didn't allow the usb debuging but apparently you can't allow it from the recovery... I don't have any type-c OTGs laying around.. How in the world am I supposed to transfer the ROM to my phone? Please help me! Thank you!
Click to expand...
Click to collapse
Okey, I just managed to use adb push without side loading just in the twrp and I don't know how to delete the post so excuse me for the spam!
Heyyo, I'm the maintainer of official builds of TWRP for the LeEco Le Max 2.
Usually for TWRP it can sometimes mess up USB mode if the device is plugged into a PC before it fully boots to TWRP.
Windows for some reason messes up the driver install for MTP as well. Usually of this happened you will need to manually go into device manager and select update driver on it and manually select the driver to install like this:
https://photos.app.goo.gl/nRYfpAZ0i50GuM512

Categories

Resources