以下下载内容可以访问出厂系统 以及 Google Glass 的内核源代码
出厂映像
以下映像可让您在 Glass 上获得 root shell 访问权限 并将其刷入出厂规格。
版本 | 出厂系统映像 | 已启用 root 权限的引导加载程序 | SHA-1 校验和 |
---|---|---|---|
XE24 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-5585826.zip | boot.img | 系统映像46430bc827267796566f0a73d9b503059759561c 启动映像 4e582d8db3cf2f21c3e74a73f76cb5796a2ac4d9 |
XE23 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-3926992.zip | boot.img | 系统映像8a3357ced69e3e6919f10abf39bed2e3b5d6abc8 启动映像 caf34de6d83b8fadeb5995bdcfe8dfadb722110e |
XE22 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1511057.zip | boot.img | 系统映像74d87d1bba917c45db1a3fc35af7ddc485c0ea94 启动映像 ae713187ee619dd3b24e2caf650b9b7bcb68305b |
XE21.3 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1460130.zip | boot.img | 系统映像ab61716975a35ec6fb3817277e2054f228316276 启动映像 d300bace661516f43a889cc2214fd89bd60fbd0a |
XE21 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1410200.zip | boot.img | 系统映像f1ebe4867b1dfbcb7c7934cdda576a7e4512732f 启动映像 81a1308ac186ae750a914c4524e9f366acb496b5 |
XE20.1 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1356845.zip | boot.img | 系统映像1ef9dfcea33eec49f33a46b299e158283cd39faf 启动映像 862f7c11c7be73cbb22f6c505ce6362fba023ecf |
XE19.1 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1279109.zip | boot.img | 系统映像dc9212e2ed47719fd324a9eb55783db48e62b602 启动映像 b2f8cd0c0466c329db498134d89829f8c2b33ec0 |
XE18.3 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1252257.zip | boot.img | 系统映像985b40dc2052b0c3519ac4a19e8c8b7a65e221f4 启动映像 8a342b9d31f11682e2ffe5506c1f308e6326e8e1 |
XE18.11 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1223935.zip | boot.img | 系统映像244588518776d2ca05b18fd0efcc558909b9a27a 启动映像 1c548c7904e2502069f0c5744e32ed6d835c47a5 |
XE18.1 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1218353.zip | boot.img | 系统映像ba95dfb09b48bc6ef4a7cc8e1717be5f0c4660cf 启动映像 b8bee85c32031733c2a0a155ac435fdf9e442932 |
XE17.31 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1216444.zip | boot.img | 系统映像88e6e64c463a1b453eeb4eebaf601ad217c31f60 启动映像 b7a8ab807342d403478323949cae44dc2c3f7147 |
XE17.3 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1202243.zip | boot.img | 系统映像f4a63bc29aa723e8627be3ecdcadf0e4638ed510 启动映像 cadcda1ab438c40feba58773d1a35ae5e6033a60 |
XE17.2 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1180275.zip | boot.img | 系统映像8c9e7b3cadda41b9f889693a9e23a984e32488b1 启动映像 15d672c222380ba2095ee5513a547eb2f4183d99 |
XE17.1 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1163488.zip | boot.img | 系统映像0efff5f93690edf05ca4afd57b97c19a1f1eb773 启动映像 4bfd575664ae8eb1ee5dfe5ac26d069ea84ecc31 |
XE17 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1152835.zip | boot.img | 系统映像540d7d92a033434795e842156542ee1c70d708f1 启动映像 be588f1ebc1ce3d4cb69bfacc6b4cae1dca7b077 |
XE16.2 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1140829.zip | boot.img | 系统映像34a42d37a73bd7bc9b872c87296ecbf616693e45 启动映像 28091b99009ce94ad43fc2deb6cbccd9208766b4 |
XE16.11 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1134415.zip | boot.img | 系统映像600a11663ba3e8f1e98ca83b33b3df700ca46005 启动映像 c0fa67cbf6271cc921288566ae7b8d1e91bb76b7 |
XE16 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-1124447.zip | boot.img | 系统映像5bef469cbfd072ad4e840921966957687a0623c0 启动映像 32d1fa31d5d61f3ab42f333192b19d5ef793235f |
XE12 | <ph type="x-smartling-placeholder"></ph> signed-glass_1-img-947604.zip | boot.img | 系统映像4676661de963b5436f60172ec63b126f11cb4373 启动映像 e077caa5903b6b17a9f8ba9b4db2b554ee7e0597 |
XE11 | <ph type="x-smartling-placeholder"></ph> glass_1-img-901188.zip | boot.img | 系统映像4489441a7eaa3932d45fb0c43df5907cc09ac769 启动映像 6e5b021f8987c348171c7649a20230b60ed2f7ed |
XE10 | <ph type="x-smartling-placeholder"></ph> glass_1-img-851153.zip | boot.img | 系统映像6d682c6d9e8a97c1fd98cc31bfcdb8d17e87cee2 启动映像 54f573d5f66c0855e3ac25c25627a8a7e25d73e2 |
要在 Glass 上获得 root shell 访问权限,请使用已启用 root 权限的引导加载程序运行以下命令:
$ adb reboot bootloader # enter fastboot mode, takes 10-15 seconds
$ fastboot devices # verify device is in fastboot, should see its serial #
$ fastboot oem unlock # unlocking erases all data, you are prompted to run this command twice to be sure
$ fastboot flash boot boot.img # gain root shell access with the rooted bootloader
$ fastboot reboot # reboot the device
$ adb root # start adb as root
$ adb shell # access the shell as root
如需将 Glass 刷回出厂规格,请提取所需的出厂系统 并运行以下命令:
$ adb reboot bootloader # enter fastboot mode
$ fastboot devices # verify device is in fastboot, should see its serial no.
$ fastboot flash boot boot.img # flash partitions with factory images
$ fastboot flash system system.img
$ fastboot flash recovery recovery.img
$ fastboot erase cache # optional, erase the cache and userdata partitition
$ fastboot erase userdata
$ fastboot oem lock # optional, only if you want to re-lock the bootloader.
内核源代码
您可以浏览内核源代码,也可以查看并构建 通过运行以下命令获取内核源代码。
下载源代码:
$ mkdir <path-for-kernel-source> $ cd <path-for-kernel-source> $ git clone https://android.googlesource.com/kernel/omap.git
下载预构建的 gcc:
$ git clone https://android.googlesource.com/platform/prebuilt $ export PATH=<path-for-kernel-source>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
构建内核:
$ export ARCH=arm $ export SUBARCH=arm $ export CROSS_COMPILE=arm-eabi- $ cd <path-for-kernel-source>/omap $ git checkout glass-omap-xrr02 $ make notle_defconfig $ make