[T/V/TL/TX][TWRP][PhilZ Touch][CWM] XZDualRecovery Q&A

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
Besides this code change... in your update script, do you unmount the system partition before you try to format it?
No unmount at the begining of my script ^^

For the moment my script is like that :
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");

blablabla

unmount("/system");
Now if I follow your instructions :
Code:
show_progress(0.1, 0);
unmount("/system");
run_program("/sbin/make_ext4fs", "/dev/block/platform/msm_sdcc.1/by-name/System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");

blablabla

unmount("/system");
Right ?
 
  • Like
Reactions: [NUT]

[NUT]

Senior Member
No unmount at the begining of my script ^^

For the moment my script is like that :
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");

blablabla

unmount("/system");
Now if I follow your instructions :
Code:
show_progress(0.1, 0);
unmount("/system");
run_program("/sbin/make_ext4fs", "/dev/block/platform/msm_sdcc.1/by-name/System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");

blablabla

unmount("/system");
Right ?
That should be correct, yes :good:

Let me know what happens! :fingers-crossed:
 

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
That should be correct, yes :good:

Let me know what happens! :fingers-crossed:
Not good ^^
The format run good, but the problem is the reboot of the phone during package_extract_dir("system", "/system") :rolleyes: (using TWRP)
Bye bye system, hello Flashtool :D

I reinstall 4.1.2, root and CWM.
And after i install my 4.3 with "your" script using CWM from peetr_

EDIT : no problem of flash using your script with peetr_'s cwm
 
Last edited:
  • Like
Reactions: [NUT]

[NUT]

Senior Member
Not good ^^
The format run good, but the problem is the reboot of the phone during package_extract_dir("system", "/system") :rolleyes: (using TWRP)
Bye bye system, hello Flashtool :D

I reinstall 4.1.2, root and CWM.
And after i install my 4.3 with "your" script using CWM from peetr_

EDIT : no problem of flash using your script with peetr_'s cwm
I believe I found the reason...

Can you try using version 105?
 

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
Can you try using version 105?
Installation fails with this version and phone doesn't reboot

Code:
==============================================
=                                            =
=  PhilZ Touch, CWM and TWRP Dual Recovery   =
=           Maintained by [NUT]              =
=                                            =
=       For Many Sony Xperia Devices        =
=                                            =
==============================================

[ 1. Installation on ROM rooted with SuperSU ]
[ 2. Installation on ROM rooted with SuperUser ]
[ 3. Installation on unrooted ROM ]
[ 4. Exit ]
Please choose install action.[1,2,3,4]?1
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
=============================================
Waiting for Device, connect USB cable now...
=============================================
Device found


=============================================
Step2 : Sending the recovery files.
=============================================
0 KB/s (29 bytes in 1.000s)
14 KB/s (14623 bytes in 1.000s)
31 KB/s (501 bytes in 0.015s)
10 KB/s (11024 bytes in 1.000s)
2421 KB/s (38739 bytes in 0.015s)
3 KB/s (3082 bytes in 1.000s)
24 KB/s (385 bytes in 0.015s)
3736 KB/s (657704 bytes in 0.171s)
4258 KB/s (2521218 bytes in 0.578s)
4224 KB/s (2365506 bytes in 0.546s)
4084 KB/s (1764697 bytes in 0.421s)
7 KB/s (8072 bytes in 1.000s)

=============================================
Step3 : Setup of dual recovery.
=============================================
Look at your device and grant supersu access
Press any key to continue AFTER granting root access.
-rwxr-xr-x    1 shell    shell       657704 Apr  7 14:57 /data/local/tmp/recover
y/busybox
Appuyez sur une touche pour continuer...
/data/local/tmp/recovery/install.sh[47]: syntax error: 'INPUTDEV=$(${BUSYBOX} gr
ep "DEVNAME=" ${INPUTUEVENT} | ${BUSYBOX} sed "s/DEVNAME=//" )' unexpected
Waiting for your device to reconnect.
After entering CWM for the first time, reboot to system to complete this install
er if you want it to clean up after itself.

=============================================
Installation finished. Enjoy the recoveries
=============================================

Appuyez sur une touche pour continuer...
 
  • Like
Reactions: [NUT]

[NUT]

Senior Member
Installation fails with this version and phone doesn't reboot

Code:
==============================================
=                                            =
=  PhilZ Touch, CWM and TWRP Dual Recovery   =
=           Maintained by [NUT]              =
=                                            =
=       For Many Sony Xperia Devices        =
=                                            =
==============================================

[ 1. Installation on ROM rooted with SuperSU ]
[ 2. Installation on ROM rooted with SuperUser ]
[ 3. Installation on unrooted ROM ]
[ 4. Exit ]
Please choose install action.[1,2,3,4]?1
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
=============================================
Waiting for Device, connect USB cable now...
=============================================
Device found


=============================================
Step2 : Sending the recovery files.
=============================================
0 KB/s (29 bytes in 1.000s)
14 KB/s (14623 bytes in 1.000s)
31 KB/s (501 bytes in 0.015s)
10 KB/s (11024 bytes in 1.000s)
2421 KB/s (38739 bytes in 0.015s)
3 KB/s (3082 bytes in 1.000s)
24 KB/s (385 bytes in 0.015s)
3736 KB/s (657704 bytes in 0.171s)
4258 KB/s (2521218 bytes in 0.578s)
4224 KB/s (2365506 bytes in 0.546s)
4084 KB/s (1764697 bytes in 0.421s)
7 KB/s (8072 bytes in 1.000s)

=============================================
Step3 : Setup of dual recovery.
=============================================
Look at your device and grant supersu access
Press any key to continue AFTER granting root access.
-rwxr-xr-x    1 shell    shell       657704 Apr  7 14:57 /data/local/tmp/recover
y/busybox
Appuyez sur une touche pour continuer...
/data/local/tmp/recovery/install.sh[47]: syntax error: 'INPUTDEV=$(${BUSYBOX} gr
ep "DEVNAME=" ${INPUTUEVENT} | ${BUSYBOX} sed "s/DEVNAME=//" )' unexpected
Waiting for your device to reconnect.
After entering CWM for the first time, reboot to system to complete this install
er if you want it to clean up after itself.

=============================================
Installation finished. Enjoy the recoveries
=============================================

Appuyez sur une touche pour continuer...
Darn, I'll try to fix that tonight, can you test install it using the flashable version?
 

[NUT]

Senior Member
installation works with flashable version.
so i tried to flash the rom, and..... bam reboot during flash of /system ! :mad:
:crying:

Okay, back to square one:

When you are trying to execute your rom installer, open adb shell and run this command BEFORE you start the flashing operation.

Code:
/sbin/busybox tail /tmp/recovery.log
Lets see what fails during the flash operation...

Also, please give TWRP a try too, I want to know if the same thing happens with that...

Can you send me a copy (send me a link in PM if you don't want to share it yet) of your ROM?