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/
Extracting files from a backup to a relative path, using the built-in tar in TWRP, should be possible.
WHAT STEPS WILL REPRODUCE THE PROBLEM?
Extracting files from a backup to a relative path, using the built-in tar in TWRP, isn't working.
To be clear, I'm using the tar that is included in twrp-3.6.2_9-0-hima.img from an adb shell in recovery.
(tangential, but tar --version reports toybox 0.7.4, but it'd make more sense for the TWRP devs to modify this version information if it includes extensions that are not identical to toybox 0.7.4 tar)
Here's an example:
tar -tvf system.ext4.win002 | grep system/vendor/lib64/libmdmdetect.so
Device codename: hima TWRP version: twrp-3.6.2_9-0-hima.img
WHAT IS THE EXPECTED RESULT?
Extracting files from a backup to a relative path, using the built-in tar in TWRP, should be possible.
WHAT STEPS WILL REPRODUCE THE PROBLEM?
Extracting files from a backup to a relative path, using the built-in tar in TWRP, isn't working.
To be clear, I'm using the tar that is included in twrp-3.6.2_9-0-hima.img from an adb shell in recovery. (tangential, but
tar --version
reportstoybox 0.7.4
, but it'd make more sense for the TWRP devs to modify this version information if it includes extensions that are not identical to toybox 0.7.4 tar)Here's an example:
-rw-r--r-- root/root 18344 2017-04-05 05:53:31 /system/vendor/lib64/libmdmdetect.so
tar: 'system/vendor/lib64/libmdmdetect.so' not in archive
If I add the leading '/':
it will extract the file to the absolute path.
If I add the leading '/' and append
-C new_directory
to the end of the command:it will ignore the appended argument pointing to the new_directory, and will still extract the file to the absolute path.
If I cd to the new_directory and run:
it will still extract the file to the absolute path.