[Q] TWRP Nandroid Backup/Lollipop Issue... - One (M7) Q&A, Help & Troubleshooting

I have a T-Mobile HTC M7 converted to GPE, recently flashed to Lollipop from KK 4.4.4. I use Tasker and OpenRecoveryScript to automate Nandroid backups through TWRP, then use FolderSync to upload said backup to my server over WiFi. My method worked perfectly until I flashed to Lollipop.
Since flashing to Lollipop, whether through Tasker or manually, I get an error in FolderSync saying the Nandroid files can't be read or copied. If I use TWRP's file manager, I can view the Nandroid folders/files, but those same files are not viewable using ES File Explorer in Lollipop. When I navigate to TWRP\BACKUPS\{Serial Number} folder in ES File Explorer, the {Serial Number} folder (where the TWRP backups are) is listed as a 0k(zero) file that can't be read or copied. When I try to create a new folder (in the BACKUPS folder) using ES File Explorer I get an error saying the operation failed.
Just this morning I restored a Nandroid backup using TWRP, and now in ES File Explorer my entire SDcard folder is blank (not true, as all my apps still function), but in TWRP file manager the SDcard folder is fine. At first I thought the problem was with ES File Explorer, but I tried a few different file explorers with the same result (FX File Explorer tells me 'Access was Denied' when trying to view the sdcard folder. ) All file managers I've tried have root access.
I thought Lollipop fixed the sdcard problems from KK, but this is a whole new one for me. Is there an issue with Lollipop not being able to read files that are written through recovery/TWRP? Any help would be greatly appreciated.

lords8n said:
I have a T-Mobile HTC M7 converted to GPE, recently flashed to Lollipop from KK 4.4.4. I use Tasker and OpenRecoveryScript to automate Nandroid backups through TWRP, then use FolderSync to upload said backup to my server over WiFi. My method worked perfectly until I flashed to Lollipop.
Since flashing to Lollipop, whether through Tasker or manually, I get an error in FolderSync saying the Nandroid files can't be read or copied. If I use TWRP's file manager, I can view the Nandroid folders/files, but those same files are not viewable using ES File Explorer in Lollipop. When I navigate to TWRP\BACKUPS\{Serial Number} folder in ES File Explorer, the {Serial Number} folder (where the TWRP backups are) is listed as a 0k(zero) file that can't be read or copied. When I try to create a new folder (in the BACKUPS folder) using ES File Explorer I get an error saying the operation failed.
Just this morning I restored a Nandroid backup using TWRP, and now in ES File Explorer my entire SDcard folder is blank (not true, as all my apps still function), but in TWRP file manager the SDcard folder is fine. At first I thought the problem was with ES File Explorer, but I tried a few different file explorers with the same result (FX File Explorer tells me 'Access was Denied' when trying to view the sdcard folder. ) All file managers I've tried have root access.
I thought Lollipop fixed the sdcard problems from KK, but this is a whole new one for me. Is there an issue with Lollipop not being able to read files that are written through recovery/TWRP? Any help would be greatly appreciated.
Click to expand...
Click to collapse
I'm still looking forward to automating my backups and syncing them to my server, but I had a similar problem on my OnePlus One today - the TWRP folder was marked as being a zero byte FILE instead of being a folder. Using Solid Explorer for file management on my devices, and the OPO is running a Lollipop ROM as well. Never saw this on KK ROM or on my Samsung Tablet (KK as well)
So - I'd say it's a good observation that this is likely to be ROM related, not device.
BTW: Would you mind telling me how you automated nandroid and syncing?

lords8n said:
I have a T-Mobile HTC M7 converted to GPE, recently flashed to Lollipop from KK 4.4.4. I use Tasker and OpenRecoveryScript to automate Nandroid backups through TWRP, then use FolderSync to upload said backup to my server over WiFi. My method worked perfectly until I flashed to Lollipop.
Since flashing to Lollipop, whether through Tasker or manually, I get an error in FolderSync saying the Nandroid files can't be read or copied. If I use TWRP's file manager, I can view the Nandroid folders/files, but those same files are not viewable using ES File Explorer in Lollipop. When I navigate to TWRP\BACKUPS\{Serial Number} folder in ES File Explorer, the {Serial Number} folder (where the TWRP backups are) is listed as a 0k(zero) file that can't be read or copied. When I try to create a new folder (in the BACKUPS folder) using ES File Explorer I get an error saying the operation failed.
Just this morning I restored a Nandroid backup using TWRP, and now in ES File Explorer my entire SDcard folder is blank (not true, as all my apps still function), but in TWRP file manager the SDcard folder is fine. At first I thought the problem was with ES File Explorer, but I tried a few different file explorers with the same result (FX File Explorer tells me 'Access was Denied' when trying to view the sdcard folder. ) All file managers I've tried have root access.
I thought Lollipop fixed the sdcard problems from KK, but this is a whole new one for me. Is there an issue with Lollipop not being able to read files that are written through recovery/TWRP? Any help would be greatly appreciated.
Click to expand...
Click to collapse
husky69 said:
I'm still looking forward to automating my backups and syncing them to my server, but I had a similar problem on my OnePlus One today - the TWRP folder was marked as being a zero byte FILE instead of being a folder. Using Solid Explorer for file management on my devices, and the OPO is running a Lollipop ROM as well. Never saw this on KK ROM or on my Samsung Tablet (KK as well)
So - I'd say it's a good observation that this is likely to be ROM related, not device.
BTW: Would you mind telling me how you automated nandroid and syncing?
Click to expand...
Click to collapse
FAQ
Google Play Edition 5.0.1
SdCard
Q.)
The sdcard not being visible via PC is annoying.
Is there any fix for this yet?
A.)
Yes, here is a work-around
Install Terminal Emulator then type:
Code:
su
restorecon -FR /data/media/0
and sdfix in the play store should do it

husky69 said:
I'm still looking forward to automating my backups and syncing them to my server, but I had a similar problem on my OnePlus One today - the TWRP folder was marked as being a zero byte FILE instead of being a folder. Using Solid Explorer for file management on my devices, and the OPO is running a Lollipop ROM as well. Never saw this on KK ROM or on my Samsung Tablet (KK as well)
So - I'd say it's a good observation that this is likely to be ROM related, not device.
BTW: Would you mind telling me how you automated nandroid and syncing?
Click to expand...
Click to collapse
The issue definitely seems to be related to Lollipop. I didn't have the problem running KK, either. From all the research I've done it seems to be related to Lollipop looking for the sdcard in data/media/0 while KK and TWRP point to storage/emulated/0. The terminal command restorecon -FR /data/media/0 fixed it for me.
As for the automated Nandroid and sync, I use a combination of Tasker, OpenRecoveryScript, and FolderSync on the Android side and a few .bat scripts on the server side.
Tasker deletes the previous backup, copies the OpenRecoveryScript to the proper folder, sets a variable to show backup has started, then reboots into recovery where TWRP then performs the Nandroid and reboots. On reboot Tasker checks that the Nandroid folder exists, triggers a notification saying same, then triggers FolderSync to sync to my server. I only keep one backup on my phone and 2 on my server. I set Foldersync to sync deletions which deletes the previous backup on my server, but I also have my server set to copy the Nandroid to a separate directory, so I always have 2 backups if necessary. I use a script on my server that checks for the newest Nandroid, then copies it to separate directory before deleting the oldest one. When I wake up in the morning I can see Tasker notification that Nandroid file exists and FolderSync notification of successful sync. I also have Tasker set to trigger a notification if Nandroid fails, and Foldersync will also notify if an error occurred during sync. I use a Tasker profile to trigger all of this at 3am but I also have a shortcut that allows me to perform it manually whenever I want, with 1 click.
Note that this method requires the paid version of FolderSync for Tasker integration and is a little involved, but I've tried other methods (Onandroid, etc...), and this one is the most reliable. I know I can count on Tasker and TWRP to do their jobs, no third party necessary. The only redundancy variable I haven't taken into consideration is if the Nandroid backup is corrupt, but TWRP seems pretty reliable in that dept and that hasn't happened yet...
If you're interested, I'll send you the corresponding Tasker profiles and tasks.

lords8n said:
If you're interested, I'll send you the corresponding Tasker profiles and tasks.
Click to expand...
Click to collapse
I am interested

husky69 said:
I am interested
Click to expand...
Click to collapse
Sorry for the delay, been busy with holiday stuff. Here are the Tasker/Nandroid files. Extract the .prf files to /Tasker/profiles and the .tsk files to /Tasker/tasks, then import each into Tasker. You will need to edit (in Tasker) Nandroid_Backup.tsk.xml to reflect your TWRP Nandroid backup folder, and openrecoveryscript (in txt editor) to add/remove backup options if necessary.

Related

[Q] Using Dropbox and TitaniumBackup on Captivate

TitaniumBackup app seems to be Dropbox aware in that it has a button to 'Sync to Dropbox now!' But I am having a terrible time making them work together.
I had a TitaniumBackup folder in the phone from when made before flashing Cog 4.3. I just did another TitaniumBackup to capture all the apps I have added and commanded the 'Sync to Dropbox now!', but I cannot decipher exactly what it did, and where things are stored.
Now,
-my online Dropbox TitaniumBackup folder has some files dated when first backup was made and some from just now.
-same when the Dropbox app is opened on the phone. The TitaniumBackup folder is in the app along with Contacts, Photos, and Public folders.
-same with Dropbox folder on the PC
(I deleted this folder because of the mixed 'versions' of files in it--believing that that deletion would propagate to the phone and to the online store. It didn't. They are still there)
-when I use Root Explorer and look for these files, there is a TitaniumBackup folder in /sdcard/dropbox, and Public is also there, but not Contacts and Photos folders!!! (Why not? they show inside the dropbox app.) This folder also has the mixed dates on the files inside it.
So, I guess my original backup has been destroyed by most of the files being being overwritten (but I do have a copy I saved on an external drive off the home PC).
I just now do not have a feel at all for where the files are created, and where they are copied to if you use the standard "process" ...
When you run TitaniumBackup, where does it put the folder it makes?
When you tell TitaniumBackup to 'Sync to Dropbox now!', what folder (location) does it sync from and to where?
Finally, if you have Dropbox on phone, PC, and the online account, are changes in any of the three locations propagated and to where--the other two? To online only? I ask because the folder deletion on the PC did not get propagated anywhere.
Finally, am I to conclude that your current TitaniumBackup folder should be deleted before you run TitaniumBackup again?
1. when you run a backup the backups are stored in a folder called /sdcard/titaniumbackup
2. syncing to dropbox will only UPLOAD to your dropbox, and not replicate changes BACK to your phone
3. changes all populate through all devices, what you see in /sdcard/dropbox/ are files that you have accessed from your phone and are a local copy, not necessarily a folder that is also replicating to dropbox (from my understanding of using it. i have 30% of 5gb eaten up in dropbox and that folder only contains items that i have opened/uploaded on my phone)
4. NO! you do not need to delete the titaniumbackup folder located in /sdcard/ you can keep appending to it with your sub sequential backups. you just need to understand how to do the batch backups and how to clear out old items that you no longer want in your backup folder (this can be done within the titanium backup app)
Pirateghost said:
...4. NO! you do not need to delete the titaniumbackup folder located in /sdcard/ you can keep appending to it with your sub sequential backups. you just need to understand how to do the batch backups and how to clear out old items that you no longer want in your backup folder (this can be done within the titanium backup app)
Click to expand...
Click to collapse
Thanks; that helps a lot.
On 4, though, I probably want my backups to contain "what the phone looks like right now.' So, I will normally just want to do all apps + data. That is what I did this time, and it seemed to merge the two rather than replace it. That's why I concluded I needed to delete the old backup off the phone, after saving a copy of it somewhere. That brought up the uncertainty then of how the Dropbox synced copies would react.
Wait, wait, wait! I don't understand this...
I downloaded a zip I want to flash to my PC.
I put it into Dropbox folder on PC.
I went into Dropbox app on the phone, the file showed there, press it and it downloads. So far, all is great.
I start ROM Manager to move the file from Dropbox to /sdcard so I can reboot to CWM and flash it.
The zip is not in /sdcard/dropbox !!! But it SHOWS when I open the Dropbox app. What the?
Where is the downloaded zip in the file structure so I can move it to /sdcard?
And arghhhh. Why is this always so hard.
Wtf?
Plug in the phone to your computer and copy the file you want.
You're doing it wrong
Sent from my atrix
Use Dropbox for file syncing, not flashing
I use Dropbox to keep a copy of my backup (created by TiBu). I agree that copying the rom file directly to your computer is far easier than introducing Dropbox.
OK, y'all do it a different way. Mine is wrong because it is different from how you do it. Thanks.
That would still leave my question unanswered...where did Dropbox store the file...why was it not in /sdcard/dropbox?
But later I found it; for some reason, some of dropbox files are where I expected, but THAT download was stored in /external_sd/dropbox for some reason. It is unclear how Dropbox chooses where to put stuff it syncs down.
So I was able to move the file to /sdcard and flash it easily.

[Q] Automated creation of an "update.zip"

Hi all!
I've been tinkering with rom changes recently,
and I find it a bit fraustraring to restore all my apps semi-manually
(using titanium backup),
I noticed titanium has the option to create a "update.zip" file
but it's discribed as an option to install titanium itself,
I know there is a manual way to make a directory tree and place the right files in the right places and all, but I'm not a progremmer, I have no idea what files go where in android (I barely have a clue where they go in ms-windows).
Is there an automated way to batch up all my apps with their data into one file?
It would be possible I'm guessing, however its not as simple as putting the folder structure / apps in a zip. You have to write a updater-script so that CWM can install the files.
This tutorial should help you out, and explains the commands that can be used.
http://forum.xda-developers.com/showthread.php?t=994940

[q] twrp backups

I'm using the latest TWRP, 2.6.3. I did a nandroid of my previous setup, SWG 2.09 sense 5. TWRP the backup was successful but when I looked in the TWRP backups folder, using es root explorer, it wasn't there. I am currently on SWG 1.41 sense 5.5 and did a nandroid to see if it would appear in the TWRP backups folder. Once again, TWRP said it was successful but it wasn't in the folder. I just noticed that even though they don't appear in the folder using es filer explorer, if I go to restore within TWRP, they are there. Any ideas what the problem is and how to fix?
Might check your settings in ES File Explorer for hidden files...although TWRP backups should not be hidden by default. I assume you're going down into the subfolder under TWRP backups as well. The file structure is TWRP/Backups/FA35SS909328/...then the backups themselves.
jdjohn said:
Might check your settings in ES File Explorer for hidden files...although TWRP backups should not be hidden by default. I assume you're going down into the subfolder under TWRP backups as well. The file structure is TWRP/Backups/FA35SS909328/...then the backups themselves.
Click to expand...
Click to collapse
Yes that is exactly what I'm doing. Yes I changed the setting to show hidden folders, thinking that may have been the problem but no dice....weird
jsmooth704 said:
Yes that is exactly what I'm doing. Yes I changed the setting to show hidden folders, thinking that may have been the problem but no dice....weird
Click to expand...
Click to collapse
I assume you have looked in the 0/ folders as well? Sorry if I'm telling you what you already know, but when you went to 4.3, new folders were added under sdcard0/0. Kinda confusing the way the file structure looks in ES File Explorer vs. TWRP.
The file structure is data/media/TWRP/Backups/FA35SS909328/...then the backups themselves.
or The file structure is data/medai/0/TWRP/Backups/FA35SS909328/...then the backups themselves.
bigdaddy619 said:
The file structure is data/media/TWRP/Backups/FA35SS909328/...then the backups themselves.
or The file structure is data/medai/0/TWRP/Backups/FA35SS909328/...then the backups themselves.
Click to expand...
Click to collapse
When looking in TWRP, yes, but when looking in ES File Explorer it is different as you know. I'm wondering if he is aware of that distinction.
jdjohn said:
When looking in TWRP, yes, but when looking in ES File Explorer it is different as you know. I'm wondering if he is aware of that distinction.
Click to expand...
Click to collapse
Yes, I am aware of the difference and that the file structure changed in 4.3. I did find them in data/media/TWRP/backups as bigdaddy stated using es file explorer. Thanks for your help

[Q] TWRP Nandroid/Lollipop SDcard Storage issue...

I have a T-Mobile HTC M7 converted to GPE, recently flashed to Lollipop from KK 4.4.4. I use Tasker and OpenRecoveryScript to automate Nandroid backups through TWRP, then use FolderSync to upload said backup to my server over WiFi. My method worked perfectly until I flashed to Lollipop.
Since flashing to Lollipop, whether through Tasker or manually, I get an error in FolderSync saying the Nandroid files can't be read or copied. If I use TWRP's file manager, I can view the Nandroid folders/files, but those same files are not viewable using ES File Explorer in Lollipop. When I navigate to TWRP\BACKUPS\{Serial Number} folder in ES File Explorer, the {Serial Number} folder (where the TWRP backups are) is listed as a 0k(zero) file that can't be read or copied. When I try to create a new folder (in the BACKUPS folder) using ES File Explorer I get an error saying the operation failed.
Just this morning I restored a Nandroid backup using TWRP, and now in ES File Explorer my entire SDcard folder is blank (not true, as all my apps still function), but in TWRP file manager the SDcard folder is fine. At first I thought the problem was with ES File Explorer, but I tried a few different file explorers with the same result (FX File Explorer tells me 'Access was Denied' when trying to view the sdcard folder. ) All file managers I've tried have root access.
I thought Lollipop fixed the sdcard problems from KK, but this is a whole new one for me. Is there an issue with Lollipop not being able to read files that are written through recovery/TWRP? Any help would be greatly appreciated.
In a terminal app type
Su
restorecon -FR /data/media/0
Ajxx16 said:
In a terminal app type
Su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Thanks for the help Ajxx16. Tried your suggestion and get: tmp-mksh: restorecon: not found
You have root correct?
Ajxx16 said:
You have root correct?
Click to expand...
Click to collapse
Yes. Rooted running SuperSu 2.37 and TWRP 2.8.1.0. I also tried applying the restorecon patch through TWRP's terminal. It seems like it did something, but again when I boot back into the system, sdcard folder listed as empty. I just flashed a Nandroid backup I had of 4.4.4 and no sdcard issue. I'm going to update back to 5.01 (slowly, monitoring each step) to see if I can troubleshoot when the issue starts again, if at all (which wouldn't bother me if it didn't, really).
So I updated from 4.4.4 and ran into the same issue. It turns out the ROM I was updating from somehow did not have restorecon in the system/bin folder. I was able to find a 5.01 GPE RUU, flashed that, applied restorecon fix, and issue is resolved. Thanks for the help Ajxx16!

Transferring data, etc. to replacement phone

So i had to get my N6 replaced becasue the top speaker was all wacked out, so i got the new one and hope someone can help me (i know there will be ) first i'm trying to copy the titanium backup files, i keep getting an error on certain files saying "cannot copy, device has stopped responding or has been disconnected" when clearly neither of those things have happened. I am on stock rooted & unencrypted. I tried searching but found no answer to this..
Just created an update.zip but when i look on the computer, i cannot see the file..
how are you trying to copy the backup files?
I usually copy it to an online storage (dropbox/box etc). Make sure you download and restore it to your new phone before wiping/returning your old phone.
I'll try dropbox, what i did was had it create an update.zip which contains apps+data so i could flash it in recovery on the new phone. I can see the file with root explorer on the sdcard, but when i plug it in to the computer i don't see the file..
I'm trying to drag the tibu folder to dropbox and it won't do anything...
ryanallaire said:
I'll try dropbox, what i did was had it create an update.zip which contains apps+data so i could flash it in recovery on the new phone. I can see the file with root explorer on the sdcard, but when i plug it in to the computer i don't see the file..
Click to expand...
Click to collapse
Are read/write permissions set on the file/directory?
Try moving it to your phones "Downloads" directory and see if it shows on your computer? Enable "view hidden file types".
rwxrwx-- the only part not checked is where it says others..
Edit: I tried checking the boxes next to others and it said permissions could not be changed..
blyndfyre said:
Are read/write permissions set on the file/directory?
Try moving it to your phones "Downloads" directory and see if it shows on your computer? Enable "view hidden file types".
Click to expand...
Click to collapse
I moved it to downloads, backups, with view hidden file types and still nada...
Ok i have it syncing to dropbox now, i 've never used dropbox to sync data so i did some reading and found out how. What i couldn't find was after it syncs to dropbox, do i restore apps+data to the replacement phone?

Categories

Resources