Keeping Root

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
Line 19: Line 19:
'''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.
'''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 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
/system/bin/rootshell
-
I've sucessfully done this on my machine.
+
This has been successfully tested, but as always, perform these steps at your own risk.

Revision as of 02:02, 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 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