[DEV][02/May/2015]unOFFICIAL TWRP|v2.8.6.1

Search This thread

jonas2295

Senior Member
Jan 4, 2010
5,128
2,787
Bavaria
it gets started by AD Recovery option right ?
or AD SD...?!

Will flash it as soon as i can :D

Thank you soo much,waited for this all time since i read first about the original project..thx
 

arif-ali

Retired Recognized Developer
Nov 14, 2007
1,005
1,455
Sheffield
blog.arif-ali.co.uk
Here you go with some phot... Not so high quality though... If you need better.. Tell me I will upload photos taken from my handy cam :D... And what vabout changing end call button to call button

http://db.tt/afg0Szat

I will get that implemented in the next beta release

Sent from my HTC HD2 using XDA App

i got "failed with error: -1" :(

what were you doing? how did you get this error? what were your steps?

I am not a mind reader, where I know exactly what you have done.

Please explain what you did to get this error

thanks.
 

arif-ali

Retired Recognized Developer
Nov 14, 2007
1,005
1,455
Sheffield
blog.arif-ali.co.uk
it gets started by AD Recovery option right ?
or AD SD...?!

Will flash it as soon as i can :D

Thank you soo much,waited for this all time since i read first about the original project..thx

i've not tried magldr, I only tested on cLK

The main thing was to get the buttons working correctly with the recovery, and then i released it

So this is untested by me.
 
  • Like
Reactions: ceylin45

haysnamrip

Senior Member
Sep 9, 2010
82
3
sandakan
Realme 6
what were you doing? how did you get this error? what were your steps?

I am not a mind reader, where I know exactly what you have done.

Please explain what you did to get this error

thanks.

i dont know how to explain but here the result:

C:\android-sdk-windows\platform-tools>adb shell flash_image recovery /sdcard/rec
overy-twrp-leo-1.1.0.img
flashing recovery from /sdcard/recovery-twrp-leo-1.1.0.img
mtd: successfully wrote block at 0
mtd: successfully wrote block at 20000
mtd: successfully wrote block at 40000
mtd: successfully wrote block at 60000
mtd: successfully wrote block at 80000
mtd: successfully wrote block at a0000
mtd: successfully wrote block at c0000
mtd: successfully wrote block at e0000
mtd: successfully wrote block at 100000
mtd: successfully wrote block at 120000
mtd: successfully wrote block at 140000
mtd: successfully wrote block at 160000
mtd: successfully wrote block at 180000
mtd: successfully wrote block at 1a0000
mtd: successfully wrote block at 1c0000
mtd: successfully wrote block at 1e0000
mtd: successfully wrote block at 200000
mtd: successfully wrote block at 220000
mtd: successfully wrote block at 240000
mtd: successfully wrote block at 260000
mtd: successfully wrote block at 280000
mtd: successfully wrote block at 2a0000
mtd: successfully wrote block at 2c0000
mtd: successfully wrote block at 2e0000
mtd: successfully wrote block at 300000
mtd: successfully wrote block at 320000
mtd: successfully wrote block at 340000
mtd: successfully wrote block at 360000
mtd: successfully wrote block at 380000
mtd: successfully wrote block at 3a0000
mtd: successfully wrote block at 3c0000
mtd: successfully wrote block at 3e0000
mtd: successfully wrote block at 400000
failed with error: -1
error writing recovery
C:\android-sdk-windows\platform-tools>

i manually copy image file to sdcard and run second command..
 

arif-ali

Retired Recognized Developer
Nov 14, 2007
1,005
1,455
Sheffield
blog.arif-ali.co.uk
i dont know how to explain but here the result:

C:\android-sdk-windows\platform-tools>adb shell flash_image recovery /sdcard/rec
overy-twrp-leo-1.1.0.img
flashing recovery from /sdcard/recovery-twrp-leo-1.1.0.img
mtd: successfully wrote block at 0
mtd: successfully wrote block at 20000
mtd: successfully wrote block at 40000
mtd: successfully wrote block at 60000
mtd: successfully wrote block at 80000
mtd: successfully wrote block at a0000
mtd: successfully wrote block at c0000
mtd: successfully wrote block at e0000
mtd: successfully wrote block at 100000
mtd: successfully wrote block at 120000
mtd: successfully wrote block at 140000
mtd: successfully wrote block at 160000
mtd: successfully wrote block at 180000
mtd: successfully wrote block at 1a0000
mtd: successfully wrote block at 1c0000
mtd: successfully wrote block at 1e0000
mtd: successfully wrote block at 200000
mtd: successfully wrote block at 220000
mtd: successfully wrote block at 240000
mtd: successfully wrote block at 260000
mtd: successfully wrote block at 280000
mtd: successfully wrote block at 2a0000
mtd: successfully wrote block at 2c0000
mtd: successfully wrote block at 2e0000
mtd: successfully wrote block at 300000
mtd: successfully wrote block at 320000
mtd: successfully wrote block at 340000
mtd: successfully wrote block at 360000
mtd: successfully wrote block at 380000
mtd: successfully wrote block at 3a0000
mtd: successfully wrote block at 3c0000
mtd: successfully wrote block at 3e0000
mtd: successfully wrote block at 400000
failed with error: -1
error writing recovery
C:\android-sdk-windows\platform-tools>

i manually copy image file to sdcard and run second command..

What size is your recovery partition, it needs to be at least 4.7M
 

seanyuan62

Senior Member
Oct 2, 2010
1,456
622
Looks very interesting. Will test and report back

Sent from my Nexus One using XDA Premium App
 

arif-ali

Retired Recognized Developer
Nov 14, 2007
1,005
1,455
Sheffield
blog.arif-ali.co.uk
dev: size erasesize name
mtd0: 00100000 00020000 "misc"
mtd1: 00420000 00020000 "recovery"
mtd2: 00500000 00020000 "boot"
mtd3: 09600000 00020000 "system"
mtd4: 00a00000 00020000 "cache"
mtd5: 0fac0000 00020000 "userdata"

your recovery partition is too small for this to work, It is recommended as for CWR and TWRP for the recovery to be 5M, for future proof.

If you could redo you magldr, and set the size of the recovery to 5M, then it should work
 
  • Like
Reactions: haysnamrip

tomoffel

Senior Member
Jun 11, 2007
508
62
moffel.de
Xiaomi Mi 10T / 10T Pro
Q: Does Off-mode charging still work
A: Yes, same as CWM on cLK. it will charge when off, but pressing the power button while charging will not turn the phone on

Hey guys,

what about a charging animation? or the percentage as a "fullscreen-text" at the screen, will its in "off-mode charging"? I think thats really nice, like the old nokias and co. :) maybe activating/deactivating the screen with the home button?

just a suggestion ;)
 

siddharth singh

Senior Member
Oct 9, 2009
383
44
kolkata
Hey guys,

what about a charging animation? or the percentage as a "fullscreen-text" at the screen, will its in "off-mode charging"? I think thats really nice, like the old nokias and co. :) maybe activating/deactivating the screen with the home button?

just a suggestion ;)

That would be good but it is a lot of work.. Have to write code for displaying the image of a battery n. All.... And btw... Off mode charging is working

Sent from my HTC HD2 using XDA App
 

arif-ali

Retired Recognized Developer
Nov 14, 2007
1,005
1,455
Sheffield
blog.arif-ali.co.uk
This is a recovery... Not a rom it is like clockwork recovery mod
@arif... Are the problem I stated before genuine or am I only facing it I have not restored anything... But the restore partition option doesn't allow me to do so

Sent from my HTC HD2 using XDA App

Like I mentioned earlier, I have tested nothing other than bringing it up and going through the menus.

The whole point of putting it on here as beta, is for testing and then to start fixing things

I don't have all the time in the world to test everything. So testing done by you guys is very valuable for me then to check what works and what doesn't so that I can concentrate on fixing the problems

thanks for testing
 

Top Liked Posts

  • There are no posts matching your filters.
  • 70
    [22 Dec 2011][RECOVERY] Team Win Recovery Project (twrp) v2.0.0RC0.1

    Original OP
    64
    Introduction:
    ---------------------
    Team Win Recovery Project 2.X, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. It’s a fully touch driven user interface – no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Phone look:
    ---------------------
    RAsb.jpg
    AO13.jpg


    Notice:
    ---------------------
    The attached recovery images were compiled from TWRP's open source.
    They were only tested on a European version of the HTC-HD2 powered by cLK bootloader.
    The performance on devices powered by MAGLDR bootloader should be considered untested.

    Disclaimer:
    ---------------------
    As usual, use at your own risk. TeamWin, arif-ali or kokotas is not responsible for anything bad that may occur from using twrp2.

    Nobody appointed me to compile TWRP for HD2. I'm not TeamWin's member. It just happened...
    If anyone else is willing to do it and probably do it better I will be glad to step aside,​

    Key Features:
    ---------------------
    * 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)
    * 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
    * Ability to backup large partitions (size>4GB) by splitting the backup archive.

    Mainline TWRP Change-Log:
    ---------------------
    Follow up the changes in mainline project at TeamWin's page : http://www.teamw.in/project/twrp2.

    HD2's TWRP Change-Log:
    ---------------------
    • Initial TWRP versions

      1. List of changes
    • TWRP v2.4.0.0.r1 @ 2013.01.17
      1. Compiled version based on mainline code (v2.4.0.0Alpha).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix getting fs-type from a partition created with a label.
      4. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.4.4.0 @ 2013.04.03
      1. Compiled version based on mainline code (v2.4.4.0).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.5.0.0 @ 2013.04.10
      1. Compiled version based on mainline code (v2.5.0.0).
        NOTE: Compiled unmodified source code refused to boot! So I had to change a little bit more this time, just to get it to boot up.
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.6.0.0 @ 2013.07.09
      1. Compiled version based on mainline code (v2.6.0.0).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.6.1.0 @ 2013.08.31
      1. Compiled version based on mainline code (v2.6.1.0).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.6.3.0 @ 2013.09.14
      1. Compiled version based on mainline code (v2.6.3.0).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
    • TWRP v2.8.6.0 @ 2015.04.30
      1. Compiled version based on mainline code (v2.8.6.0).
      2. Fix boot partition's filesystem for MAGLDR's backup&restore to work.
      3. Fix the name of the backup sub-folder(htcleo instead of 0s).
      4. Fix some ui bugs in the default theme.
    • TWRP v2.8.6.1 @ 2015.05.02
      1. It is version 2.8.6 with a quick fix over a bug in the default theme engine that was causing an error during each boot.

    Installation:
    ---------------------
    • Make sure you have adb and fastboot working. 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
    • [cLK/MAGLDR]
      Flashing the zip file from 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
      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-leo.img /sdcard/recovery-leo.img
        adb shell erase_image recovery
        adb shell flash_image recovery /sdcard/recovery-leo.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. Execute the commands:
        Code:
        fastboot erase recovery
        fastboot flash recovery recovery-leo.img
        fastboot oem boot-recovery
    • [MAGLDR]
      Flashing the *.img file while in USB Flasher mode(using DAF.exe)
      WARNING!!! This will erase your current Rom on NAND too!
      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-leo.img and min-required-size = 6MB then the flash.cfg could be:
        Code:
        misc ya 1M
        [U]recovery rrecov|ro|nospr 6M recovery-leo.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.

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

    Old Releases:
    ---------------------



    Special Thanks to:
    ---------------------
    * Core twrp 2 development team: agrabren, Dees_Troy, ViViDboarder, and AssassinsLament
    * Toastcfh – for his underappreciated dedication to the community
    * s0up and kevank for their hard work on the web side of things.
    * The rest of Team Win: shift, onicrom, netarchy, kevank, myndwire, bigbiff, dkelle4, shinzul, spiicytuna, and eyeballer
    * Amon_RA - for his great Recovery
    * Koush - for his dedication to the community and ClockworkMod
    * For all the help with devices and testing Akmzero, arif-ali, Evil_DevNull, gus6464, Jesusice, Pyrostic, [R], and Rootzwiki
    * As always thank you to the Team's supporters and the Android Community.
    25
    Hi guys,

    First post updated with a new compiled version (2.6). Check TeamWin's page for the official (long) change-log.
    Many thanks to the team for their efforts - a lot of work was done for this update!
    As for (our) hd2's case, there was no problem booting up this time and everything seems ready to be tested;). So... have fun with this update;)

    Regards!
    23
    Hello guys,

    Attached below is a new compiled version of TWRP - Extended:
    1. Ported commits from mainline 2.3.3.0.
    2. 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.
    3. Probably fixed the .android-secure bug.
    4. Reverted the backup path(BACKUPS/htcleo/).
      So you have to create an intermediate folder named "htcleo" under BACKUPS and move your backups inside.
    5. Reverted the max size for splitting archive to 1.5GB.
    6. 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).
    7. Added option to set the number of mounts that will trigger a filesystem check under "Settings".
    8. Added option to wipe Data, Boot and (cLK)sBoot under "wipe" Menu.
    9. 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)
    10. Uploaded all I've done to github repo.

    Merry Christmas and Have fun:)
    Regards!
    22
    FAQ

    FAQ from TWRP team is here

    Q: Does Rom Manager work with this
    A: No

    Q: Will you be providing support for Rom Manager
    A: Maybe, when I have time, or if Team View release it before me

    Q: Does it work with MAGLDR
    A: Yes, use AD recovery

    Q: Does this mean we cannot easily install ROMs
    A: Yes, but the code for that may be added at later date, this is Work In Porgress

    Q: Will reboot to Recovery work as normal
    A: Yes

    Q: Does Off-mode charging still work
    A: Yes, same as CWM on cLK. it will charge when off, but pressing the power button while charging will not turn the phone on

    Q: I got "failed with error: -1"
    A: make sure the recovery size is 5M, anything below that is not supported, You can check this by running adb cat "/proc/mtd | grep recovery"