Keeping Root

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
m (Using pre-modified RC30)
 
(43 intermediate revisions not shown)
Line 1: Line 1:
-
These methods can only be done on RC29 or lower. If you are already on RC30 this will NOT work for you and you must wait for the next root exploit to be found.
+
These methods can only be done on RC29 or lower. If you are already on RC30 (RC8/UK) you must first [[Root For RC30|downgrade]] to RC29 using the leaked firmware and get the root access that you seek to keep.
 +
 
 +
 
 +
'''Source(s):'''  [http://downloadranking.com/support.php  Keeping Root]
 +
 
 +
 
 +
===Using JesusFreke's (JF) modified rom===
 +
JesusFreke has created modified roms that you can flash that will give you RC33 (RC8 for the UK) and still have root.
 +
 
 +
 
 +
'''Source(s):'''  [http://downloadranking.com/support.php  Keeping Root]
-
===Using pre-modified RC30===
 
-
JesusFreke has created a pre-modified version of RC30 (RC8/UK) that you can use if you do not wish to manually edit it yourself.
 
'''''If you copy files over USB to /sdcard remember to unmount before unplugging the USB.'''''
'''''If you copy files over USB to /sdcard remember to unmount before unplugging the USB.'''''
-
#Download the recovery image ('''MD5= 312f279dc5d6abd2086c003175bb7afe'''):  
+
#Download the modified recovery image:  
-
#*[http://android-dls.com/files/jf/AndroidMod.xxx AndroidMod1.0 .xxx file] G1 downloadable link ([[Android Browser File Types|rename to .zip]])
+
#*[http://android-dls.com/files/upload/recovery.img recovery.img]  
-
#*[http://android-dls.com/files/linux/AndroidMod.zip AndroidMod1.0 .zip file] Non G1 download, no need to rename,
+
#Copy (or adb push) recovery.img to /sdcard
-
#Unzip the file and copy (or adb push) recovery_testkeys.img to /sdcard
+
#Download the modified ROM (Do not unzip it!)  
-
#Download the Modified recovery image (Do not unzip it!):
+
#*USA Version ('''MD5= 2a3da4241fdd63d1df690f8c7bef2445'''):
-
#*USA Version ('''MD5= 68eec9a22747accc3d51076ad465505f'''):
+
#**[http://android-dls.com/files/jf/v1.42/JFv1.42_RC33.zip JesusFreke's RC33 v1.42 ROM]
-
#**[http://android-dls.com/files/jf/update_TC4-RC30_full_xda-dev_v1.2.xxx JesusFreke's RC30 v1.2 .xxx file] G1 Downloadable link ([[Android Browser File Types|rename to .zip]])
+
#*UK Version ('''MD5= 72135da62839758de0cb2acd49d84850'''):
-
#**[http://android-dls.com/files/jf/update_TC4-RC30_full_xda-dev_v1.2.zip JesusFreke's RC30 v1.2 .zip file] Non G1 download, no need to rename
+
#**[http://android-dls.com/files/jf/v1.41/JFv1.41_RC8.zip JesusFreke's UK RC8 v1.41 ROM]
-
#*UK Version ('''MD5= e51d85b6e754179ed5fb43c4b08d47be'''):
+
-
#**[http://android-dls.com/files/jf/update_TC5-RC8_full_xda-dev_v1.2.xxx JesusFreke's UK RC8 v1.2 .xxx file] G1 Downloadable link ([[Android Browser File Types|rename to .zip]])
+
-
#**[http://android-dls.com/files/jf/update_TC5-RC8_full_xda-dev_v1.2.zip JesusFreke's UK RC8 v1.2 .zip file] Non G1 download, no need to rename
+
#copy (or adb push) this file to /sdcard/update.zip - Make sure that if you copy over USB that you unmount before unplugging
#copy (or adb push) this file to /sdcard/update.zip - Make sure that if you copy over USB that you unmount before unplugging
-
#with a [http://android-dls.com/wiki/index.php?title=Rooting_Android root shell] run:  
+
#*tip: If you are on windows, and have the "hide file extensions for windows" option turned on, once you rename the file to update.zip, right click on the file and go to properties and read the filename. Make sure it is "update.zip" and not "update.zip.zip" because it will fail.
-
#*<pre>mount -o remount,rw /dev/block/mtdblock3 /system</pre>
+
# Copy the recovery image to the /system partition:
-
#*<pre>cd /system</pre>
+
#*In a terminal as root (you might need to type su to get root if you get errors on any of these commands)
-
#*<pre>cat /sdcard/recovery_testkeys.img > recovery.img</pre>
+
##<pre>mount -o remount,rw /dev/block/mtdblock3 /system</pre>
-
#*<pre>flash_image recovery recovery.img </pre>
+
##<pre>cd /system</pre>
-
# turn off phone
+
##<pre>cat /sdcard/recovery.img > recovery.img</pre>
 +
##<pre>flash_image recovery recovery.img </pre>
 +
# Turn off phone
 +
# Turn back on the phone and let it boot normally (don't go into recovery mode yet)
 +
# Once the phone finished booting, turn off the phone again (yes, you really should let the phone start up normally once. Don't skip this)
# Hold down power and home to enter recovery mode
# Hold down power and home to enter recovery mode
# At the exclamation point and phone image hit Alt-L look for test-keys on the second line.  If missing, the above steps failed and you should hold Home and Back to reboot and start over. If not, continue.  
# At the exclamation point and phone image hit Alt-L look for test-keys on the second line.  If missing, the above steps failed and you should hold Home and Back to reboot and start over. If not, continue.  
# Press Alt+S.  The system will proceed to verify the image and install it. When done, it will say to reboot by pressing Home + Back.
# Press Alt+S.  The system will proceed to verify the image and install it. When done, it will say to reboot by pressing Home + Back.
# Press Home + Back. The system should show an open box and arrow into phone, then an arrow onto a chip, then reboot twice.
# Press Home + Back. The system should show an open box and arrow into phone, then an arrow onto a chip, then reboot twice.
-
# Once you are booted it is suggested that you do the following to stop OTA updates from attempting (and failing) to update your phone:
 
-
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.nothankyou
 
-
 
-
This will give you an rc30 that has 'su' for gaining root access. (Not quite the same thing you get with the manual steps below.)
 
-
 
-
More information and updates can be found on the original thread at [http://forum.xda-developers.com/showthread.php?p=2881206 XDA-Developers]
 
-
 
-
===Manually modifying your own RC30===
 
-
# Download the recovery image:
 
-
## [http://android-dls.com/files/jf/AndroidMod.xxx .xxx file]- G1 downloadable link ([[Android Browser File Types|rename to .zip]])
 
-
## [http://android-dls.com/files/linux/AndroidMod.zip .zip file]: Non G1 download, no need to rename,
 
-
# [[Replace Recovery Partition|Flash the recovery image]]
 
-
# Unzip the FULL [[OTA Updates|RC30]]
 
-
# Replace the /system/recovery.img with the one from step 1.
 
-
# Copy /system/bin/sh to system/bin/rootshell, and make the following changes to META-INF/com/google/android/update-script (or download a modified copy from a trusted source)
 
-
 
-
 
-
Add this to the '''end''' of the first line, which should start with: ''assert getprop("ro.build.finger.......''
 
-
|| getprop("ro.build.fingerprint") == "generic/htc_dream/dream/trout:1.0/TC3/eng.jesusfreke.20081105.164210:eng/test-keys"
+
This will give you an rc33/rc8 that has 'su' for gaining root access.
 +
Once you've installed JF's firmware, you can check which version you are running by running:
-
Then after:
+
  getprop ro.modversion
-
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
+
-
Add:
+
-
set_perm 0 2000 04755 SYSTEM:bin/rootshell
+
-
'''BACKUP''' anything from /system as it will be formatted. '''Do -not- use the 4 meg rc30 patch''', as it will brick your device at this stage.
+
on the command line.
-
Resign with the utility provided in the zip file from step 1, copy it to your SD card, enter recovery, and pray. If it works, you can run the following from the terminal app (not pterminal)
 
-
/system/bin/rootshell
 
-
*in terminal (as root) do:
 
-
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.nothankyou
 
-
It is not yet known if this last step is needed, but better safe then derooted
 
-
This has been successfully tested, but as always, perform these steps at your own risk.
+
'''Source(s):'''  [http://downloadranking.com/support.php  Keeping Root]

Latest revision as of 11:57, 20 April 2013

These methods can only be done on RC29 or lower. If you are already on RC30 (RC8/UK) you must first downgrade to RC29 using the leaked firmware and get the root access that you seek to keep.


Source(s): Keeping Root


Using JesusFreke's (JF) modified rom

JesusFreke has created modified roms that you can flash that will give you RC33 (RC8 for the UK) and still have root.


Source(s): Keeping Root


If you copy files over USB to /sdcard remember to unmount before unplugging the USB.

  1. Download the modified recovery image:
  2. Copy (or adb push) recovery.img to /sdcard
  3. Download the modified ROM (Do not unzip it!)
  4. copy (or adb push) this file to /sdcard/update.zip - Make sure that if you copy over USB that you unmount before unplugging
    • tip: If you are on windows, and have the "hide file extensions for windows" option turned on, once you rename the file to update.zip, right click on the file and go to properties and read the filename. Make sure it is "update.zip" and not "update.zip.zip" because it will fail.
  5. Copy the recovery image to the /system partition:
    • In a terminal as root (you might need to type su to get root if you get errors on any of these commands)
    1. mount -o remount,rw /dev/block/mtdblock3 /system
    2. cd /system
    3. cat /sdcard/recovery.img > recovery.img
    4. flash_image recovery recovery.img 
  6. Turn off phone
  7. Turn back on the phone and let it boot normally (don't go into recovery mode yet)
  8. Once the phone finished booting, turn off the phone again (yes, you really should let the phone start up normally once. Don't skip this)
  9. Hold down power and home to enter recovery mode
  10. At the exclamation point and phone image hit Alt-L look for test-keys on the second line. If missing, the above steps failed and you should hold Home and Back to reboot and start over. If not, continue.
  11. Press Alt+S. The system will proceed to verify the image and install it. When done, it will say to reboot by pressing Home + Back.
  12. Press Home + Back. The system should show an open box and arrow into phone, then an arrow onto a chip, then reboot twice.

This will give you an rc33/rc8 that has 'su' for gaining root access.

Once you've installed JF's firmware, you can check which version you are running by running:

 getprop ro.modversion

on the command line.


Source(s): Keeping Root

Personal tools