Keeping Root

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
Line 1: Line 1:
-
I've looked through the update.zip and it seems only a few changes are needed to -keep- root.
+
===Using pre-modified RC30===
-
* Download the [http://android-dls.com/files/linux/AndroidMod.zip recovery image]
+
JesusFreke has created a pre-modified version of RC30 that you can use if you do not wish to manually edit it yourself.
-
* [[Replace Recovery Partition|Flash the recovery image]]
+
# Download the [http://android-dls.com/files/linux/AndroidMod.zip recovery image]
-
* Unzip the FULL [[OTA Updates|RC30]]  (alternatively, you can download a pre-modified RC30 update. See [http://forum.xda-developers.com/showthread.php?t=443713 here] for details)
+
# [[Replace Recovery Partition|Flash the recovery image]]
-
* Replace the /system/recovery.img with the one from step 1.
+
# Download and unzip the [[http://android-dls.com/files/apps/update-RC30-fullupdate-modified-testkeys-v1.1.zip Modified RC30 from JesusFreke]]
-
* 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)
+
# Rename it to update.zip, save it to your SD card and [[Forcing OTA Updates|flash it in recovery mode]]
 +
 
 +
 
 +
===Manually modifying your own RC30===
 +
# Download the [http://android-dls.com/files/linux/AndroidMod.zip recovery image]
 +
# [[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)

Revision as of 18:41, 9 November 2008

Using pre-modified RC30

JesusFreke has created a pre-modified version of RC30 that you can use if you do not wish to manually edit it yourself.

  1. Download the recovery image
  2. Flash the recovery image
  3. Download and unzip the [Modified RC30 from JesusFreke]
  4. Rename it to update.zip, save it to your SD card and flash it in recovery mode


Manually modifying your own RC30

  1. Download the recovery image
  2. Flash the recovery image
  3. Unzip the FULL RC30
  4. Replace the /system/recovery.img with the one from step 1.
  5. 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"


Then after:

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.

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

This has been successfully tested, but as always, perform these steps at your own risk.

Personal tools