-
Notifications
You must be signed in to change notification settings - Fork 54
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
Linux backup support #10
base: master
Are you sure you want to change the base?
Conversation
…a functioning su binary
Ref #6 |
Hi Tom Good to have some Linux/mac support coming.... |
Please do test it. If it's possible to compare the files produced from Linux and Windows that would be handy e.g. unzip the file it produces and check (md5sum) that the files inside are the same. |
Can't test on Windows too easily right now. Tried the backup on Arch with this verbose:
INTEGRITY CHECKFAILED - Backup does not match TA Partition. Please try again. |
Please try my branch again and run the finding script directly cd into the scripts/linux directory and run You should get output like : Please let me have that section, the lines starting ? or = |
My branch should now locate the partition correctly on all supported devices. Let me know. |
Hi Tom Sorry for delay. Output for your script:
Output for
179 0 15388672 mmcblk0 Hope this helps Ian On 08/11/14 14:18, Tom Chiverton wrote:
|
Fix escapes on menu script
@Hutchism please try again. It runs through correctly on my Z1 compact now. |
Hi Tom Seems to work now. Will try and compare it to a windows backup at some This is the output of your script:FIND TA PARTITIONpartition /dev/block/mmcblk0p1BACKUP TA PARTITION4096+0 records in INTEGRITY CHECKPULL BACKUP FROM SDCARD6050 KB/s (2097152 bytes in 0.338s) INTEGRITY CHECKPACKAGE BACKUPadding: TA.img (deflated 88%) adding: TA.platform (stored 0%)This is the file list of tmpbak: Suggest using tar instead of zip, as I had to download the zip command, Nice to see it progress! :) Will let you know as soon as I've run it on Windows for compare. Good on you! :) :) :) Ian
|
Just so you know - md5s are same for both Windows and Linux :-)
|
So far so good, tested in my Xperia Z1 Compact and it works very well, good job 👍 |
I just tried this on my Xperia Z2 and it wasn't able to find the partition
It hangs here waiting after starting the daemon I then ran the find script and this was the output
|
@mzazzali There is an issue with the adb install and/or your device. Was the device prompting you for anything ? Does "adb devices" say anything ? Does "adb shell" work ? |
So I ran
Then after reinstalling adb
Then after rerunning the ./find.sh script
I am running this on OSX so that might be why I am getting a syntax error. I haven't looked at the script yet so I will probably do that next when I get some time. |
I found 2 issues one of them is OSX specific the other I am not sure what's causing it yet The "expr: syntax error" issue is because the expr command doesn't exist on osx. So this script won't work without modifications on OSX which isn't the intent of this thread anyway. I'll see if I can fix those myself. The second issues is that the check-root script is failing
The script seems to think I don't have root. I was able to use a root checker app to verify I do have root after using towelroot. I also was able to install superSU.
After a lot of hacking at the scripts it's still not finding the partitions
|
OSX is not Linux, and I have no way to test on that platform. I suggest you start a new thread and/or fork from this Linux branch? |
I would like to try this on my Xperia z3 compact, too. But, how do I get these files / scripts? |
I've tried this with my Xperia Z3C. It seems to work fine. Thank you. |
This may not be the best place to write it, but just so you know i successfully backed up my Xperia Z3C on OSX, by slightly modifying the script. I modified the expr command (only the first one because I didn't need to go further) like this:
Indeed, expr is shipped in osx but the "match" command is not supported I also changed the local MD5 command
i created a fork with my modifications, if someone is interested: |
Yet another fork based on arnaudruffin's with some minor bugfixes. The script worked for me on Linux backing up a Z3 compact. |
@DevShaft will this be merged? |
This adds Linux specific scripts and menu for TA-Backup
At the moment, this is only for backup, and tested only on a Z1 Compact.
The created .zip has the same embedded version number for compatibility reasons, but has a TA.platform file containing the word 'Linux' to indicate it came from this branch.