[TabZ][TWRP][PhilZ Touch][CWM] XZDualRecovery Q&A

highend01

Senior Member
Nov 22, 2011
51
8
0
Its online now (TabZ starts the name), but remember, it is an alpha, it means you need to take precautions, like making sure you have EVERYTHING you might need to do a disaster recovery.
Don't scare me^^

As long as it doesn't brick the device by default I'd take the risk...
 

highend01

Senior Member
Nov 22, 2011
51
8
0
No hardbrick anyway, unless you flash something meant for Samsung devices :p
:)

Ok, installed it.

Made the first backup from inside TWRP.
Rebootet into system.
Deleted a few apps & shortcuts.
Rebootet into recovery.

Restore -> Select the backup package -> Swiped
...

Restore folder: '/<path to backup folder>'
Skipping MD5 check based on user setting.
Restoring 3 partitions...
Wiping system...
Formatting system using make_ext4fs function.

I don't have the next line but the "Restore Complete" at the top of the screen states:
FAILED...

If I try to do it again I get the same output, last 4 lines are:
Formatting system using make_ext4fs function.
E:Unable to mount '/system'
Restoring System...
E:Unable to mount '/system'

In the end that's exactly the same that CWM produced when I wanted to restore the backup...

Time to get into flashmode to install 4.2.2 via sony update service from scratch ;)
 
Last edited:

highend01

Senior Member
Nov 22, 2011
51
8
0
Did it again.

Output when trying to restore a backup:

Updating partition details...
Running boot script...

Finished running boot script.

[RESTORE STARTED]

Restore folder: '<path to folder>'
Skipping MD5 check based on user setting.
Restoring 3 partitions...
Wiping System...
Formatting System using make_ext4fs function.
Restoring System...

Top: Restore Complete
Failed (in red)

Logs are inside /cache/recovery
and /external_sd/XZDualRecovery
/tmp/XZDualRecovery doesn't exist

I've created two archives for the logs and attached them to this thread...
 

Attachments

  • Like
Reactions: [NUT]

[NUT]

Senior Member
Did it again.

Output when trying to restore a backup:

Updating partition details...
Running boot script...

Finished running boot script.

[RESTORE STARTED]

Restore folder: '<path to folder>'
Skipping MD5 check based on user setting.
Restoring 3 partitions...
Wiping System...
Formatting System using make_ext4fs function.
Restoring System...

Top: Restore Complete
Failed (in red)

Logs are inside /cache/recovery
and /external_sd/XZDualRecovery
/tmp/XZDualRecovery doesn't exist

I've created two archives for the logs and attached them to this thread...
It seems you didn't grab the logs right after it failed, or nothing was logged... you can (after a failed restore job) go back to the main menu and in 'advanced' copy the log to SD. It will be called 'recovery.log' in the root of your external sdcard.

I can understand you don't want to do it for a third time, but if you could, that would be super cool :cowboy:
 

highend01

Senior Member
Nov 22, 2011
51
8
0
It seems you didn't grab the logs right after it failed, or nothing was logged... you can (after a failed restore job) go back to the main menu and in 'advanced' copy the log to SD. It will be called 'recovery.log' in the root of your external sdcard.

I can understand you don't want to do it for a third time, but if you could, that would be super cool :cowboy:
Imho I did capture them correctly. I did it right after the restore failed...
adb shell
su
cd /cache/recovery
tar czf cache-recovery.tar.gz *
cd /external_sd/XZDualRecovery
tar czf external_sd-XZDualRecovery.tar.gz *
ctrl + c
adb pull /cache/recovery/cache-recovery.tar.gz D:\Temp
adb pull /external_sd/XZDualRecovery/external_sd-XZDualRecovery.tar.gz D:\Temp

I extracted, rezipped and added them to my last posting...

------------------------------------------------------------------------------------------------

Ok, installed XZDualRecovery again.

Made a backup.
Let TWRP copy the log to the external sd card.
Pulled it to my PC and renamed it to "backup.log".

Rebooted into system.
Back to TWRP.

Restore.
Failed
Let TWRP copy the log to the external sd card.
Pulled it to my PC.

Packed "restore.log" & "backup.log" to "logs.zip".
Attached "logs.zip"

Hope you are able to find the issue why restore doesn't work :)
 

Attachments

  • Like
Reactions: [NUT]

[NUT]

Senior Member
Imho I did capture them correctly. I did it right after the restore failed...
adb shell
su
cd /cache/recovery
tar czf cache-recovery.tar.gz *
cd /external_sd/XZDualRecovery
tar czf external_sd-XZDualRecovery.tar.gz *
ctrl + c
adb pull /cache/recovery/cache-recovery.tar.gz D:\Temp
adb pull /external_sd/XZDualRecovery/external_sd-XZDualRecovery.tar.gz D:\Temp

I extracted, rezipped and added them to my last posting...

------------------------------------------------------------------------------------------------

Ok, installed XZDualRecovery again.

Made a backup.
Let TWRP copy the log to the external sd card.
Pulled it to my PC and renamed it to "backup.log".

Rebooted into system.
Back to TWRP.

Restore.
Failed
Let TWRP copy the log to the external sd card.
Pulled it to my PC.

Packed "restore.log" & "backup.log" to "logs.zip".
Attached "logs.zip"

Hope you are able to find the issue why restore doesn't work :)
:good:

I've found the bug, after some extensive testing on my XZ (same issue was on there) I've repaired it, tested and confirmed working OK again:

2.7.34 now on my downloads page, remember: it's still ALPHA...
 
  • Like
Reactions: highend01

highend01

Senior Member
Nov 22, 2011
51
8
0
:good:

I've found the bug, after some extensive testing on my XZ (same issue was on there) I've repaired it, tested and confirmed working OK again:

2.7.34 now on my downloads page, remember: it's still ALPHA...
:victory:

Confirmed, works! Well done, [NUT]!

A few remaining things:

1. adb reboot recovery
Reboots the device but it won't start (by default: CWM) the recovery software. It only happens when volume up / down is used (for either TWRP / CWM)

2. An option to install only a single recovery (and skip creating directories, copying files for the two others, etc.)
E.g. for the install.bat file (I use Windows) by adding another
%CHOICE% /c:!recovery_choices! %RECOVERY_TEXT_PARAM% "Which recovery do you want to use (cwm, philz, twrp)?"
Whatever get's installed it should be the default recovery solution that is started when booting into recovery mode.

My main goal is to be able to use Nandroid Manager + Online Nandroid Backup * root
https://play.google.com/store/apps/details?id=com.h3r3t1c.bkrestore
https://play.google.com/store/apps/details?id=com.h3r3t1c.onnandbup

to allow a restore solution with a few taps inside Nandroid Manager:
Select the backup, click restore.

Tablet boots into recovery and restores it, reboots...
 
  • Like
Reactions: [NUT]

[NUT]

Senior Member
:victory:

Confirmed, works! Well done, [NUT]!

A few remaining things:

1. adb reboot recovery
Reboots the device but it won't start (by default: CWM) the recovery software. It only happens when volume up / down is used (for either TWRP / CWM)

2. An option to install only a single recovery (and skip creating directories, copying files for the two others, etc.)
E.g. for the install.bat file (I use Windows) by adding another
%CHOICE% /c:!recovery_choices! %RECOVERY_TEXT_PARAM% "Which recovery do you want to use (cwm, philz, twrp)?"
Whatever get's installed it should be the default recovery solution that is started when booting into recovery mode.

My main goal is to be able to use Nandroid Manager + Online Nandroid Backup * root
https://play.google.com/store/apps/details?id=com.h3r3t1c.bkrestore
https://play.google.com/store/apps/details?id=com.h3r3t1c.onnandbup

to allow a restore solution with a few taps inside Nandroid Manager:
Select the backup, click restore.

Tablet boots into recovery and restores it, reboots...
Unfortunately that will never work on our Xperia's as that is a function for devices with a recovery partition... our bootloader simply does not know these settings the apps and adb try to pass.

It would be good though... but no, sorry :(
 
  • Like
Reactions: highend01

highend01

Senior Member
Nov 22, 2011
51
8
0
Unfortunately that will never work on our Xperia's as that is a function for devices with a recovery partition... our bootloader simply does not know these settings the apps and adb try to pass.
:crying:

Ok, then I'll have to do it manually ;(

I'll add a tasker task to the homescreen that directly boots into recovery mode.

Code:
if [ -e "/cache/recovery/" ];
then
	touch /cache/recovery/boot
else
	mkdir /cache/recovery/
	touch /cache/recovery/boot
fi
reboot
Better than nothing ;)
 

[NUT]

Senior Member
:crying:

Ok, then I'll have to do it manually ;(

I'll add a tasker task to the homescreen that directly boots into recovery mode.

Code:
if [ -e "/cache/recovery/" ];
then
	touch /cache/recovery/boot
else
	mkdir /cache/recovery/
	touch /cache/recovery/boot
fi
reboot
Better than nothing ;)
You can also install Xperia Reboot from @DooMLoRD, which can do the trick just as fine :)

As a free alternative you can also flash the reboot wrapper he made, calling 'reboot recovery' will do exactly what you did in the above script.
 
Last edited:
  • Like
Reactions: highend01

highend01

Senior Member
Nov 22, 2011
51
8
0
As a free alternative you can also flash the reboot wrapper he made, calling 'reboot recovery' will do exactly what you did in the above script.
Thanks for the hint! I'm using the Xposed Framework with it's module "Advanced Power Menu" anyway and this solution in conjunction with the reboot wrapper allows me to reboot into recovery as well. From there on it's merely 3 clicks to restore an existing backup. Good enough :D
 

Half Alive

Senior Member
Jun 16, 2012
233
90
48
Jeddah
I have tried the latese beta -60. Using the windows installer.
And it gave me a bootloop.

In the first time I used it and there was an older version on my tablet and it went fine.
But then I formatted the tablet, root it then tried to install recovery .. bootloop.
Edit:
The .43 version is booting and working. Now i can restore my backup.
 
Last edited:

SnZ

Senior Member
Aug 14, 2011
355
45
0
I have tried the latese beta -60. Using the windows installer.
And it gave me a bootloop.

In the first time I used it and there was an older version on my tablet and it went fine.
But then I formatted the tablet, root it then tried to install recovery .. bootloop.
Edit:
The .43 version is booting and working. Now i can restore my backup.

same thing with Tablet Z (wifi).

Fix for .60?