Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build TWRP custom-tar on Linux/Cygwin/... ? #1618

Open
4 tasks done
JustMyGithub opened this issue Dec 26, 2021 · 2 comments
Open
4 tasks done

Build TWRP custom-tar on Linux/Cygwin/... ? #1618

JustMyGithub opened this issue Dec 26, 2021 · 2 comments

Comments

@JustMyGithub
Copy link

  • I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
  • I am running the latest version of TWRP
  • I have read the FAQ (https://twrp.me/FAQ/)
  • I have searched for my issue and it does not already exist

You use a custom version of tar for TWRP backups, as stated for example in #1472 - is it possible to build your version of tar on non-android devices so that backups can be handled without the need to copy back the backup to a android device, ssh there and so on?

@aIecxs
Copy link

aIecxs commented Apr 17, 2022

I tried to create win files from GNU tar did not succeed unfortunately, I believe it's about file name length in header requires multiple 512-byte block sometimes?
related post by @BuildingAtom in #964 (comment)_

you might also interested in my script
https://forum.xda-developers.com/showthread.php?t=3775129

@simon816
Copy link

In case it helps someone, I've lifted the modified libtar code from TWRP and successfully built it: https://github.com/simon816/libtar-twrp

The code is from the Android 9 branch of TWRP: https://github.com/TeamWin/Team-Win-Recovery-Project/tree/android-9.0/libtar

I have successfully extracted a /data backup created by TWRP version 3.6.1_9-0-e4274559 using the basic command line tool from libtar, example: ./libtar/libtar -C outdir -x data.ext4.win000

I have not added support for encrypted backups though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants