TWRP 2.6 Permission Problem

pjc123

Well-known member
Sep 26, 2011
114
0
0
So, in preparation for the upgrade from 4.2.2 to 4.3, I wanted to do a full backup first. First I updated TWRP to the latest 2.6 version so hopefully it will be compatible with 4.3 when it arrives OTA. So I ran a backup, but when I went to copy the files over to my Windows PC using Windows Explorer, only two of the many files copied over. So, as it turns out from reading on the forums, they changed the permissions on the backup files, causing this issue. I really don't want to be changing permissions in fear that something will break later on (like during the restore if that becomes necessary). I see where some have done an adb pull and were able to get all the files to successfully come over. So I tried that, but I was getting all kinds of errors.

Can anyone enlighten me to the basics of how to properly do an adb pull from Windows, or point me to a tutorial?
 
Twrp stores the nandroid backups it makes in /sdcard/TWRP/BACKUPS

Just move this folder to your computer after making one. You can drag and drop it or use adb if you prefer:
adb pull /sdcard/TWRP/BACKUPS/
Should just pull the whole folder. Give it some time to complete as a nandroid backup is usually quite big and it might not be clear that it's still working while you think it is done already. Until you get a new command line it is still copying the files over.

Sent from my Nexus 4 using Tapatalk 2
 
what actually are you trying to backup?? app data backups or files stored in N4?

Everything. TWRP does a complete disaster recovery backup and restore. I also do a Titanium backup, but it is not as thorough. I always do an image and file backup my OS's before an upgrade (Windows, Linux, Android, etc.).
 
Twrp stores the nandroid backups it makes in /sdcard/TWRP/BACKUPS

Just move this folder to your computer after making one. You can drag and drop it or use adb if you prefer:
adb pull /sdcard/TWRP/BACKUPS/
Should just pull the whole folder. Give it some time to complete as a nandroid backup is usually quite big and it might not be clear that it's still working while you think it is done already. Until you get a new command line it is still copying the files over.

Sent from my Nexus 4 using Tapatalk 2

You are not reading my thread. There was a change between the previous version of TWRP and the latest 2.6 version which prevents copying (all the backup files) to Windows drag and drop. Supposedly it is part of TWRP's new enhanced security. I have verified this by looking at the permissions of the files that are part of the backup. I am not the only one experiencing this problem. As I also said, I was not successful doing an adb pull, because I never did it before, so I was looking for details on how to do it. I installed the software development kit and tried this, but I either get access errors or other types of errors. They also moved the location of the backup files in version 2.6 and/or created a new directory structure so my old TWRP backups would not be disturbed.
 
Last edited:
You are not reading my thread. There was a change between the previous version of TWRP and the latest 2.6 version which prevents copying (all the backup files) to Windows drag and drop. Supposedly it is part of TWRP's new enhanced security. I have verified this by looking at the permissions of the files that are part of the backup. I am not the only one experiencing this problem. As I also said, I was not successful doing an adb pull, because I never did it before, so I was looking for details on how to do it. I installed the software development kit and tried this, but I either get access errors or other types of errors. They also moved the location of the backup files in version 2.6 and/or created a new directory structure so my old TWRP backups would not be disturbed.

Have you tried the adb pull while the phone is in recovery mode? That seems to be how the people here got it to work without issue: Can't copy twrp backup to PC - xda-developers

Also you mentioned you didn't want to change the permissions of the folder for fear of breaking something - perfectly reasonable, btw - but I wouldn't worry about that. You're only changing the one directory's permissions, and it seems to be fixing the problem for the other users. If need be you could always change them back just as easily.

If none of that works, off the top of my head I might try going to the backup folder in Root Explorer or a similar file browser app and trying to send it to your Dropbox or Google Drive, something like that. You'd probably want to wait to do that over wifi.
 
Have you tried the adb pull while the phone is in recovery mode? That seems to be how the people here got it to work without issue: Can't copy twrp backup to PC - xda-developers

Also you mentioned you didn't want to change the permissions of the folder for fear of breaking something - perfectly reasonable, btw - but I wouldn't worry about that. You're only changing the one directory's permissions, and it seems to be fixing the problem for the other users. If need be you could always change them back just as easily.

If none of that works, off the top of my head I might try going to the backup folder in Root Explorer or a similar file browser app and trying to send it to your Dropbox or Google Drive, something like that. You'd probably want to wait to do that over wifi.

That thread, among other posts, is how I found out that I was not the only one. I just don't know how to use adb via the recovery OR from the development kit. That is my issue. I need the steps to perform that function either way, as I tried both ways and I just don't understand enough yet about how to do it properly. Meanwhile I will keep on trying. This is all fairly new to me.
 
That thread, among other posts, is how I found out that I was not the only one. I just don't know how to use adb via the recovery OR from the development kit. That is my issue. I need the steps to perform that function either way, as I tried both ways and I just don't understand enough yet about how to do it properly. Meanwhile I will keep on trying. This is all fairly new to me.

You use it the same via recovery as normal. With the phone booted into recovery just plug it in and enter the commands in your command prompt / terminal on your computer... is it not working?

Did you try the changing permissions route?
 
You use it the same via recovery as normal. With the phone booted into recovery just plug it in and enter the commands in your command prompt / terminal on your computer... is it not working?

Did you try the changing permissions route?

I have a lot of reading to do about how adb works. I was hoping someone could just give me a quick how to. I guess not. I am in no rush, as I am going to wait until all the issues with 4.3 get sorted out before I upgrade anyway.
 
I never did it before + I just don't understand + this is all fairly new to me. It is probably best you do wait.

Sent from my Nexus 4 using Tapatalk 4 Beta
 
SOLVED.

I am now able to move files between my phone and PC using the SDK and adb, and therefore I have a copy of all the TWRP backup files on my PC. There were several issues.....1) I had an old version of the SDK which was causing a devices not recognized problem and 2) I didn't notice the message about verifying the RSA on my phone, which fixed the phone "offline" problem and 3) The screen lock on my phone was timing out and locking me out from seeing the file system.
 
Last edited:
Thanks for taking the time not to help me.

I did help you. You just don't realize it. Do some reading up and learning first, that way you won't come back in a panic because your phone is bootlooping or soft bricked.

Sent from my Nexus 4 using Tapatalk 4 Beta
 
Glad to see this was resolved.

It's easy when things aren't functioning as you expect to get aggravated. Most of the time when you have a hardware connection issue between two devices computer/smartphone in this case it's a software problem. Be it drivers, Android SDK out of date or whatever it's something silly we over look.

We're all here to offer help and learn from each other's experiences.

Glad the OP got the problem resolved and this thread will be here to help the next person to come along.

Paul627g
Forums Moderator


Sent from my Galaxy Nexus using AC Forums mobile app
 
I was fighting with the same problem and found the simplest solution ever: get into TWRP recovery mode, go into file manager, select the files having the 'wrong' permissions (i.e. UID and GID set), if you click on them, there is an option set 775. Select that - and you have the files without suid. Then I don't know what happens with windows, but with Ghost Commander I am just copying my files to my Ubuntu using Ghost Commanders ssh connection.
 
Twrp stores the nandroid backups it makes in /sdcard/TWRP/BACKUPS

Just move this folder to your computer after making one. You can drag and drop it or use adb if you prefer:
adb pull /sdcard/TWRP/BACKUPS/

That's not working on TWRP 2.6. The /sdcard/ symlink breaks adb pull for TWRP backups. You have to use the real path to the files instead, ie:

adb pull /data/media/TWRP (for older single-user Android versions)
adb pull /data/media/0/TWRP (for Jellybean with multi-user nonsense)
 
You are not reading my thread. There was a change between the previous version of TWRP and the latest 2.6 version which prevents copying (all the backup files) to Windows drag and drop. Supposedly it is part of TWRP's new enhanced security. I have verified this by looking at the permissions of the files that are part of the backup. I am not the only one experiencing this problem. As I also said, I was not successful doing an adb pull, because I never did it before, so I was looking for details on how to do it. I installed the software development kit and tried this, but I either get access errors or other types of errors. They also moved the location of the backup files in version 2.6 and/or created a new directory structure so my old TWRP backups would not be disturbed.

WORK LIKE A CHAMP FOR ME I`M ON TWRP 2.6. ps i made my backup before the 2.6 update so thats maybe a factor i was on TWRP 2.4 before. hope maybe help as a reference :cool:
 

Latest posts

Forum statistics

Threads
954,086
Messages
6,960,554
Members
3,162,922
Latest member
glastek03