Related
I know everyone is busy so I will apologize in advance!!
I just read for hours and I found out how to push/pull apps via ADB but what I can't find out is "say I wanna switch to a new ROM" do I just put all my apps on my computer (using adb) then hit exit, flash my new rom then re-connect and put them back?
Thanks, Josh_Evo
Josh_Evo said:
I know everyone is busy so I will apologize in advance!!
I just read for hours and I found out how to push/pull apps via ADB but what I can't find out is "say I wanna switch to a new ROM" do I just put all my apps on my computer (using adb) then hit exit, flash my new rom then re-connect and put them back?
Thanks, Josh_Evo
Click to expand...
Click to collapse
Or, you can download Titanium back-up, have the app back everything up for you on you SD card, and then have it put everything back in one batch operation after you flash the new rom.
If what you want to do is practice your ADB skills, then go ahead. I only use ADB when I get stuck and I have no choice, so sorry if I can't help to answer your original question, but if what you want to do is get it done, you can definitely go the with Titanium. It backs up your apps with data, so all your settings, game saves, etc. will remain intact.
Nope. If you wana switch roms:
1. Backup apps using titanium backup.
2. In recovery, backup your current rom
3. Wipe factory/data, cache, and dalvik cache
4. Flash rom, reboot
5. Sign in...blah blah
6. Open titanium backup, press menu > batch > then run restore apps and data. Do NOT restore system settings.
teh roxxorz said:
Do NOT restore system settings.
Click to expand...
Click to collapse
Good call......that is an important bit of info.
rugedraw said:
Good call......that is an important bit of info.
Click to expand...
Click to collapse
Yea, seen too many people mess up because they do that...so trying to save the community, one user at a time.
rugedraw said:
Or, you can download Titanium back-up, have the app back everything up for you on you SD card, and then have it put everything back in one batch operation after you flash the new rom.
If what you want to do is practice your ADB skills, then go ahead. I only use ADB when I get stuck and I have no choice, so sorry if I can't help to answer your original question, but if what you want to do is get it done, you can definitely go the with Titanium. It backs up your apps with data, so all your settings, game saves, etc. will remain intact.
Click to expand...
Click to collapse
Yeah i do use Titanium, I just want to know how to do it using adb...because I didn't want to save everything by copying my sd to my computer, I wanna change sd cards. Just wondering if anyone could tell me how to do it using adb...
Thanks all
Josh_Evo said:
Yeah i do use Titanium, I just want to know how to do it using adb...because I didn't want to save everything by copying my sd to my computer, I wanna change sd cards. Just wondering if anyone could tell me how to do it using adb...
Thanks all
Click to expand...
Click to collapse
I don't think there is like a pull all command for the apps, you'd have to do it manually. The easiest wasy would be to copy your sdcard to your pc, then copy those files to the new sdcard, then place inside the phone.
teh roxxorz said:
I don't think there is like a pull all command for the apps, you'd have to do it manually. The easiest wasy would be to copy your sdcard to your pc, then copy those files to the new sdcard, then place inside the phone.
Click to expand...
Click to collapse
Pull apps off phone onto computer
Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
can't I just enter the above cmds and then exit out switch my sd card then re-connect to adb and,
Push apps back to phone from the computer
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Josh_Evo said:
Pull apps off phone onto computer
Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
can't I just enter the above cmds and then exit out switch my sd card then re-connect to adb and,
Push apps back to phone from the computer
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Click to expand...
Click to collapse
If those are the commands, then that should work. Only think is I personally don't know where the apps, well the data is held when you pull, so if you swap, I don't know what will happen, But that process would work. I strongly recommend copying it to your computer before you do, just in case.
teh roxxorz said:
If those are the commands, then that should work. Only think is I personally don't know where the apps, well the data is held when you pull, so if you swap, I don't know what will happen, But that process would work. I strongly recommend copying it to your computer before you do, just in case.
Click to expand...
Click to collapse
yeah i will, Thanks again!! It seems like it should work I guess I will find out
No problem, and let me know what happens.
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.
Ever since i installed Android 4.2, this whole emulated storage thing is a mess. I have some backups, and i am trying to restore from them in CWM touch. When i go to restore, it always says "cant open directory/cant find files" or something of the sort. I have verfieid that the files are in the 0 storage.
Its frustrating. Does anyone know of a way to restore from a cwm backup ? It would be much appreciated ! I have the latest CWM touch by the way.
Thanks !
Did you update your cwm recovery to one that supports the new 4.2 sdcard layout?
Sent from my Galaxy Nexus using Tapatalk 2
Search is your friend
saadkhan07 said:
Ever since i installed Android 4.2, this whole emulated storage thing is a mess. I have some backups, and i am trying to restore from them in CWM touch. When i go to restore, it always says "cant open directory/cant find files" or something of the sort. I have verfieid that the files are in the 0 storage.
Its frustrating. Does anyone know of a way to restore from a cwm backup ? It would be much appreciated ! I have the latest CWM touch by the way.
Thanks !
Click to expand...
Click to collapse
This is a problem with flashing 4.2. TWRP has a fix for the issue you are talking about, but right now the fix for you can be found in this post, or others like it. This is how I fixed my problem!
http://forum.xda-developers.com/showthread.php?t=1762846&page=256
ual4720 said:
I flashed this build and later tried to go back and do a restore on my CWM backup. When I attempted the restore it couldn't find any backups! I found the problem to be that it moves the sdcard contents to /data/media/0 then mounts /sdcard/ to /data/media/0. Clockwork mounts the folder /data/media and is searching for the backups in that directory. It fails to find it because it is not there. To fix this I made a backup of my sdcard by doing an adb pull then moved the clockwork folder in the /data/media/0 to /data/media/. so the commands that I executed are as follows:
adb shell <enter>
su <enter>
cp /data/media/0/clockworkmod /data/media/clockworkmod <enter> (you could also replace the cp command with mv. This will keep from creating a duplicate of your backups - suggested by tiny4579)
reboot recovery <enter>
go through the process of restoring a clockworkmod recovery and when it is finished reboot into your restored backup. If you explore the sdcard with root explorer or adb you will notice the 0 folder inside your sdcard.
I suggest you dont try this if you are unfamiliar with the command line. Has anyone else experienced this issue and have a better fix?
Click to expand...
Click to collapse
ual4720 said:
This is a problem with flashing 4.2. TWRP has a fix for the issue you are talking about, but right now the fix for you can be found in this post, or others like it. This is how I fixed my problem!
http://forum.xda-developers.com/showthread.php?t=1762846&page=256
Click to expand...
Click to collapse
BUT if TWRP is installed....can i restore from a CWM backup ???
saadkhan07 said:
BUT if TWRP is installed....can i restore from a CWM backup ???
Click to expand...
Click to collapse
No
Sent from my Galaxy Nexus using Tapatalk 2
If there is way to point CWM to the proper directory, is there a way ? Can i restore via ADB ?
I have all the CWM files to restore from, just cant due to the location of the files i guess. Does CWM default to the 0 ?
re
saadkhan07 said:
If there is way to point CWM to the proper directory, is there a way ? Can i restore via ADB ?
I have all the CWM files to restore from, just cant due to the location of the files i guess. Does CWM default to the 0 ?
Click to expand...
Click to collapse
I actually ended up resetting the whole device, and actually was able to restore by using the MD5 mismatch fix. I have reinstalled CWM and everything.
i am currently running cm10.0.0 and completely satisfied with it. just for curiosity reasons i would love to flash 4.2 to see how it feels. my problem now is, can i simply return to cm (4.1) by reflashing my cwm backup?
as with 4.2 the file-system was changed (sdcard0), is that pretty easy with cwm recovery, or do i have to invest an hour of work with adb pulls and pushes?
thanks for your experiences!
saadkhan07 said:
I actually ended up resetting the whole device, and actually was able to restore by using the MD5 mismatch fix. I have reinstalled CWM and everything.
Click to expand...
Click to collapse
Same with me... :/ it was annoying... Just because of that new sdcard layout on 4.2
Hi, guys. I have stock rom, unlocked bootloader, rooted and TWRP recovery. Unforunately, I cannot set Titanium Backup to use my external SD card. It said It's not writeble. Rom version is 1.54. I've try to format the card few times, but no luck. No problem for camera app to save pictures there, only TB have this issue. Any suggestions?
Manafa said:
Hi, guys. I have stock rom, unlocked bootloader, rooted and TWRP recovery. Unforunately, I cannot set Titanium Backup to use my external SD card. It said It's not writeble. Rom version is 1.54. I've try to format the card few times, but no luck. No problem for camera app to save pictures there, only TB have this issue. Any suggestions?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2702765&page=3
3rd post down flash that and it will fix it
Thanks a lot, I will try it. Where is the problem with this? In HTC rom/kernel or TB itself?
Manafa said:
Thanks a lot, I will try it. Where is the problem with this? In HTC rom/kernel or TB itself?
Click to expand...
Click to collapse
read write ,if that dont work get this https://play.google.com/store/apps/details?id=com.viper.tbrestorefixerfree&hl=en_GB
First solution didn't fix it. Flashed file in recovery, rebooted and still got message "Folder not writeble".
Manafa said:
First solution didn't fix it. Flashed file in recovery, rebooted and still got message "Folder not writeble".
Click to expand...
Click to collapse
http://forum.xda-developers.com/sho...feed|utmcct=FaceBook&__utmv=-&__utmk=30131004
This should solve your problem.
Try this.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my SM-N900T using Tapatalk
pachi72 said:
Try this.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my SM-N900T using Tapatalk
Click to expand...
Click to collapse
You will also need system write protection off to keep that, so would recommed via that recovery.
You can also push the file manually
adb shell
mount /system
push platform.xml /system/etc/permissions/
Doesn't work. I tried to change Platform.xml, but after reboot it's going back to previous state.
Do it from recovery.
Sdfix app worked for me
Manafa said:
Hi, guys. I have stock rom, unlocked bootloader, rooted and TWRP recovery. Unforunately, I cannot set Titanium Backup to use my external SD card. It said It's not writeble. Rom version is 1.54. I've try to format the card few times, but no luck. No problem for camera app to save pictures there, only TB have this issue. Any suggestions?
Click to expand...
Click to collapse
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
HTC does not allow writing to the /system partition unless from recovery. To disable this, flash a kernel w/ the protection disabled http://forum.xda-developers.com/showthread.php?t=2705613 Or you can manually install this module: http://forum.xda-developers.com/showthread.php?t=2701816 After installing either of these, you can use any app posted above to gain write access to external sd.
(FYI the writing to sd card was disabled by google in recent versions of kitkat for all devices)
jaythenut said:
http://forum.xda-developers.com/showthread.php?t=2702765&page=3
3rd post down flash that and it will fix it
Click to expand...
Click to collapse
THat link there gives me the follwoing message:
> vBulletin Message
Invalid Attachment specified. This can happen for a variety of reasons-- most likely because the thread or post you are trying to view has been moved or deleted. Please return to the forum home and browse for another similiar post.
Click to expand...
Click to collapse
I rooted my One M8 from T-Mobile. How can I make it so all apps can write to all of SD card?
---------- Post added at 10:24 AM ---------- Previous post was at 10:23 AM ----------
pachi72 said:
Try this.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my SM-N900T using Tapatalk
Click to expand...
Click to collapse
This didn't work on my T-Mobile rooted One M8
---------- Post added at 10:42 AM ---------- Previous post was at 10:24 AM ----------
JUANJOSE1974 said:
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
Click to expand...
Click to collapse
SDFIX app doesn't work for my rooted One M8 from T-Mobile.
JUANJOSE1974 said:
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
Click to expand...
Click to collapse
Tried all that, but even tho titanium reckons that sdcard2 is writable (don't get the red no write message) as soon as I try to back something up I get a not enough storage space error message (and yes I have enough space, over 11GB on external card.)
Titanium Backup write on ext sdcard
NZ-Simplicity said:
Tried all that, but even tho titanium reckons that sdcard2 is writable (don't get the red no write message) as soon as I try to back something up I get a not enough storage space error message (and yes I have enough space, over 11GB on external card.)
Click to expand...
Click to collapse
Hi there.
I also tried your's and many other steps.
In the end it was a simple thing for me.
Went: >Settings>Storage>standard storage>choose "sdcard"
That's it.
After a restart, ii was not even necessary to choose sdcard in TB.
Changed to it itself.
JUANJOSE1974 said:
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
Click to expand...
Click to collapse
This worked for me Thanks.
Sent from my SCH-I545 using Tapatalk
Another fix for anyone else having trouble.
Nothing above worked for me. It was frustrating when all other relevant apps could write to the extsd card including file explorer programs.
Anyway loaded Xsense (Xposed) module which has a setting "RW to extSD card", ticked it, rebooted and bingo. Backing up to extSD card as I'm typing this.
JUANJOSE1974 said:
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
Click to expand...
Click to collapse
This worked for me. Thanks Juanjose1974
JUANJOSE1974 said:
I downloaded SDFIX from the play store, reboot, when back to titanium backup, hit menu, general, go down to backup location, press the back button until you see mnt section, click on it, you'll see external sd, click on it, create folder & boila!! Hope it works for you
Click to expand...
Click to collapse
Worked for me as well... Thx
Not working for me
tried the same , by sdfix but no use, sdfix is telling its already fixed, now ok, but TB is still making backups in internal storage, i tried by selecting sd card, it tells cannot select.
i m on lollipop , 5.0.1, rooted, s-on
Hi all,
I have a rooted nozomi device with nAOSP 5.1 rom and TWRP 2.8.7.0. Everything worked fine until today morning, when i realised that Internal sdcard was unmounted. I checked ES File Explorer (with root access granted) and it says scared empty and then switches to sdcard unmounted message. First I thought it was something like a soft bug, so made soft reboot. Then I made full reboot of the system and still had the same issue.
Then I rebooted into recovery and checked the partitions - internal sdcard was ticked as mounted. Checked the partition details and everything seemed fine - formatted as vfat and size displayed.
Tried untick and tick the mount option and reboot - not resolved.
Tried to repair partition and reboot - not resolved
So I decided to refer to xda to find some advise, before formatting the sdcard completely.
Do you have any ideas on the matter of this issue and how to resolve it?
Thanks in advance
GuliW said:
Hi all,
I have a rooted nozomi device with nAOSP 5.1 rom and TWRP 2.8.7.0. Everything worked fine until today morning,
Do you have any ideas on the matter of this issue and how to resolve it?
Thanks in advance
Click to expand...
Click to collapse
Try this method http://forum.xda-developers.com/showthread.php?p=62457723
darknessmc said:
Try this method http://forum.xda-developers.com/showthread.php?p=62457723
Click to expand...
Click to collapse
Thank you darknessmc
I followed the steps in other post, but result as follows:
chown -R 1023.1023 /sdcard -operation not permitted.
chmod -R 770 /sdcard completed
After reboot into system - issue remained. Maybe I did something wrong? I just used root directory and pressed Select in Terminal of TWRP.
Repeat it again like they said. I didn't try it.
darknessmc said:
Repeat it again like they said. I didn't try it.
Click to expand...
Click to collapse
I tried these commands several times with no changes - still no permission for chown -R 1023.1023. Reading the referral thread further it seems that problem is cause by stericson BusyBox app update I installed it long time ago just for Titanium backup to work. Yesterday I uninstalled it and cleaned Dalvik Cache in Recovery. Problem still not resolved.
I wonder if there are any other steps I could perform, before flashing the Rom again?
P.S. Now I don't see any point in formatting the SD card partition, since it is seen in Recovery and all files appear intact there.
Solved for me...after I did clean flash of another ROM ..