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

[NUT]

Senior Member
May be TX needs it own version, it's a special phone :silly:
There is one thing you can test, IF this is successful then I will need to skip the XT version until the next BETA version...

In the OS use ES File Explorer or Root Explorer and navigate to /system/bin

Remove 'mr' but leave 'mr.stock' in place.

Rename 'chargemon' to 'mr' and rename 'chargemon.stock' to 'chargemon'.

Reboot to recovery (any which rebooted previously) and let it idle. What happens?
 

[NUT]

Senior Member
i don't have have mr.stock

no more access to recovery, directly boot.
Grrr ... did you have mr?

I really need to check the default ramdisk for the Xperia TX ... there is something different about it indeed :mad:

Are you able to attach the kernel.sin from a 4.1 and a 4.3 ROM to this thread for me to take a look? You can take the FTF files you have and open them in winzip/winrar to extract the kernel.sin file.
 

[NUT]

Senior Member
Thank you :good:

If you try to rename what is now 'mr' to taimport, making sure the original binary is renamed to taimport.stock and can you try it once more?

You will need to edit the scripts then though: in the taimport/mr/chargemon script you will need to look for the EXIT2CM function and change the exec line from /system/bin/chargemon.stock to /system/bin/taimport.stock. Then open dualrecovery.sh and look at the last lines in the script, one of the last things it does it execute chargemon.stock, change that to taimport.stock too.

I did not yet check the kernel ramdisks yet, this is something we are planning on implementing in version 2.9 after 2.7 will get released as 2.8.

I'm considering dropping the Xperia T/TX/V/TL version until then, but at this rate of patch releases with small issues fixed it probably won't take long to get there.
 

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
If you try to rename what is now 'mr' to taimport, making sure the original binary is renamed to taimport.stock and can you try it once more?

You will need to edit the scripts then though: in the taimport/mr/chargemon script you will need to look for the EXIT2CM function and change the exec line from /system/bin/chargemon.stock to /system/bin/taimport.stock. Then open dualrecovery.sh and look at the last lines in the script, one of the last things it does it execute chargemon.stock, change that to taimport.stock too.
And...... BINGO ! No more reboot with CWM and TWRP. And flashing a rom works (i tried with CWM)
EDIT : flash with TWRP works too

See my face when i read that..... :eek:
:D

---------- Post added at 03:53 PM ---------- Previous post was at 03:31 PM ----------
@[NUT] Another strange thing ? :D (existing since the beginning of our tests)

In CWM, i can normaly see the two memories of the phone, internal (storage/sdcard0) and SD (storage/sdcard1).
But in TWRP i just have access to SD (/external_sd). I've got an internal storage (/sdcard) but there's only a TWRP directory in it, and i don't have a TWRP directory in the internal memeory ^^
 
Last edited:
  • Like
Reactions: [NUT]

[NUT]

Senior Member
@[NUT] Another strange thing ? :D (existing since the beginning of our tests)

In CWM, i can normaly see the two memories of the phone, internal (storage/sdcard0) and SD (storage/sdcard1).
But in TWRP i just have access to SD (/external_sd). I've got an internal storage (/sdcard) but there's only a TWRP directory in it, and i don't have a TWRP directory in the internal memeory ^^
Hmm... I'm not sure if you know how this works in TWRP:

TWRP Home -> Install/Backup/Restore/Mount

Then at either the TOP of the screen or just under the main content you see either 'Internal Storage (XXXXMb free)' or 'External Storage (XXXXMb free)'. Tap that to change the location you wish to install from.

Chance is that the internal storage has been mounted on /storage/sdcard instead of /sdcard

The internal storage setup in the Xperia T/V/TX/TL is a bit confusing for the auto-mounter in TWRP and PhilZ both ...
 

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
@[NUT] :
Speaking of TWRP, I confirm, my previous answer, SD card is normaly read and i see all the directories, not in internal storage. I just see a TWRP directory that don't exist (see screenshot). May be I missed something.

Two other littles bugs :
- when i use your NDR utils app, phone always reboots on Phil's CWM.
- at the beginning of the boot, two vibrations to enter in recovery, and two others vibration when system begins to boot (when bootanim starts)
 

Attachments

[NUT]

Senior Member
@[NUT] :
Speaking of TWRP, I confirm, my previous answer, SD card is normaly read and i see all the directories, not in internal storage. I just see a TWRP directory that don't exist (see screenshot). May be I missed something.

Two other littles bugs :
- when i use your NDR utils app, phone always reboots on Phil's CWM.
- at the beginning of the boot, two vibrations to enter in recovery, and two others vibration when system begins to boot (when bootanim starts)
NDRutils needs an update, download it through play.

The second vibration is probably because of a copy of the script named chargemon which you didn't rename but copy to taimport. There is no other way it can restart the double vibration otherwise...

Are you able to take pictures of what you see in twrp?
 

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
Are you able to take pictures of what you see in twrp?
yeap !
choice of memory / internal memory / SD card (see screenshots)

NDRutils needs an update, download it through play.
update done and now all types of reboots work.
and for confirmation, original CWM and Phil's CWM read well the internal memory, not TWRP.
 

Attachments

Last edited:
  • Like
Reactions: [NUT]

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
Once you do, type 'mount' and paste the output here please.
Code:
C:\Users\Pierre\Desktop\sdk\platform-tools>cmd
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\Pierre\Desktop\sdk\platform-tools>adb shell
~ # ←[6nmount
mount
rootfs on / type rootfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /mnt/secure type tmpfs (rw,seclabel,relatime,mode=700)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
/dev/block/mmcblk0p13 on /cache type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p14 on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk1p1 on /external_sd type vfat (rw,relatime,fmask=0000,dmask=000
0,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=rem
ount-ro)
/dev/block/mmcblk0p14 on /data type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p14 on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)
~ # ←[6n
Another thing.
Before going to sleep, i plugged my phone to wall charger, and this morning the phone was off.
And battery was not fully charged (98%)
Never see that before...
 

[NUT]

Senior Member
@BreckZeBoulay if you can download http://nut.xperia-files.com/tmp/recovery.twrp.cpio.lzma and push it in to /system/bin and see if that allows you to mount the correct internal storage?

It seems TWRP is treating the device as a data-media device, which means if you use a file explorer to visit /data/ you will see a folder media inside, which will probably hold the TWRP folder you where seeing :rolleyes:

Another thing.
Before going to sleep, i plugged my phone to wall charger, and this morning the phone was off.
And battery was not fully charged (98%)
Never see that before...
Can you check if /system/bin/chargemon exists and is a fair bit larger then 14kb? If you don't see it and still have chargemon.stock, rename that. This file is needed/required for off-line charging.

I have no idea how your device turned itself off if you didn't do that yourself on purpose though... :eek:
 
Last edited:

BreckZeBoulay

Senior Member
Oct 23, 2012
1,362
631
143
Boulay in Frankreich :D
if you can download http://nut.xperia-files.com/tmp/recovery.twrp.cpio.lzma and push it in to /system/bin and see if that allows you to mount the correct internal storage?

It seems TWRP is treating the device as a data-media device, which means if you use a file explorer to visit /data/ you will see a folder media inside, which will probably hold the TWRP folder you where seeing :rolleyes:


Can you check if /system/bin/chargemon exists and is a fair bit larger then 14kb? If you don't see it and still have chargemon.stock, rename that. This file is needed/required for off-line charging.
done, and see the result.
screen1, new choice appears (sdcard0)
screen2, where goes this new choice, at the same directory

nope! (screen3)

more than a fair bit larger :p (screen4)
 

Attachments

[NUT]

Senior Member