G2 - [GUIDE] Temp to permanent root, using rage instead of visionary
  • DJSwiggleDJSwiggle November 2010

    Original Post by @trigeek: http://forum.xda-developers.com/showthread.php?t=834228

    There's already a guide here for obtaining permanent root using VISIONary, but some folks in #G2ROOT are having issues with the way that VISIONary modifies parititons. Using rage directly is a bit cleaner, since you know exactly what it's going to touch at each step of the way. I did NOT come up with any of this on my own, I'm building completely off of work that others have done. I'm going to post this, and then clean up the formatting as I go, so it will look a bit messy at first.

    G2 ROOT INSTRUCTIONS
    =================================================

    These are modified instructions based on the ones posted at http://bit.ly/g2root that use Visionary. A number of people have run into issues with the way that Visionary juggles around temporary partitions, and using the original root exploit is a much easier, and cleaner method for achieving permanent root. This tutorial will walk you through the rooting process by first achieving temporary root, and moving on to permanent root.

    REQUIREMENTS
    =================================================
    Visionary disabled at boot or uninstalled completely
    Android Terminal Emulator app
    ADB
    vision-combined-root.zip (Attached to this post, OR these two files: ) - http://www.4shared.com/file/EmcyasYz/vision-combined-root.html
    G2TempRoot.zip (http://forum.xda-developers.com/showthread.php?t=797042) NOTE: only download the files! Don't follow these instructions yet
    vision-perm-root.zip (http://forum.xda-developers.com/showthread.php?t=833965) NOTE: again, just download the files from the thread.

    In the commands to run below, $ or # represent the prompt and should NOT be entered as part of the commands.

    VERY IMPORTANT!
    Visionary has caused filesystem corruption for some users during the rooting process. Before attempting the instructions below, make sure that you have "auto run on boot" turned OFF, and reboot your system. Since you will not need visionary anyway after this, you might as well just uninstall visionary and reboot NOW before doing anything.

    TEMP ROOT
    =================================================
    ON YOUR PC:
    Unzip the G2TempRoot files to a folder. From a cmd window or terminal, navigate to that folder and execute these commands:

    Code:
    $ adb push su /sdcard/su
    $ adb push Superuser.apk /sdcard/Superuser.apk
    $ adb push rage /data/local/tmp/rage
    $ adb push busybox /data/local/tmp/busybox
    $ adb push root /data/local/tmp/root
    $ adb shell chmod 0755 /data/local/tmp/*
    ON YOUR PHONE:
    Launch Terminal Emulator
    /data/local/tmp/rage
    Wait for the message: "Forked #### childs."
    Menu > Reset Term - Terminal Emulator will exit.
    Launch Terminal Emulator, it Force Closes. Launch a second time, and you'll have a root shell
    **NOTE**: in the original directions from the XDA thread, you are instructed to run the /data/local/tmp/root script here. DON'T do this
    just yet. Leave the terminal window open.

    PERM ROOT
    =================================================
    ON YOUR PC:
    unzip the vision-perm-root.zip and navigate to that folder. There will be four files. You will need to push two of these to your phone- hboot-eng.img, and one of the wpthis-[..].ko files.

    If you HAVE applied the OTA update, push wpthis-OTA.ko.
    If you HAVE NOT applied the OTA update, push wpthis-pre-OTA.ko.

    Code:
    $ adb push hboot-eng.img /data/local
    $ adb push wpthis-OTA.ko /data/local

    ON YOUR PHONE:
    You should still have terminal emulator up, at a root prompt. Now run:
    Code:

    # insmod /data/local/wpthis-OTA.ko
    You should see:
    Code:

    init_module 'wpthis-OTA.ko' failed (Function not implemented)
    That means it worked. This next step is CRUCIAL. You must make sure that you are writing to the proper partition here or you could brick your phone. To be absolutely clear- the partition is mmcblk(zero)p(one)(eight)

    Code:
    dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18
    You should see some messages indicating that it was written. Next, run:

    Code:
    # /data/local/tmp/root
    This will lock in root, and give you 'su' access in the future. Next, run:
    Code:

    # sync
    Now wait at least a minute, just to be safe. After waiting, reboot your phone using the power button. After it finishes starting up, launch the terminal emulator, and type 'su'. You should get the prompt asking you to grant permissions. If you got the prompt, congratulations! You have permanent root!

  • lowsnamebrandlowsnamebrand February 2011

    @DJSwiggle

    i was going to attempt to root my G2 but Apparently there is  new way of Rooting Using Gfree i believe its called can you post a tutorial for that? apparently people are seeing less problems with it...

  • JassyCliqJassyCliq February 2011

    lol i was going to post one with that, but i thought this one was the same thing lol

  • lowsnamebrandlowsnamebrand February 2011

    no apparently this is still the old version because i read nothing about the Gfree way of doing it in the post LOL
    im also looking for a tutorial on getting a custom recovery on the G2 to flash custom roms, LOL im just really paranoid with this phone it costed me an arm and a leg and now im a amputee

  • JassyCliqJassyCliq February 2011

    lol alright ill see if i can post one, ive already done it on my dads so if i was able to do it to that and im still alive im pretty sure its trustworthy ;)

  • lowsnamebrandlowsnamebrand February 2011

    LOL nice thats always good, i once too apart my dads computer, didnt think i'd live to see another day LOL, and that was just to put more ram in it for XP LOL, let me know maybe ill try it on my girlfriends First LOL

Hey are you new here?!

Welcome to the best Ad-Free Android Community around! Create your profile, and start posting now! New features are being added all the time!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In! Sign Up!

Categories

In this Discussion

Tagged