Author Topic: [GUIDE]Making update zips work with newer versions of TWRP  (Read 2616 times)

0 Members and 1 Guest are viewing this topic.

[GUIDE]Making update zips work with newer versions of TWRP

« on: April 10, 2013, 09:22:23 AM »
  • Thank You
  • -Given: 0
  • -Receive: 1
  • dtalley11

    Posts: 26
    User Rating: +5/-0
    • Moderator
    • *
    • Jr. Member
    • Personal Text
      Just another guy
      • Team Gelato Blog
    I decided that I had better put this in it's own topic, because it pertains to more than just our twrp builds.

    As for getting .zip files to flash correctly we found a fix after a bit of testing and help from qnhoang81:
    the update-binary in most of the roms for the optimus slider are based on the one compiled with gingerbread and older, in order to get them to install with the newer (2.3+) versions of twrp you have to put a newer update binary in :
    META-INF\com\google\android\ on your installer zips. (The new binary seems to be backwards compatible with all the other recoveries)
    Once we got that, we found the binary didn't like the scripts. The issue was mounting/formating. We found that the binary wanted more arguments from the command than what was supplied with the old scripts. The fix for that was replacing the format/mount commands with this:

    Code: You are not allowed to view links. Register or Login
    format("yaffs2", "MTD", "system");
    mount("yaffs2", "MTD", "system", "/system");

    Note: These changes also seem to be backwards compatible

    It may take a bit of work to get used to but we found that all of the features in TWRP 2.4 far outweigh the downsides.

    As for the update-binary we used, we got it in a gapps installer from, here is the binary itself:
    You are not allowed to view links. Register or Login
    • Custom
    • LG Optimus Slider
    • Stock
    <KRaZyWaKa> what am i supposed to do with this? lol
    <dtalley11> with what?
    <KRaZyWaKa> twrp lol, i've only used cwm :P
    <TheReal_BigJake> touch it KRaZyWaKa


    Related Topics

      Subject / Started by Replies Last post
    45 Replies
    Last post February 18, 2013, 10:43:13 AM
    by coulterm85
    3 Replies
    Last post March 07, 2012, 06:22:20 AM
    by AzHavicx
    0 Replies
    Last post June 25, 2012, 02:05:05 PM
    by kingfhb
    10 Replies
    Last post February 20, 2013, 10:18:30 PM
    by Kevin147
    3 Replies
    Last post August 10, 2012, 11:39:30 AM
    by wolfbitten83
    1 Replies
    Last post December 11, 2012, 09:32:21 PM
    by thereal_bigjake