How to root Google Glass like Jay Freeman (saurik) did? Follow the tutorial below.
Before I summarize the step-by-step instructions that Freeman has been courteous enough to provide, it’s important to note that Google has always acknowledged Glass as an open product. While jailbreaking your iPhone displeases Apple, because iOS is a closed platform, Google is very open the whole rooting process of Glass. In fact, they encourage developers to show off their skills.
Condensed Instructions on Rooting Google Glass
- You will need the Android SDK installed and two files (exploit.ab and su) from Jay Freeman
- Backup all personal data using the Android Debugging Tool (adb)’s backup command. Run the following:
$ adb backup -f backup.ab com.google.glass.logging - Glass will display a dialog through the prism, so make sure you’re wearing Glass and use its touchpad to scroll to “back up my data,” and then select it by tapping
- The next step involves setting up the race condition. Run the following command in the adb shell to create a symlink:
$ adb shell “while ! ln -s /data/local.prop \ /data/data/com.google.glass.logging/a/file99 \ 2>/dev/null; do :; done” - The previous step will take some time, so open up a new window and
start the restore process of the modified backup payload using adb
restore. Run the following command, and a new dialog will pop up on
Glass:
$ adb restore exploit.ab - Scroll to the “restore my data” option and select it.
- The previous symlink process should now be completed.
- Restore the backup of the personal data that was made before by running this command:
$ adb restore backup.ab - Reboot your Google Glass. If you encounter Bluetooth errors, this is expected. Continue to the next step.
- Copy the su binary to Glass by running this command:
$ adb reboot
$ adb shell “mount -o remount,rw /system”
$ adb push su /system/xbin
$ adb shell “chmod 6755 /system/xbin/su”
$ adb shell “rm /data/local.prop”
$ adb reboot - Reboot your Google Glass again. At this point, it should be rooted with all errors resolved.
- You can now have fun and experiment with installing more complex su utilities.
0 comments:
Post a Comment