[DEVDB][TWRP][PhilZ Touch] XZDualRecovery 2.8.26 RELEASE

[NUT]

Senior Member
[DUAL RECOVERY] Version 1.3 released

Change log:
Version 1.3:
  • When available this recovery will now use the external SDcard when it has been formatted with FAT16/FAT32 (explicitly NOT exFAT), ext2 or ext4 for storage of chargemon log and key recording. This makes the loss of /cache irrelevant as it will continue to work! It will create a directory on it called XZDualRecovery.
  • For debugging purposes it will now also create a log inside /tmp/XZDualRecovery to record all things relevant and important before the SDcard gets mounted. When reporting problems, please also include the log from this directory.

Download links in OP updated, updater zip updated.

All files are now available on http://www.fun-industries.nl/xda/

Enjoy!
 

LiveSquare

Senior Member
Aug 26, 2010
1,684
342
0
Singapore
Change log:
Version 1.3:
  • When available this recovery will now use the external SDcard when it has been formatted with FAT16/FAT32 (explicitly NOT exFAT), ext2 or ext4 for storage of chargemon log and key recording. This makes the loss of /cache irrelevant as it will continue to work! It will create a directory on it called XZDualRecovery.
  • For debugging purposes it will now also create a log inside /tmp/XZDualRecovery to record all things relevant and important before the SDcard gets mounted. When reporting problems, please also include the log from this directory.

Download links in OP updated, updater zip updated.

All files are now available on http://www.fun-industries.nl/xda/

Enjoy!
Check your PM. I've send you the logs.
 
  • Like
Reactions: [NUT]

[NUT]

Senior Member
Check your PM. I've send you the logs.
From the chargemon.log I can see I fubarred something on the key check. I'll fix and upload the patched version within 2h, thanks for sending the logs!

Sent from my C6603 using xda app-developers app

Does TWRP 2.5.0.0 still have any bugs?
Probably yes, but you might get lucky :)

Just give it a try and see :cool:
 
Last edited:
  • Like
Reactions: californicated

[NUT]

Senior Member
[DUAL RECOVERY] Version 1.4 released

Well, it took a little longer :p found some other stuff... 1.3 feels like a rush job now, while it was far from it :eek:

Change log:
Version 1.4:
  • Since the step up to the .cpio.lzma archives it stopped working for some, while for others it kept working... this was due to busybox versions lacking the lzcat for the unpacking process. This recovery now flashes/installs a busybox into /system/bin which supports it.
  • Loads of various and tiny tidbits in the scripting.
  • Fixed a small bug in the SDCard1 mounting functionality.
  • When an SDCard1 is found, it now cleans up /cache/chargemon.
  • Switched the keycheck file location to /dev (as it is actually a tmpfs filesystem)
  • Added a vibration to signal it's time to punch a button.

All files are now available on http://www.fun-industries.nl/xda/

Well, enjoy!
 
Last edited:

RoberM

Senior Member
Oct 12, 2011
253
121
0
ESPAÑA
Just installed 1.4 over standard CWM and now no recovery works, it doesn't matter if I use vol up or vol down, all I get is purple led forever.


19700123 122045: ### SDCard1 FS found: FAT32 with code 'Win95'.
19700123 122045: ### Not mounting SDCard1!
19700123 122045: ### Logfile rotation...
19700123 122045: /system/xbin/busybox mv /cache/chargemon/chargemon.log /cache/chargemon/chargemon.log.old
19700123 122045: RET=0
19700123 122045: /system/xbin/busybox touch /cache/chargemon/chargemon.log
19700123 122045: RET=0
19700123 122045: /system/xbin/busybox chmod 660 /cache/chargemon/chargemon.log
19700123 122045: RET=0
 
Last edited:

[NUT]

Senior Member
Just installed 1.4 over standard CWM and now no recovery works, it doesn't matter if I use vol up or vol down, all I get is purple led forever.


19700123 122045: ### SDCard1 FS found: FAT32 with code 'Win95'.
19700123 122045: ### Not mounting SDCard1!
19700123 122045: ### Logfile rotation...
19700123 122045: /system/xbin/busybox mv /cache/chargemon/chargemon.log /cache/chargemon/chargemon.log.old
19700123 122045: RET=0
19700123 122045: /system/xbin/busybox touch /cache/chargemon/chargemon.log
19700123 122045: RET=0
19700123 122045: /system/xbin/busybox chmod 660 /cache/chargemon/chargemon.log
19700123 122045: RET=0
:eek:

That's what this version is supposed to fix, lol :silly:

Can you open up a terminal app and execute /system/bin/busybox
Please let me know what version it says it is and search the commands it supports if it has lzcat as a command.

I hope you created a backup of your original chargemon script as instructed in the OP, thats your easy way back to your previously installed CWM.

[EDIT]

Doh! I think i know whats wrong, you probably have a busybox inside /system/xbin ... that is probably being used, can you repeat the above instructions on /system/xbin/busybox ?
 
Last edited:

cron0s879D

Senior Member
Apr 2, 2013
110
5
0
Barcelona
Hi!

Thank you for your job.

I would like install TWRP 2.5.0.0 in my new Lenovo A820 (based in MTK6589).

Anyone can say me how to install it?

I don't found any tutorial for install TWRP for my phone.

Thank you!
 

RoberM

Senior Member
Oct 12, 2011
253
121
0
ESPAÑA
:eek:

That's what this version is supposed to fix, lol :silly:

Can you open up a terminal app and execute /system/bin/busybox
Please let me know what version it says it is and search the commands it supports if it has lzcat as a command.

I hope you created a backup of your original chargemon script as instructed in the OP, thats your easy way back to your previously installed CWM.

[EDIT]

Doh! I think i know whats wrong, you probably have a busybox inside /system/xbin ... that is probably being used, can you repeat the above instructions on /system/xbin/busybox ?
Previously i had busybox 1.21.0 installed in /system/xbin/ (i used BusyBox Free app from the store to update it, because i was having some problems with a mod), after installing your package i had my previous Busybox in it's place and a new one (v1.20.2-jb) in /system/bin, but when starting your recovery script it was trying to use the busybox in /system/xbin, so i moved your busybox from bin to xbin and now i can boot into TWRP with vol-down. But when using vol-up i only get a black screen with purple led.

I will try updating from scratch to 1.5 later and see what happens.

Also, my SD card is not mounting, it is a Sandisk Extreme with factory format (Fat32), your script identifies it as "FAT32 with code 'Win95'." and refuses to mount it, see my previously posted log above. So i have the logs in cache and no new folder in sdcard1. Also i think this has something to do with CWM not booting on my phone.

BTW, thanks for your hard work.

EDIT: I took a look at your flashable install script in v1.5, it seems it is still copying busybox to /system/bin, but setting permissions on busybox located in /system/xbin/, my knowledge on linux scripting is very limited, so i may be wrong.
 
Last edited:

brockyneo

Senior Member
Jan 17, 2010
3,568
371
223
In The Matrix
CWM
'TWRP' is not recognized as an internal or external command,
operable program or batch file.
script created by krabappel2548, modified by [NUT]

=============================================
Step1 : Waiting for Device.
=============================================
adb server is out of date. killing...
* daemon started successfully *
Succes
.
=============================================
Step2 : Sending the recovery files.
=============================================
mkdir failed for /data/local/tmp/recovery, File exists
0 KB/s (57 bytes in 1.000s)
1952 KB/s (239920 bytes in 0.120s)
877 KB/s (8981 bytes in 0.010s)
2569 KB/s (657704 bytes in 0.250s)
2825 KB/s (2632572 bytes in 0.910s)
2833 KB/s (1479825 bytes in 0.510s)
2393 KB/s (735308 bytes in 0.300s)
79 KB/s (1622 bytes in 0.020s)
.
=============================================
Step3 : Setting up files system partition.
=============================================
remount rw /system
remount rw /
copy recovery.tar to system.
5141+1 records in
5141+1 records out
2890+1 records in
2890+1 records out
rename stock chargemon
copy ric
0+1 records in
0+1 records out
copy charger
468+1 records in
468+1 records out
copy hacked chargemon to system.
dd: can't open '/data/local/tmp/recovery/chargemon': No such file or directory
new busybox to system.
dd: can't open '/data/local/tmp/recovery/busybox': No such file or directory
make file for faster backup

/sdcard/clockworkmod/ already exists!
error: device not found

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

hi nut i get this when finnished flashing and it reboots but doesnt install the recoverys any ideas please

thanks
 

[NUT]

Senior Member
Previously i had busybox 1.21.0 installed in /system/xbin/ (i used BusyBox Free app from the store to update it, because i was having some problems with a mod), after installing your package i had my previous Busybox in it's place and a new one (v1.20.2-jb) in /system/bin, but when starting your recovery script it was trying to use the busybox in /system/xbin, so i moved your busybox from bin to xbin and now i can boot into TWRP with vol-down. But when using vol-up i only get a black screen with purple led.

I will try updating from scratch to 1.5 later and see what happens.
Please do, just to be sure. The fact that twrp starts means cwm should actually start too... unless the archive is damaged somehow... and that makes the full set of logs more important, from straight after a failed attempt. (see OP for locations)

Also, my SD card is not mounting, it is a Sandisk Extreme with factory format (Fat32), your script identifies it as "FAT32 with code 'Win95'." and refuses to mount it, see my previously posted log above. So i have the logs in cache and no new folder in sdcard1. Also i think this has something to do with CWM not booting on my phone.
Well... i believe it might be busybox related as well. But to be on the safe side:

AFTER updating to version 1.5

Open up a terminal app and execute the following line, and copy&paste the contents of /tmp/XZDualRecovery/test on to this thread:

Code:
/system/xbin/busybox fdisk -l /dev/block/mmcblk1 | /system/xbin/busybox grep "/dev/block/mmcblk1p1" > /tmp/XZDualRecovery/test
This will output the information on your SDCard1. I'll need that for comparison to my own output to spot the differences.

BTW, thanks for your hard work.

EDIT: I took a look at your flashable install script in v1.5, it seems it is still copying busybox to /system/bin, but setting permissions on busybox located in /system/xbin/, my knowledge on linux scripting is very limited, so i may be wrong.
Take a look at the system folder in there too, that's what gets extracted, you will notice the busybox executable being in the right spot there. update-script can be a bit confusing, but I gave it the order to extract 'system' from the zip and put it in to 'system' on the phone, that means all of the zip's contents, so it will extract busybox into /system/xbin/ :)

And: you are very welcome, I'm glad to be of service to the community, which has helped me a lot in the past :)
 
Last edited:

[NUT]

Senior Member
[SNIP]
copy hacked chargemon to system.
dd: can't open '/data/local/tmp/recovery/chargemon': No such file or directory
new busybox to system.
dd: can't open '/data/local/tmp/recovery/busybox': No such file or directory
make file for faster backup
[SNIP]
=============================================
Installation finished. Enjoy the recoveries!
=============================================

hi nut i get this when finnished flashing and it reboots but doesnt install the recoverys any ideas please

thanks
Please re-download the installer package, there was a dumb mistake in the install script. :eek:
I've quick-fixed it, but its too small to do a new version as it is effectively just a release error :)

All the other lockeddualrecovery1.5.installer users should do the same!
 
  • Like
Reactions: brockyneo

brockyneo

Senior Member
Jan 17, 2010
3,568
371
223
In The Matrix
Please re-download the installer package, there was a dumb mistake in the install script. :eek:
I've quick-fixed it, but its too small to do a new version as it is effectively just a release error :)

All the other lockeddualrecovery1.5.installer users should do the same!
ok mate thanks great work :angel:
 

zlebors

Senior Member
Jan 2, 2012
381
36
48
Jakarta
CWM
'TWRP' is not recognized as an internal or external command,
operable program or batch file.
script created by krabappel2548, modified by [NUT]

=============================================
Step1 : Waiting for Device.
=============================================
adb server is out of date. killing...
* daemon started successfully *
Succes
.
=============================================
Step2 : Sending the recovery files.
=============================================
mkdir failed for /data/local/tmp/recovery, File exists
0 KB/s (57 bytes in 1.000s)
1952 KB/s (239920 bytes in 0.120s)
877 KB/s (8981 bytes in 0.010s)
2569 KB/s (657704 bytes in 0.250s)
2825 KB/s (2632572 bytes in 0.910s)
2833 KB/s (1479825 bytes in 0.510s)
2393 KB/s (735308 bytes in 0.300s)
79 KB/s (1622 bytes in 0.020s)
.
=============================================
Step3 : Setting up files system partition.
=============================================
remount rw /system
remount rw /
copy recovery.tar to system.
5141+1 records in
5141+1 records out
2890+1 records in
2890+1 records out
rename stock chargemon
copy ric
0+1 records in
0+1 records out
copy charger
468+1 records in
468+1 records out
copy hacked chargemon to system.
dd: can't open '/data/local/tmp/recovery/chargemon': No such file or directory
new busybox to system.
dd: can't open '/data/local/tmp/recovery/busybox': No such file or directory
make file for faster backup

/sdcard/clockworkmod/ already exists!
error: device not found

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

hi nut i get this when finnished flashing and it reboots but doesnt install the recoverys any ideas please

thanks
ok mate thanks great work :angel:
the same as this error.. when reboot, it vibrate+grren light I pressed vol down..and now only blank screen with purple notification light