Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,470 Members 40,420 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
[NUT]
Old
#1  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
Default [T/V/TL/TX][TWRP][PhilZ Touch][CWM] XZDualRecovery Q&A

-=[XZDualRecovery]=-
PhilZ Touch & CWM & TWRP
*** For Locked and Unlocked BOOTLOADERS! ***


Welcome to the Xperia T/V/TX/TL Questions & Answers thread!

I proudly present you the first and only DUAL RECOVERY for locked boot loaders on our lovely Xperia phones!

If you have an unlocked bootloader and chose to keep the STOCK Sony kernel, you can also use this MOD.

Currently supported XPERIA models:
Xperia Z: SO-02E, C6602, C6603, C6606, C6616
Xperia ZL: C6502, C6503, C6506
Xperia Tablet Z: SO-03E, SGP311, SGP312, SGP321, SGP351
Xperia Z Ultra: C6802, C6806, C6833, C6843
Xperia Z1: C6902, C6903, C6906, C6943, C6916
Xperia Z1 Compact: D5502, D5503, D5506
Xperia ZR: C5602, C5603, C5606
Xperia T, TX, TL and V: LT30p, LT29, LT30at, LT25i
Xperia SP: C5302, C5303

To follow development, be sure to check the DevDB thread!
The Following 2 Users Say Thank You to [NUT] For This Useful Post: [ Click to Expand ]
 
[NUT]
Old
#2  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
INSTALLER: How to install using the installer:
  1. Make sure you have USB debugging turned ON.
  2. download XT-lockeddualrecovery[VERSION]-BETA.installer.zip from http://nut.xperia-files.com
  3. Windows:
    1. unpack at C: or somewhere you will remember!
    2. navigate to the resulting directory and look for install.bat, double click it to run;
  4. Linux:
    1. unpack in your home folder with 'unzip XT-lockeddualrecovery[VERSION]-BETA.installer.zip'
    2. navigate to the resulting directory and 'chmod +x install.sh', then execute it, follow instructions.
  5. Your phone WILL reboot when installation has completed and it will go into the default recovery for the first boot.
  6. Reboot to system from recovery to allow the installer to clean up after installation (it is safe to skip this step).
  7. Enjoy DUAL RECOVERY!

How to install or update using a previously installed (XZDualRecovery) recovery:
Create a backup of /system/bin/chargemon and keep it somewhere safe, then just flash XT-lockeddualrecovery[VERSION]-BETA.flashable.zip from http://nut.xperia-files.com using CWM or TWRP.

How to remove:
 

Delete the following files:
/system/bin/recovery.twrp.cpio.lzma (or .tar)
/system/bin/recovery.cwm.cpio.lzma (or .tar)
/system/bin/recovery.philz.cpio.lzma
/system/bin/charger
/system/bin/dualrecovery.sh
/system/bin/mr

Rename /system/bin/mr.stock to /system/bin/mr to restore stock functionality, then inside /system/bin/ rename chargemon.stock to chargemon check its permissions (should be 755 or otherwise visible as -rwxr-x-r-x). Done!


When installing custom ROMs:
Be sure to flash XT-lockeddualrecovery[VERSION]-BETA.flashable.zip from http://nut.xperia-files.com after installing the ROM and before you reboot, this way you will not lose recovery!

How to use:
At boot, once you feel the phone vibrate and while you see the green led burn:
- press VOL-UP for PhilZ Touch;
- press VOL-DOWN for TWRP.

To enter Vanilla CWM, you will need to use the (free) NDRUtils app from the Play store

2.x Features:
  • When you have a SDCard1 and the XZDualRecovery is able to use it, you can put a file called 'donotrun' inside the XZDualRecovery log folder to make XZDualRecovery escape following boot attempts.
    If you find yourself in a bootloop situation, take out your SDCard1 and put that file in the directory if it exists using a PC. Reboot your phone with Power+Vol-UP and you will be able to boot your phone as if there was no recovery there!
  • XZDualRecovery will signal the escape or any reason why it would not be able to continue normal operation with a 2 second burn of your LED in the color RED. A reason would be a broken /cache and no SDCard1 or a busybox in /system/xbin which does not support the lzcat command. If you see that, check /tmp/XZDualRecovery for a logfile there, it will tell you why.
  • XZDualRecovery will try to use your SDCard1 for logging and functionality, if it has been formatted with ext2/4, FAT16/32 or exFAT. NTFS is currently unsupported.
  • XZDualRecovery now prevents the RIC service from starting up, this means when running XZDualRecovery the Remount-Reboot fix is no longer needed.

Defaults:
  • The default on first boot with the boot-to-recovery flag set by any recovery is PhilZ Touch Recovery.
  • Init.d support is disabled by default, set dr.enable.initd to true to enable it.
  • Insecure ramdisk support is disabled by default, set dr.insecure.ramdisk to true to enable it, set to 'power' to boot it by pressing the power button at boot.

Error reporting:
Please, when reporting errors or problems:
  • Put up a notice in this thread providing the package name you used to install or update;
  • Include ROM name and/or FW version numbers;
  • Include what SU apk you are using (SuperUser or SuperSU)
  • Send me the contents of all the log files from right after a failed boot attempt or a link to an archive containing these logs by PM (that's including the .old rotation logs!). If you have no website or online location to store the logs, PM me for an email address to send them to.
  • Logs can be found inside:
    • /cache/recovery
    • /tmp/XZDualRecovery
    • /storage/sdcard1/XZDualRecovery
    • /cache/XZDualRecovery (if the previous exists, this one will not!)
    NOTE: I need them ALL!
I really need them to troubleshoot what failed and what worked OK. Thank you!
The Following 4 Users Say Thank You to [NUT] For This Useful Post: [ Click to Expand ]
 
[NUT]
Old
#3  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
Special Thanks:
  • @DooMLoRD for all his excellent work on our much loved Sony phones!
  • The Team Win developers for TWRP
  • The ClockWorkMod developers for CWM
  • @alexocean for his awesome job testing almost all FW releases and the discovery of SuperSU causing problems for the installation of this recovery!
  • @RoberM for testing
  • @surdu_petru for testing and handy pointers
  • @Androxyde for allowing to use his linux and mac adb binaries.
  • @lancebukkake for finding the TWRP 'fix' to use exFAT formatted sdcards!
  • @delewer for the final fix for TWRP and its use of exFAT formatted sdcards
  • @DevShaft for some code help on the windows installer (the menu!)
  • @Androxyde again, but now for his bash code/script suggestions... oh boy this guy is a genius!
  • @Tamirwig and @shoey63 for their excellent job at testing early BETA's (Xperia Z)
  • @gregbradley for his extensive testing on the Xperia Z1

Well, enjoy!

The origins of this XZDualRecovery package are in the packages done by:
Krabappel2548, Cpasjuste and DooMLoRD
Thank you for your excellent work guys!

Your thanks (and donations) should (also) go out to them, they deserve it!



My work for the community on XDA ~ My file hosting ~ Please do not mirror my files!
Xperia Arc (LT15i), Xperia P (LT22i), Xperia T (LT30p), Xperia L (C2105), Xperia Z (C6603), Xperia Tablet Z (SGP321), Xperia Z1 (C6903), Xperia Z2 (D6503)
The Following 2 Users Say Thank You to [NUT] For This Useful Post: [ Click to Expand ]
 
BreckZeBoulay
Old
#4  
BreckZeBoulay's Avatar
Senior Member
Thanks Meter 87
Posts: 342
Join Date: Oct 2012
Location: Boulay in Frankreich :D
Is it possible to flash this recovery by using and overwriting this one ?
 
[NUT]
Old
#5  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
Quote:
Originally Posted by BreckZeBoulay View Post
Is it possible to flash this recovery by using and overwriting this one ?
Yes, it should work ok. Just check if /system/bin/chargemon exists. If it does you can use xzdualrecovery. I know @peetr_ used taimport as the replacement for chargemon, so until you remove the replacement taimport and rename the binary you will have 2 recovery packages installed and working



My work for the community on XDA ~ My file hosting ~ Please do not mirror my files!
Xperia Arc (LT15i), Xperia P (LT22i), Xperia T (LT30p), Xperia L (C2105), Xperia Z (C6603), Xperia Tablet Z (SGP321), Xperia Z1 (C6903), Xperia Z2 (D6503)
The Following User Says Thank You to [NUT] For This Useful Post: [ Click to Expand ]
 
BreckZeBoulay
Old
#6  
BreckZeBoulay's Avatar
Senior Member
Thanks Meter 87
Posts: 342
Join Date: Oct 2012
Location: Boulay in Frankreich :D
I've got a weird issue with this recovery (tested with the three ones include) and not with the one of peetr_.
I've made my own rom, and i can't flash the zip, there's "error argument" when formating system.

my script :
Code:
ui_print("- Formating /system");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "0", "/system");
ui_print("- Copying to /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
if i mod the script like this :
Code:
ui_print("- Formating /system");
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
ui_print("- Copying to /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
Formating is done but after system is not copy into /system, the flash is too fast (not a second), but there's no error ^^


May be it's not the right place to post this and may be it's a known issue....
 
[NUT]
Old
(Last edited by [NUT]; 3rd April 2014 at 02:53 PM.)
#7  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
Quote:
Originally Posted by BreckZeBoulay View Post
I've got a weird issue with this recovery (tested with the three ones include) and not with the one of peetr_.
I've made my own rom, and i can't flash the zip, there's "error argument" when formating system.

my script :
Code:
ui_print("- Formating /system");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "0", "/system");
ui_print("- Copying to /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
if i mod the script like this :
Code:
ui_print("- Formating /system");
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
ui_print("- Copying to /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
Formating is done but after system is not copy into /system, the flash is too fast (not a second), but there's no error ^^


May be it's not the right place to post this and may be it's a known issue....
Actually, it sounds like a problem I had a while back. Can you enter recovery (any will do) and then adb shell to the device to type:

Code:
busybox lsof
You'll get a list with files 'locking' anything anywhere. See if you can find a lock on '/system' or just simply '/bin'

Also, I ususally steer clear from the edify format and just do:

Code:
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");
This has worked flawlessly on any device I have ever owned or built anything for, except when there are file locks still lurking of course



My work for the community on XDA ~ My file hosting ~ Please do not mirror my files!
Xperia Arc (LT15i), Xperia P (LT22i), Xperia T (LT30p), Xperia L (C2105), Xperia Z (C6603), Xperia Tablet Z (SGP321), Xperia Z1 (C6903), Xperia Z2 (D6503)
 
BreckZeBoulay
Old
(Last edited by BreckZeBoulay; 3rd April 2014 at 03:00 PM.)
#8  
BreckZeBoulay's Avatar
Senior Member
Thanks Meter 87
Posts: 342
Join Date: Oct 2012
Location: Boulay in Frankreich :D
Quote:
Originally Posted by [NUT] View Post
Actually, it sounds like a problem I had a while back. Can you enter recovery (any will do) and then adb shell to the device to type:

Code:
busybox lsof
You'll get a list with files 'locking' anything anywhere. See if you can find a lock on '/system' or just simply '/bin'
I never try but I try to do this after children time

Another question : there are two different versions :
XT-lockeddualrecovery2.7.101-BETA.flashable.zip (6.5MB)
and
XT-lockeddualrecovery2.7.102-BETA.installer.zip (8.23MB)

which one i prefer ?
 
[NUT]
Old
#9  
[NUT]'s Avatar
Recognized Contributor - OP
Thanks Meter 5,977
Posts: 4,106
Join Date: Oct 2012
Location: Cyberspace and the Universe

 
DONATE TO ME
Quote:
Originally Posted by BreckZeBoulay View Post
I never try but I try to do this after children time

Another question : there are two different versions :
XT-lockeddualrecovery2.7.101-BETA.flashable.zip (6.5MB)
and
XT-lockeddualrecovery2.7.102-BETA.installer.zip (8.23MB)

which one i prefer ?
XT-lockeddualrecovery2.7.103-BETA.installer.zip



My work for the community on XDA ~ My file hosting ~ Please do not mirror my files!
Xperia Arc (LT15i), Xperia P (LT22i), Xperia T (LT30p), Xperia L (C2105), Xperia Z (C6603), Xperia Tablet Z (SGP321), Xperia Z1 (C6903), Xperia Z2 (D6503)
 
BreckZeBoulay
Old
#10  
BreckZeBoulay's Avatar
Senior Member
Thanks Meter 87
Posts: 342
Join Date: Oct 2012
Location: Boulay in Frankreich :D
oups open your eyes Breck !
and make some space in this enormous list Nut !

I try ASAP !

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes