3

Normally, Titanium Backup saves backups with its ownership. For example, u0_a252:

-rw------- 1 u0_a252  u0_a252   539 2021-11-07 09:52 com.application.zomato-20211107-095236.properties

However, it sometimes saves backups with media_rw ownership:

-rw------- 1 media_rw media_rw 963K 2021-11-07 09:00 net.bikerouteplanner-667db7c2a87ed259454c457130013a1a.apk.bz2

The backup directory is in /sdcard/, internal storage.

These files can't be read by users or even by root. It prevents me from easily syncing the files to an external server or copying them off before doing a factory reset.

I've tried chown in adb with su, but the ownership isn't changed. The solution I've found is to reboot to the bootloader, boot TWRP, and change it in an adb shell.

I've found nothing in web searches other than to use TWRP. I found nothing going to the cause of the bad ownership other than perhaps android taking them as media files. I believe the problem started with Android 11.
I am currently running Android 11 on a Pixel 5, rooted with Magisk.

8
  • reboot should fix this
    – alecxs
    Nov 7, 2021 at 18:51
  • Reboot doesn't fix it. I rebooted dozens of times trying to find a solution.
    – adamf663b
    Nov 7, 2021 at 18:59
  • I also went all the way back to a factory reset phone. When I uploaded the backup files I fixed the ownership in TWRP's adb. TB uses its ownership 95% of the time. I haven't found correlation between the an app's attributes and the bad ownership.
    – adamf663b
    Nov 7, 2021 at 19:05
  • the bad files always have the .apk.bz2 extension. When I used gzip compression, I believe the bad files were with the apk.gz extension.
    – adamf663b
    Nov 7, 2021 at 19:15
  • 1
    Thought this is fixed automatically since Oreo. try manually
    – alecxs
    Nov 7, 2021 at 19:32

1 Answer 1

2

I found a workaround/solution.

Go into Titanium Backup, Preferences, Backup folder location. Change the storage provider to "DocumentProvider" storage which shows up as 'External Storage.'

It's important that 'use the current folder' be used in the selection. I let it be set to the storage root (/sdcard/), then set it back to my Titanium Backup folder.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .