internal storage on pc issue - One (M8) Q&A, Help & Troubleshooting

Ok. I have a dilemma. My phones charging port is going bad, so I tried to fix it myself but screwed up the lcd. Now phone wont show anything on screen except green lines and touchscreen is not responsive. Most repair stores say they can't fix HTC phones OR they are too expensive to even be worth it to fix. I'm going to by a new one.
I need to backup my internal storage but I'm on Marshmallow Sense, which means I have to set the phone to file storage or transfer in the notification tray because it is defaulted to charge only when plugged into PC (thanks Google for adding that feature), I liked it when it showed my files on PC right when I plugged it in..
Since I can't see anything on my screen and it's unresponsive, I can't change it file transfer.
Is there any other way to set it to file transfer? Maybe ADB or any other way to back up internal storage?

MsEvyLynch said:
Ok. I have a dilemma. My phones charging port is going bad, so I tried to fix it myself but screwed up the lcd. Now phone wont show anything on screen except green lines and touchscreen is not responsive. Most repair stores say they can't fix HTC phones OR they are too expensive to even be worth it to fix. I'm going to by a new one.
I need to backup my internal storage but I'm on Marshmallow Sense, which means I have to set the phone to file storage or transfer in the notification tray because it is defaulted to charge only when plugged into PC (thanks Google for adding that feature), I liked it when it showed my files on PC right when I plugged it in..
Since I can't see anything on my screen and it's unresponsive, I can't change it file transfer.
Is there any other way to set it to file transfer? Maybe ADB or any other way to back up internal storage?
Click to expand...
Click to collapse
Yes, you can use ADB.
To backup, use the command adb backup -apk -shared -all -f C:\Users\NAME\backup.ab to backup. Replace "NAME" with your Windows username.
To restore, use the command adb restore C:\Users\NAME\backup.ab replacing "NAME" again, of course.
This will backup and restore all of your app data.

xunholyx said:
Yes, you can use ADB.
To backup, use the command adb backup -apk -shared -all -f C:\Users\NAME\backup.ab to backup. Replace "NAME" with your Windows username.
To restore, use the command adb restore C:\Users\NAME\backup.ab replacing "NAME" again, of course.
This will backup and restore all of your app data.
Click to expand...
Click to collapse
The command you typed, what is it backing up? Is it individual files or can I back up the whole internal sd as one.

You have TWRP ? Try this
Adb reboot recovery
It shows as default all memory when booted in there. At least here it does

MsEvyLynch said:
The command you typed, what is it backing up? Is it individual files or can I back up the whole internal sd as one.
Click to expand...
Click to collapse
It will backup all of your apps and app data.

Related

Any way to transfer game save data to Nexus without rooting?

I have a bunch of games from my old Thunderbolt that I had in progress, and it'd be nice to continue on instead of having to start all over. Previously, I had used MyBackupPro to backup save data on my Thunderbolt, and I had heard that MyBackupPro doesn't require root to backup and restore save data. But when I try to use it to restore the save data on my Nexus, it won't do it. It'll restore some APKs I had backed up, but not actual data.
Any other options that don't require rooting?
Why not just root it is easy and mybackup will work easily then
Sent by me, for me and i love you
Well, because I already have my phone all set up, and I don't want to have to redo the entire process again, considering getting it rooted will end up wiping the phone. That, and, the only real reason I'd want to root would be to back up data. I'm less interested in rooting my Nexus, than I was with my Thunderbolt; with the TB, I really wanted to ditch Sense, and get rid of bloat, but neither of those are a factor with the Nexus, so...
Any chance there will ever be a root method for the Nexus that doesn't wipe the phone? I waited a while to root my Thunderbolt, and by the time I did, Revolutionary was available, which didn't wipe anything.
mrw1215 said:
I have a bunch of games from my old Thunderbolt that I had in progress, and it'd be nice to continue on instead of having to start all over. Previously, I had used MyBackupPro to backup save data on my Thunderbolt, and I had heard that MyBackupPro doesn't require root to backup and restore save data. But when I try to use it to restore the save data on my Nexus, it won't do it. It'll restore some APKs I had backed up, but not actual data.
Any other options that don't require rooting?
Click to expand...
Click to collapse
Have a look: https://plus.google.com/115995639636688350464/posts/b9ejZegfw8p
krohnjw said:
Have a look: [/QUOTE]
Thanks, I'll keep that in mind, though I have no idea how to use ADB at all.
Click to expand...
Click to collapse
Would anybody be able to post more thorough instructions that expand upon the two lines of code in the above link? Like I said, I have zero experience with using ADB, so I don't know how to even get that far.
I *think* I have the Android SDK already installed on my computer (as this past semester, I took a class on Android app development), but I don't know what to do with that.
As far as the link above goes, how does that work? Would I plug in both phones at the same time? Would I plug in the Thunderbolt first, do all the "backups" for the games, unplug the Thunderbolt, plug in the Nexus, and do all the "restores"? Or what?
He said you can do adb backup -all and adb restore -all.
But yes, steps:
1) connect TB, adb backup -all
2) connect GN, adb restore -all
I'm bored enough to create a .bat script for you if necessary. I can't test it though, as I'm at work.
But what would "backup -all"/ "restore -all" mean? I just want the save data from certain games backed up and restored, I don't want every single file, APK, and whatnot, transferred over.
Anyway, I plugged in my Thunderbolt earlier, and entered "adb devices" to make sure it saw the device (it did), but when I ran the backup code named in the above link (as World of Goo is one of the games I want to transfer progress in, so I'd figure I could test it out that way), it gave me some error about the backup not being found.
Okay, so, I'm trying again to do this ADB thing, and I'm still not getting it. Even when I plug in my Thunderbolt, and do adb backup -all, the response I get is "adb: unable to open file ./backup.ab". What does that mean? Are there ADB commands I'm supposed to run before attempting to backup/ restore, or can I just plug in, open a command prompt, and type "adb backup -all", or, preferably, whatever the line is to backup specific game save data?

[Q] how to backup /sdcard ?

PLEASE READ THE ENTIRE POST BEFORE REPLYING. IF YOU DON'T I'LL JUST REPORT YOU FOR SPAM.
just spent an hour trying to find a way to do this and no such luck. i've read that clockworkmod recovery, when doing a factory wipe does not wipe the /sdcard but i still would like to be able to make a backup.
I've tried simply doing a copy/paste but windows refuses to even attempt it. even trying to do one folder at a time gives me issues. i've resorted to using airdroid for all my file transferring needs.
But using airdroid, even trying to do a backup, it eventually goes so slow that it fails. I have 4Gb of data i want to backup, and eventually it just stops transferring. i could do it one file at a time but honestly i don't feel like spending hours.
so does anyone know of any program, or possible easy way, that won't take days, to backup the /sdcard
You could always use cloud storage. Sugarsync gives you 5GB for free. Also, you could try running an FTP server app on your phone and then connect to it from your computer. I've used FTPServer in the past and it has been pretty quick to transfer lots of data.(https://market.android.com/details?...t#?t=W251bGwsMSwxLDEsImx1dGV5LkZUUFNlcnZlciJd)
yeah, i've thought of that, my internet at home isn't that great though. 6Mbps down, 1Mbps up. so cloud storage hasn't worked that great for me in the past, but maybe i'll give that ftpserver a shot.
BTW, i would like absolute confirmation that if i choose Wipe data/factory reset in CWMR Touch 5.504 beta 3 it won't erase any of the data on /sdcard.
as i've read, any CWMR won't erase the sdcard partition, but doing that through ICS, will.
Isn't CWMR 5.5.0.4 the non-touch version? I was using 5.5.0.4 and I can confirm that "Wipe Data/Factory Reset" does NOT erase anything on /sdcard, but I haven't actually done it in any other versions.
Hmm... what about using terminal/adb shell to build a .tar(.gz) of /sdcard and just copy that over to your PC?
codesplice said:
Hmm... what about using terminal/adb shell to build a .tar(.gz) of /sdcard and just copy that over to your PC?
Click to expand...
Click to collapse
sounds like a good idea if possible. correct me if i'm wrong, but wouldn't that allow you to use adb to restore all of your sd contents as well?
palisaide said:
Isn't CWMR 5.5.0.4 the non-touch version? I was using 5.5.0.4 and I can confirm that "Wipe Data/Factory Reset" does NOT erase anything on /sdcard, but I haven't actually done it in any other versions.
Click to expand...
Click to collapse
idk, mine has touch. not sure when/how i updated to it though. good to know that it doesn't though. thank you.
rsync backup for Android
http://forum.xda-developers.com/showthread.php?t=871307
Since you're on Windows, you would need to setup an SSH server. People in that thread have done this. A Linux desktop would make things a tad easier though.
This is how I backup the microSD on all my phones.
neok44 said:
sounds like a good idea if possible. correct me if i'm wrong, but wouldn't that allow you to use adb to restore all of your sd contents as well?
Click to expand...
Click to collapse
I believe so. You'd of course have to find some other folder on your internal storage (not /sdcard) to store the tarball while it's being created.
Or heck, adb should be able to do it all for you:
Code:
adb backup -shared -noapk -nosystem
*should* (according to adb help output) backup your /sdcard to "backup.ab" in the current directory
Code:
adb restore backup.ab
*should* then restore it.
Also, checkout "adb backup"
http://forum.xda-developers.com/showthread.php?t=1420351
Allows you to set a flag to include shared content (the microSD). You could probably get it to backup just shared content.
so i've gone through my whole sd card trying to figure out exactly how much data really needs to be backed up, and it's not much. biggest thing ist he 1.5GB CWM backup. everything else is pretty tiny.
so i'm thinking of giving the cloud a try.
are there any that anyone can recommend? I'm hoping for one that i'll be able to choose what folders to backup and have it automatically do it at a time that i set.
neok44 said:
so i've gone through my whole sd card trying to figure out exactly how much data really needs to be backed up, and it's not much. biggest thing ist he 1.5GB CWM backup. everything else is pretty tiny.
so i'm thinking of giving the cloud a try.
are there any that anyone can recommend? I'm hoping for one that i'll be able to choose what folders to backup and have it automatically do it at a time that i set.
Click to expand...
Click to collapse
I like dropbox + the DropSync app - best two-way cloud sync I've found yet.
Assuming you can get an MTP connection with your pc then try copying across the sdcard folders 1 at a time to back them up. First time I tried to back up the entire contents in a single go it seemed like it was stalled but it was actually just trying to work out how long it would take before starting and probably would have succeeded if left long enough. Copying the android folder and sometimes stall a copy so do that last.
Alternatively if you dont want to use cloud storage (which would take quite some time depending on upload speeds) you could try the backup option in my ToolKit which uses the latest version of adb and will give you an option to include internal storage in the backup file. Just make sure to check the backup file size after it completes as that function is a bit buggy in adb and has been known not to restore everything such as pictures and music so copy across what you can before starting.
Mark.
Thanks to both of you. I was able to do files one at a time and get them over. and luckily nothing was that big, except for the CWM backups. freaking 1.5GB, that alone is the reason why i wish i had a 32GB phone.
good to know that the toolkit has that option. i'll be sure to use that if i ever need to do a full backup in a hurry.
The dropbox dropsync solution sounds interesting and i'm gonna give that a try. basically i'm just trying to make sure my backup files from apps that don't use cloud syncing will be secure in case something ever goes wrong. with having only 13Gb in the phone i'm keeping most of my big stuff like movies in a 32gb microsd that i'm connecting with an OTG cable.
Although I don't think the tone of the first line of your OP is conducive to soliciting help, I'll thought in my two cents anyway.
The contents of your sdcard is located in /data/media. If you connect your phone to your PC, and open a command prompt in the same directory as your ADB.exe file, the following command will copy everything from your sdcard to your PC in a folder called sdcard_backup:
adb pull /data/media /sdcard_backup
Although not speedy by any means, I've successfully backed up over 8GB this way.

[Q] adb backup sizes?

Hi,
I'm just trying to backup my HOX to do a post-JB factory reset. I'm a bit concerned about the size of backup files I'm getting from adb - they seem very small!
adb backup -apk -all -nosystem -f backup.ab
for example, gives a backup.ab file of 253Mb. Can that be right? I understood those flags would include all non-system apps (not on the phone storage), not just their settings, and I'd have expected a lot more than that. Storage in Settings tells me I'm using 6.xxGb of "app storage" and about 4Gb of the 25Gb phone storage.
I know actual figures depend on personal usage, I just wanted to know whether people thought those seemed like correct ballpark figures.
adb would seem to be my only option real option since I don't want to root until I'm out of warranty.
Thanks,
Allan
That's only the system partition and it sounds about right.
To fully backup your phone you would want system, data, boot, and sdcard (not usually done as it's not erased for most things).
(Easiest way I know is to a backup like that using CWM or TWRP recoveries)
Thanks, that's reassuring that it doesn't seem anything's wrong with the backup.
I'd really rather not root to use any of the more powerful backup solutions but I recognise that means I'm more limited with what I can do.
I think I'll rebackup with adv to cover the last few days and then just go for it.
Thanks again!

[Q] how to pull backup data with adb

hey guys
I'm completely desperate. Here's what happened the last two days:
Yesterday my Fairphone suddenly became very slowly and then wouldn't boot no more. Since then every time I try to start my phone, I get the message "process system doesn't react" or something like that. The only thing thats working is the recovery mode.
Today I wanted to make a complete backup so that I can make a hard reset afterwards. But then I had to realize, that the recovery mode isn't able (or I'm not able to see how) to make a backup on an external sd card but only on the internal storage (which is also called sd card which confused me about an hour).
The problem now is that I have a backup but I can't get it on my computer or on my external sd card and so it will be deleted too if I make a hard reset.
I searched the internet for hours and found out, that it is possible to somehow remote control the phone via adb. I read that the phone has to be in "usb debugging mode". I can just put my phone into adb sideload mode or however its called by choosing "update with adb" in the recovery menu.
Is this the reason why my "adb pull" command isn't working? It just says "error: closed". Or is it because I haven't wrote right the path of the backup file? (I used: /mnt/sdcard/userdata_20130801_134656.backup)
Please help me! I have tried so much already, my brain is sizzling:silly:
I'm working on a Mac and have installed sdk.
Thanks in advance!!!
------------------------------------------------------------------------------------------------------------------------------------------------------------
EDIT:
Just to close this topic and maybe help other people with the same issue:
I finally managed to pull the /data folder using adb. What I didn't know was that the backup file (and all pictures, videos, music and so on too) is stored on the internal sd card which isn't affected by the factory reset in the recovery menu. What I also found out was that the backup file (that I had created during the "bootloop" or whatever it was) was corrupted. So the backup logically broke my FP again after I restored from it.
So the solution, as mentioned above, was to pull the /data folder which contains all important user data such as wifi passwords, contacts, messages and so on
I hope it helps
peace
SC

xiaomi mi a2 lite how to take full backup with TWRP or any other method

hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
I don't have TWRP so I backup my data using Migrate.
owais16 said:
hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
Click to expand...
Click to collapse
Google back-up is integrated on the phone and does a great job.
Stores app list + app data to be restored on a later date.
Sync contacts, calling lists and messages in your cloud.
Photos are getting stored in the cloud also, you just need to make sure you selected the right settings in the Photos app.
I have a paid subscription to Google for just 10 euros per month and I have 60gb of storage on their cloud, more than I need, and all the data from the phone is going there. If for some reason I change even brands, my data will migrate to the new device without any worries.
Also, with TWRP is pretty damn straight forward. Get TWRP, click back-up, select storage for the back-up and wait. You can select what partitions you want to back-up and that's it. But note that, this back-up is only for your device and that's about it. Also installing TWRP tampers with your system and may affect OTAs.
I use a combination of titanium backup and rsync for off-device backup of apps and data. Very custom. It's not complete but it's close enough for me. Takes about an hour to put everything back when I break the phone.
Because of the encryption, you can't do a 'nandroid' (raw) backup of the data partition and restore it later. You'll need some extra partitions for the encryption keys, and that's assuming there isn't an on-SoC flash chip involved.
I suspect it would be feasible to just tarball the decrypted data partition and restore that afterwards, though that would be a bit non-trivial to restore.
Complete RAW Storage Backup/Restore using TWRP & ADB
EDIT: Apologies, confirmed as per @a1291762 above that it complains about encryption after restoring the backup image, even if encryption was turned off before backing up.
You can do a raw dump of the entire storage, but the output file will be the total size of your storage (e.g. 32GB - which you could zip on your PC to save space).
You can also then restore that raw image back to the phone. I've confirmed this works with my older Redmi 2. Haven't yet confirmed the restore process on my Mi A2 Lite, but it does back up fine.
Connect phone to PC with USB and reboot to bootloader
Boot into TWRP using "fastboot boot [twrp-xxxx.img]" (e.g. "fastboot boot twrp-3.3.1-dees_troy-daisy.img")
Confirm phone is available in recovery mode using "adb devices" command (it'll show serial # and "recovery")
[To Back Up] Type in "adb pull /dev/block/mmcblk0 backup.img"
[To Restore] Type in "adb push backup.img /dev/block/mmcblk0"
Reboot to System from TWRP menu
I suggest running your CMD window (or Minimal ADB and Fastboot) as Admin to avoid write issues to that folder.
The backup image (backup.img) can be opened/extracted with 7zip, as well as some contained partition images.

Categories

Resources