Glass OS

Glass OS (Google XE)
Developer Google
Written in C (core), C++, Java[1]
OS family Android
Working state discontinued
Source model Open source with closed source components[2]
Initial release XE4 / April 11, 2013 (2013-04-11)
Final release XE23 / June 20, 2017 (2017-06-20)
Marketing target Augmented Reality
Available in Multi-lingual
Update method FoTA
Platforms 32-bit ARM
Kernel type Monolithic (modified Linux kernel)
License Developer Preview: proprietary[3]
Apache License 2.0
Linux kernel patches under GNU GPL v2[4]
Official website www.google.com/glass

Glass OS (Google XE) is a version of Google's Android operating system designed for Google Glass. "glass-omap" Tag is used in referring to the modified Android code which can be found inside Kernel Repository.[5]

Release History

The following list shows the main changes happened for each update release.[6] For more detailed release notes visit google support website.

April 11, 2013: XE4.0

Initial release.

May 7, 2013: XE5.0

XE5 updates included[7]:

June 4, 2013: XE6.0

XE6 updates included[8]:

Glass OS update

Glass updates by itself automatically over the air FOTA (technology). Glass will check in periodically for updates on google servers. When an update is available, it will download it to the Google Glass device and will install the update all by itself. This happens under the condition of active battery charging and reliable Wifi connection.[9]

OS Hacks

Gain Root Access

Root access can be easily obtained by using the following script using the rooted bootloader.[10]

1 $ adb reboot bootloader  # enter fastboot mode, takes 10-15 seconds
2 $ fastboot devices  # verify device is in fastboot, should see its serial #
3 $ fastboot oem unlock  # unlocking erases all data, you are prompted to run this command twice to be sure
4 $ fastboot flash boot boot.img  # gain root shell access with the rooted bootloader
5 $ fastboot reboot  # reboot the device
6 $ adb root  # start adb as root
7 $ adb shell  # access the shell as root

Flash Factory Image

Extract the desired factory system image package To flash Glass back to factory specifications then run the following script.[10] Boot and system images can be found on google glass developer website.

1 $ adb reboot bootloader  # enter fastboot mode
2 $ fastboot devices # verify device is in fastboot, should see its serial no.
3 $ fastboot flash boot boot.img  # flash partitions with factory images
4 $ fastboot flash system system.img
5 $ fastboot flash recovery recovery.img
6 $ fastboot erase cache  # optional, erase the cache and userdata partitition
7 $ fastboot erase userdata
8 $ fastboot oem lock    # optional, only if you want to re-lock the bootloader.

Modify Kernel source code

You can easily obtain the kernel source code from google repository by using the following script. you can find all of the releases by following this link.

1 $ mkdir <path-for-kernel-source>
2 $ cd <path-for-kernel-source>
3 $ git clone https://android.googlesource.com/kernel/omap.git

Build OS kernel from source code

To build kernel from the source code; first you need to download gcc toolchain from the same repository.

1 $ git clone https://android.googlesource.com/platform/prebuilt
2 $ export PATH=<path-for-kernel-source>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH

The second step is to build the kernel using this commands.

1 $ export ARCH=arm
2 $ export SUBARCH=arm
3 $ export CROSS_COMPILE=arm-eabi-
4 $ cd <path-for-kernel-source>/omap
5 $ git checkout glass-omap-xrr02 #choose the suitable release
6 $ make notle_defconfig
7 $ make

References

  1. "Android Code Analysis". Retrieved June 6, 2012.
  2. "Philosophy and Goals". Android Open Source Project. Google. Archived from the original on 2014-10-17. Retrieved 2014-12-19.
  3. "Developer Preview License Agreement | Android Developers". Developer.android.com. Retrieved 2014-03-20.
  4. "Licenses". Android Open Source Project. Open Handset Alliance. Retrieved 2012-09-09. The preferred license for the Android Open Source Project is the Apache Software License, 2.0. ... Why Apache Software License? ... For userspace (that is, non-kernel) software, we do in fact prefer ASL2.0 (and similar licenses like BSD, MIT, etc.) over other licenses such as LGPL. Android is about freedom and choice. The purpose of Android is promote openness in the mobile world, but we don't believe it's possible to predict or dictate all the uses to which people will want to put our software. So, while we encourage everyone to make devices that are open and modifiable, we don't believe it is our place to force them to do so. Using LGPL libraries would often force them to do so.
  5. "Refs - kernel/omap - Git at Google". android.googlesource.com. Retrieved 2017-03-15.
  6. "Release notes - Google Glass Help". support.google.com. Retrieved 2017-03-15.
  7. "Google Glass Explorer Editions start receiving XE5 software update, new features". Engadget. Retrieved 2017-03-15.
  8. "Google Glass Receiving XE6 Update With Massive Photo Quality Improvements - Here Is The Full Changelog". Android Police. 2013-06-04. Retrieved 2017-03-15.
  9. "Updating Glass software - Google Glass Help". support.google.com. Retrieved 2017-03-15.
  10. 1 2 "System and Kernel Downloads - Google Glass - Google Developers". Google Developers. Retrieved 2017-03-15.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.