TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.95k stars 741 forks source link

Backup fails after a user profile was added #1354

Open andreas1288 opened 5 years ago

andreas1288 commented 5 years ago

Device codename: payton TWRP version: twrp-3.2.3-1-payton.img

Backup of Userdata fails with error code 255 after a new profile was created. Before the creation it worked properly and could be restored.

WHAT STEPS WILL REPRODUCE THE PROBLEM?

Create a 2nd user profile on the phone.

WHAT IS THE EXPECTED RESULT?

Backup works and preferably includes the data of the other user profile.

WHAT HAPPENS INSTEAD?

The backup of user date exits with error code 255.

ADDITIONAL INFORMATION

The problem seams to be that the files of the other user profile are encrypted with a different key and cannot be read. There was no password nor pattern set on the new user profile/account.

/tmp/recovery.log: Tail of logfile:

==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/0/recent_images/811_task_thumbnail.png' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/0/recent_images/959_task_thumbnail.png' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/0/recent_images/960_task_thumbnail.png' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/0/recent_images/965_task_thumbnail.png' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/10' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 failed to lookup tar policy for '/data/system_ce/10' - '8b10156f1669aad3' I:Error adding file '/data/system_ce/10' to '/external_sd/TWRP/BACKUPS/ZY224KLBT9/2018-10-06--07-30-29/data.ext4.win001' Error creating backup. I:ERROR tarList for thread ID 0 Error creating backup. I:InfoManager saving '/external_sd/TWRP/BACKUPS/ZY224KLBT9/2018-10-06--07-30-29/data.info' createTarFork() process ended with ERROR: 255 Backup Failed. Cleaning Backup Folder. I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/ZY224KLBT9/2018-10-06--07-30-29/recovery.log dmesg:

m1cm1c commented 5 years ago

I just came here to report this bug after finally arriving at the same conclusion after hours. You beat me by 6 hours. I don't use multiple profiles on my phone. However, I recently started using OnePlus' parallel apps feature which as far as I can see creates another user. My log includes this:

Invalid encryption mode 'ice:aes-256-cts'
Backing up Data (excl. storage)...
Backups of Data do not include any files in internal storage such as pictures or downloads.
Invalid encryption mode 'ice:aes-256-cts'
Breaking backup file into multiple archives...
I:Creating backup...
I:Creating tar file '/data/media/0/TWRP/BACKUPS/d926a0db/2018-11-29--13-46-42/data.ext4.win000'
I:addFile '/data/app-private' including root: 1
  ==> set selinux context: u:object_r:apk_private_data_file:s0
found policy '/data/app-private' - '1DK' - 'c3e7e70d67523c6b'
I:addFile '/data/mdm' including root: 1
  ==> set selinux context: u:object_r:oem_data_file:s0
found policy '/data/mdm' - '1DK' - 'c3e7e70d67523c6b'
I:addFile '/data/misc_ce' including root: 1
  ==> set selinux context: u:object_r:system_data_file:s0
I:addFile '/data/misc_ce/999' including root: 1
  ==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/data/misc_ce/999' - '02df517b96db30dd'
I:Error adding file '/data/misc_ce/999' to '/data/media/0/TWRP/BACKUPS/d926a0db/2018-11-29--13-46-42/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/d926a0db/2018-11-29--13-46-42/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.

Device: OnePlus 6 TWRP version: 3.2.3-1 (installed the official twrp-installer-enchilada-3.2.3-1.zip)

CaptainThrowback commented 5 years ago

Well, I have to assume that these devices use FBE, as full logs weren't posted. I don't personally have this issue on my device (I use 3 separate user profiles), but I assume that's because my device uses FDE. It would be helpful if the beginning of the recovery logs were posted as well - they provide all of these details so I wouldn't have to ask...

m1cm1c commented 5 years ago

I only posted the end of my log because I read that the important information is in the ending. Furthermore, it's 14 700 lines long and checking that many lines of text for privacy-relevant information is rather difficult.

I don't really know what part of the log you need. If you describe it (e.g. by means of approximate line number or by specific strings that occur in the log), I can check that part for privacy-relevant information and post the snippet.

Because you mentioned FBE:

$ grep -i -C 2 fbe recovery.log 
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
I:Decrypting FBE for user 0
password filename is '/data/system/gatekeeper.password.key'
get_ce_key_directory_path 0: /data/misc/vold/user_keys/ce/0
--
I:addFile '/system/system/fonts/NotoSansPhoenician-Regular.ttf' including root: 1
  ==> set selinux context: u:object_r:system_file:s0
I:addFile '/system/system/fonts/NotoSerifBengali-Regular.ttf' including root: 1
  ==> set selinux context: u:object_r:system_file:s0
I:addFile '/system/system/fonts/DroidSansMono.ttf' including root: 1
--
I:addFile '/system/system/fonts/MYingHeiPRC-W7.ttf' including root: 1
  ==> set selinux context: u:object_r:system_file:s0
I:addFile '/system/system/fonts/NotoSerifBengali-Bold.ttf' including root: 1
  ==> set selinux context: u:object_r:system_file:s0
I:addFile '/system/system/fonts/NotoSerifLao-Bold.ttf' including root: 1
--
  ==> set selinux context: u:object_r:vendor_file:s0
I:addFile '/vendor/bin/init.qti.qseecomd.sh' including root: 0
  ==> set selinux context: u:object_r:init-qti-fbe-sh_exec:s0
I:addFile '/vendor/bin/log' including root: 0
  ==> set selinux context: u:object_r:vendor_file:s0
andreas1288 commented 5 years ago

Thank for the reply. My device uses FBE as well. Sorry for the log. It was quite big (>1MB) and most people are glad if not megabytes of logs are posted. Unfortunately I don't have the full log any more. And I removed the user to be able to go on. I have successful logs from the same device which should answer all questions. However I would prefer not post it complete for privacy reasons.

Peter-Levine commented 5 years ago

I use the OnePlus 6T which has this issue. It uses FBE and the sdcard directory can be decrypted successfully with TWRP (based on device tree from https://github.com/TWINNFAMOUS/android_device_oneplus_fajita or https://github.com/mauronofrio/android_device_oneplus_fajita_TWRP). The OxygenOS "Parallel Apps" feature is implemented by creating a user with UID 999, apparently also using FBE encryption. In TWRP, files in /data/system_ce/999 have names like 952m2L0iiAVtOryyWHpECA and LbRor16iDIHzybmjNpUo4Ai8pfJ but are properly decrypted in OxygenOS.

Full recovery.log ``` Starting TWRP 3.2.3-11-e14fb93f-dirty on Wed Feb 11 07:58:59 1970 (pid 544) BOARD_HAS_NO_REAL_SDCARD := true RECOVERY_SDCARD_ON_DATA := true I:Lun file '/config/usb_gadget/g1/functions/mass_storage.0/lun.0/file' TW_INCLUDE_CRYPTO := true I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness' I:TWFunc::Set_Brightness: Setting brightness control to 1023 I:LANG: en I:AB_OTA_UPDATER := true Starting the UI... Skipping adf graphics -- not present in build tree setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888 setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888 Using drm graphics. I:TWFunc::Set_Brightness: Setting brightness control to 1023 I:Loading package: splash (/twres/splash.xml) I:Load XML directly I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly I:Checking resolution... I:Scaling theme width 1.000000x and height 1.218750x, offsets x: 0 y: 0 w: 0 h: 0 I:Loading resources... I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Loading page splash I:Switching packages (splash) => Linking mtab => Processing /etc/twrp.fstab I:Reading /etc/twrp.fstab I:Processing '/boot' I:Processing '/system' I:Created '/system' folder. I:Processing '/system_image' I:Processing '/vendor' I:Processing '/vendor_image' I:Processing '/data' I:FBE contents 'ice', filenames 'aes-256-cts' I:Processing '/firmware' I:Created '/firmware' folder. I:Processing '/misc' I:Processing '/modem' I:Processing '/bluetooth' I:Processing '/dsp' I:Processing '/efs1' I:Processing '/efs2' I:Processing '/efsc' I:Processing '/efsg' I:Processing '/usbstorage' I:Created '/usbstorage' folder. I:Done processing fstab files I:Setting up '/data' as data/media emulated storage. I:mount -o bind '/data/media' '/sdcard' process ended with RC=0 I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0 I:File Based Encryption is present e4crypt_initialize_global_de calling retrieveAndInstallKey Key exists, using: /data/unencrypted/key Using Keymaster HAL: 4 from QTI for encryption. Security level: TRUSTED_ENVIRONMENT, HAL: android.hardware.keymaster@4.0::IKeymasterDevice/default begin failed, code -62 Upgrading key in memory only: /data/unencrypted/key Key upgraded in memory but not updated in folder: /data/unencrypted/key Added key 320589086 (ext4:1cbdc66a914d5be4) to keyring 127144231 in process 544 Added key 335049037 (f2fs:1cbdc66a914d5be4) to keyring 127144231 in process 544 Added key 166429705 (fscrypt:1cbdc66a914d5be4) to keyring 127144231 in process 544 contents mode 'ice' filenames 'aes-256-cts' Wrote system DE key reference to:/data/unencrypted/ref e4crypt_init_user0 Preparing: /data/misc/vold/user_keys Preparing: /data/misc/vold/user_keys/ce Preparing: /data/misc/vold/user_keys/de Using Keymaster HAL: 4 from QTI for encryption. Security level: TRUSTED_ENVIRONMENT, HAL: android.hardware.keymaster@4.0::IKeymasterDevice/default begin failed, code -62 Upgrading key in memory only: /data/misc/vold/user_keys/de/0 Key upgraded in memory but not updated in folder: /data/misc/vold/user_keys/de/0 Added key 1033930119 (ext4:95782208e5bc4ae1) to keyring 127144231 in process 544 Added key 205405829 (f2fs:95782208e5bc4ae1) to keyring 127144231 in process 544 Added key 643511375 (fscrypt:95782208e5bc4ae1) to keyring 127144231 in process 544 Installed de key for user 0 Using Keymaster HAL: 4 from QTI for encryption. Security level: TRUSTED_ENVIRONMENT, HAL: android.hardware.keymaster@4.0::IKeymasterDevice/default begin failed, code -62 Upgrading key in memory only: /data/misc/vold/user_keys/de/999 Key upgraded in memory but not updated in folder: /data/misc/vold/user_keys/de/999 Added key 472305489 (ext4:c4ebb9404703fed6) to keyring 127144231 in process 544 Added key 586217229 (f2fs:c4ebb9404703fed6) to keyring 127144231 in process 544 Added key 231285317 (fscrypt:c4ebb9404703fed6) to keyring 127144231 in process 544 Installed de key for user 999 Skipping non-de-key . Skipping non-de-key .. e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1 Preparing: /data/system/users/0 Preparing: /data/misc/profiles/cur/0 Preparing: /data/system_de/0 Preparing: /data/misc_de/0 Preparing: /data/vendor_de/0 Preparing: /data/user_de/0 contents mode 'ice' filenames 'aes-256-cts' not actually forking for vold_prepare_subdirs I:Backup folder set to '/data/media/0/TWRP/BACKUPS/862429a6' I:Settings storage is '/data/media/0' Updating partition details... I:Data backup size is 5325MB, free: 101119MB. I:Unable to mount '/usbstorage' I:Actual block device: '', current file system: 'vfat' ...done I:Unmounting main partitions... Partition Logs: /boot | /dev/block/bootdevice/by-name/boot_a | Size: 64MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/boot Display_Name: Boot Storage_Name: boot Backup_Path: /boot Backup_Name: boot Backup_Display_Name: Boot Storage_Path: /boot Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /system | /dev/block/bootdevice/by-name/system_a | Size: 2770MB Used: 2703MB Free: 66MB Backup Size: 2703MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent SlotSelect Mount_Read_Only Primary_Block_Device: /dev/block/bootdevice/by-name/system Display_Name: System Storage_Name: System Backup_Path: /system Backup_Name: system Backup_Display_Name: System Storage_Path: /system Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files /system_image | /dev/block/bootdevice/by-name/system_a | Size: 2860MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/system Display_Name: System Image Storage_Name: system_image Backup_Path: /system_image Backup_Name: system_image Backup_Display_Name: System Image Storage_Path: /system_image Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /vendor | /dev/block/bootdevice/by-name/vendor_a | Size: 991MB Used: 791MB Free: 200MB Backup Size: 791MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent SlotSelect Mount_Read_Only Primary_Block_Device: /dev/block/bootdevice/by-name/vendor Display_Name: Vendor Storage_Name: Vendor Backup_Path: /vendor Backup_Name: vendor Backup_Display_Name: Vendor Storage_Path: /vendor Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files /vendor_image | /dev/block/bootdevice/by-name/vendor_a | Size: 1024MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/vendor Display_Name: Vendor Image Storage_Name: vendor_image Backup_Path: /vendor_image Backup_Name: vendor_image Backup_Display_Name: Vendor Image Storage_Path: /vendor_image Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /data | /dev/block/sda17 | Size: 110356MB Used: 5325MB Free: 101119MB Backup Size: 5325MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage Symlink_Path: /data/media/0 Symlink_Mount_Point: /sdcard Primary_Block_Device: /dev/block/sda17 Display_Name: Data Storage_Name: Internal Storage Backup_Path: /data Backup_Name: data Backup_Display_Name: Data Storage_Path: /data/media/0 Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files MTP_Storage_ID: 65537 /firmware | /dev/block/bootdevice/by-name/modem_a | Size: 119MB Used: 117MB Free: 2MB Backup Size: 117MB Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_To_Decrypt SlotSelect Mount_Read_Only Primary_Block_Device: /dev/block/bootdevice/by-name/modem Display_Name: Firmware Storage_Name: Firmware Backup_Path: /firmware Backup_Name: firmware Backup_Display_Name: Firmware Storage_Path: /firmware Current_File_System: vfat Fstab_File_System: vfat Backup_Method: files /misc | /dev/block/sda3 | Size: 1MB Flags: IsPresent Primary_Block_Device: /dev/block/sda3 Display_Name: misc Storage_Name: misc Backup_Path: /misc Backup_Name: misc Backup_Display_Name: misc Storage_Path: /misc Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /modem | /dev/block/bootdevice/by-name/modem_a | Size: 120MB Flags: Can_Be_Backed_Up Has_SubPartition IsPresent SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/modem Display_Name: Modem Storage_Name: Modem Backup_Path: /modem Backup_Name: modem Backup_Display_Name: Modem Storage_Path: /modem Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /bluetooth | /dev/block/bootdevice/by-name/bluetooth_a | Size: 1MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SlotSelect SubPartition_Of: /modem Primary_Block_Device: /dev/block/bootdevice/by-name/bluetooth Display_Name: bluetooth Storage_Name: bluetooth Backup_Path: /bluetooth Backup_Name: bluetooth Backup_Display_Name: bluetooth Storage_Path: /bluetooth Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /dsp | /dev/block/bootdevice/by-name/dsp_a | Size: 32MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SlotSelect SubPartition_Of: /modem Primary_Block_Device: /dev/block/bootdevice/by-name/dsp Display_Name: dsp Storage_Name: dsp Backup_Path: /dsp Backup_Name: dsp Backup_Display_Name: dsp Storage_Path: /dsp Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /efs1 | /dev/block/sdf2 | Size: 2MB Flags: Can_Be_Backed_Up Has_SubPartition IsPresent Primary_Block_Device: /dev/block/sdf2 Display_Name: EFS Storage_Name: EFS Backup_Path: /efs1 Backup_Name: efs1 Backup_Display_Name: EFS Storage_Path: /efs1 Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /efs2 | /dev/block/sdf3 | Size: 2MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SubPartition_Of: /efs1 Primary_Block_Device: /dev/block/sdf3 Display_Name: efs2 Storage_Name: efs2 Backup_Path: /efs2 Backup_Name: efs2 Backup_Display_Name: efs2 Storage_Path: /efs2 Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /efsc | /dev/block/sdf5 | Size: 0MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SubPartition_Of: /efs1 Primary_Block_Device: /dev/block/sdf5 Display_Name: efsc Storage_Name: efsc Backup_Path: /efsc Backup_Name: efsc Backup_Display_Name: efsc Storage_Path: /efsc Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /efsg | /dev/block/sdf4 | Size: 2MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SubPartition_Of: /efs1 Primary_Block_Device: /dev/block/sdf4 Display_Name: efsg Storage_Name: efsg Backup_Path: /efsg Backup_Name: efsg Backup_Display_Name: efsg Storage_Path: /efsg Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd /usbstorage | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage Primary_Block_Device: /dev/block/sdg1 Alternate_Block_Device: /dev/block/sdg Display_Name: USB Storage Storage_Name: USB Storage Backup_Path: /usbstorage Backup_Name: usbstorage Backup_Display_Name: USB Storage Storage_Path: /usbstorage Current_File_System: vfat Fstab_File_System: vfat Backup_Method: files Mount_Flags: 0, Mount_Options: utf8 MTP_Storage_ID: 65538 I:Loading package: TWRP (/twres/ui.xml) I:Load XML directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_PT.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly parsing languageFile parsing languageFile done I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly I:Checking resolution... I:Scaling theme width 1.000000x and height 1.218750x, offsets x: 0 y: 0 w: 0 h: 0 I:Loading resources... I:Failed to load image from indeterminate013, error -1 I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Including file: /twres/portrait.xml... I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly I:Loading resources... I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Loading page main I:Loading page main2 I:Loading page install I:Loading page flash_confirm I:Loading page flash_zip I:Loading page flash_done I:Loading page flash_sleep_and_reboot I:Loading page flashimage_confirm I:Loading page clear_vars I:Loading page reboot_system_routine I:Loading page confirm_action I:Loading page action_page I:Loading page singleaction_page I:Loading page action_complete I:Loading page filecheck I:Loading page rebootcheck I:Loading page appcheck I:Loading page wipe I:Loading page advancedwipe I:Loading page formatdata I:Loading page formatdata_confirm I:Loading page checkpartitionlist I:Loading page partitionoptions I:Loading page refreshfilesystem I:Loading page selectfilesystem I:Loading page backup I:Loading page backup_options I:Loading page backupname1 I:Loading page backupname2 I:Loading page backupencryption I:Loading page backupencryption2 I:Loading page checkbackuppassword I:Loading page backup_run I:Loading page restore I:Unable to open '/data/media/0/TWRP/BACKUPS/862429a6' I:Loading page restore_read I:Loading page restore_decrypt I:Loading page try_restore_decrypt I:Loading page restore_select I:Loading page renamebackup I:Loading page restore_run I:Loading page mount I:Loading page usb_mount I:Loading page usb_umount I:Loading page system_readonly_check I:Loading page reboot I:Loading page rebootapp I:Loading page system_readonly I:Loading page settings I:Loading page settings_timezone I:Loading page settings_screen I:Loading page settings_vibration I:Loading page settings_language I:Loading page copylog I:Loading page advanced I:Loading page partsdcardsel I:Loading page partsdcardcheck I:Loading page partsdcard I:Loading page htcdumlock I:Loading page lock I:Loading page filemanagerlist I:Loading page filemanageroptions I:Loading page choosedestinationfolder I:Loading page filemanagerrenamefile I:Loading page filemanagerrenamefolder I:Loading page filemanagerchmod I:Loading page filemanagerconfirm I:Loading page filemanageraction I:Loading page decrypt I:Loading page decrypt_pattern I:Loading page trydecrypt I:Loading page terminalcommand I:Loading page sideload I:Loading page fixcontexts I:Loading page slideout I:Loading page select_storage I:Loading page select_language I:Set page: 'decrypt_pattern' I:Switching packages (TWRP) No file contexts for SELinux I:Mount: Unable to find partition for path '/cache' I:Could not check /cache/recovery SELinux contexts, using /sbin/teamwin instead which may be inaccurate. Full SELinux support is present. I:Mount: Unable to find partition for path '/cache' Boot command: bootonce-bootloader Startup Commands: ro.boottime.adbd=3142693956 ro.boottime.init=1638 ro.boottime.init.selinux=48 ro.boottime.init.cold_boot_wait=635 ro.boottime.logd=3078412602 ro.boottime.ueventd=2438633540 ro.boottime.boot-1-0=3079402706 ro.boottime.recovery=3086537237 ro.boottime.ldconfigtxt=3087014164 ro.boottime.prepdecrypt=3079888383 ro.boottime.time_daemon=3080379529 ro.boottime.sbinqseecomd=3238401716 ro.boottime.keymaster-4-0=3274084685 ro.boottime.gatekeeper-1-0=3274626716 ro.boottime.servicemanager=3275158279 ro.boottime.set_permissive=3086027654 ro.boottime.hwservicemanager=3078940831 ro.config.ringtone=omni_ringtone1.ogg ro.config.alarm_alert=omni_alarm1.ogg ro.config.notification_sound=omni_notification1.ogg dalvik.vm.isa.arm.variant=cortex-a53 dalvik.vm.isa.arm.features=default dalvik.vm.isa.arm64.variant=kryo dalvik.vm.isa.arm64.features=default dalvik.vm.lockprof.threshold=500 dalvik.vm.stack-trace-dir=/data/anr dalvik.vm.image-dex2oat-filter=verify-at-runtime debug.atrace.tags.enableflags=0 ro.art.hiddenapi.warning=1 ro.com.google.clientidbase=android-google ro.com.android.wifi-watchlist=GoogleGuest ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html ro.boot.mode=fastboot ro.boot.type=normal ro.boot.vbmeta.size=6272 ro.boot.vbmeta.digest=aedfa44731091b2d040334308c68a05fc5e277dafdc343e9f9dbeeb7c73787f5 ro.boot.vbmeta.hash_alg=sha256 ro.boot.vbmeta.avb_version=1.0 ro.boot.vbmeta.device_state=unlocked ro.boot.vbmeta.invalidate_on_error=yes ro.boot.battery.absent=false ro.boot.console=ttyMSM0 ro.boot.baseband=sdm ro.boot.configfs=true ro.boot.dtbo_idx=5 ro.boot.fastboot=1 ro.boot.hardware=qcom ro.boot.keymaster=1 ro.boot.bootdevice=1d84000.ufshc ro.boot.hw_version=41 ro.boot.rf_version=12 ro.boot.pcba_number=001880108A08032800003503 ro.boot.rpmb_enable=true ro.boot.slot_suffix=_a ro.boot.startupmode=pon1 ro.boot.project_name=18801 ro.boot.usbcontroller=a600000.dwc3 ro.omni.device=fajita ro.omni.version=9-20181205-fajita-HOMEMADE ro.omni.version.security_patch= ro.omni.fingerprint=OmniROM/9/fajita/20181205.12:02 ro.twrp.boot=1 ro.twrp.version=3.2.3-11 ro.vndk.lite=true ro.vndk.version=28 ro.wifi.channels= ro.allow.mock.location=1 ro.board.platform=sdm845 ro.build.id=PQ1A.181105.017.A1 ro.build.date=Wed Dec 5 12:00:58 CET 2018 ro.build.date.utc=1544007658 ro.build.host=MAUROVB ro.build.tags=test-keys ro.build.type=eng ro.build.user=mauronofrio ro.build.flavor=omni_fajita-eng ro.build.display.id=omni_fajita-eng 9 PQ1A.181105.017.A1 eng.mauron.20181205.120235 test-keys ro.build.product=OnePlus6T ro.build.selinux=1 ro.build.version.sdk=28 ro.build.version.base_os= ro.build.version.release=9 ro.build.version.codename=REL ro.build.version.incremental=eng.mauron.20181205.120235 ro.build.version.preview_sdk=0 ro.build.version.release_orig=9 ro.build.version.all_codenames=REL ro.build.version.security_patch=2018-11-01 ro.build.version.security_patch_orig=2025-12-31 ro.build.version.min_supported_target_sdk=17 ro.build.ab_update=true ro.build.description=omni_fajita-eng 9 PQ1A.181105.017.A1 eng.mauron.20181205.120235 test-keys ro.build.characteristics=default ro.build.system_root_image=true ro.bionic.ld.warning=1 ro.kernel.android.checkjni=1 ro.secure=0 ro.treble.enabled=false ro.display.series=OnePlus 6T ro.product.cpu.abi=arm64-v8a ro.product.cpu.abilist=armeabi-v7a,armeabi ro.product.cpu.abilist32=armeabi-v7a,armeabi ro.product.cpu.abilist64= ro.product.name=OnePlus6T ro.product.board=sdm845 ro.product.brand=OnePlus ro.product.model=OnePlus A6010 ro.product.device=OnePlus6T ro.product.manufacturer=OnePlus ro.baseband=sdm ro.bootmode=fastboot ro.hardware=qcom ro.revision=0 ro.services.whitelist.packagelist=com.google.android.gms ro.bootimage.build.date=Wed Dec 5 12:00:58 CET 2018 ro.bootimage.build.date.utc=1544007658 ro.bootimage.build.fingerprint=OnePlus/omni_fajita/fajita:9/PQ1A.181105.017.A1/mauronofrio12051200:eng/test-keys ro.bootloader=unknown ro.debuggable=1 ro.modversion=OmniROM-9-20181205-fajita-HOMEMADE ro.setupwizard.enterprise_mode=1 ro.property_service.version=2 ro.control_privapp_permissions=enforce ro.actionable_compatible_property.enabled=false fbe.contents=ice fbe.filenames=aes-256-cts init.svc.adbd=restarting init.svc.logd=running init.svc.ueventd=running init.svc.boot-1-0=running init.svc.recovery=running init.svc.ldconfigtxt=stopped init.svc.prepdecrypt=stopped init.svc.time_daemon=restarting init.svc.sbinqseecomd=running init.svc.keymaster-4-0=running init.svc.gatekeeper-1-0=running init.svc.servicemanager=running init.svc.set_permissive=stopped init.svc.hwservicemanager=running twrp.crash_counter=0 twrp.action_complete=0 crypto.ready=1 ro.build.fingerprint=OnePlus/omni_fajita/fajita:9/PQ1A.181105.017.A1/mauronofrio12051200:eng/test-keys hwservicemanager.ready=true ro.persistent_properties.ready=true ro.boot.serialno=862429a6 ro.serialno=862429a6 service.adb.root=1 net.bt.name=Android net.tethering.noprovisioning=true sys.usb.controller=a600000.dwc3 persist.sys.usb.config=adb persist.sys.dalvik.vm.lib.2=libart.so persist.sys.disable_rescue=true sys.usb.config=adb vendor.sys.listeners.registered=true ro.crypto.type=file ro.crypto.state=encrypted I:Mount: Unable to find partition for path '/cache' I:Copying file /data/cache/recovery/log to /data/cache/recovery/last_log I:Mount: Unable to find partition for path '/cache' I:Is encrypted, do decrypt page first I:Switching packages (TWRP) I:Set page: 'decrypt' I:Set page: 'decrypt_pattern' I:Set page: 'trydecrypt' I:operation_start: 'Decrypt' I:Decrypting FBE for user 0 password filename is '/data/system/gatekeeper.pattern.key' e4crypt_unlock_user_key 0 serial=0 token_present=1 Skipping non-key . Skipping non-key .. Trying user CE key /data/misc/vold/user_keys/ce/0/current Using Keymaster HAL: 4 from QTI for encryption. Security level: TRUSTED_ENVIRONMENT, HAL: android.hardware.keymaster@4.0::IKeymasterDevice/default Supplying auth token to Keymaster begin failed, code -62 Upgrading key in memory only: /data/misc/vold/user_keys/ce/0/current Key upgraded in memory but not updated in folder: /data/misc/vold/user_keys/ce/0/current Successfully retrieved key Added key 309429207 (ext4:7fdc4e193553e748) to keyring 127144231 in process 544 Added key 172447712 (f2fs:7fdc4e193553e748) to keyring 127144231 in process 544 Added key 1065496080 (fscrypt:7fdc4e193553e748) to keyring 127144231 in process 544 Installed ce key for user 0 e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1 Preparing: /data/system/users/0 Preparing: /data/misc/profiles/cur/0 Preparing: /data/system_de/0 Preparing: /data/misc_de/0 Preparing: /data/vendor_de/0 Preparing: /data/user_de/0 contents mode 'ice' filenames 'aes-256-cts' not actually forking for vold_prepare_subdirs Decrypted Successfully! Data successfully decrypted I:Backup folder set to '/data/media/0/TWRP/BACKUPS/862429a6' Updating partition details... I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0 I:Data backup size is 5323MB, free: 101119MB. I:Unable to mount '/usbstorage' I:Actual block device: '', current file system: 'vfat' ...done I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0 /data | /dev/block/sda17 | Size: 110356MB Used: 5323MB Free: 101119MB Backup Size: 5323MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Is_Decrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage Symlink_Path: /data/media/0 Symlink_Mount_Point: /sdcard Primary_Block_Device: /dev/block/sda17 Display_Name: data Storage_Name: Internal Storage Backup_Path: /data Backup_Name: data Backup_Display_Name: Data Storage_Path: /data/media/0 Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files MTP_Storage_ID: 65537 I:Unmounting main partitions... tw_get_context got selinux context: u:object_r:media_rw_data_file:s0 I:Got default contexts and file mode for storage files. I:Decrypt adopted storage starting I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly I:No /data/system/storage.xml for adopted storage I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:operation_end - status=0 I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Switching packages (TWRP) I:Attempt to load settings from settings file... I:InfoManager loading from '/data/media/0/TWRP/.twrps'. I:Backup folder set to '/data/media/0/TWRP/BACKUPS/862429a6' I:Mount: Unable to find partition for path '/cache' I:Unable to mount '' to write version number. I:Unable to mount '/usbstorage' I:Actual block device: '', current file system: 'vfat' __bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0! __bionic_open_tzdata: couldn't find any tzdata when looking for posixrules! I:TWFunc::Set_Brightness: Setting brightness control to 1023 I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly parsing languageFile parsing languageFile done I:Translating partition display names I:Backup folder set to '/data/media/0/TWRP/BACKUPS/862429a6' I:TWFunc::Fixup_Time: Pre-fix date and time: 2018-12-19--01-08-51 I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch I:TWFunc::Fixup_Time: will attempt to use the ats files now. I:TWFunc::Fixup_Time: no ats files found, leaving untouched! I:Starting MTP I:Cannot find file /sys/class/android_usb/android0/idVendor I:Cannot find file /sys/class/android_usb/android0/idProduct I:sending message to add 65537 '/data/media/0' 'Internal Storage' I:Message sent, add storage ID: 65537 '/data/media/0' I:[MTP] Starting MTP MTP Enabled I:Check_Lifetime_Writes file does not exist '/sys/fs/ext4/system_a/lifetime_write_kbytes' I:Switching packages (TWRP) I:Starting Adb Backup FIFO I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:[MTP] created new mtpserver object I:[MTP] MtpServer::run fd: 22 I:[MTP] mtppipe add storage 65537 '/data/media/0' I:[MTP] MtpStorage id: 65537 path: /data/media/0 I:Set page: 'settings' I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'mount' I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'settings' I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'advanced' I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'backup' I:Set page: 'backup_run' I:operation_start: 'Nandroid' Updating partition details... I:Data backup size is 5323MB, free: 101119MB. I:Unable to mount '/usbstorage' I:Actual block device: '', current file system: 'vfat' ...done I:Backup Name is: '2018-12-19--01-09-33' I:Backup_Folder is: '/data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33' I:Calculating backup details... * Total number of partitions to back up: 1 * Total size of all data: 5323MB * Available space: 101119MB [BACKUP STARTED] * Backup Folder: /data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33 Invalid encryption mode 'ice:aes-256-cts' Backing up Data (excl. storage)... Backups of Data do not include any files in internal storage such as pictures or downloads. Invalid encryption mode 'ice:aes-256-cts' Breaking backup file into multiple archives... I:Creating backup... I:Creating tar file '/data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33/data.ext4.win000' I:addFile '/data/ota' including root: 1 ==> set selinux context: u:object_r:ota_data_file:s0 found policy '/data/ota' - '1DK' - '1cbdc66a914d5be4' I:addFile '/data/nfc' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 found policy '/data/nfc' - '1DK' - '1cbdc66a914d5be4' I:addFile '/data/nfc/libnfc-nxpConfigState.bin' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 I:addFile '/data/nfc/libnfc-nxpRFConfigState.bin' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 I:addFile '/data/nfc/libnfc-nxpTransitConfigState.bin' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 I:addFile '/data/nfc/param' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 found policy '/data/nfc/param' - '1DK' - '1cbdc66a914d5be4' I:addFile '/data/nfc/nfaStorage.bin1' including root: 1 ==> set selinux context: u:object_r:nfc_data_file:s0 I:addFile '/data/data_bpm' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/black_brd.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/cfg.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/brd.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/force_stop_sensor.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/bpm_sts.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/black_gps.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/version.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/pkg.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/data_bpm/black_alarm.xml' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 I:addFile '/data/system_ce/999' including root: 1 ==> set selinux context: u:object_r:system_data_file:s0 failed to lookup tar policy for '/data/system_ce/999' - '50e0032d41a8a1c9' I:Error adding file '/data/system_ce/999' to '/data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33/data.ext4.win000' Error creating backup. I:ERROR tarList for thread ID 0 Error creating backup. I:InfoManager saving '/data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33/data.info' createTarFork() process ended with ERROR: 255 Backup Failed. Cleaning Backup Folder. I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/862429a6/2018-12-19--01-09-33/recovery.log I:Set page: 'action_complete' I:operation_end - status=1 ```
Mygod commented 5 years ago

1256

piranhaphish commented 5 years ago

The same problem occurs when using a Work Profile (similar to parallel apps), as referenced in the post above by @Mygod.

It would be nice if there were an option to simply ignore files that weren't owned by the primary user or, more generically, to simply ignore all errors and make a best-effort backup.

andreas1288 commented 5 years ago

Please ignore that files on backup AND restore. So that the other user of profile will not be touched at all.

Manuel1948 commented 5 years ago

How could this issue be still open? I had the same problem and are very scared to update my phone because I am not able to do backups, because I setup a work profile. Are there only a few userswhich are affected by this problem?

Device: enchilada (Oneplus 6) Oxygen Stock-ROM... TWRP 3.3.1-2

m1cm1c commented 5 years ago

@Manuel1948 I have the same problem. I haven't updated my OnePlus 6 in ages because I'm afraid of having to spend a lot of time restoring everything should something go wrong while updating or while rooting again. I can only do half-arsed backups because TWRP Backup stopped working.

chrcoluk commented 4 years ago

Same issue here, but I have no idea if phone is using FBE, and if it is how to stop it using FBE.

These issues are all concerning, earlier I had a backup fail to restore, and its a 2 year old bug closed by a developer, I then find today I cannot make a backup either. A backup integrity bug in a backup program you would think is an urgent thing to fix.

I:Thread id 0 tarList done, 1 archives. I:Thread ID 0 finished successfully. I:InfoManager saving '/data/media/TWRP/BACKUPS/ceb3c546/1970-01-01--03-16-43/system.info' I:createTarFork() process ended with RC=0 I:Partition Backup time: 34 Invalid encryption mode 'ice:aes-256-cts' Backing up Data (excl. storage)... Backups of Data do not include any files in internal storage such as pictures or downloads. Invalid encryption mode 'ice:aes-256-cts' I:Creating backup... I:Creating tar file '/data/media/TWRP/BACKUPS/ceb3c546/1970-01-01--03-16-43/data.f2fs.win' I:addFile '/data/misc' including root: 0 ==> set selinux context: u:object_r:system_data_file:s0 found policy '/data/misc' - '1DK' - '2e6851d6ff7126d7' I:addFile '/data/misc/XdB,xdVLGAZ,o3uK0hYVTD' including root: 0 ==> set selinux context: u:object_r:recovery_data_file:s0 found policy '/data/misc/XdB,xdVLGAZ,o3uK0hYVTD' - '1DK' - '2e6851d6ff7126d7' I:addFile '/data/misc/XdB,xdVLGAZ,o3uK0hYVTD/Dv6sc2iE0QYHvAr+gS1nDCT9MYN' including root: 0 ==> set selinux context: u:object_r:recovery_data_file:s0 I:Error adding file '/data/misc/XdB,xdVLGAZ,o3uK0hYVTD/Dv6sc2iE0QYHvAr+gS1nDCT9MYN' to '/data/media/TWRP/BACKUPS/ceb3c546/1970-01-01--03-16-43/data.f2fs.win' Error creating backup. I:ERROR tarList for thread ID 0 Error creating backup. I:InfoManager saving '/data/media/TWRP/BACKUPS/ceb3c546/1970-01-01--03-16-43/data.info' createTarFork() process ended with ERROR: 255 Backup Failed. Cleaning Backup Folder. I:Copying file /tmp/recovery.log to /data/media/TWRP/BACKUPS/ceb3c546/1970-01-01--03-16-43/recovery.log

chrcoluk commented 4 years ago

Thinking about this some more and given the restore bug problem, I think twrp should move to using dd dumps for backups. dd shouldnt care about encryption either so would mean as long as android stick to conventional partitioning it will be future proof.

--edit--

I have confirmed without FBE backup works.

Senliast commented 4 years ago

Thinking about this some more and given the restore bug problem, I think twrp should move to using dd dumps for backups. dd shouldnt care about encryption either so would mean as long as android stick to conventional partitioning it will be future proof.

--edit--

I have confirmed without FBE backup works.

It's not as simple. The encryption, i.e saving of encryption keys is handled by TEE, it's a secured area in CPU. If you just copy the partition with dd and then restore it after reinstall of Android - it will not be decrypted even with a correct password, because the TEE will not trust the new Android anymore, I.e the keys in TEE will be erased during reinstall of Android. I tried it, unfortunately it is so.

m1cm1c commented 4 years ago

@Senliast Can't you dd the contents of the partition after decryption? I know too little about how it works in Android but usually on Linux if you have an entire encrypted partition, decrypting it yields a block device that is then mounted to gain access to the files. You can just start the decryption service and then dd the plain text block device.

Senliast commented 4 years ago

@Senliast Can't you dd the contents of the partition after decryption? I know too little about how it works in Android but usually on Linux if you have an entire encrypted partition, decrypting it yields a block device that is then mounted to gain access to the files. You can just start the decryption service and then dd the plain text block device.

Hm, didnt noticed this in Android... Before entering the password in TWRP and after it, the userdata is still the same device.

seahindeniz commented 3 years ago

The Error adding file '/data/misc_ce/999' to error is related to the second profile can also be known as second/private/guest space/users and Dual/Twin/Parallel apps on your device and they must be disabled and related folders must be removed in order to backup successfully.

You can delete these folders manually or you can execute some commands to delete them. Depends on your choice.


If you can't disable second space-related settings, you can execute the following command as last resort pm remove-user 999

Open CMD or bash on your pc and connect to your phone via ADB and then execute the following command

adb shell

If you can't connect to a pc, you can install a terminal app from the play store.

Once you run adb shell or open a terminal app, execute the following commands and they will remove the paths instantly.

su

pm remove-user 999

rm -rf /storage/emulated/999

rm -rf /data/system/999

rm -rf /data/system_ce/999

rm -rf /data/system_de/999

rm -rf /data/misc/999

rm -rf /data/misc_ce/999

rm -rf /data/misc_de/999

rm -rf /data/user/999

rm -rf /data/user_ce/999

rm -rf /data/user_de/999

rm -rf /data/vendor_ce/999

rm -rf /data/vendor_de/999
robustini commented 1 year ago

Similar error on my Samsung S9+:

I:Creating tar file '/external_sd/TWRP/BACKUPS/24cb2ddca30d7ece/2023-08-22--23-28-09_evolution_star2lte-userdebug_13_TQ3C2308050/data.ext4.win000' I:addFile '/data/mediadrm' including root: 1 ==> set selinux context: u:object_r:media_data_file:s0 I:addFile '/data/drm' including root: 1 ==> set selinux context: u:object_r:drm_data_file:s0 I:addFile '/data/drm/+yqYBP8PK6,8b9MJdSFutA' including root: 1 ==> set selinux context: u:object_r:drm_data_file:s0 I:addFile '/data/drm/+yqYBP8PK6,8b9MJdSFutA/EMii6GaOv7Xl02XGUxmAbD' including root: 1 ==> set selinux context: u:object_r:drm_data_file:s0 I:Error adding file '/data/drm/+yqYBP8PK6,8b9MJdSFutA/EMii6GaOv7Xl02XGUxmAbD' to '/external_sd/TWRP/BACKUPS/24cb2ddca30d7ece/2023-08-22--23-28-09_evolution_star2lte-userdebug_13_TQ3C2308050/data.ext4.win000' Error creating backup. I:ERROR tarList for thread ID 0 Error creating backup.