[DEV][24/Nov/2013]Extended TWRP|v2.6.3.4

Search This thread

DarrenNewsgroup

Senior Member
Apr 9, 2011
323
128
Re: [DEV][2/Apr/2013]Extended TWRP|v2.4.4.0.r5

.

As you have probably noticed /dev/block/mmcbl0(p1) doesn't get mounted to /sdcard. That's why you only see a "TWRP" folder.
In my case it only happened once during testings. I ended up formatting the card using windows (not quick) format and then problem was solved.
I just don't know why this is happening randomly..:confused:
I believe that if you could re-format your card and start clean your issues will be gone:fingers-crossed:

Regards!

Ok I will copy my partitions to my PC, reformat the SD card and copy back. It might take a few days but I will report on my progress.
Thanks
Darren .)
 

NYLimited

Inactive Recognized Contributor
Jan 5, 2008
3,815
2,285
40.75659° N 73.98626° W
Re: [DEV][2/Apr/2013]Extended TWRP|v2.4.4.0.r5

Unfortunately, since this commit Extended-TWRP use only libtar, so I can't just build a version that use busybox-tar. However, if you don't use compression during backup the restoring works. At least I didn't have any problems so far.

With all due respect to you, dees_troy and everyone else involved, I trust there is a reason for the switch and hopefully this will all be sorted out eventually (reads: soon).

However, looking at TWRP (not extended version) I should also point out that if I wanted to create backups without compression I could simply use CWR, no?

I would hope the fix for this issue is considered a priority by TeamWin.


---
Appreciation is a wonderful thing. It makes what is excellent in others belong to us as well.
 

kokotas

Senior Member
Oct 23, 2007
714
1,570
Athens
github source is not up to date :)
Sorry for not keeping the repo up to date. For me it's the boring/complicated part of this project.
But I will update it today!
possibly wrong double slash? (/sd-ext//framework) ???
That's not causing any problems, but I removed the 2nd slash in newer version. I just hope that it doesn't create new issues out of nowhere...
I trust there is a reason for the switch and hopefully this will all be sorted out eventually (reads: soon).
libTar gives us flexibility and the chance to add as many options/functions we can think of/use. It also bypasses the 2GB limit of busybox tar, regardless if TeamWin is keeping the size limit to 1.5GB.
I would hope the fix for this issue is considered a priority by TeamWin.
I haven't talked to Dees_Troy or big_biff for a while, but I gave my shot at dealing with this bug in the last extended version.
BTW there is a new version of pigz (http://zlib.net/pigz/). The one used in TWRP is 2.2.5.
Thanks for the suggestion:good:. In my search for answers I had already updated the pig-zee code;).

Regards!
 

DarrenNewsgroup

Senior Member
Apr 9, 2011
323
128
Re: [DEV][3/Apr/2013]Extended TWRP|v2.4.4.0.r6

E
Ok I will copy my partitions to my PC, reformat the SD card and copy back. It might take a few days but I will report on my progress.
Thanks
Darren .)

I took my SD card or and let Windows scan it and auto fix system area. Windows found nothing at all wrong. This was obviously the FAT32 first partition and not the second ext4 partition.

I then formatted my old 2gb card as a single FAT32 partition in mini tool home edition 7.8 and put it in my HD2. I got the same problem, TWRP could not mount the SD card although it could see /sdcard/TWRP and its sub folders. Based on that result I felt no need to reformat my 32gb card (after copying files to the pc for backup - especially as I would still need to copy the ext4 partition as well - not easy in Windows as files, ok as a whole partition but if it had contained errors then restoring the partition would simply put the errors back whereas file based copy would have removed the errors).

Replacing my usual 32gb sd card and rebooting back through MAGLDR and into tytung's nexus HD2 4.1.4 everything seems fine.

Is there a way to mount the recovery partition and use es file explorer to copy the latest r6 build (or even r3 from which I installed r4 from the sd card)? This would enable me to see if it is something in TWRP or a more serious hardware fault(?).

I copied the SD version of TWRP r6 to my SD card and managed to boot into it via MAGLDR "AD SD Dir". This also exhibited the same "can't mount SD card problem". Weird!

Thanks
Darren .)
 
Last edited:
  • Like
Reactions: kokotas

symbuzzer

Senior Member
Feb 25, 2013
640
550
Turkey
Hi kokotas, thanks for your great recovery. I have some suggestions. I want to use online nandroid backup script via Orange Backup app. I tried it and I found 2 bugs for twrp backup.

First, the script stored back up folders in mnt/sdcard/twrp/backups/000...000 folder not in mnt/sdcard/twrp/backups/htcleo. Can you add an option your twrp restore option show backups in mnt/sdcard/twrp/backups/* ? (I mean all folders in backup/ folder)

Second is the script backed up boot partition wrong (raw). So your recovery didnt restore it. Because I use magldr and my roms boot partition was yaffs2. I wrote this bug in scripts forum page, but nobody answered. Can you make a magical thing for fixing this issue via your recovery? Sorry my English. Thanks...
 
Last edited:

miksi

Senior Member
Dec 8, 2009
120
6
Одг: [DEV][3/Apr/2013]Extended TWRP|v2.4.4.0.r6

Hi Darren,

I have a couple of ideas, but could you first flash the unmodified TWRP v2.4.4.0 from here and tell us if you have the same problem?

Regards!

I have the same problem with extended builds 2.4.4. Tried unmodified and sdcard can be mounted without any problem. Extended 2.4.3 builds also works.
I've noticed also that sorting files does not work properly, ie only works when you touch any button for the first time in extended builds (2.4.3 and 2.4.4).
 

kokotas

Senior Member
Oct 23, 2007
714
1,570
Athens
First, the script stored back up folders in mnt/sdcard/twrp/backups/000...000 folder not in mnt/sdcard/twrp/backups/htcleo. Can you add an option your twrp restore option show backups in mnt/sdcard/twrp/backups/* ? (I mean all folders in backup/ folder)
I can set the path one level up, but the script should fix the way it's getting the device id...
Second is the script backed up boot partition wrong (raw). So your recovery didnt restore it. Because I use magldr and my roms boot partition was yaffs2. I wrote this bug in scripts forum page, but nobody answered. Can you make a magical thing for fixing this issue via your recovery? Sorry my English. Thanks...
I thought I've already added that.. What is the file-name of boot backup? Better, post a log file!
Tried unmodified and sdcard can be mounted without any problem.
I guess you're talking about v2.4.4.0 that I uploaded yesterday, right?
While in recovery, could you run some commands and post their output here?
  1. cat /proc/partitions
  2. parted /dev/block/mmcblk0 print
  3. dosfsck /dev/block/mmcblk0p1
  4. if you have a 2nd partition: e2fsck /dev/block/mmcblk0p2
I've noticed also that sorting files does not work properly, ie only works when you touch any button for the first time in extended builds (2.4.3 and 2.4.4).
I didn't notice it. Will look into it.
[EDIT]It is working fine on my device.[/EDIT]

Regards!
 
Last edited:
  • Like
Reactions: symbuzzer

DarrenNewsgroup

Senior Member
Apr 9, 2011
323
128
I guess you're talking about v2.4.4.0 that I uploaded yesterday, right?
While in recovery, could you run some commands and post their output here?
  1. cat /proc/partitions
  2. parted /dev/block/mmcblk0 print
  3. dosfsck /dev/block/mmcblk0p1
  4. if you have a 2nd partition: e2fsck /dev/block/mmcblk0p2

Regards!

I ran the normal TWRP 2.4.4.0 and it saw my SD card. I then ran the extended TWRP 2.4.4.0 r6 and it couldn't see the SD card. I ran your 4 commands in r6 but it did not really help. The dosfsck printed something but the e2fsck didn't seem to do anything (I waited 10 minutes). No joy.

When I got home I did the following...

I booted into TWRP recovery
I hooked up a USB lead to a Windows PC
I ran a command window on the PC and entered
Code:
adb devices
adb shell
cat /proc/partitions
parted /dev/block/mmcblk0 print
dosfsck /dev/block/mmcblk0p1
e2fsck /dev/block/mmcblk0p2
The "adb devices" displayed some text which confirmed there was an Android device connected (my HD2 @ TWRP main screen)
The "adb shell" connects to the HD2
The "cat", "parted" and "dosfsck" printed usual stuff
The "e2fsck" is where the fun happened, it said there were errors so I accepted each request to fix the errors
After that I rebooted my HD2 (selecting the hot reboot option) and TWRP managed to mount the SD card

I thought that was the end of the story and started writing this up. I rebooted my HD2 (reboot to Bootloader in TWRP, through MAGLDR and into "AD Recovery") and the problem came back! Doing another hot reboot in TWRP my SD card was mounted again.

I remember in ph03n!x's thread http://forum.xda-developers.com/showthread.php?t=1843062 he had issues with some SD cards not starting quick enough. Is this what is happening here in the extended TWRP? Does the hot reboot give the SD card time to get mounted? If so, what changed because up to 2.4.4.0 r3 I could happily upgrade to 2.4.4.0 r4 via TWRP and installing the .ZIP off my SD card. This is how I noticed this problem when I tried to go from r4 to r6 and found I couldn't see the SD card.

Thanks
Darren .)
 
Last edited:
  • Like
Reactions: kokotas

symbuzzer

Senior Member
Feb 25, 2013
640
550
Turkey
Code:
Online Nandroid v8.00
Started at Fri Apr  5 10:10:09 EEST 2013
###########################

Run with options: -u -a b --twrp -pd

###########################

BusyBox: BusyBox v1.20.2-cm9 bionic (2012-11-18 13:31 +0100) multi-call binary.

###########################

File System Layout:
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock3 on /system type yaffs2 (ro,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
/dev/block/mtdblock4 on /mnt/cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/vold/179:0 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:0 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
###########################

Device Details:
ro.product.model=HTC HD2
ro.product.brand=google
ro.product.name=passion
ro.product.device=passion
ro.product.board=mahimahi
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
###########################

Recovery:
Generic recovery.
###########################

10:10:11 Checking for root permissions...
10:10:11 Root permissions acquired!
10:10:11 Analysing battery level...
10:10:11 Sufficient battery available!
10:10:11 Checking version of BusyBox installed...
10:10:11 BusyBox version 1.20 or above installed!
10:10:12 Searching for SD card...
10:10:12 SD card found!
10:10:12 This is an [COLOR="Red"]MTD[/COLOR] based device!
10:10:12 TWRP backup mode selected at run time!
10:10:13 Advanced backup mode selected at run time!
10:10:13 Checking for required tools...
10:10:13 All required tools available!
10:10:14 Checking disk space...
10:10:15 SD Card Free Space: 10417 MB
10:10:15 Required Space: 6 MB
10:10:15 Necessary disk space available!
10:10:15 Detecting mountpoints to exclude...
10:10:16 Backing up to /mnt/sdcard/TWRP/BACKUPS/[COLOR="Red"]0000000000000000[/COLOR]/2013-04-05--07.10.10
10:10:17 Backing up /boot...\c
10:10:22 Generating md5sum for boot.[COLOR="Red"]mtd[/COLOR].win...\c
10:10:27 Online Nandroid Backup Completed in 0 minutes 17 seconds!
###########################

Files Backed-up:
"----rwxr-x    1   5242880 Apr  5 10:10 boot.[COLOR="Red"]mtd[/COLOR].win
----rwxr-x    1        47 Apr  5 10:10 boot.[COLOR="Red"]mtd[/COLOR].win.md5"

this is log file. I only backed up boot partition. In magldr, boot partition is yaffs2 I think. I write this in scripts page but developer cannot reply. so can you do anything?
 
Last edited:

kokotas

Senior Member
Oct 23, 2007
714
1,570
Athens
Thank you Darren!
I ran the normal TWRP 2.4.4.0 and it saw my SD card. I then ran the extended TWRP 2.4.4.0 r6 and it couldn't see the SD card.
Unmodified v2.4.4.0 and Extended v2.4.4.0.r6 have two things in common; the kernel and init.rc. So if the problem persisted I would know where to start looking...but apparently, that's not the case.
The "e2fsck" is where the fun happened, it said there were errors so I accepted each request to fix the errors
After that I rebooted my HD2 (selecting the hot reboot option) and TWRP managed to mount the SD card

I thought that was the end of the story and started writing this up. I rebooted my HD2 (reboot to Bootloader in TWRP, through MAGLDR and into "AD Recovery") and the problem came back! Doing another hot reboot in TWRP my SD card was mounted again.

I remember in ph03n!x's thread http://forum.xda-developers.com/showthread.php?t=1843062 he had issues with some SD cards not starting quick enough. Is this what is happening here in the extended TWRP?
This is interesting. And it might be the cause.
Does the hot reboot give the SD card time to get mounted? If so, what changed because up to 2.4.4.0 r3 I could happily upgrade to 2.4.4.0 r4 via TWRP and installing the .ZIP off my SD card. This is how I noticed this problem when I tried to go from r4 to r6 and found I couldn't see the SD card.
With my change in the way TWRP processes each line of recovery.fstab, I think I speed up things a little, so it is possible that you're right.
I checked again the log you provided and I found something:
Code:
I:Processing '/sdcard'
________________________________________
I:Attempt to load settings from settings file on /sdcard...
E:Unable to mount /sdcard when trying to read settings file.
Something is missing! There is no reference to .android_secure!!!
This means Setup_AndSec() is not called. So the sdcard is not detected at all (Is_Present is false).
Code:
		if (Mount_Point == "/sdcard") {
			if (Is_Present) {
				Is_Storage = true;
				Storage_Path = "/sdcard";
				Removable = true;
				DataManager::SetValue(TW_HAS_EXTERNAL, 1);
	#ifndef RECOVERY_SDCARD_ON_DATA
				Setup_AndSec();
				Mount_Storage_Retry();
	#endif
			} else
				DataManager::SetValue(TW_HAS_EXTERNAL, 0);
		}
Attaching a test version for you below. If you see the same behavior and hot-reboot fixes that again, post the log after hot-rebooting.
Code:
Files Backed-up:
"----rwxr-x    1   5242880 Apr  5 10:10 boot.[COLOR="Red"]mtd[/COLOR].win
----rwxr-x    1        47 Apr  5 10:10 boot.[COLOR="Red"]mtd[/COLOR].win.md5"
this is log file. I only backed up boot partition.
Copy the "2013-04-05--07.10.10" folder to /sdcard/TWRP/BACKUPS/htcleo and try to restore boot.
Then post the recovery.log here.

Regards!
 
Last edited:

Nixda99

Senior Member
Dec 1, 2010
326
194
Hi kokotas, tried your newestest CLK 1.5.2 and TWRP 2.4.4.0.r6, thank you very much for your hard work.:good:

Installed CLK with adb, no problems. For TWRP I had to increase the size of the recovery partition in CLK to 10MB (increased also wboot to 10MB), after that my boot partition were invalid and my system partition was not complete. Restored boot partition from a backup without problems.

The problem was the restore process of the system partition (DataOnExt mode, compressed backup!):The first try with option "adjust partitions size" cancelled immediately with an error. I disabled the option and now he restored all and said "successful". But he resored to "system.", instead of "system", that's why he doesn't boot.
Installed HD2_Extended_TWRP_2.4.3.0.r3 and the restore of system was successful, my rom was booting without problems.
Had forgot to reset the TWRP settings in 2.4.4.0.r6, was that the problem?:cyclops:
Here the log of the 2 unsuccessful restores in 2.4.4.0.r6:
Code:
Starting Extended TWRP 2.4.4.0 on Thu Apr  4 16:15:09 2013
I:=> Detected bootloader: cLK
I:=> Hardware ID from cpuinfo: 'htcleo'
I:=> Serial from cpuinfo: '0000000000000000'
W:=> Using Hardware ID for Device ID: 'htcleo'
I:=> Scanned mtd partitions : 11
I:=> Single storage only.
I:=> No internal storage defined.
I:=> No storage defined, defaulting to /sdcard.
I:=> Lun file '/sys/devices/platform/usb_mass_storage/lun0/file'
I:=> Brightness file '/sys/class/leds/lcd-backlight/brightness'
I:=> Starting the UI...
     Screen Info: 480x800 @ 16bpp
     Pixel format: RGB_565
     Framebuffer: fd 4 (480 x 800)
I:=> Linking mtab
I:=> Processing recovery.fstab
I:Processing '/cache'
I:No '/cache/dalvik-cache' found.
I:Processing '/data'
I:No '/data/dalvik-cache' found.
I:Processing '/misc'
I:Processing '/recovery'
I:Processing '/sdcard'
I:Created '/and-sec' folder.
I:Attempt to load settings from settings file on /sdcard...
I:Version number saved to '/cache/recovery/.version'
I:Processing '/boot'
I:Processing '/system'
I:Processing '/sd-ext'
I:Created '/sd-ext' folder.
I:Checking for installed NativeSD Roms...
I:If any found, the backup size of sd-ext will be adjusted.
I:Ignoring 'twrp2'(SD-Recovery folder)...
I:Excluding : /sd-ext/NexusHD2-JellyBean
I:Excluding : /sd-ext/XYLON_EV
I:Ignoring 'CWMTouch'(SD-Recovery folder)...
I:Processing '/sdext2'
I:/sdext2 points to a swap partition.
Updating partition details...
Partition details updated.
I:Unmounting main partitions...
I:TWRP's folders created on /sdcard.
I:Loading package: TWRP (/script/ui.xml)
I:Loading package: TWRP (/res/ui.xml)
I:Loading resources...
I:Loading variables...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page backup
I:Loading page backupname1
I:Loading page backupname2
I:Loading page dataonext
I:Loading page dataonext2
I:Loading page backup_run
I:Loading page restore
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page reboot
I:Loading page nativeboot
I:Loading page settings
I:Loading page timezone
I:Loading page tweaks
I:Loading page screen
I:Loading page haptic
I:Loading page advanced
I:Loading page nativesdmanager
I:Loading page nativesettings
I:Loading page nativekernel
I:Loading page nativebackup
I:Loading page nativerestore
I:Loading page nativedelete
I:Loading page nativeperm
I:Loading page nativewipedata
I:Loading page nativewipedalvik
I:Loading page themeselect
I:Loading page themecheck
I:Loading page themeconfirm
I:Loading page scriptselect
I:Loading page scriptconfirm
I:Loading page appselect
I:Loading page appconfirm
I:Loading page apprun
I:Loading page partsdcard
I:Loading page convertext
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanagersizecalc
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageracction
I:Loading page decrypt
I:Loading page trydecrypt
I:Loading page terminalfolder
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page installsu
I:Loading page fixsu
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
mtd: successfully wrote block at 0
I:Set boot command "boot-recovery"
Command: "/sbin/recovery"

Properties List:
persist.sys.strictmode.disable=true
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=mass_storage
ro.build.id=IMM76I
ro.build.display.id=IMM76I
ro.build.version.incremental=eng.koko.20130403.143926
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=4.0.4
ro.build.date=Wed Apr  3 14:40:09 EEST 2013
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=koko
ro.build.host=AMD64X2
ro.build.tags=test-keys
ro.product.model=HD2
ro.product.brand=htc
ro.product.name=leo
ro.product.device=leo
ro.product.board=htcleo
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=en
ro.wifi.channels=
ro.board.platform=qsd8k
ro.build.product=leo
ro.build.description=cm_leo-userdebug 4.0.4 IMM76L eng.koko.20130403.143926 test-keys
ro.build.fingerprint=google/htc_leo/leo:4.0.4/IMM76I/239410:user/release-keys
ro.build.characteristics=default
ro.cm.device=leo
rild.libpath=/system/lib/libhtc_ril_wrapper.so
rild.libargs=-d /dev/smd0
com.qc.hardware=true
ro.sf.lcd_density=240
ro.ril.ecc.HTC-ELL=92,93,94
ro.ril.ecc.HTC-WWE=999
ro.ril.enable.a52.HTC-ITA=1
ro.ril.enable.a53.HTC-ITA=1
ro.ril.enable.a52=0
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.hsupa.category=5
ro.ril.hsxpa=2
ro.ril.enable.prl.recognition=1
ro.telephony.ril.v3=signalstrength
ro.ril.def.agps.mode=2
ro.ril.enable.managed.roaming=1
ro.ril.oem.nosim.ecclist=911,112,999,000,08,118,120,122,110,119,995
ro.ril.emc.mode=2
mobiledata.interfaces=rmnet0,rmnet1,rmnet2,ppp0
media.a1026.nsForVoiceRec=0
media.a1026.enableA1026=1
ro.media.dec.jpeg.memcap=20000000
ro.opengles.version=131072
ro.telephony.default_network=0
wifi.interface=wlan0
ro.ril.disable.power.collapse=0
wifi.supplicant_scan_interval=60
Debug.performance.tuning=1
Video.accelerate.hw=1
ro.lge.proximity.delay=10
mot.proximity.delay=10
debug.sf.hw=1
debug.composition.type=mdp
dalvik.vm.dexopt-flags=m=y
dalvik.vm.checkjni=false
dalvik.vm.heapsize=128m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapstartsize=5m
dalvik.vm.dexopt-data-only=1
dalvik.vm.verify-bytecode=false
dalvik.vm.lockprof.threshold=500
windowsmgr.max_events_per_sec=120
ro.HOME_APP_ADJ=1
ro.PERCEPTIBLE_APP_ADJ=0
hwui.render_dirty_regions=false
hwui.disable_vsync=true
hwui.print_config=choice
debug.enabletr=false
debug.gr.numframebuffers=2
ro.kernel.android.checkjni=0
persist.service.adb.enable=1
ro.goo.developerid=cmhtcleo
ro.goo.rom=cm9nightly
ro.goo.version=1364989166
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.rommanager.developerid=cyanogenmod
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dataroaming=false
ro.cm.version=9-20130403-UNOFFICIAL-leo
ro.modversion=9-20130403-UNOFFICIAL-leo
ro.config.ringtone=CyanTone.ogg
ro.config.notification_sound=CyanMessage.ogg
ro.config.alarm_alert=CyanAlarm.ogg
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.serialno=
ro.bootmode=unknown
ro.baseband=unknown
ro.carrier=unknown
ro.bootloader=unknown
ro.hardware=htcleo
ro.revision=0
ro.emmc=0
init.svc.preboot=stopped
init.svc.recovery=running
init.svc.adbd=stopping
service.adb.root=1

Partition Logs:
/cache | /dev/block/mtdblock10 | Size: 5MB Used: 4MB Free: 0MB Backup Size: 4MB
   Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present 
   Primary_Block_Device: /dev/block/mtdblock10
   MTD_Dev: /dev/mtd/mtd0
   Fstab_File_System: yaffs2
   Current_File_System: yaffs2
   Backup_Path: /cache
   Display_Name: Cache
   Backup_Name: cache
   MTD_Name: cache
   Backup_Method: files

/data | /dev/block/mtdblock5 | Size: 79MB Used: 1MB Free: 78MB Backup Size: 1MB
   Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present 
   Primary_Block_Device: /dev/block/mtdblock5
   MTD_Dev: /dev/mtd/mtd5
   Fstab_File_System: yaffs2
   Current_File_System: yaffs2
   Backup_Path: /data
   Display_Name: Data
   Backup_Name: data
   MTD_Name: userdata
   Backup_Method: files

/misc | /dev/block/mtdblock3 | Size: 1MB Used: 1MB Free: 0MB Backup Size: 1MB
   Flags: Can_Be_Wiped Is_Present 
   Primary_Block_Device: /dev/block/mtdblock3
   MTD_Dev: /dev/mtd/mtd3
   Fstab_File_System: mtd
   Current_File_System: mtd
   Backup_Path: /misc
   Display_Name: misc
   Backup_Name: misc
   MTD_Name: misc
   Backup_Method: flash_utils

/recovery | /dev/block/mtdblock1 | Size: 11MB Used: 11MB Free: 0MB Backup Size: 11MB
   Flags: Can_Be_Wiped Is_Present 
   Primary_Block_Device: /dev/block/mtdblock1
   MTD_Dev: /dev/mtd/mtd1
   Fstab_File_System: mtd
   Current_File_System: mtd
   Backup_Path: /recovery
   Display_Name: recovery
   Backup_Name: recovery
   MTD_Name: recovery
   Backup_Method: flash_utils

/sdcard | /dev/block/mmcblk0p1 | Size: 28004MB Used: 11458MB Free: 16546MB Backup Size: 19MB
   Flags: Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Present Has_Android_Secure Is_Storage 
   Primary_Block_Device: /dev/block/mmcblk0p1
   Fstab_File_System: vfat
   Current_File_System: vfat
   Symlink_Path: /sdcard/.android_secure
   Symlink_Mount_Point: /and-sec
   Alternate_Block_Device: /dev/block/mmcblk0
   Storage_Path: /sdcard
   Backup_Path: /and-sec
   Display_Name: sdcard
   Backup_Name: and-sec
   Backup_Method: files

/boot | /dev/block/mtdblock2 | Size: 10MB Used: 10MB Free: 0MB Backup Size: 10MB
   Flags: Can_Be_Wiped Is_Present 
   Primary_Block_Device: /dev/block/mtdblock2
   MTD_Dev: /dev/mtd/mtd2
   Fstab_File_System: mtd
   Current_File_System: mtd
   Backup_Path: /boot
   Display_Name: boot
   Backup_Name: boot
   MTD_Name: boot
   Backup_Method: flash_utils

/system | /dev/block/mtdblock4 | Size: 275MB Used: 1MB Free: 273MB Backup Size: 1MB
   Flags: Can_Be_Wiped Wipe_Available_in_GUI Is_Present 
   Primary_Block_Device: /dev/block/mtdblock4
   MTD_Dev: /dev/mtd/mtd4
   Fstab_File_System: yaffs2
   Current_File_System: yaffs2
   Backup_Path: /system
   Display_Name: System
   Backup_Name: system
   MTD_Name: system
   Backup_Method: files

/sd-ext | /dev/block/mmcblk0p2 | Size: 1898MB Used: 1595MB Dalvik-Cache: 104MB NativeSD: 918MB Free: 303MB Backup Size: 548MB
   Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Removable Is_Present 
   Primary_Block_Device: /dev/block/mmcblk0p2
   Fstab_File_System: auto
   Current_File_System: ext4
   Backup_Path: /sd-ext
   Display_Name: SD-Ext
   Backup_Name: sd-ext
   Backup_Method: files

/sdext2 | /dev/block/mmcblk0p3 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
   Flags: Swap Removable Is_Present 
   Primary_Block_Device: /dev/block/mmcblk0p3
   Fstab_File_System: auto
   Current_File_System: swap


mtd: successfully wrote block at 0
I:Set boot command ""
I:Switching packages (TWRP)
I:Screen timeout set to 60 sec.
I:Set page: 'settings'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'restore'
I:*Backup_FileName = system.yaffs2.win
I:*File System = yaffs2
I:*extn = win
I:*Backup_Path = /system
I:*Backup_FileName = recovery.mtd.win
I:*File System = mtd
I:*extn = win
I:*Backup_Path = /recovery
I:*Backup_FileName = boot.mtd.win
I:*File System = mtd
I:*extn = win
I:*Backup_Path = /boot
I:*Backup_FileName = and-sec.vfat.win
I:*File System = vfat
I:*extn = win
I:*Backup_Path = /and-sec
I:*Backup_FileName = sd-ext.ext4.win
I:*File System = ext4
I:*extn = win
I:*Backup_Path = /sd-ext
I:Set page: 'restore_select'
I:Set page: 'restore_run'

[RESTORE STARTED]

 * Restore folder:2013-03-20--09-39-45
 @ /sdcard/TWRP/BACKUPS/htcleo/
I:TWRP will adjust partitions' size if needed.
I:Comparing system.yaffs2.win's size to system's size...
I:system.yaffs2.win's uncompressed size: 206892032 bytes
I:'system': size=288358400b / min-req-size=207618048b
I:system's size is adequate to restore system.yaffs2.win.
I:Set page: 'action_complete'
I:Set page: 'clear_vars'
I:Set page: 'restore_select'
I:Set page: 'restore'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'settings'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'restore'
I:*Backup_FileName = system.yaffs2.win
I:*File System = yaffs2
I:*extn = win
I:*Backup_Path = /system
I:*Backup_FileName = recovery.mtd.win
I:*File System = mtd
I:*extn = win
I:*Backup_Path = /recovery
I:*Backup_FileName = boot.mtd.win
I:*File System = mtd
I:*extn = win
I:*Backup_Path = /boot
I:*Backup_FileName = and-sec.vfat.win
I:*File System = vfat
I:*extn = win
I:*Backup_Path = /and-sec
I:*Backup_FileName = sd-ext.ext4.win
I:*File System = ext4
I:*extn = win
I:*Backup_Path = /sd-ext
I:Set page: 'restore_select'
I:Set page: 'restore_run'

[RESTORE STARTED]

 * Restore folder:2013-03-20--09-39-45
 @ /sdcard/TWRP/BACKUPS/htcleo/
Verifying MD5...
Done verifying MD5.
Restoring 1 partitions...
I:Restore filename is: system.yaffs2.win
I:Restore file system is: 'yaffs2'.
MTD Formatting "system"
Done.
Restoring system...
I:Extracting gzipped tar
I:eek:pening as a gzip
prefix: /system
==> tar_extract_all(TAR *t, "/system")
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/")
item name: './app/'
dir
  ==> extracting: /system./app/ (mode 40755, directory)
   ==> setting perms: /system./app/ (mode 40755, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/SysXboot.apk")
item name: './app/SysXboot.apk'
reg
==> tar_extract_regfile(t=0x223180, realname="/system./app/SysXboot.apk")
  ==> extracting: /system./app/SysXboot.apk (file size 511469 bytes)
### done extracting /system./app/SysXboot.apk
   ==> setting perms: /system./app/SysXboot.apk (mode 100644, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/GoogleServicesFramework.odex")
item name: './app/GoogleServicesFramework.odex'
reg
==> tar_extract_regfile(t=0x223180, realname="/system./app/GoogleServicesFramework.odex")
  ==> extracting: /system./app/GoogleServicesFramework.odex (file size 1256656 bytes)
### done extracting /system./app/GoogleServicesFramework.odex
   ==> setting perms: /system./app/GoogleServicesFramework.odex (mode 100644, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/ContactsProvider.apk")
item name: './app/ContactsProvider.apk'
reg
==> tar_extract_regfile(t=0x223180, realname="/system./app/ContactsProvider.apk")
  ==> extracting: /system./app/ContactsProvider.apk (file size 51370 bytes)
### done extracting /system./app/ContactsProvider.apk
   ==> setting perms: /system./app/ContactsProvider.apk (mode 100644, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/DSPManager.odex")
item name: './app/DSPManager.odex'
reg
==> tar_extract_regfile(t=0x223180, realname="/system./app/DSPManager.odex")
  ==> extracting: /system./app/DSPManager.odex (file size 356280 bytes)
### done extracting /system./app/DSPManager.odex
   ==> setting perms: /system./app/DSPManager.odex (mode 100644, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/OneTimeInitializer.apk")
item name: './app/OneTimeInitializer.apk'
reg
==> tar_extract_regfile(t=0x223180, realname="/system./app/OneTimeInitializer.apk")
  ==> extracting: /system./app/OneTimeInitializer.apk (file size 3378 bytes)
### done extracting /system./app/OneTimeInitializer.apk
   ==> setting perms: /system./app/OneTimeInitializer.apk (mode 100644, uid 0, gid 0)
    tar_extract_all(): calling th_get_pathname()
    tar_extract_all(): calling tar_extract_file(t, "/system./app/DSPManager.apk")
item name: './app/DSPManager.apk' 
........
 
Last edited:
  • Like
Reactions: kokotas

kokotas

Senior Member
Oct 23, 2007
714
1,570
Athens
"system.", instead of "system"
...
Installed HD2_Extended_TWRP_2.4.3.0.r3 and the restore of system was successful, my rom was booting without problems.
Hey Nixda99,

The backup you tried to restore was made with busybox tar and every tar entry starts with ./* so that is causing the problem.
I will check it out.

Regards!
 
  • Like
Reactions: Nixda99

DarrenNewsgroup

Senior Member
Apr 9, 2011
323
128
Thank you Darren!

Unmodified v2.4.4.0 and Extended v2.4.4.0.r6 have two things in common; the kernel and init.rc. So if the problem persisted I would know where to start looking...but apparently, that's not the case.

This is interesting. And it might be the cause.

<snipped>

Attaching a test version for you below. If you see the same behavior and hot-reboot fixes that again, post the log after hot-rebooting.

Regards!

The test build worked perfectly, it saw the SD card first time, no need to hot reboot. I have the log file if you want it.
 
  • Like
Reactions: kokotas

symbuzzer

Senior Member
Feb 25, 2013
640
550
Turkey
it didn't work:-[
here is the log:

Code:
Starting Extended TWRP 2.4.4.0 on Fri Apr 5 10:12:11 2013 I:=> Detected bootloader: MAGLDR I:=> Hardware ID from cpuinfo: 'htcleo' I:=> Serial from cpuinfo: '0000000000000000' W:=> Using Hardware ID for Device ID: 'htcleo' I:=> Single storage only. I:=> No internal storage defined. I:=> No storage defined, defaulting to /sdcard. I:=> Lun file '/sys/devices/platform/usb_mass_storage/lun0/file' I:=> Brightness file '/sys/class/leds/lcd-backlight/brightness' I:=> Starting the UI... Screen Info: 480x800 @ 16bpp Pixel format: RGB_565 Framebuffer: fd 4 (480 x 800) I:=> Linking mtab I:=> Processing recovery.fstab I:Processing '/cache' I:Primary_Block_Device: '/dev/block/mtdblock4' I:Actual_Block_Device: '/dev/block/mtdblock4' I:No '/cache/dalvik-cache' found. I:Processing '/data' I:Primary_Block_Device: '/dev/block/mtdblock5' I:Actual_Block_Device: '/dev/block/mtdblock5' I:Processing '/misc' I:Primary_Block_Device: '/dev/block/mtdblock0' I:Actual_Block_Device: '/dev/block/mtdblock0' I:Processing '/recovery' I:Primary_Block_Device: '/dev/block/mtdblock1' I:Actual_Block_Device: '/dev/block/mtdblock1' I:Processing '/sdcard' I:Block: '/dev/block/mmcblk0p1' I:Block: '/dev/block/mmcblk0' I:Actual_Block_Device: '/dev/block/mmcblk0' I:Created '/and-sec' folder. I:Attempt to load settings from settings file on /sdcard... I:Version number saved to '/cache/recovery/.version' I:Processing '/boot' I:Primary_Block_Device: '/dev/block/mtdblock2' I:Actual_Block_Device: '/dev/block/mtdblock2' I:Created '/boot' folder. I:Processing '/system' I:Primary_Block_Device: '/dev/block/mtdblock3' I:Actual_Block_Device: '/dev/block/mtdblock3' I:Checking /system/build.prop... I:Processing '/sd-ext' I:Block: '/dev/block/mmcblk0p2' I:Actual_Block_Device: 'null' I:Processing '/sdext2' I:Block: '/dev/block/mmcblk0p3' I:Actual_Block_Device: 'null' Updating partition details... Partition details updated. I:Unmounting main partitions... I:TWRP's folders created on /sdcard. I:Loading package: TWRP (/script/ui.xml) I:Loading package: TWRP (/res/ui.xml) I:Loading resources... I:Loading variables... I:Loading pages... I:Loading page main I:Loading page main2 I:Loading page install I:Loading page flash_confirm I:Loading page flash_zip I:Loading page flash_done I:Loading page clear_vars I:Loading page confirm_action I:Loading page action_page I:Loading page singleaction_page I:Loading page action_complete I:Loading page filecheck I:Loading page rebootcheck I:Loading page wipe I:Loading page backup I:Loading page backupname1 I:Loading page backupname2 I:Loading page dataonext I:Loading page dataonext2 I:Loading page backup_run I:Loading page restore I:Loading page restore_select I:Loading page renamebackup I:Loading page restore_run I:Loading page mount I:Loading page usb_mount I:Loading page usb_umount I:Loading page reboot I:Loading page nativeboot I:Unable to open '/sdcard/NativeSD' I:Loading page settings I:Loading page timezone I:Loading page tweaks I:Loading page screen I:Loading page haptic I:Loading page advanced I:Loading page nativesdmanager I:Loading page nativesettings I:Loading page nativekernel I:Unable to open '/sdcard/NativeSD' I:Loading page nativebackup I:Unable to open '/sdcard/NativeSD' I:Loading page nativerestore I:Loading page nativedelete I:Unable to open '/sdcard/NativeSD' I:Loading page nativeperm I:Unable to open '/sdcard/NativeSD' I:Loading page nativewipedata I:Unable to open '/sdcard/NativeSD' I:Loading page nativewipedalvik I:Unable to open '/sdcard/NativeSD' I:Loading page themeselect I:Loading page themecheck I:Loading page themeconfirm I:Loading page scriptselect I:Loading page scriptconfirm I:Loading page appselect I:Loading page appconfirm I:Loading page apprun I:Loading page partsdcard I:Loading page convertext I:Loading page htcdumlock I:Loading page lock I:Loading page filemanagerlist I:Loading page filemanagersizecalc I:Loading page filemanageroptions I:Loading page choosedestinationfolder I:Loading page filemanagerrenamefile I:Loading page filemanagerrenamefolder I:Loading page filemanagerchmod I:Loading page filemanagerconfirm I:Loading page filemanageracction I:Loading page decrypt I:Loading page trydecrypt I:Loading page terminalfolder I:Loading page terminalcommand I:Loading page sideload I:Loading page installsu I:Loading page fixsu I:Set page: 'clear_vars' I:Set page: 'main2' I:Switching packages (TWRP) mtd: successfully wrote block at 0 I:Set boot command "boot-recovery" Command: "/sbin/recovery"

Properties List: persist.sys.strictmode.disable=true ro.secure=1 ro.allow.mock.location=0 ro.debuggable=1 persist.sys.usb.config=mass_storage ro.build.id=IMM76I ro.build.display.id=IMM76I ro.build.version.incremental=eng.koko.20130405.10 5620 ro.build.version.sdk=15 ro.build.version.codename=REL ro.build.version.release=4.0.4 ro.build.date=Fri Apr 5 10:57:13 EEST 2013 ro.build.date.utc=0 ro.build.type=userdebug ro.build.user=koko ro.build.host=AMD64X2 ro.build.tags=test-keys ro.product.model=HD2 ro.product.brand=htc ro.product.name=leo ro.product.device=leo ro.product.board=htcleo ro.product.cpu.abi=armeabi-v7a ro.product.cpu.abi2=armeabi ro.product.manufacturer=HTC ro.product.locale.language=en ro.wifi.channels= ro.board.platform=qsd8k ro.build.product=leo ro.build.description=cm_leo-userdebug 4.0.4 IMM76L eng.koko.20130405.105620 test-keys ro.build.fingerprint=google/htc_leo/leo:4.0.4/IMM76I/239410:user/release-keys ro.build.characteristics=default ro.cm.device=leo rild.libpath=/system/lib/libhtc_ril_wrapper.so rild.libargs=-d /dev/smd0 com.qc.hardware=true ro.sf.lcd_density=240 ro.ril.ecc.HTC-ELL=92,93,94 ro.ril.ecc.HTC-WWE=999 ro.ril.enable.a52.HTC-ITA=1 ro.ril.enable.a53.HTC-ITA=1 ro.ril.enable.a52=0 ro.ril.enable.a53=1 ro.ril.enable.dtm=1 ro.ril.gprsclass=12 ro.ril.hsdpa.category=8 ro.ril.hsupa.category=5 ro.ril.hsxpa=2 ro.ril.enable.prl.recognition=1 ro.telephony.ril.v3=signalstrength ro.ril.def.agps.mode=2 ro.ril.enable.managed.roaming=1 ro.ril.oem.nosim.ecclist=911,112,999,000,08,118,12 0,122,110,119,995 ro.ril.emc.mode=2 mobiledata.interfaces=rmnet0,rmnet1,rmnet2,ppp0 media.a1026.nsForVoiceRec=0 media.a1026.enableA1026=1 ro.media.dec.jpeg.memcap=20000000 ro.opengles.version=131072 ro.telephony.default_network=0 wifi.interface=wlan0 ro.ril.disable.power.collapse=0 wifi.supplicant_scan_interval=60 Debug.performance.tuning=1 Video.accelerate.hw=1 ro.lge.proximity.delay=10 mot.proximity.delay=10 debug.sf.hw=1 debug.composition.type=mdp dalvik.vm.dexopt-flags=m=y dalvik.vm.checkjni=false dalvik.vm.heapsize=128m dalvik.vm.heapgrowthlimit=48m dalvik.vm.heapstartsize=5m dalvik.vm.dexopt-data-only=1 dalvik.vm.verify-bytecode=false dalvik.vm.lockprof.threshold=500 windowsmgr.max_events_per_sec=120 ro.HOME_APP_ADJ=1 ro.PERCEPTIBLE_APP_ADJ=0 hwui.render_dirty_regions=false hwui.disable_vsync=true hwui.print_config=choice debug.enabletr=false debug.gr.numframebuffers=2 ro.kernel.android.checkjni=0 persist.service.adb.enable=1 ro.goo.developerid=cmhtcleo ro.goo.rom=cm9nightly ro.goo.version=1365148580 keyguard.no_require_sim=true ro.com.android.dateformat=MM-dd-yyyy ro.rommanager.developerid=cyanogenmod ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html ro.com.google.clientidbase=android-google ro.com.android.wifi-watchlist=GoogleGuest ro.setupwizard.enterprise_mode=1 ro.com.android.dataroaming=false ro.cm.version=9-20130405-UNOFFICIAL-leo ro.modversion=9-20130405-UNOFFICIAL-leo ro.config.ringtone=CyanTone.ogg ro.config.notification_sound=CyanMessage.ogg ro.config.alarm_alert=CyanAlarm.ogg net.bt.name=Android net.change=net.bt.name dalvik.vm.stack-trace-file=/data/anr/traces.txt ro.factorytest=0 ro.serialno= ro.bootmode=unknown ro.baseband=unknown ro.carrier=unknown ro.bootloader=unknown ro.hardware=htcleo ro.revision=0 ro.emmc=0 init.svc.preboot=stopped init.svc.recovery=running init.svc.adbd=stopping service.adb.root=1

Partition Logs: /cache | /dev/block/mtdblock4 | Size: 3MB Used: 0MB Free: 2MB Backup Size: 0MB Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present Primary_Block_Device: /dev/block/mtdblock4 MTD_Dev: /dev/mtd/mtd4 Fstab_File_System: yaffs2 Current_File_System: yaffs2 Backup_Path: /cache Display_Name: Cache Backup_Name: cache MTD_Name: cache Backup_Method: files

/data | /dev/block/mtdblock5 | Size: 250MB Used: 165MB Dalvik-Cache: 97MB Free: 85MB Backup Size: 165MB Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present Primary_Block_Device: /dev/block/mtdblock5 MTD_Dev: /dev/mtd/mtd5 Fstab_File_System: yaffs2 Current_File_System: yaffs2 Backup_Path: /data Display_Name: Data Backup_Name: data MTD_Name: userdata Backup_Method: files

/misc | /dev/block/mtdblock0 | Size: 1MB Used: 1MB Free: 0MB Backup Size: 1MB Flags: Can_Be_Wiped Is_Present Primary_Block_Device: /dev/block/mtdblock0 MTD_Dev: /dev/mtd/mtd0 Fstab_File_System: mtd Current_File_System: mtd Backup_Path: /misc Display_Name: misc Backup_Name: misc MTD_Name: misc Backup_Method: flash_utils

/recovery | /dev/block/mtdblock1 | Size: 10MB Used: 10MB Free: 0MB Backup Size: 10MB Flags: Can_Be_Wiped Is_Present Primary_Block_Device: /dev/block/mtdblock1 MTD_Dev: /dev/mtd/mtd1 Fstab_File_System: mtd Current_File_System: mtd Backup_Path: /recovery Display_Name: recovery Backup_Name: recovery MTD_Name: recovery Backup_Method: flash_utils

/sdcard | /dev/block/mmcblk0 | Size: 15263MB Used: 5415MB Free: 9847MB Backup Size: 229MB Flags: Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Present Has_Android_Secure Is_Storage Primary_Block_Device: /dev/block/mmcblk0p1 Fstab_File_System: vfat Current_File_System: vfat Symlink_Path: /sdcard/.android_secure Symlink_Mount_Point: /and-sec Alternate_Block_Device: /dev/block/mmcblk0 Storage_Path: /sdcard Backup_Path: /and-sec Display_Name: sdcard Backup_Name: and-sec Backup_Method: files

/boot | /dev/block/mtdblock2 | Size: 5MB Used: 0MB Free: 4MB Backup Size: 0MB Flags: Can_Be_Wiped Is_Present Primary_Block_Device: /dev/block/mtdblock2 MTD_Dev: /dev/mtd/mtd2 Fstab_File_System: yaffs2 Current_File_System: yaffs2 Backup_Path: /boot Display_Name: boot Backup_Name: boot MTD_Name: boot Backup_Method: files

/system | /dev/block/mtdblock3 | Size: 175MB Used: 167MB Free: 7MB Backup Size: 167MB Flags: Can_Be_Wiped Wipe_Available_in_GUI Is_Present Primary_Block_Device: /dev/block/mtdblock3 MTD_Dev: /dev/mtd/mtd3 Fstab_File_System: yaffs2 Current_File_System: yaffs2 Backup_Path: /system Display_Name: System Backup_Name: system MTD_Name: system Backup_Method: files

/sd-ext | /---/-----/--------- | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Primary_Block_Device: /dev/block/mmcblk0p2 Fstab_File_System: auto Current_File_System: auto

/sdext2 | /---/-----/--------- | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Primary_Block_Device: /dev/block/mmcblk0p3 Fstab_File_System: auto Current_File_System: auto

mtd: successfully wrote block at 0 I:Set boot command "" I:Attempt to load settings from settings file on /sdcard... I:Version number saved to '/cache/recovery/.version' I:Switching packages (TWRP) I:Screen timeout set to 60 sec. I:Set page: 'restore' I:*Backup_FileName = boot.mtd.win I:*File System = mtd I:*extn = win I:*Backup_Path = /boot I:*Backup_FileName = boot.mtd.win-cmdl I:*File System = mtd I:*extn = win-cmdline I:*Backup_Path = /boot I:*Backup_FileName = boot.mtd.win-b I:*File System = mtd I:*extn = win-base I:*Backup_Path = /boot I:*Backup_FileName = boot.mtd.win-zIm I:*File System = mtd I:*extn = win-zImage I:*Backup_Path = /boot I:Set page: 'restore_select' I:Set page: 'restore_run'

[RESTORE STARTED]

* Restore folder:2013-04-05--10.03.05 @ /sdcard/TWRP/BACKUPS/htcleo/I:TW_RESTORE_BOOT_VAR = 3 I:boot.mtd.win-zIm will be converted to boot.yaffs2.win Segmentation fault Verifying MD5... I:split_filename: /sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zIm000 E:No md5 file found for '/sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zIm000'. E:Please select 'Skip MD5 verification' to restore. I:Set page: 'action_complete' I:Set page: 'clear_vars' I:Set page: 'restore_select' I:Set page: 'restore_run'

[RESTORE STARTED]

* Restore folder:2013-04-05--10.03.05 @ /sdcard/TWRP/BACKUPS/htcleo/I:TW_RESTORE_BOOT_VAR = 3 I:boot.mtd.win-zIm will be converted to boot.yaffs2.win Segmentation fault Skipping MD5 check based on user setting. Restoring 1 partitions... I:Restore filename is: boot.mtd.win-zIm I:Restore file system is: 'mtd'. Restoring boot... I:Erase command: 'erase_image boot' I:Restore command: 'flash_image boot '/sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zIm'' error opening /sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zImfailed with error: -1 [boot done (1 seconds)]

Updating partition details... Partition details updated. I:Unmounting main partitions... [RESTORE COMPLETED IN 4 SECONDS]

I:Set page: 'action_complete' I:Set page: 'clear_vars' I:Set page: 'restore_select' I:Set page: 'restore' I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'advanced' I:Set page: 'confirm_action' I:Set page: 'action_page' I:Copying file /tmp/recovery.log to /sdcard/recovery.log
 
Last edited:
  • Like
Reactions: kokotas

kokotas

Senior Member
Oct 23, 2007
714
1,570
Athens
it didn't work:-[
here is the log:

Code:
I:Set page: 'restore' 
I:*Backup_FileName = boot.mtd.win 
I:*File System = mtd 
I:*extn = win 
I:*Backup_Path = /boot 
I:*Backup_FileName = boot.mtd.win-cmdl 
I:*File System = mtd 
I:*extn = win-cmdline 
I:*Backup_Path = /boot 
I:*Backup_FileName = boot.mtd.win-b 
I:*File System = mtd 
I:*extn = win-base 
I:*Backup_Path = /boot 
I:*Backup_FileName = boot.mtd.win-zIm 
I:*File System = mtd 
I:*extn = win-zImage 
I:*Backup_Path = /boot 
I:Set page: 'restore_select' 
I:Set page: 'restore_run'

[RESTORE STARTED]

* Restore folder:2013-04-05--10.03.05 @ /sdcard/TWRP/BACKUPS/htcleo/
I:TW_RESTORE_BOOT_VAR = 3 
I:boot.mtd.win-zIm will be converted to boot.yaffs2.win Segmentation fault 
Verifying MD5... 
I:split_filename: /sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zIm000 
E:No md5 file found for '/sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-zIm000'. 
E:Please select 'Skip MD5 verification' to restore. 
I:Set page: 'action_complete' 
I:Set page: 'clear_vars'
Hmm, where did all these boot.mtd.min* files come from?
Do they exist in the "2013-04-05--10.03.05" folder before you copied it to htcleo?
 
  • Like
Reactions: symbuzzer

Top Liked Posts

  • There are no posts matching your filters.
  • 104
    Intro:
    ---------------------
    Extended TWRP is based on official Team Win Recovery Project, but modified** to address some special methods & features found on The HD2,
    a device which has 3 different android loaders (cLK, MAGLDR and Haret) and various Android Rom configurations (DataOnExt, NativeSD, SD, Nand).
    ** If you are just looking for an unmodified TWRP for the HD2, check here.

    I take no credit for this. All the creative hard work was already done!
    Credits to:

    • agrabren, Dees_Troy, ViViDboarder, and AssassinsLament - core twrp 2 development team.
    • Toastcfh – for his underappreciated dedication to the community.
    • s0up and kevank - for their hard work on the web side of things.
    • shift, onicrom, netarchy, kevank, myndwire, bigbiff, dkelle4, shinzul, spiicytuna, and eyeballer - the rest of Team Win.
    • Amon_RA - for his great Recovery.
    • Koush - for his dedication to the community and ClockworkMod.
    • Akmzero, arif-ali, Evil_DevNull, gus6464, Jesusice, _jmz_, NxtGenCowboy, ohshaith55, Pyrostic, [R], and Rootzwiki - for all the help with devices and testing.
    • Team's supporters and the Android Community.

    However, if you think that this extended version is full of unnecessary cr*p or that something is not working as expected anymore,
    Credits to:


    Notice:
    ---------------------
    For me, this thread is about learning while having fun. It would be ideal if it leads to something that is really useful.
    So, as you may have already understood, This Is Not a release thread. If you have the time and interest to help in any way, please do. Cause together we can make sure that this project will benefit all of us.
    The attached recovery image is provided for people who can't compile it from source, but want to either help in debugging or just experiment.

    • Have in mind that before attaching it here, it was only tested on one HTC-HD2(Eu) powered by (black) cLK bootloader.
      The performance on devices powered by MAGLDR bootloader or running the good-old WM6.X should be considered untested.
      In order to exploit the full potentials of this software, Black cLK bootloader is strongly recommended!
    • As usual, use at your own risk. TeamWin or kokotas is not responsible for anything bad that may occur from using Extended TWRP.
    • ReadMe

    Features:
    ---------------------
    • **************Mainline**************
      * Ability to save custom recovery settings
      * Touchscreen driven with real buttons and drag-to-scroll
      * XML-based GUI that allows full customization of the layout – true theming!
      * Settings are saved to the sdcard and persist through reboots
      * Ability to choose which partitions to back up and which to restore
      * Ability to choose to compress backups – now with pigz (multi-core processor support for faster compression times)
      * Ability to backup large partitions (size>1.5GB) by splitting the backup archive.
      * Basic file manager (copy, move, delete, and chmod any file)
      * OpenRecoveryScript scripting engine
      * On-screen keyboard in recovery! -- supports long press, backspace repeat, and swipe left deletes everything left of the cursor
      * ADB sideload functionality from AOSP
      * Pseudo-terminal emulator
      * Decryption support
      * Ability to set a timeout for auto-turning off the screen
      * exFAT support for sdcard's 1st partition
      * Manual screen rotation
    • **************Extended**************
      * Proper detection of bootloader(cLK/MAGLDR/haret)
      * Support for cLK's extra boot partitions
      * Tweaked off-mode charging for cLK (device can wake up by pressing any key)
      * Direct rebooting to selected boot partition for cLK bootloader
      * Direct rebooting with selected kernel from NativeSD folder for MAGLDR bootloader
      * Ability to communicate with cLK in order to change partitions' size if needed
      * Built-in NativeSD manager(Backup - Restore - Delete - Fix Permissions - Wipe Data - Wipe Dalvik-Cache - [cLK]Kernel-Restore)
      * Option to skip any NativeSD Rom during sd-ext's partition backup
      * Option to adjust backup/restore process for DataOnExt method
      *
      * Nilfs2 support for sdcard's ext(2nd/3rd primary) partition
      * NTFS support for sdcard's 1st primary partition
      * Option for converting file system [ext2 - ext3 - ext4 - nilfs2] of sdcard's ext partition (without losing any data if there is enough space on the /sdcard)
      * Option for adding a 3rd primary partition(mmcblk0p3 as /sdext2)
      * Option to skip dalvik-cache during backup
      * Ability to restore backups that were made using a CWM Recovery
      * Ability to check SD Card's filesystem(s)
      * Ability to run shell scripts from your SD Card (script location: /sdcard/TWRP/scripts)
      * Ability to "run" recovery (AROMA based) apps with one click (app location: /sdcard/TWRP/app)
      * Ability to select current theme (example of theme file location /sdcard/TWRP/theme/MyTheme/ui.zip)
      * Ability to check the size of the backup to be restored
      * Ability to take screenshot (screenshots location: /sdcard/TWRP/screenshots)
      * Configurable haptic feedback
      * Configurable system tweaks (cpu gov, cpu freq, i/o sched, drop_caches)

    Source:
    ---------------------

    Looks:
    ---------------------

    Download:
    ---------------------


    Frequent issues:
    ---------------------
    1. If you report an issue without a log and/or without details, that's not very helpful in tracking down that issue, so, eventually, don't expect any assistance cause I am not a medium.
    2. If you get a "status 2" error when installing a recovery-update-package(zip) that used to work with your old recovery, change the update-binary inside the zip file with a newer one (API 3).
      DON'T FORGET to check the syntax in the updater-script and verify that format() and mount() commands have the correct amount of arguments, otherwise you'll end up having other errors like "status 7".
      i.e. if you use the update-binary included in the attached file below, format takes 2: format("MTD", "boot").
    3. If you occasionally can't boot into recovery, try increasing the size of its partition >= 10MB.

    Installation:
    ---------------------

    • [Basic stuff before installing]
      • Make sure you have adb and fastboot working (required files here). Please don't ask here questions about this - a simple web search will be enough to help you.
      • Make sure that the size of the 'recovery' partition is enough for the image to fit.
      • Make sure the name of the recovery *.img file is the one you use in the commands or in flash.cfg
    • [Flashing occasions]
      • [cLK/MAGLDR]
        Flashing the zip file from existing Recovery
        1. Download zip file to your computer and copy to /sdcard.
        2. Reboot phone into recovery.
        3. Select to install the zip file from your /sdcard.
        4. Reboot Phone into recovery as normal.
      • [cLK/MAGLDR]
        Flashing the *.img file while booted in Android or in Recovery
        1. Download the recovery file to your computer.
          If it is a zip file, extract the *.img.
        2. (Win) Open the folder you have the recovery, do a [Shift+RightClick] and select "Open command window here".
          (Lnx) Open the folder you have the recovery, RigthClick and select "Open in Terminal".
        3. Execute the commands:
          Code:
          adb push recovery.img /sdcard/recovery.img
          adb shell erase_image recovery
          adb shell flash_image recovery /sdcard/recovery.img
        4. Reboot Phone into recovery as normal.
      • [cLK]
        Flashing the *.img file while in fastboot mode(cLK menu)
        1. Download the recovery file to your computer.
          If it is a zip file, extract the *.img.
        2. (Win) Open the folder you have the recovery, do a [Shift+RightClick] and select "Open command window here".
          (Lnx) Open the folder you have the recovery, RigthClick and select "Open in Terminal".
        3. Reboot phone into cLK menu (fastboot mode).
        4. If needed, change the size of the 'recovery' partition on the fly (under SETTINGS/RESIZE PARTITIONS).
        5. Execute the commands:
          Code:
          fastboot erase recovery
          fastboot flash recovery recovery.img
          fastboot oem boot-recovery
      • [MAGLDR]
        Flashing the *.img file while in USB Flasher mode(using DAF.exe)
        Code:
        [B][COLOR="Red"]WARNING!!![/COLOR] This way of flashing will erase your current Rom on NAND too!
        You will probably want to do this
        [COLOR="Red"]ONLY IF[/COLOR] you need to increase the size of the 'recovery' partition![/B]
        1. Download the recovery file to your computer.
          If it is a zip file, extract the *.img.
        2. Open the folder you have the recovery and place DAF.exe and flash.cfg in that same folder.
        3. Edit flash.cfg according to required recovery partition size:
          Make sure the .img file has the name that flash.cfg specifies!!
          i.e. If the *.img file is named recovery.img and min-required-size = 8MB then the flash.cfg could be:
          Code:
          misc ya 1M
          [U]recovery rrecov|ro|nospr 8M recovery.img[/U]
          boot yboot|ro 5M
          system ya 150M
          cache ya 2M
          userdata ya|asize|hr allsize
          Check out the info about flash.cfg.
        4. Connect the device to the computer via usb, enter MAGLDR and select USB Flasher option.
        5. Right click on DAF.exe and select Run as Administrator.
        6. Click [NEXT] when asked and wait to finish.

    Post-Installation:
    ---------------------
    1. Make sure you delete /sdcard/TWRP/.twrps.
    2. If you're using a theme, update your theme file or temporarily switch to the default theme.

    A big Thank-You for supporting/testing the ExtendedTWRP to:
    ---------------------

    • Dark_Avenger
    • NYLimited
    • DarrenNewsgroup
    • Nixda99
    • MarkAtHome
    • Robbie P
    37
    Timeline


    • HD2_Extended_TWRP_2.6.3.4 @ 2013.11.24
      1. Compiled tytung's jellybean kernel with CONFIG_YAFFS_XATTR=y
        and replaced existing recovery kernel.
      2. Attempt to fix curtain.jpg loading bug.
    • HD2_Extended_TWRP_2.6.3.3 @ 2013.11.20
      1. Reverted to 2.x kernel (more stable and smaller size).
    • HD2_Extended_TWRP_2.6.3.2 @ 2013.11.20
      1. Ported latest mainline commits.
      2. Compiled without ntfs and exFat support (since no existing HD2 Rom really requires any of them).
      3. Switched to 3.x kernel (github.com/TeamNightmare/android_kernel_htc_leo).
    • HD2_Extended_TWRP_2.6.3.0 @ 2013.09.19
      1. Ported latest mainline commits (update to v2.6.3.0).
      2. Disabled the ability to encrypt the backup of the data partition. Rolled back to old twrpTar code in an attempt to temporarily fix some backup/restore errors.
        (The backups made by previous versions might not be good).
    • HD2_Extended_TWRP_2.6.1.2 @ 2013.09.09
      1. Fix crashing when installing a recovery-package.
      2. Added "bootloader=haret" to startup.txt for haret's case.
    • HD2_Extended_TWRP_2.6.1.1 @ 2013.09.06
      1. Reverted a commit that messed up the rotation feature.
      2. Attempt to improve bootloader detection.
    • HD2_Extended_TWRP_2.6.1.0 @ 2013.08.31
      1. Ported latest mainline commits (update to v2.6.1.0).
    • HD2_Extended_TWRP_2.6.0.0 @ 2013.07.16
      1. Ported (most of the) latest mainline commits (update to v2.6).
      2. Ported Vojtech Bocek's screen rotation.
        Old themes are not compatible!
        Instead of one ui.xml file, the new theme requires two files portrait.xml and landscape.xml and the appropriate images.
      3. Misc code cleanups/fixes.
    • HD2_Extended_TWRP_2.5.0.5 @ 2013.05.10
      1. Try to fix libtar bug (present when creating sd-ext's backup).
      2. Reboot options for "recovery" and "bootloader" will be available for cLK only.
      3. Revised nativeSD manager.
    • HD2_Extended_TWRP_2.5.0.4 @ 2013.05.08
      1. Made partitionlist's selection persist.
      2. Added ability to load selected theme's curtain.jpg.
      3. Fixed slider-touch.png, changed list's header separator color to red and reordered header info in built-in theme.
      4. Revised how twrp handles 'userdata' partition when DataOnExt mode is.
        Cause there is a chance 'DalvikOnNand' method is used.
      5. Cleaned up unused code and added a flag for HD2-specific stuff so if anyone would try to build Extended TWRP for another device it would be easier.
    • HD2_Extended_TWRP_2.5.0.3 @ 2013.05.06
      1. Added "View file" under filemanager options (it's more or less like 'cat /file').
      2. Small fix to off-mode charging.
      3. Attempt to fix progress bar issue.
      4. Changed built-in theme. The new one is based on Dark_Avenger's Holo Dark.
      5. Changed some log messages.
    • HD2_Extended_TWRP_2.5.0.2 @ 2013.04.22
      1. Changed behavior of "Reset Defaults". Device will reboot after that.
      2. Changed handling of extra boot partitions for cLK.
        Now you can backup/restore/wipe any of those partitions just like the default ones!
        (In the end this means that you can backup/restore EVERYTHING at once)
      3. Changed versioning way (last digit will be used for the extended revision).
      4. Changed screenshot function:
        If the system is busy (perhaps doing something (?) to the sdcard) no screenshot will be taken if you press the top logo.
        Otherwise, in order to notify the user that a screenshot was successfully taken the keys backlight will blink.
      5. Reorganized/rewrote some of the code (backup/restore/wipe) around "partitionlist".
      6. Removed sfdisk.
      7. Recompiled tytung_jellybean_r2 kernel with increased MSM_MAX_PARTITIONS to 20 (this will fix the detection of cLK's extra boot partitions).
      8. Misc fixes that I don't remember now...
    • HD2_Extended_TWRP_2.5.0.0_r1 @ 2013.04.17
      1. Ported latest mainline commits (update to v2.5).
      2. Fixed battery_thread().
      3. Added ability to auto delete logs from cache to free up some space when needed (see Dark_Avenger's post).
      4. Switched kernel to tytung_jellybean_r2.
      5. Misc fixes.
      6. Compiled img with TW_INCLUDE_CRYPTO = true & TW_INCLUDE_JB_CRYPTO = true.
      7. Increased required min size to 9MB.
    • HD2_Extended_TWRP_2.4.4.0_r7 @ 2013.04.05
      1. Attempt to fix /sdcard mounting issues in case of slow cards(thanks to Darren for helping).
      2. Fixed restoring a tar that was made with a previous version that used busybox tar.
    • HD2_Extended_TWRP_2.4.4.0_r6 @ 2013.04.03
      1. Attempt to fix archive extraction during restore.
      2. Added separate option for excluding dalvik-cache from a NativeSD Rom's backup under NativeSD Manager Settings.
    • HD2_Extended_TWRP_2.4.4.0_r5 @ 2013.04.02
      1. Attempt to fix timezone dst settings.
      2. Revised extractTarFork() function.
    • HD2_Extended_TWRP_2.4.4.0_r4 @ 2013.03.31
      1. 3rd attempt to fix sdcard partitioning.
      2. Added option for magldr users to select which NativeSD Rom to reboot to(jskenderi's idea).
      3. Fixed cpu governor selection not getting applied at boot.
      4. Removed "read_ahead_kb" tweaks from init.rc.
      5. Revised LoadValues() function.
    • HD2_Extended_TWRP_2.4.4.0_r3 @ 2013.03.22
      1. 2nd attempt to fix sdcard partitioning.
      2. Changed "Enable MD5 verification" to "Skip MD5 verification" - The default behavior is to verify md5s.
      3. Fixed a bug regarding backing up with "Exclude NativeSD Roms..." option enabled.
    • HD2_Extended_TWRP_2.4.4.0_r2 @ 2013.03.20
      1. First attempt to fix sdcard partitioning.
      2. Ported latest mainline md5sum fix.
      3. Fixed NativeSD dalvik wipe.
      4. Replaced the option for the preboot scrict with an option to force TWRP to handle boot partition as 'mtd'.
        Only MAGLDR users will be able to see it AND in case your "boot" is raw (rboot was used in flash.cfg), enable it!
    • HD2_Extended_TWRP_2.4.4.0_r1 @ 2013.03.14
      1. Ported latest mainline commits.
      2. Updated/fixed clkpartmgr (needs cLK v1.5.2.0 to work correctly) - partition size is passed in blocks.
      3. Revised storage partitioning method.
      4. Enabled ntfs and exFat formats for card's 1st primary partition.
      5. Switched to libtar for archive handling.
      6. Switched to libblkid for filesystem detection.
      7. Added more options for haptic feedback.
      8. Added option under "Settings" for the preboot scrict that sets the filesystem for "boot" partition before recovery loads recovery.fstab.
        If your bootloader is MAGLDR and "boot" is raw, disable it. IN ANY OTHER CASE leave it enabled.
        If you don't know what I'm talking about, leave it enabled.
      9. Kernel is compiled with defaults: gov = performance, i/o scheduler = deadline, cpu freq = (245 - 998)MHz
      10. SD Card read_ahead_kb set to 2048, NAND's partitions read_ahead_kb set to 128
      11. Added system tweaks options (cpu gov, i/o scheduler, cpu max/min freq, available memory boost).
      12. If we want to have a theme setting persisted there is a new function <action function="save"> instead of <action function="set">.
    • HD2_Extended_TWRP_2.4.3.0_r3 @ 2013.03.04
      1. Reverted the way TWRP handles 'boot' partition's file-system.
        Backup/restore for MAGLDR should work now.
      2. Ported the dim effect before screen turns off from mainline.
      3. Misc small changes in code.
    • HD2_Extended_TWRP_2.4.3.0_r2 @ 2013.03.02
      1. Reverted fileselector to clear by default the data variable.
    • HD2_Extended_TWRP_2.4.3.0_r1 @ 2013.03.01
      1. Ported mainline commits (update to 2.4.3.0).
        One of them fixes the fileselector bug.
      2. 1st attempt to fix UI's bug (hot-rebooting after theme changing).
    • HD2_Extended_TWRP_2.4.2.0_r2 @ 2013.02.27
      1. Fixed screen timeout not being loaded at boot (instead it was always 60 sec).
      2. Added haptic feedback and an option to enable it under "Settings".
      3. Fixed screenshot feature.
    • HD2_Extended_TWRP_2.4.2.0_r1 @ 2013.02.25
      1. Added option for the root checking stuff. If you don't want TWRP messing with your system you have the option to disable it under "Settings".
      2. Added option to select the clock-time format.
      3. Cleaned up blanktimer.
    • HD2_Extended_TWRP_2.4.1.0_r3 @ 2013.02.24
      1. Ported latest mainline commits.
        Some of them were already in Extended TWRP(button highlight and 24h clock)
        One of them added a "Screen" button under "Settings" which gives you the option to
        (a)set the timeout for auto-turning-off the screen and
        (b)set the level of screen brightness.
      2. Created separate thread for monitoring battery capacity and usb status.
        Led will work as normal. I've also set it to blink the amber led if battery < 10%.
      3. Tweaked offmode-charging (this is for cLK users that don't use cLK's built-in offmode charging mode).
        Fast charging is enabled in kernel and 'Powersave' settings will be used.
        Also added the ability to wake up the device while offmode-charging by pressing ANY key.
      4. Removed unused/duplicate options from "Settings".
      5. When you skip dalvik-cache during a backup, a file named .nodalvikcache will be created in the backup folder with the size of dalvik-cache stored inside.
        This will be used whenever you restore that backup in order to add that size to the calculations for minimum partition's size.
      6. In case the '.nodalvikcache' file doesn't exist there is an option to set the increment(%) for the size of the partition to which a backup that doesn't contain dalvik-cache will be restored. Default value is 40%.
      7. Changed the way TWRP handles 'boot' partition's file-system. It doesn't depend anymore on which bootloader we have (cause MAGLDR supports both yaffs2 and raw mtd).
        Code:
        Dropped the logic:
        If cLK => mtd
        else => yaffs2
        Now it really checks the file-system.I think:p
      8. Added the ability to restore a backup made with cLK as bootloader on MAGLDR.
      9. ...
    • HD2_Extended_TWRP_2.4.1.0_r2 @ 2013.02.11
      1. Moved option for backing up nand's userdata to BACKUP page.
      2. Instead of Data show DataOnExt or DataOnNand accordingly.
      3. Added option under "SETTINGS" page to let TWRP check if a partition's size is enough for its backup to be restored before tar throws an error caused of insufficient space.
        MAGLDR users: if the selected part of your backup is larger than the actual size of the partition, this part will be excluded from the restore process.
        cLK users: Update to v1.5.1.9 and size mismatches will be no problem, since TWRP and cLK will automatically resize any partition that needs resizing.
      4. Show progressbar during NativeSD backup.
      5. Updated clkpartmgr (the args passed to it have changed too).
    • HD2_Extended_TWRP_2.4.1.0_r1 @ 2013.02.06
      1. Port mainline commit(TWFuncc::Get_Folder_Size and MD5 checking).
      2. Added function for finding a file on storage using the file's name and used it in OpenRecoveryScript.
      3. Add clkpartmgr to TWRP.
    • HD2_Extended_TWRP_2.4.0.0_r8 @ 2013.02.01
      1. When restoring a backup with DataOnExt show 'data' instead of 'sd-ext' under Restore page.
      2. Always reset Use_unyaffs_To_Restore to false.
      3. Fix Recreate_DataOnExt_Folder().
    • HD2_Extended_TWRP_2.4.0.0_r7 @ 2013.02.01
      1. Created separate thread for updating time clock in order to avoid having it frozen.
      2. Fix for sd-ext button disappearing after wiping.
      3. Recreate folder for DataOnExt after wiping sd-ext.
      4. Port last mailine commits.
    • HD2_Extended_TWRP_2.4.0.0_r6 @ 2013.01.31
      1. Fixed backup part selection when there are split archives.
      2. Corrected free space calculation in FS-converting and NativeSD-backup.
      3. Time format changed to hh:mm:ss. (Sometimes seconds get frozen but it's nothing to worry about)
      4. Misc NativeSD Manager fixes.
    • HD2_Extended_TWRP_2.4.0.0_r5 @ 2013.01.30
      1. Added ability to select theme.
        You must place the theme file(ui.zip) in a folder under /sdcard/TWRP/theme (eg /sdcard/TWRP/theme/Holo_Dark/ui.zip)
      2. Added ability to select and load a recovery package like Aroma-File-Manager or NativeSD-Recovery.
        You must place the files (*.zip) under /sdcard/TWRP/app.
      3. Fixed NativeSD backup(tar arguments error).
      4. Moved Update_Size() from Mount() function to Wipe().
    • HD2_Extended_TWRP_2.4.0.0_r4 @ 2013.01.29
      1. Fixed a mounting issue:
        Update_Size() function was called inside Mount().
        However inside Update_Size() there was a call for Mount() and UnMount(!?) causing a mess.
        Lets see if this could fix the problem with DataOnExt too.
    • HD2_Extended_TWRP_2.4.0.0_r3 @ 2013.01.29
      1. Ported mainline commits till 29th of Jan.
      2. Fixed boot partition's flag so that it can be wiped
      3. Settings file (.twrps) is now read once at boot.
      4. The TWRP folder structure on /sdcard will be auto-generated.
    • HD2_Extended_TWRP_2.4.0.0_r2 @ 2013.01.27
      1. Updated to twrp2.4.
      2. Ported all mainline commits till 26th of Jan.
      3. Rewrote most of the extended functions.
      4. Added option to format all main partitions except for /sdcard.
      5. Added new feature in file manager: the size of the selected file or folder will be shown in the operation page.

      • HD2_Extended_TWRP_2.3.3.0_rev12 @ 2013.01.16
        1. One&only purpose: Attempt to fix all issues for MAGLDR users.
        2. Extensive logging is present in this rev.
      • HD2_Extended_TWRP_2.3.3.0_rev11 @ 2013.01.15
        1. Second attempt to fix weird sdcard issues.
        2. Added more logging output to help find the problem.
      • HD2_Extended_TWRP_2.3.3.0_rev10 @ 2013.01.14
        1. Probably fixed the error during "Fix-Permissions" when DataOnExt is used.
        2. Reverted changes in fstab as an attempt to fix weird sdcard issues.
      • HD2_Extended_TWRP_2.3.3.0_rev9 @ 2013.01.13
        1. Another attempt to fix partitions' sizes for the backup process.
        2. Added option (under "Backup" page) for the user to select if the NativeSD roms will be excluded or not from the sd-ext backup.
        3. Added ability to run shell scripts that you might have on your sdcard (/sdcard/TWRP/scripts).
        4. Added back the missing "Reload Theme" button under "Advanced" page.
      • HD2_Extended_TWRP_2.3.3.0_rev8 @ 2013.01.06
        1. Changed the path where TWRP will save any taken screenshot to "/sdcard/TWRP/screenshots/".
          The name of the png file will have this format "TWRPScr-001.png". The increment will be done automatically.
          Unfortunately I haven't fixed the quality yet.
        2. Added an option under "Settings" to "Enable path-checking for DataOnExt".
          If enabled the path that will be used for the DataOnExt mode will be checked before any errors occur. Hopefully this will help non-experienced users to use DataOnExt function.
        3. Added ability to automatically skip any NativeSD Rom folder from your sd-ext backup.
          If you want to backup a NativeSD Rom do it from the NativeSD Manager.
        4. Probably fixed the way TWRP calculates the partition sizes according to our extended settings(skip dalvik-cache - dataonext - skip nativesd roms).
          So now the sizes (shown under "Backup" and) used during backup-process should be correct.
      • HD2_Extended_TWRP_2.3.3.0_rev7 @ 2013.01.04
        1. Removed the second parsing of recovery.fstab (the one after "postrecoveryboot.sh" run). Instead the script "prerecoveryboot.sh" will run before TWRP parses the recovery.fstab file.
          This should also eliminate any weird errors you've been seeing in the logs.
        2. Attempt to resolve problems relevant to "Fix Permissions" when DataOnExt mode is ON.
        3. Added a second step/check in UnMount() in case it fails the first time. Just like I did for the Mount() in previous rev.
        4. Added option to skip saving "dalvik-cache" during backup (under "Backup" menu) in order to minimize the size of the backup file. After-all dalvik-cache is recreated. It will be like you've wiped it when you restore that backup.
        5. Changed the way Backup & Restore work for DataOnExt:
          • If you have DataOnExt checked and you go ahead and start a backup process then
            a (hidden) file called .dataonext will be created in the backup folder.
            The path for your /data mount point will be stored inside that file.
            Do not delete that file cause you'll have to recreate it manually!
          • Regardless of the settings you might have(DataOnExt checked or unchecked) if you go ahead and start a restore process of a backup with DataOnExt
            (so it has the .dataonext file inside - if not it's easy to manually create it)
            the option for "Setup recovery for DataOnExt" will be checked and
            the path (DataOnExt button) will be reset to the path you had when the backup was done.
          • If you were using the entire /sd-ext for /data (original DataOnExt) when you made your backup then
            when you restore that backup, the sd-ext will be formatted.
            If you were using a subdir of /sd-ext for /data (modified DataOnExt like "/sdext/NexusHD2-JellyBean/data") when you made your backup then
            when you restore that backup, the sd-ext will not be formatted - instead only that subdir will be deleted.
        6. Ported Tasssadar's "clicked" effect to all buttons as feedback.
        7. Been experimenting and added some code to be able to take a screenshot (will be saved as /sdcard/TWRPScr.png).
          It is done by touching the top LOGO. To enable it, there is a relevant checkbox under "Settings".
          It doesn't work as expected yet! The pics taken are crap:( but it's a wip...
      • HD2_Extended_TWRP_2.3.3.0_rev6 @ 2013.01.02
        1. Fixed a problem when restoring an sd-ext backup that was made with CWM Recovery.
        2. Added an option to run some filesystem checks on the sd-card under "Partition SD Card" button inside "Advanced".
        3. Enabled power key to lock the screen.
      • HD2_Extended_TWRP_2.3.3.0_rev5 @ 2012.12.30
        1. 1st attempt to fix mounting problem(s) related to ext partition.
        2. TWRP is now able to restore backups that were made using a CWM Recovery.
          All you have to do is copy the entire backup folder (i.e. 2012-08-20.09.12.38) from /sdcard/clockworkmod/backup to /sdcard/TWRP/BACKUPS/htcleo
      • HD2_Extended_TWRP_2.3.3.0_rev4 @ 2012.12.28
        1. 1st attempt to fix TWRP's failure on file-system check when a partition has a label.
        2. Changed how TWRP handles the ext partition(s) size while parsing recovery.fstab.
      • HD2_Extended_TWRP_2.3.3.0_rev3 @ 2012.12.27
        1. 3rd attempt to fix the .android_secure bug.
        2. Added an SD version for testing.
      • HD2_Extended_TWRP_2.3.3.0_rev2 @ 2012.12.26
        1. 2nd attempt to fix the .android_secure bug.
        2. 1st attempt to fix the crash of sd card's partitioning when adding 2nd ext partition.
        3. Reverted the logo to the default one.
        4. New settings for fs-check and DataOnExt will be saved and not lost after a reset.
        5. Switched the type of release from just an img-file to a flashable-zip with a script to check recovery's partition size before updating.
      • HD2_Extended_TWRP_2.3.3.0_rev1 @ 2012.12.24
        • Ported commits from mainline 2.3.3.0.
        • Changed how the DataOnExt will be handled.
          Under "Settings" you'll find a checkbox with which you can "tell" recovery that you're using DataOnExt or not.
          In case you're using a modified DataOnExt method you can set the actual path of your /data (i.e. /sd-ext/%RomName%/data) by hitting DataOnExt button.
        • Probably fixed the .android-secure bug.
        • Reverted the backup path(BACKUPS/htcleo/).
          So you have to create an intermediate folder named "htcleo" under BACKUPS and move your backups inside.
        • Reverted the max size for splitting archive to 1.5GB.
        • 1st attempt for saving the contents of your ext partition when you change the fs type (will need enough free space on your sdcard for this to work).
        • Added option to set the number of mounts that will trigger a filesystem check under "Settings".
        • Added option to wipe Data, Boot and (cLK)sBoot under "wipe" Menu.
        • Added necessary code for selecting fs type (vfat / ntfs) for /sdcard but since I can't make it function properly I've disabled it in the UI. (Also in case it will work using the ntfsprogs binaries, the size of the recovery will increase to ~ 8MB)
      • HD2_TWRP_2.3.2.X @ 2012.12.14
        • Detection of bootloader
        • Nilfs2 support for sdcard's ext partition
        • Option for converting file system(formatting) of sdcard's ext partition: [ext2 - ext3 - ext4 - nilfs2]
        • In-built NativeSD manager
        • Option for adding a 2nd ext partition(mmcblk0p3)
        • (cLK)Direct rebooting to selected boot partition
        • Option to adjust the backup process for DataOnExt case
        • 1st attempt for archive splitting(also lowered the max size to 512MB)
        • 1st attempt for MAGLDR boot restoring
    26
    Info

    • How to report a problem
    1. Provide the log file.
      In order to get it connect your device to pc via usb and run in terminal:
      Code:
      adb pull /tmp/recovery.log
      If that fails for some strange reason then you could also try:
      Code:
      adb pull /cache/recovery/log
      Or you could just use the "Copy Log" button under "Advanced" and have the log copied to the root of your card.
    2. Give a short description of what triggered the problem.
    3. If you don't have your device's setup in your signature, post that info too. For example:
      Code:
      HD2 ver.: EU
      SDCard: Sandisk 32GB(c4)
      SDCard's Partition Table: mmcblk0p1 [vfat,30GB], mmcblk0p2 [ext4,2GB]
      Bootloader: cLK 1.5.1.6
      NAND's Partition Table: recovery 8MB, misc 2MB, boot 4MB. userdata auto-size, system 200 MB, cache 2MB
      Rom: HyperDroid 6.1 - NAND
    4. Since this is a WIP, you could also use github to report any issue.

    • Theme related
    1. Information on Official TWRP Theming.
    2. Extended TWRP gives you the ability to choose between many themes.
      When booting, it checks for a theme zip file on your card:
      /sdcard/TWRP/theme is the location where you must create a folder named after the theme you will use and place the ui.zip inside it (i.e. /sdcard/TWRP/theme/Holo_Dark/ui.zip).
      If none found then it will use the built-in theme.
    3. For those who prefer the blue-ish TWRP default theme, I will be attaching it to this post every time something changes, so that you can use it as any external theme.
    4. Since version 2.6.0.0, the theming engine of the Extended TWRP differs from the official.
      Instead of one ui.xml file, the new theme requires two files portrait.xml and landscape.xml with the appropriate images.
    22
    Holo Dark theme for version 2.6.3.4 (portrait only).
    17
    Hi guys,

    The bug regarding cLK's extra boot partitions was there because I forgot to change a line:
    Code:
    #define MSM_MAX_PARTITIONS 8
    at nand_partitions.c in tytung's kernel before compiling.
    Also, after thinking about the screenshot issue, I decided to follow this way: If the system is busy, even if you accidentally press the top logo no screenshot will be taken so the running process will not be interrupted and will finish normally.
    Finally, in the previous version I ported the new gui element partitionlist from mainline. That was a bit messy cause it changed a lot of things regarding backup/restore/wipe, so I had to rewrite some of the functions.

    Regards!
    PS:I uploaded a new compiled file at 1st post. Happy testing:D
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone