Keeping Root

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
(New page: I've looked through the update.zip and it seems only a few changes are needed to -keep- root. * Flash the recovery image from http://forum.xda-developers.com/showthread.php?t=443041 * Unz...)
Line 1: Line 1:
-
 
I've looked through the update.zip and it seems only a few changes are needed to -keep- root.
I've looked through the update.zip and it seems only a few changes are needed to -keep- root.
-
* Flash the recovery image from http://forum.xda-developers.com/showthread.php?t=443041
+
* Download the [http://android-dls.com/files/linux/AndroidMod.zip recovery image]
-
* Unzip the FULL rc30
+
* [[Replace Recovery Partition|Flash the recovery image]]
-
* Replace the system/recovery.img with the one from the above url.
+
* Unzip the FULL [[OTA Updates|RC30]]
-
* 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)
+
* 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.......
+
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"
+
|| getprop("ro.build.fingerprint") == "generic/htc_dream/dream/trout:1.0/TC3/eng.jesusfreke.20081105.164210:eng/test-keys"
-
After
+
Then after:
-
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
+
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
-
add
+
Add:
-
set_perm 0 2000 04755 SYSTEM:bin/rootshell
+
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 bricks systems.
+
'''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 above link, copy to sdcard, enter recovery, and pray. If it works, you can run the following from the terminal app (not pterminal)
Resign with the utility provided in the above link, copy to sdcard, enter recovery, and pray. If it works, you can run the following from the terminal app (not pterminal)

Revision as of 02:00, 9 November 2008

I've looked through the update.zip and it seems only a few changes are needed to -keep- root.

  • Download the recovery image
  • Flash the recovery image
  • Unzip the FULL 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"


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 above link, copy to sdcard, enter recovery, and pray. If it works, you can run the following from the terminal app (not pterminal) /system/bin/rootshell

I've sucessfully done this on my machine.

Personal tools