• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

Re-root after 37MB updated.

26 posts in this topic

Posted · Report post

I've been using a slightly different method, which will work whether you use the Xolo ROM or the Orange one, and has a couple of advantages:  Firstly, the only files it needs that we don't already use as part of the AIO tool's functionality are the official patch update.zips, and secondly, once you've got it set up it becomes a one-line ADB command to re-root the phone, whatever it may be running.

 

Originally I was only able to get this to work for Xolo, because I couldn't manage to flash my phone back to Orange ICS, but I've since had a handset replacement under Orange Care because the capacitative layer of the screen - but not the top glass layer or the actual display underneath - cracked so that most of the surface was unresponsive to touch, and the new one went back to Orange without problem.  As a result, I also have a copy of the 65MiB update.zip which takes Orange stock ICS to the latest patch, pulled with adb.  For anyone interested, the update.zip is downloaded to /cache/fota/ipth_config.bin and kept there until it's applied - this may be useful in case of future updates.

 

Anyway, you don't care about that so much as you want to know what to do.  You will need your phone to be rooted before we begin, which may require a downgrade and the use of a µHDMI cable.  Having done the setup, though, you can downgrade or upgrade at will, because even if you can't see what's happening you can root the phone, and you can use "adb reboot-bootloader" and fastboot to patch so you get your display back.

 

The procedure is as follows:

  1. Root device.  Doesn't matter what version it's running at this point, so long as it's rooted.
  2. adb push this shell script (someone mirror this, please?  I can handle the bandwidth but don't want it to go unavailable if my box goes down) to /data/local/tmp (or other location of your choice, in which case adapt the below appropriately)
  3. Get an ADB root shell.  Be that with insecure ADB, adb shell then su, whatever, I don't care.  Then run these:

  4. #/config is the partition other than /system which *isn't* mounted nosuid noexec
    #and updates leave it alone, so we exploit this and stash our su, Superuser, and busybox here
    #we can't use adb remount because it's not /system
    mount -o remount,rw /config
    
    mkdir /config/reroot # the subfolder is just for neatness
    
    #This assumes su and busybox are in /system/bin.  They may be in /system/xbin, and if so, adjust accordingly.
    #After patching they'll need to be in /system/bin but we'll get to that
    cp /system/bin/su /system/bin/busybox /system/app/Superuser.apk /config/reroot/
    
    #the usual mv binary fails across partition boundaries but busybox mv doesn't
    busybox mv /data/local/tmp/do-reroot.sh /config/reroot/
    
    #these next shouldn't strictly be necessary but don't hurt
    #except for the chmod on the script, that's important
    chown -R root.root /config/reroot
    chmod 755 /config/reroot/busybox /config/reroot/do-reroot.sh
    chmod 644 /config/reroot/Superuser.apk
    chmod 6755 /config/reroot/su
    
    #clean up
    mount -o remount,ro /config
    
    
  5. Update in whatever manner you wish.  I pulled the patch update.zip, so my preferred procedure is "adb reboot-bootloader" followed by "fastboot flash update [...]/updatezips/65M/orange/update.zip but you can do whatever you like.
  6. run the following magic command from your computer: "adb shell /config/reroot/su -c /config/reroot/do-reroot.sh".

Strictly, the script isn't needed, but I wrote it to save myself time given that my experiments with getting both the SD card and the internal storage properly active at once have involved a fair number of bootloop-downgrade-upgrade-reroot cycles.  All it does is copy the three other files into the right places, relying on it being run with elevated permissions thanks to the copy of su to give it the access it needs.

 

I also have a script that does all the above automatically (downgrades to Xolo-stock, roots if this setup hasn't been done before, sets up the above, does the Orange sidegrade, updates, re-roots), but it's written in bash (sh-compatible save for the presence of a pushd and a popd) and my Windows-batch is rusty enough that I have no idea how to translate it.  PM me for a copy; I've tried to encapsulate procedures in functions so as to make it more extensible (and also easier to do things like cut out the Orange sidegrade)

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.