5,604,122 Members 48,956 Now Online
XDA Developers Android and Mobile Development Forum

[04.12.2012][ICS/JB]Universal Rooting for most phones, Any ROM, now with CWM6

Tip us?
 
Phil3759
Old
(Last edited by Phil3759; 24th January 2013 at 12:22 AM.) Reason: SuperSU 0.98
#1  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
Default [04.12.2012][ICS/JB]Universal Rooting for most phones, Any ROM, now with CWM6

Root your ICS/JB phone S2 + Samsung + not Samsung phones - No more waiting for custom kernels



This topic provides universal root methods to bypass the use of custom kernels. I took the time to write it as I was tired from waiting for a Dev to publish a custom kernel for the last firmware released.
I will try here to reference most threads and ways to root your phone. Some methods will let you root as soon as you get the new ROM, no more waiting for some dev to release a kernel for you.
I will not list here custom kernels that come with root, you can find them in other threads.

As a general rule, do not forget to take extra precautions when you flash anything: ALWAYS DO A NANDROID BACKUP IN CWM





Method 1 - Recommended
Push superuser + Busybox (Now v1.20.2 from Linus Yang) in recovery





Now, on the i9100 and some other phones (N7000...), you can flash the attached signed zip files in stock recovery, no more need to CWM.
A BIG BIG THANK YOU TO Chainfire for his support that made it possible and to Entropy512 who pushed me to look for a fix

Attached is the CWM Recovery 4.x non touch version, confirmed safe for wiping. It will not superbrick your phone


>>>>>> Now it is even getting greater with attached Clockworkmod v6.0.1.2 !!!! <<<<<<
>>>>>> Also probably safe from brickbug <<<<<<



Pros

Quote:
  • Universal and will probably work on any ICS phone, if you have a CWM image. No longer wait for a modded kernel
  • On the i9100 and some other phones (N7000...), you can now even root from the stock recovery, no need to the cwm image
  • No PC needed, only an android device and the zip files that you download to your sd card
  • Fully reversible unroot without PC needed
  • No Yellow Triangle (Only for phones with a zip CWM image)
  • No custom counter increased (Only for phones with a zip CWM image)
  • Only copies superuser +/- busybox, nothing else is touched, neither /data nor the kernel
  • No brick risk while flashing cwm even if things go wrong as it will be always overwritten by stock recovery after a reboot

Cons

Quote:
  • None since I switched to the CWM4 and CWM6 recoveries (no more superbrick risks under 4.0.4 ICS kernels, only CWM5.x was affected)

Special notes about busybox

Quote:
  • The zip files attached in this post install busybox only in /system/xbin. I do not put any symlink in /system/bin
  • The uninstaller in this post, only removes busybox package from /system/xbin. I do not delete any package put in bin, as it is assumed it was put there by another program, not my script. It will not remove any symlink either. So, run the Busybox Uninstaller v1.0 for that


This method was first inspired from Rachmat3 thread here and Chainfire script here (do not forget to thank them). I modified it to work in stock recovery, enhanced script, include Chainfire superSU last version + BusyBox last binary. I also keep a ChainsDD superuser version.


Instructions

  1. For phones affected by the superbrick bug (i9100, N7000) and that has a stock recovery accepting update.zip files (most phones with a temporary cwm.zip file at Clockworkmod site:
    Quote:
    You can flash the attached files directly in stock recovery 3e, no need to cwm:
    • Download the root file:
      - Root_SuperSU.0.96.Only-signed.zip for Chainfire SuperSU (the one that comes with CF_Root) without busybox.
      - Root_SuperSU.0.96-FreeSpace.zip for Chainfire SuperSU without busybox (use only if you have issues with previous one, usually for phones having a /system partition with 0 free space).
      - Root_SuperSU.0.96-Busybox.1.20.2-S2-signed.zip to install superSU + busybox v1.20.2 from Linus Yang.
      - Root_Superuser_3.1.3_Busybox_1.20.2-Update1-signed.zip if you prefer the classic ChainsDD superuser + Busybox from Linus Yang.
      - Root_Busybox_1.20.2_Only_XXX.zip to install only Busybox from Linus Yang.
      I advise Chainfire SuperSU for 2 reasons: it lets you unroot from within superSU application and it lets you migrate to ChainsDD superuser if you like later
    .
    • Copy the Root_XXX.zip file you downloaded to externalsd card
    • Boot into stock recovery (volume up+home+power), and select "apply update from external storage". Now select the Root_XXX.zip file downloaded above and you are rooted
    • To unroot, do the above steps and replace the file Root_XXX.zip by the attached Unroot_SuperUser-Busybox-Uninstaller-Update2-signed.zip. It will delete superuser, su and busybox packages.

      For a complete removal of busybox, look here at my Busybox Uninstaller which will remove ALL busybox symlinks (over 600 files depending on installers used before):
      http://forum.xda-developers.com/show....php?t=1853419

    To get temporary cwm (to make nandroid backups...) or if stock recovery gives you a signature error, follow the next more universal steps.
    .
    .
  2. For most (if not all?) ICS phones having a CWM image at Clockworkmod site:
    Quote:
    • Download attached cwm-touch-6.0.x.x-i9100.zip for the i9100 Galaxy S2. This is the touch version but it also works with volume up/down keys and power button to select menu.
      CWM6 is now thought to be probably safe for wipe, no superbrick risks under ICS 4.0.4: read more here

      I also attached the cwm6 non touch version and the recovery-clockwork-4.0.1.5-galaxys2.zip. CWM4 is also confirmed to be safe for wipe by Entropy512 Recognized Developer

      For other phones, download the cwm image from here http://clockworkmod.com/rommanager
    .
    • Put the previously downloaded cwm-touch-6.0.x.x-i9100.zip file on your external sd card
    • Download the attached root file you want as per instructions above
      I advise Chainfire SuperSU for 2 reasons: it lets you unroot from within superSU application and it lets you migrate to ChainsDD superuser if you like later
    • Copy the Root_XXX.zip file you downloaded to internal or external sd card
    • Boot into stock recovery (volume up+home+power), and select "apply update from external storage". Now select the cwm-touch-6.x.x.x-i9100.zip file you copied in previous step (this step gives a temporary flash that will disappear after reboot)
    • You get CWM recovery interface (this custom recovery is temporary, not permanent)
    • Inside CWM, select "install zip from sdcard". Then, select "choose zip from sdcard". Now, scroll down to the "Root_XXX.zip" file and hit power button to install it.
    • It will add SuperSU or Superuser last version apk to system/app, last superuser binary (su) to system/xbin and busybox last version to system/xbin, all with correct file permissions.
    • Reboot and you get permanent root + busybox installed on your stock kernel.
    • To unroot, do the above steps and replace the file Root_XXX.zip by the attached Unroot_SuperUser-Busybox-Uninstaller-Update2-signed.zip. It will delete superuser, su and busybox packages.

      For a complete removal of busybox, look here at my Busybox Uninstaller which will remove ALL busybox symlinks (over 600 files depending on installers used before):
      http://forum.xda-developers.com/show....php?t=1853419


Fix common issues: You end with both ChainsDD and Chainfire superuser and SuperSU

Quote:
Also another symptom is having constantly superuser asking for updates from market.
Some people are getting duplicates from previous root methods using ChainsDD superuser instead of Chainfire superSU or vice versa when they come from SuperSU and switch to superuser.
Also, this can happen when you updated let's say to a future Chainfire SuperSU v1.0 and later you use one of my outdated scripts (with version 0.94 for example).

The cause is that I do not delete anything from /data/app. I can add it, it is not an issue, but till these brick things are fixed, I chose not to do it.

The solution is very easy:
Just uninstall from stock application manager all superuser applications. The /system/app application will stay as system applications cannot be removed normally in application manager
After that, just update your superuser application from market. Updates are put in /data/app and original copy will stay in /system/app.




Method 2
CF_Root + stock kernel + [optional] Mobile Odin Free version

Here, you use an older CF_Root kernel, and flash your newer stock kernel

Quote:
  • Flash the CF_Root kernel with odin
  • No stock kernels for you? use Mobile Odin free version (see below)
  • After flashing the stock kernel, root will usually stay and you will be reverted back to your stock recovery instead of CWM recovery




Method 3
Insecure Kernels + SuperOneClick + [optional] Mobile Odin Free

Not tested by me. You get superuser instead of Chainfire superSU + an older busybox
Quote:
  • No insecure kernel for your ROM? Just try a kernel from same ICS version, it usually works fine for rooting
  • Flash the insecure kernel with odin
  • Put your phone on USB debugging mode (System Settings / Developer Options)
  • Launch SuperOneClick and root using auto or psneuter method. Do not use the ZergRush Exploit as it is meant for older exploited GB versions
  • No stock kernel for your ROM? Use Mobile Odin Free version (see below)




Method 4
Insecure Kernels + S2 Root - For SAMSUNG Devices

Quote:
  • It will do the same as in method 3, but using a newer and better supported tool than SuperOneClick
  • You have to flash an insecure kernel, root with S2Root and flash again your stock kernel
  • It roots using Chainfire SuperSU and busybox 1.20.1 at time of posting
  • Author is a recognized developer and offers great support
  • You are still depending on author to release a custom kernel for all your new ROMs




Mobile Odin Free version
Flash your stock kernel from complete ROM file

Now that Intratech stopped releasing stock kernels in his thread, rooting using methods 2 and 3 can be a problem. In fact, you will not be able to flash your newer original stock kernel after rooting with insecure or cf_root older kernel. You can look in above lyriquidperfection thread for a stock kernel to flash in odin. But, if you do not like to wait for him to release a kernel, you can get Mobile Odin Free version

Quote:
  • From your stock tar.md5 ROM file, extract the zimage file (your stock kernel)
  • Put zimage file on external sd card
  • Run Mobile Odin and specify the zimage file in kernel box like in this image:
  • Flash, you get your stock kernel and root is normally left




Mobile Odin Pro (Payed) version
Root + Flash - You should consider buying it.

With this method, you will have SuperSU from chainfire (that can be updated from market) but no Busybox.
You can install busybox from market or from attached CWM_Root_Busybox_1.20.2_Only_(No_SuperSU)-S2-Update2-signed.zip file in this thread

Quote:
  • If you want to flash a full new rom, put the tar file on the external_sd. Point all boxes to the ROM tar file. Enable EverRoot option like in image below. Flash
  • If you flashed your ROM using odin and only want to root, proceed like in Example 4 above to flash only the kernel (zimage file from your actual ROM). Enable EverRoot option and flash
  • Now, install BusyBox from market or flash my CWM_Root_Busybox_1.20.2_Only_(No_SuperSU)-S2-Update2-signed.zip file with cwm to get last busybox.




Chainfire - adbd Insecure app
Getting switchable insecure kernel WITH stock kernel

One of the advantages for some people in CF_Root kernel is the insecure mode. Now, you can have insecure kernel like behavior without flashing a custom kernel. There is a magic app for that, signed Chainfire.
Thread + free download link here:
http://forum.xda-developers.com/show....php?t=1687590

And you can buy it from market to support author:
https://play.google.com/store/apps/d...chainfire.adbd

Instructions, quoted from chainfire
Quote:
If you are running a stock (made by the phone manufacturer) kernel on your device, chances are adbd is running in "secure" mode, even if you are rooted. This app lets you run adbd in "insecure" mode, which gives you root access in "adb shell", allows access to system files and directories through "adb push/pull", and lets you run the "adb remount" command to make your /system partition writable.

Of course, your device must already be rooted for this to work. It may not work with "S-ON" devices and locked bootloaders.

This app does not make any permanent changes to your device - a reboot will undo any modification. That's why there is also the option to enable this feature at boot.

Note that if you have USB connected when the app activates or deactivates adbd root mode, you may need to unplug/replug the cable or run "adb kill-server" on your computer before adb will work again.
Feel free to comment or suggest enhancements
Attached Files
File Type: zip recovery-clockwork-4.0.1.5-galaxys2.zip - [Click for QR Code] (1.30 MB, 11919 views)
File Type: zip Root_Busybox_1.20.2_Only_(No_SuperSU)-S2-Update3-signed.zip - [Click for QR Code] (862.6 KB, 5195 views)
File Type: zip Root_Superuser_3.1.3_Busybox_1.20.2-Update1-signed.zip - [Click for QR Code] (1.98 MB, 14815 views)
File Type: zip Unroot_SuperUser-Busybox-Uninstaller-Update2-signed.zip - [Click for QR Code] (952.0 KB, 11147 views)
File Type: zip cwm-touch-6.0.1.2-i9100.zip - [Click for QR Code] (1.79 MB, 21652 views)
File Type: zip Root_SuperSU.0.96.Only-signed.zip - [Click for QR Code] (1.37 MB, 40698 views)
File Type: zip Root_SuperSU.0.96-Busybox.1.20.2-S2-signed.zip - [Click for QR Code] (1.37 MB, 29636 views)
File Type: zip Root_SuperSU.0.96-FreeSpace-signed.zip - [Click for QR Code] (1.37 MB, 3351 views)
File Type: zip cwm-non-touch-6.0.1.4-i9100.zip - [Click for QR Code] (1.80 MB, 5762 views)
File Type: zip Root_SuperSU.0.98.Only-signed.zip - [Click for QR Code] (1.37 MB, 17612 views)
File Type: zip Root_SuperSU.0.98-Busybox.1.20.2-signed.zip - [Click for QR Code] (1.37 MB, 32078 views)
>PhilZ Touch Recovery: Main thread and Download links
> Support IRC Channel: freenode - #PhilZ-Touch
>Root ICS/JB for all phones: link
>CWM6 Temporary: i9100, n7000
>Busybox Uninstaller: safely remove +600 files
>Safe Wipe Data/System/Cache/Dalvik: i9100/n7000
>CF-Root in Stock Recovery: dead project
The Following 267 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
nabuhonodozor
Old
(Last edited by nabuhonodozor; 2nd July 2012 at 03:10 PM.) Reason: update
#2  
Senior Member
Thanks Meter 15
Posts: 135
Join Date: Sep 2006
Location: Warsaw
Big Thanks! Very usefull post.

Links seems down. Ive took it from Your post #382 in http://forum.xda-developers.com/show...501719&page=39

Method #1 working very well with LPD kernel. Thanks Again.
SGT 7, SGS2, Milestone, xoom2 8.2, Galaxy Note2
The Following 2 Users Say Thank You to nabuhonodozor For This Useful Post: [ Click to Expand ]
 
Phil3759
Old
#3  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
Yes, sorry

It is a forum problem, hope it is fixed. I will update it as soon as it is fixed
The Following 3 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
Phil3759
Old
#4  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
While waiting for forum to fix my attachments, I edited post 1 with mediafire mirrors to the files

Sorry
The Following 2 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
Phil3759
Old
#5  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
Quote:
Originally Posted by nabuhonodozor View Post
Big Thanks! Very usefull post.

Links seems down. Ive took it from Your post #382 in http://forum.xda-developers.com/show...501719&page=39

Method #1 working very well with LPD kernel. Thanks Again.
Happy it helped
The Following 2 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
cammel
Old
#6  
cammel's Avatar
Senior Member
Thanks Meter 187
Posts: 1,140
Join Date: Jan 2008
Location: Buenos Aires
Hi, I always install new ics Sammy roms using Mobile Odin pro, but didn't know that busybox wasn't installed, so I need to know what is the point of installing it? What is the real use of busybox? I've been using my s2 rooted just with mobile Odin pro without any issue... Every root app that I need like titanium backup, root explorer, etc. Are working great, so I don't know what busybox is for...
Sorry for the dumb question and thanks in advance for the help!

Enviado desde mi GT-I9100 usando Tapatalk 2
Motorola MOTO X
NEXUS 7 32gb CM11
The Following User Says Thank You to cammel For This Useful Post: [ Click to Expand ]
 
Phil3759
Old
#7  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
Maybe you once installed a CF_Root or other kernel that comes with busybox
If you do not format /system, most system apps are kept, include busybox

Titanium backup uses its internal busybox version, not the /system one

Root explorer does not use busybox I think, but not sure

To know if it is installed or not, look for busybox file in /system/xbin or /system/bin
>PhilZ Touch Recovery: Main thread and Download links
> Support IRC Channel: freenode - #PhilZ-Touch
>Root ICS/JB for all phones: link
>CWM6 Temporary: i9100, n7000
>Busybox Uninstaller: safely remove +600 files
>Safe Wipe Data/System/Cache/Dalvik: i9100/n7000
>CF-Root in Stock Recovery: dead project
The Following 5 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
apk_xiz
Old
#8  
apk_xiz's Avatar
Senior Member
Thanks Meter 53
Posts: 204
Join Date: May 2012
thanks ,hey can you also post way to change cf root's recovery (non touchable) to tuch recovery that would be really awesome
The Following User Says Thank You to apk_xiz For This Useful Post: [ Click to Expand ]
 
Phil3759
Old
#9  
Phil3759's Avatar
Recognized Developer - OP
Thanks Meter 27531
Posts: 8,509
Join Date: May 2012

 
DONATE TO ME
Quote:
Originally Posted by apk_xiz View Post
thanks ,hey can you also post way to change cf root's recovery (non touchable) to tuch recovery that would be really awesome
This is not cf_root or a kernel, sorry
CWM from cf_root is proprietary coded by Chainfire
>PhilZ Touch Recovery: Main thread and Download links
> Support IRC Channel: freenode - #PhilZ-Touch
>Root ICS/JB for all phones: link
>CWM6 Temporary: i9100, n7000
>Busybox Uninstaller: safely remove +600 files
>Safe Wipe Data/System/Cache/Dalvik: i9100/n7000
>CF-Root in Stock Recovery: dead project
The Following 2 Users Say Thank You to Phil3759 For This Useful Post: [ Click to Expand ]
 
apk_xiz
Old
#10  
apk_xiz's Avatar
Senior Member
Thanks Meter 53
Posts: 204
Join Date: May 2012
Quote:
Originally Posted by Phil3759 View Post
This is not cf_root or a kernel, sorry
CWM from cf_root is proprietary coded by Chainfire
oh ok my bad

Tags
ics, rooting
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes