sd card write permission - Samsung Galaxy S9 Questions & Answers

someone managed to grant rights for titanium backup, for backup on micro sd?
Thé magisk tweek not work...

TB is what I really miss about not being rooted. I had luck with one of the SD Fix apps on Play one time but what I finally did when I was able to use TB was edit the backup location. It was pointing to the wrong location and wouldn't write to the SD.
TB wanted to write to
"**PathToSDcard**/data/com.keramidas.TitaniumBackup/"​
I manually changed it to this
"**PathToSDcard**/Android/data/com.keramidas.TitaniumBackup/"​
That's all I have copied down in an old note I've got. It worked in Android 7 but I don't have a clue if it will work in 8 and I can't test it. I do know that I got it to work in another life.

Related

Titanium Backup, save to external SD card? (E980 AT&T)

Searched and found some info on the above in regards to other phones, but the solutions did not work for this phone (or maybe just for me):silly:
Rooted with Towelroot, and Chainfire for the Superuser last week. Installed TiB, and checked in one of its menus to use the external SD card for automatic backups (I believe).
So, I perform a full backup of all apps and data, but I had been having issues with a bad install of Go Launcher so I decide to do a phone reset (to KK 4.4.2) and restore with a fresh OS.
Upon reboot, the phone automatically Dl'ed all of my Google info and apps, contacts, and everything, all by itself. When the phone rebooted, I was surprised to see that I still had root, but without SU. Did another restore just to be sure and reinstalled Towelroot manually. There must have been an update to it since last week as the SU was automatically installed this time and I had SU without needing to install Chainfire. I reinstalled TiB and attempted to do a TiB restore, but learned that all of my backup info had been stored on the INTERNAL SD card and it was all wiped with the phone restore.
So, I go back into TiB settings and try to redirect the storage location to the EXTERNAL SD card by hitting the back button when looking at the file structure, but when I get to the external card, TiB says it's not writable. Some other phone threads mentioned to use the MNT directory but that didn't work either.
So, after all the above, can anyone either talk me through how to get TiB to store externally, or possibly would you provide a link if you know of a thread that allows it to work with our phones (E980 on AT&T). I've tried a few things mentioned on different threads but none of it seems to work!
Strange, I always use the TB for my backups and I have 3 automatic settings and does everything on the SD card without problem. I do not think there is a tutorial for that friend, you already have a backup folder? to copy to the SD memory and let that TB to detect it automatically. Sorry for my poor english
Have you tried manually editing the platform.xml as indicated in this post?
http://forum.xda-developers.com/showthread.php?t=2617921
mad_g said:
Strange, I always use the TB for my backups and I have 3 automatic settings and does everything on the SD card without problem. I do not think there is a tutorial for that friend, you already have a backup folder? to copy to the SD memory and let that TB to detect it automatically. Sorry for my poor english
Click to expand...
Click to collapse
nugundam said:
Have you tried manually editing the platform.xml as indicated in this post?
http://forum.xda-developers.com/showthread.php?t=2617921
Click to expand...
Click to collapse
Thanks for the info. I followed the link and tried to modify the platform.xml file but the 3 file editors I used would not save the changes. I kept getting errors. Then I saw a link to an app in the app store, tried it and it worked perfectly!!! It modified the platform.xml (and saved the changes, which I was unable to do). The only thing I then had to do was go back into TiB and manually create a "Titanium Backup" folder in "/storage/external_SD".
I ran a backup and checked the SD card and the backup is there where I had hoped it would be.:good:
https://play.google.com/store/apps/details?id=nextapp.sdfix
I had the exact opposite experience. The app didn't work for me so I just manually edited the file with Root Explorer. Glad your issue is resolved.

TiBu problem: Can't write to folder & insufficient storage

Today I started experiencing an issue where TiBu could not perform any backups because of "insufficient storage". Upon further research I found that this issue is related to the "no write permission" for the SD card. I've tried multiple fixes so far:
Adding the media read/write permission by manually editting platform.xml
Downloading SDfix patches from the playstore for 4.4.4
Flashing a zip that contained a modified platform.xml
Note, this issue started today after I restored to a nandroid backup after flashing the Google Play Edition ROM (4.4.4). I was originally on 4.4.2 and the GE rom was 4.4.4
I'm extremely frustrated because I can't seem to get TiBu to accept the fix. When I view my platform.xml through a root explorer it says the permission is there for writing to the external storage.
tcdos said:
Today I started experiencing an issue where TiBu could not perform any backups because of "insufficient storage". Upon further research I found that this issue is related to the "no write permission" for the SD card. I've tried multiple fixes so far:
Adding the media read/write permission by manually editting platform.xml
Downloading SDfix patches from the playstore for 4.4.4
Flashing a zip that contained a modified platform.xml
Note, this issue started today after I restored to a nandroid backup after flashing the Google Play Edition ROM (4.4.4). I was originally on 4.4.2 and the GE rom was 4.4.4
I'm extremely frustrated because I can't seem to get TiBu to accept the fix. When I view my platform.xml through a root explorer it says the permission is there for writing to the external storage.
Click to expand...
Click to collapse
I had a similar problem this past weekend. It seems that something changed the way that TiBu sees the folders on the External SD Card.
Go to Settings/Preferences/Backup Folder Location
Then use the Detect button. It will find the old backup files, but you will see a different folder path to get there.
After you tell it to use the detected folder, get back to main Settings, and then select Reload Application.
It should work again. At least it did for me.
Rob
rlichtefeld said:
I had a similar problem this past weekend. It seems that something changed the way that TiBu sees the folders on the External SD Card.
Go to Settings/Preferences/Backup Folder Location
Then use the Detect button. It will find the old backup files, but you will see a different folder path to get there.
After you tell it to use the detected folder, get back to main Settings, and then select Reload Application.
It should work again. At least it did for me.
Rob
Click to expand...
Click to collapse
Thanks for the suggestion Rob, but unfortunately that did not work. It folder location remained the same. As of now, the backup location is "storage/emulated/legacy/TitaniumBackup". Should I move the backup folder from my internal storage to my SD card and then try to detect the folder?
tcdos said:
Thanks for the suggestion Rob, but unfortunately that did not work. It folder location remained the same. As of now, the backup location is "storage/emulated/legacy/TitaniumBackup". Should I move the backup folder from my internal storage to my SD card and then try to detect the folder?
Click to expand...
Click to collapse
The Detect only looks for existing backups. I use by External SD card for two reasons: 1) it frees up some space on the internal, since some apps can't use the external, 2) if the phone dies, it should be possible to take the SD card to a new phone and use it to restore.
You could set the Backup folder location to your External SD card and see if it works when you attempt to backup.
Rob
rlichtefeld said:
The Detect only looks for existing backups. I use by External SD card for two reasons: 1) it frees up some space on the internal, since some apps can't use the external, 2) if the phone dies, it should be possible to take the SD card to a new phone and use it to restore.
You could set the Backup folder location to your External SD card and see if it works when you attempt to backup.
Rob
Click to expand...
Click to collapse
It works now! Anyways, do you have any idea why apps like Instagram and Snapchat dont work after an app/data restore from a TiBu update when flashing a new ROM? I can open the apps successfully but pictures arent being displayed. It's almost like the data is corrupt or something. Thanks again.

[Q] How to restore with Titanium Backup on Dev Edition

I have succesfully rooted my device, busybox installed and changed platform.xml to add media RW.
After that titanium backup was able to find my backup folder on the external SD and i tried to restore apps but none would restore
it always is stuck at 0% and cant even restore the first app, even if i just select one app...
Any help?
Snake-Plissken said:
I have succesfully rooted my device, busybox installed and changed platform.xml to add media RW.
After that titanium backup was able to find my backup folder on the external SD and i tried to restore apps but none would restore
it always is stuck at 0% and cant even restore the first app, even if i just select one app...
Any help?
Click to expand...
Click to collapse
Sorry I hadn't seen earlier. You might have solved your problem in the meantime. First thing I would try is uninstall and then reinstalling Titanium Backup. 2nd, move your backup location to the phone instead of your external card. (Temp to test the program). Run a backup and try restoring a couple files to see if the restore is working from phone storage. That will tell you if its TB or a permissions problem. Once you've confirmed it's working, change your location back to your TB folder on the external drive (TB will find it when you ask it to). Reboot and try a new backup. Then try a restore from the new backup on the SD card.
If you are still having the same problem, your External card is either bad or you haven't fixed the permissions yet.
I had some problems with TB backing up. Kept dismounting the SD card and erroring out. Eventually, just bought a new Samsung card and stuck my Sandisk Pro back in a box. Good Luck.
USB debugging turned on? When off I get the same kind of handling. Turning it on gets it going right away.

Titanium Backup Restore Issues after ROM Change

Having problems restoring Apps from TB (Titanium Backup) after changing my ROM from Stock 20W to Novastock V21A.
I performed a full backup of all APPS to my external SD card. After flashing the new ROM, I detect the TB directory,
and set it. But, TB can only see the apps I have installed from the play store after the flash. It can see the backed up Apps
but they have a line through them and TB thinks they are zero bytes. I have applied the SD card Fix.
When I use root explorer and click on the /storage/external_SD/Titanium_Backup directory, root explorer just hangs...
Hmm, this would explain why TB can't access the previously backed up Apps.....
After I restore my nandroid of the previous 20W ROM, I can see the TB directory. Wondering if this is down to a SELINUX issue.
Anyone got any ideas of why I can't access the external SD card TB directory OR what I can do to resolve this...?
Thanks
gsw5700 said:
When I use root explorer and click on the /storage/external_SD/Titanium_Backup directory, root explorer just hangs...
Hmm, this would explain why TB can't access the previously backed up Apps.....
Anyone got any ideas of why I can't access the external SD card TB directory OR what I can do to resolve this...?
Thanks
Click to expand...
Click to collapse
If you're still having this issue, try using NextApp's SDFix. That's what I've been using when I hop around between roms.

Unable to Extract from TWRP Nandroid Backup using Titanium Backup

Hi All,
Been trying to figure this out for the last 30 Hours straight & now I'm at the end of my rag with bloody knuckles & a hole in my desk... So I thought this would be a good a time as any to ask for some advice/help!
I have upgraded/flashed my HTC One M8 (2014) from LP (Android_Revolution_HD-One_M8_41.0_866186) to MM (ResurrectionRemix-M-v5.6.2-20160203-m8) (Based off CM13). I created a backup of all my Apps & Data using Titanium Backup & also made a full Nandroid backup using TWRP.
The problem is with restoring the data within the Nandroid backup, previously I have used the "Extract Data From Nandroid Backup" option in Titanium Backup to extract my SMS/MMS messages to my new Rom. However when I try to do that on MM I'm greeted with the message "Failed to locate your TWRP backups directory. Please verify that the "TWRP/BACKUPS" folder exists on your SD card."
To make thing worse, when I try to restore my Nandroid backup, it all goes well except my WiFi & Mobile Data no longer work... I can connect to my WiFi but it always says that there is no internet connection. So restoring is not an option as I can't do much without internet access.
Anyone have any ideas? I have tried to use a different SD Card & no joy, could it maybe be a permissions issue or something or am I just being a muppet & missing a simple solution.
Either way any advice would be much appreciated. Thanks.
Oh yeah, I Googled the message that Titanium brings up with quotation marks & there were only TWO results (both from the same thread on XDA)... I've never seen Google look so barren!
Hi - I'm having a similar issue. Upgraded from LP to MM and can't extract apps/data from Nandroid backup...
It says it's been successful but no apps are there...
NeoSonic said:
Hi All,
Been trying to figure this out for the last 30 Hours straight & now I'm at the end of my rag with bloody knuckles & a hole in my desk... So I thought this would be a good a time as any to ask for some advice/help!
I have upgraded/flashed my HTC One M8 (2014) from LP (Android_Revolution_HD-One_M8_41.0_866186) to MM (ResurrectionRemix-M-v5.6.2-20160203-m8) (Based off CM13). I created a backup of all my Apps & Data using Titanium Backup & also made a full Nandroid backup using TWRP.
The problem is with restoring the data within the Nandroid backup, previously I have used the "Extract Data From Nandroid Backup" option in Titanium Backup to extract my SMS/MMS messages to my new Rom. However when I try to do that on MM I'm greeted with the message "Failed to locate your TWRP backups directory. Please verify that the "TWRP/BACKUPS" folder exists on your SD card."
To make thing worse, when I try to restore my Nandroid backup, it all goes well except my WiFi & Mobile Data no longer work... I can connect to my WiFi but it always says that there is no internet connection. So restoring is not an option as I can't do much without internet access.
Anyone have any ideas? I have tried to use a different SD Card & no joy, could it maybe be a permissions issue or something or am I just being a muppet & missing a simple solution.
Either way any advice would be much appreciated. Thanks.
Oh yeah, I Googled the message that Titanium brings up with quotation marks & there were only TWO results (both from the same thread on XDA)... I've never seen Google look so barren!
Click to expand...
Click to collapse
Is your TWRP backup folder on the external sdcard? If so, did you give Titanium access? There's multiple thread about apps needing to be given permission to access external storage. Titanium Backup especially has a lot of threads detailing this because of steps needed to access your backup folder if it is on the external sdcard.
topjohnwu said:
Q: **** app cannot access external SDcard!!
A: Look at this explanation:
Since Kitkat (2 years ago man), we don't have direct external storage write permission. Google consider it insecure, so they implemented this feature. The reason why you can access external SDcard easily before is because most roms on XDA already contains a hack in /system/etc/permissions/platform.xml. You should not rely on this hack forever, please take a look below.
In lollipop and after, Google provided a much secure and better way to grant external storage access to third party apps, first of all take a look at this article for details:
http://www.androidpolice.com/2014/1...s-automatic-mediastore-and-improves-security/
So instead of using the old platform.xml hack in the old Kitkat days, adopt yourself with this new behavior of Android!! If a certain app cannot access SDcard, ASK THE DEVELOPER to add support for this API!!
Many apps already have support for this API. I'll take Titanium Backup for example, as lots of you cannot find the way to use it on externals SD. In Menu>>Preferences>>Backup Location, you can choose Document Provider on top of the detect button.
In the provider, open the menu on the top right corner and select "Show SDcard", then you'll see External Storage in the left side. Select external SDcard in the document provider and press the button on the bottom, the app will then be granted access to the whole external storage. You can then create a new folder in TiBack and select it as your backup location.
Other apps also follows the instructions above, you just have to manually set up the folder where the app can access, in the case which most of us would love to give access to the whole SDcard, I set the location to the root of external storage. Each app has independent permission, so you have to manually grant each app you wish to access external storage.
Click to expand...
Click to collapse
-Duir- said:
Is your TWRP backup folder on the external sdcard? If so, did you give Titanium access? There's multiple thread about apps needing to be given permission to access external storage. Titanium Backup especially has a lot of threads detailing this because of steps needed to access your backup folder if it is on the external sdcard.
Click to expand...
Click to collapse
'allo mate, I appreciate the reply but it has done nothing for me, just to clarify, I can see my backed up Apps & Data so I'm pretty sure it already has access to the SD card (correct me if I'm wrong) but it is still unable to see the Nandroid TWRP backup... bit of a Jar as I just paid for the premium version of Titanium Backup & Nandroid Manager. Nandroid Manager is able to see the files but hangs when trying to extract the Messages...
Any Ideas?
NeoSonic said:
'allo mate, I appreciate the reply but it has done nothing for me, just to clarify, I can see my backed up Apps & Data so I'm pretty sure it already has access to the SD card (correct me if I'm wrong) but it is still unable to see the Nandroid TWRP backup... bit of a Jar as I just paid for the premium version of Titanium Backup & Nandroid Manager. Nandroid Manager is able to see the files but hangs when trying to extract the Messages...
Any Ideas?
Click to expand...
Click to collapse
Copy or move the backup folder to internal storage and it will work. Not sure if it's a bug in TB or because of how MM handles the external sdcard but it doesn't check it. It finds the TWRP folder on internal, which if you don't backup on internal, only has your preferences (and theme if you use one). I never used it, so not sure if it was an issue before MM or not.
I did try and got an error about not finding a "clockworkmod/backup" folder or a "TWRP/Backups" folder so to see what happened I made a "Backups" folder in the TWRP directory on my internal storage and the error basically changed to say there were no backups in it.
-Duir- said:
Copy or move the backup folder to internal storage and it will work. Not sure if it's a bug in TB or because of how MM handles the external sdcard but it doesn't check it. It finds the TWRP folder on internal, which if you don't backup on internal, only has your preferences (and theme if you use one). I never used it, so not sure if it was an issue before MM or not.
I did try and got an error about not finding a "clockworkmod/backup" folder or a "TWRP/Backups" folder so to see what happened I made a "Backups" folder in the TWRP directory on my internal storage and the error basically changed to say there were no backups in it.
Click to expand...
Click to collapse
Cheers for that mate, seems to have done the trick. Unfortunately when I restore my Phone & Messaging data it completely destroys my phone... I get the message "com.android.phone" has stopped working & the entire system slows down to a crawl... I also get the Sim Card icon in the top right of the screen with a line through it... Is this because I'm moving between Sense to something else? I'm really at my wits end with this.
Any advice would be much appreciated.
NeoSonic said:
Cheers for that mate, seems to have done the trick. Unfortunately when I restore my Phone & Messaging data it completely destroys my phone... I get the message "com.android.phone" has stopped working & the entire system slows down to a crawl... I also get the Sim Card icon in the top right of the screen with a line through it... Is this because I'm moving between Sense to something else? I'm really at my wits end with this.
Any advice would be much appreciated.
Click to expand...
Click to collapse
I would say that's definitely it. Not only are you restoring app data for system apps from two different Android versions (LP -> MM) which can be buggy, but also for two completely different builds (Sense -> CM) which don't use the same apps. Sense will use HTC's own Phone and Messaging apps and CM if I remember uses stock Android versions). It's been too long since I tried CM but when I did it I had a third-party program for backing up contacts and installed something like GoSMS to backup messages, then installed the same apps on CM and restored the data from within those apps and the stock dialer/messaging apps had the data. But this was before HTC added backup/restore capability into their versions of the apps.
I'm having a similar issue, I google searched and it brought me here. I can see my backup from within TWRP, even on the PC I can see the TWRP folder and files. But when I boot and use titanium backup or nandroid manager, it says backup not found. Even in the root browser, the TWRP folder is empty and even on the PC I can't see the files anymore. Its kind of frustrating because there are two apps that I want restored but I don't want to completly restore using TWRP.
rapiollymega said:
I'm having a similar issue, I google searched and it brought me here. I can see my backup from within TWRP, even on the PC I can see the TWRP folder and files. But when I boot and use titanium backup or nandroid manager, it says backup not found. Even in the root browser, the TWRP folder is empty and even on the PC I can't see the files anymore. Its kind of frustrating because there are two apps that I want restored but I don't want to completly restore using TWRP.
Click to expand...
Click to collapse
Try going to Settings>Apps, find Titanium Backup, then select Permissions and see if Storage is toggled on.
I've got the same problem, storage permission is toggled on. Although I am using a LG G3
same here with my Galaxy S5 (AOKP 6.0.1)
The same problem on Xiaomi Mi Max (Android 6.0.1). External SD card permission is granted to TB (it can see full SD contents and select TWRP backup directories). But "extract from Nandroid backup" shows "folder not found" error.
I'm afraid CWM/TWRP directory locations are hardcoded as "/TWRP on SD card" while /sdcard is mapped to internal memory on modern phones.
I had copied data files of the backup (1.5 gigs, not a best choice) to internal memory (/sdcard) and TB immediately found them. Unfortunately, TB offers only apps and app data for restoration. I need to extract plain user data directories but TB offers no way for that.
Stock S5 6.0.1
same here...what a pain..
Had to copy nandroid backup from extsd to internal storage to restore app data
-Duir- said:
Is your TWRP backup folder on the external sdcard? If so, did you give Titanium access? There's multiple thread about apps needing to be given permission to access external storage. Titanium Backup especially has a lot of threads detailing this because of steps needed to access your backup folder if it is on the external sdcard.
Click to expand...
Click to collapse
DAMN THANK YOU that solved it
Anyone knows how to extract the nandroidbackup from the TWRP folder on ExternalStorage? I cannot move the backup because its to large for my InternalStorage. I think it's an issue in TiBackup, creating a symbolic link also does not work since my ExternalStorage is formatted as exFAT.
Another fix I discovered is get your BACKUP ID
twrp save folder > TWRP>BACKUPS>BACKUPID>backup
if you have a backup without a backupid folder it will not work!
Having storage permission or not doesn't seem to help at all!
-Duir- said:
Is your TWRP backup folder on the external sdcard? If so, did you give Titanium access? There's multiple thread about apps needing to be given permission to access external storage. Titanium Backup especially has a lot of threads detailing this because of steps needed to access your backup folder if it is on the external sdcard.
Click to expand...
Click to collapse
This helps Titanium Backup see its own backup folder, but doesn't help it see the /TWRP/BACKUPS folder
emuzychenko said:
I'm afraid CWM/TWRP directory locations are hardcoded as "/TWRP on SD card" while /sdcard is mapped to internal memory on modern phones.
Click to expand...
Click to collapse
Can a symlink be created from the location it's looking to the location it's actually at?

Categories

Resources