[MTD/CWM] SGS4G TWRP Installer (Oct 13, 2012)

Search This thread

turtlepa

Guest
Jun 28, 2011
524
95
i get the same. is it possible to downgrade R5

Of course, just del cache dalvic cache, factory rs may be needed. I am tryin to get at fb i know he is on this with r6? :) its on multiple threads. Ah too much going on. I was thinking of downgrading to r5 but i dont know much about the init changes which is better for me.

Sent from my SGH-T959V using xda premium

Wait. I re read the whole thread. If the upload of latest twrp was corrupt then has nothing to do with what i was talkin about. I wouldn downgrade, just wait for FB to comment or update about it
 
Last edited:

turtlepa

Guest
Jun 28, 2011
524
95
Fb have u figured out y twrp gives status 7 on r6

Sent from my SGH-T959V using XDA Premium HD app
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Fb have u figured out y twrp gives status 7 on r6

Sent from my SGH-T959V using XDA Premium HD app

No but you can figure it out for me.

Extract the zip on your computer.
Use adb to push the sh script I made for this along with all the binaries the script needs and uses to /tmp on your phone
do a chmod a+x /tmp/*
adb shell
run the script and see where it errors out on cm9 r6

Tell me so I can see what can be done.

I will do this for you asap if you send me 20 bucks. If you don't want to send me 20 bucks you're gonna have to wait until I feel like looking into it myself.
 

turtlepa

Guest
Jun 28, 2011
524
95
Ill try what u said but i got it to work with adding the new kernel into cm9 and gummy lz. I made a backup beforehand so ill revert or reflash cm9 and report back to u

Sent from my SGH-T959V using XDA Premium HD app
 
This is what I get when trying to manually update in adb.
root@android:/ # cd /tmp
cd /tmp
root@android:/tmp # chmod 777 *
chmod 777 *
root@android:/tmp # ./updater_twrp.sh
./updater_twrp.sh
+ /tmp/busybox echo Starting TWRP injection
Starting TWRP injection
+ /tmp/busybox echo Dumping current boot.img
Dumping current boot.img
+ /tmp/dump_image boot /tmp/boot.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00040000 (Out of memory)
mtd: read error at 0x00080000 (Out of memory)
mtd: read error at 0x000c0000 (Out of memory)
mtd: read error at 0x00100000 (Out of memory)
mtd: read error at 0x00140000 (Out of memory)
mtd: read error at 0x00180000 (Out of memory)
mtd: read error at 0x001c0000 (Out of memory)
mtd: read error at 0x00200000 (Out of memory)
mtd: read error at 0x00240000 (Out of memory)
mtd: read error at 0x00280000 (Out of memory)
mtd: read error at 0x002c0000 (Out of memory)
mtd: read error at 0x00300000 (Out of memory)
mtd: read error at 0x00340000 (Out of memory)
mtd: read error at 0x00380000 (Out of memory)
mtd: read error at 0x003c0000 (Out of memory)
mtd: read error at 0x00400000 (Out of memory)
mtd: read error at 0x00440000 (Out of memory)
mtd: read error at 0x00480000 (Out of memory)
mtd: read error at 0x004c0000 (Out of memory)
mtd: read error at 0x00500000 (Out of memory)
mtd: read error at 0x00540000 (Out of memory)
mtd: read error at 0x00580000 (Out of memory)
mtd: read error at 0x005c0000 (Out of memory)
mtd: read error at 0x00600000 (Out of memory)
mtd: read error at 0x00640000 (Out of memory)
mtd: read error at 0x00680000 (Out of memory)
mtd: read error at 0x006c0000 (Out of memory)
mtd: read error at 0x00700000 (Out of memory)
mtd: read error at 0x00740000 (Out of memory)
+ [ ! 0 -eq 0 ]
+ /tmp/busybox echo Making a backup of boot.img
Making a backup of boot.img
+ /tmp/busybox cp /tmp/boot.img /sdcard/boot.backup.img
+ [ ! 0 -eq 0 ]
+ /tmp/busybox echo Injecting TWRP into the temporary boot.img
Injecting TWRP into the temporary boot.img
+ /tmp/injecttwrp /tmp/boot.img /tmp/ramdisk-recovery.img /tmp/boot-twrp.img
-- InjectTWRP Recovery Ramdisk Injection Tool for Samsung devices. --
-- by Dees_Troy and Team Win --
-- http://teamw.in --
-- Bringing some win to Samsung! --
-- This tool comes with no warranties whatsoever! --
-- Use at your own risk and always keep a backup! --

Version 0.1 beta

No ramdisk found in '/tmp/boot.img'
Failed
This boot image may not be using gzip compression.
+ [ ! 1 -eq 0 ]
+ /tmp/busybox echo Error while injecting TWRP into the temporary boot.img
Error while injecting TWRP into the temporary boot.img
+ exit 3
3|root@android:/tmp #
chmod a+x /tmp/* didn't work... said bad mode. Figured that giving full read/write/execute rights to all should be enough. Hope this helps.

While it did create a 'boot.img' file that it dutifully copies to the sdcard as 'boot.backup.img', it has a size of 0 bytes. Guessing that whatever read error is happening is causing the failure to update...?
 
Last edited:

itzik2sh

Senior Member
Sep 5, 2011
1,518
712
I took boot.img from latest (9/22) AOKP and got the TWRP on MIUI V4.
I was able to flash zips and fix permissions, but I'm stuck when trying to backup the device on partitions verification stage.
Did I miss anything ?
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
I took boot.img from latest (9/22) AOKP and got the TWRP on MIUI V4.
I was able to flash zips and fix permissions, but I'm stuck when trying to backup the device on partitions verification stage.
Did I miss anything ?

Normally I try to take ramdisk-recovery.img from the output directory of an AOKP build. I haven't gotten around to updating the image for the zip file on this thread since it won't replace the whole kernel but rather only the ramdisk ;). Maybe that will give you better luck, although it could also be a bug with TWRP.

Maybe you can try testing it on another rom just to verify?
 
  • Like
Reactions: pisherthefisher

itzik2sh

Senior Member
Sep 5, 2011
1,518
712
Retried without changing anything and it works. Seems like an SD card mounting detection issue (removed and returned) Thanks!!! Off to try some Sexy DS stuff...

sent from me
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Oct 13, 2012
Updated to TWRP v2.2.2.1
sgs4g-ics-twrp-2.2.2.1-installer.zip (MD5: 2fccfd752936e7022896db6303663b0f)
Changelog from: http://teamw.in/project/twrp2
Significantly improved sd-ext handling (ext partitions on sdcards)
Changes to kinetic scrolling in file selectors
Fixed a problem with using periods in backup names
Fixed problems in XML layouts with mounting system and USB storage
Fixed a problem with unmounting a partition before formatting during restore
Add Jelly Bean decrypt support
Updated 320x480 theme to match others (thanks to Llewelyn)
Improve "symlinking" of /data/media to either /sdcard or /emmc
Added sanitizing of device IDs for invalid characters (thanks to bigbiff)
Fixed free space calculation when switching backup devices on /data/media devices
Fixed a problem with using OpenRecoveryScript to create a backup without providing a backup name
 

Top Liked Posts

  • There are no posts matching your filters.
  • 47
    presents.png

    twrp_title.png


    Since it was too much of a hassle to include TWRP with every CM7 release, I decided to make a CMW flashable installer for TWRP.

    http://teamw.in/project/twrp2
    Team Win Recovery Project 2.1, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. 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.

    twrp_notes.png

    • When you flash a new ROM/boot.img after installing TWRP, if you do not select "Inject TWRP after install" you will go back to CWM!
    • It's easier to just keep the checkbox ticked (TWRP remembers if you tick it) and have TWRP re-inject itself after every ROM/boot.img flash.

    twrp_instructions.png

    1. Make sure you're on an MTD rom that's based on cm7 or an ICS rom
    2. Download sgs4g-mtd-twrp-installer.zip for CM7 or sgs4g-ics-twrp-2.2.0-installer.zip for ICS
    3. Reboot to recovery
    4. Flash the installer.zip you downloaded
    5. Enjoy! (After you reboot to recovery once more)

    twrp_source.png

    No link yet, but I will probably write a guide in the wiki on how to do it since you can build with almost no modification with how you build a CM7 boot.img

    twrp_downloads_changelog.png

    Oct 13, 2012
    Updated to TWRP v2.2.2.1
    sgs4g-ics-twrp-2.2.2.1-installer.zip (MD5: 2fccfd752936e7022896db6303663b0f)
    Changelog from: http://teamw.in/project/twrp2
    Significantly improved sd-ext handling (ext partitions on sdcards)
    Changes to kinetic scrolling in file selectors
    Fixed a problem with using periods in backup names
    Fixed problems in XML layouts with mounting system and USB storage
    Fixed a problem with unmounting a partition before formatting during restore
    Add Jelly Bean decrypt support
    Updated 320x480 theme to match others (thanks to Llewelyn)
    Improve "symlinking" of /data/media to either /sdcard or /emmc
    Added sanitizing of device IDs for invalid characters (thanks to bigbiff)
    Fixed free space calculation when switching backup devices on /data/media devices
    Fixed a problem with using OpenRecoveryScript to create a backup without providing a backup name

    Jul 30, 2012
    ICE CREAM SANDWICH (CM9/AOKP) Release
    sgs4g-ics-twrp-2.2.0-installer.zip (MD5: c2be948473dd709ec9f38e9ec4156e63)

    June 24, 2012
    GINGERBREAD Release:
    sgs4g-mtd-twrp-installer.zip (MD5: efa30628f760d49a41d8737eb999cc3d)

    twrp_credits.png

    • Dees-Troy (for helping me with TWRP)
    • Team Win (For making this awesome recovery)
    • smasher816 (For Team-Win-Recovery-Project-Samsung)
    • Team Acid for their awesome CM7 release
    8
    Oct 13, 2012
    Updated to TWRP v2.2.2.1
    sgs4g-ics-twrp-2.2.2.1-installer.zip (MD5: 2fccfd752936e7022896db6303663b0f)
    Changelog from: http://teamw.in/project/twrp2
    Significantly improved sd-ext handling (ext partitions on sdcards)
    Changes to kinetic scrolling in file selectors
    Fixed a problem with using periods in backup names
    Fixed problems in XML layouts with mounting system and USB storage
    Fixed a problem with unmounting a partition before formatting during restore
    Add Jelly Bean decrypt support
    Updated 320x480 theme to match others (thanks to Llewelyn)
    Improve "symlinking" of /data/media to either /sdcard or /emmc
    Added sanitizing of device IDs for invalid characters (thanks to bigbiff)
    Fixed free space calculation when switching backup devices on /data/media devices
    Fixed a problem with using OpenRecoveryScript to create a backup without providing a backup name
    6
    My favorite theme (so far):
    ICS/Cyan System Style Theme by gimpsta
    ss1.jpg
    ss2.jpg
    ss3.jpg
    6
    Is there anyway to have TWRP on the current Aries based ROMs?

    Beanstalk aries I put out a couple weeks ago has twrp

    Sent from my SCH-I545 using xda premium
    5
    Is there anyway to have TWRP on the current Aries based ROMs?

    Yes there is, but it will take cooperation from anyone building the kernels. ;). If any devs who are building the aries kernel are interested (particularly from Team Userdebug) do reply. I have a pull request for you.