DevShaft / Backup-TA

120 stars 54 forks source link

Support for linux #6

Open Bersam opened 10 years ago

Bersam commented 10 years ago

Hi @DevShaft, i saw your post in xda about support Mac and Linux. It would be great if you port these bat stuff to bash to use it in Mac and Linux and even Windows itself.

tomchiverton commented 9 years ago

I don't think anyone will try and port the menu structure, but a standalone 'backup.sh' etc should be easy enough, taking a quick look at it it's just a bunch of calls to adb ?

luzemario commented 9 years ago

There are a bunch of .EXEs in the tools directory. This is a Windows-only tool.

tomchiverton commented 9 years ago

Here is my branch based on a few minutes I had today: https://github.com/tomchiverton/Backup-TA/tree/master/scripts/linux

I'm just understanding the partition code in the Windows only batch scripts and then backup will be available from Linux.

attn: @luzemario : none of the .exe files are special in any way and will be available in any normal Linux install

tomchiverton commented 9 years ago

Backups should now be supported on Linux

tomchiverton commented 9 years ago

Now we have backups working on Linux, I can't yet think of a good way to test restores. Guess someone will have to brave at some point. Adding them to the Linux scripts shouldn't be too hard

famo commented 9 years ago

@DevShaft any plans to merge this? TIA

axelsimon commented 8 years ago

@tomchiverton Not exactly the place to do this, but I wanted to thank you for taking the time to create the linux version of the script. I just successfully backed up my Z3 Compact's TA partition :)

If I get round to restoring, I'll report here.

Thanks!

tomchiverton commented 7 years ago

Note, this is less of an issue now, as modern rooting methods (like http://forum.xda-developers.com/z3-compact/general/recovery-root-mm-575-lb-t3418714 for the Z3 compact) support Linux or if not, tend to be a .bat file of adb commands you can run by hand. Mostly they don't require the bootloader to be unlocked, which destroys the DRM keys, which need this tool to backup and restore them.

bam80 commented 6 years ago

@tomchiverton unlocking the bootloader is still needed for alternative ROMs

nailyk-fr commented 6 years ago

Use this for TA backup under linux : https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236 ( Advertisement: Live CD for android: https://forum.xda-developers.com/android/software-hacking/live-iso-adb-fastboot-driver-issues-t3526755 )