Application integration

Glass EE2 is conceived mainly as a single purpose tool for Enterprise. In most cases, partners develop their own experiences, which include a launcher or kiosk mode app that takes over from the moment Glass boots up.


Glass comes with a launcher and a settings app.

Add an application to the launcher

In order to show your application on the launcher application list, you need to add to the main activity in your application's manifest:

            android:name="android.intent.action.MAIN" />
            android:name="android.intent.category.LAUNCHER" />
            android:name="" />


The Glass Settings app allows users to check the battery level, connect to Wi-Fi and Bluetooth, modify the volume and brightness, factory reset, and to check the firmware version, serial number and free storage space of the device.

Wi-Fi settings

When you connect to a Wi-Fi network with a password, you must use a QR code that should comply with Wi-Fi network configs.

One easy way to generate the Wi-Fi code is to use a generator such as QiFi.

Settings intents

Applications can use intents to take advantage of the Glass Settings UI.

Launch settings

To launch the Glass Settings app, start it as any other Android activity:

adb shell am start -n

Settings pages

To launch a specific page in Settings, Glass supports the following actions:

adb shell am start -n -a android.settings.BATTERY_SETTINGS

adb shell am start -n -a android.settings.WIFI_SETTINGS

adb shell am start -n -a android.settings.BLUETOOTH_SETTINGS

adb shell am start -n -a android.settings.VOLUME_SETTINGS

adb shell am start -n -a android.settings.BRIGHTNESS_SETTINGS

adb shell am start -n -a android.settings.DEVICE_INFO_SETTINGS

adb shell am start -n -a android.settings.SHOW_REGULATORY_INFO

adb shell am start -n -a android.settings.SYSTEM_SETTINGS

adb shell am start -n -a android.settings.DATE_SETTINGS

adb shell am start -n -a android.settings.LOCALE_SETTINGS

adb shell am start -n -a android.settings.INPUT_METHOD_SETTINGS

adb shell am start -n -a android.settings.DEVELOPMENT_SETTINGS

adb shell am start -n -a android.settings.FACTORY_RESET_SETTINGS

User restrictions

To make sure devices are used as intended, enable user restrictions on settings.

The following snippet shows how you can set the restrictions:


val devicePolicyManager: DevicePolicyManager =
    context.getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
val adminName = getComponentName(context)

).forEach { devicePolicyManager.addUserRestriction(adminName, it) }


String[] restrictions = {

final DevicePolicyManager devicePolicyManager =
    (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
final adminName = getComponentName(context);

for (String restriction: restrictions) {
  devicePolicyManager.addUserRestriction(adminName, restriction);

The following is a list of available user restrictions:

Hinge auto shutdown timeout

When you close the hinge and the device isn't connected to any power source, it shuts down after four hours of inactivity. To change this behavior, Glass supports the following actions:

Disable auto shutdown

adb shell am start \
-a \
--ei -1

Immediate auto shutdown

adb shell am start \
-a \
--ei 0

Auto shutdown after a specified time

adb shell am start \
-a \
--ei time_in_minutes

Install applications

To install an application on Glass, do the following:

  1. Download Android Debug Bridge on your computer.
  2. Use the command line terminal on your computer to add the downloaded platform-tools directory to the system PATH variable:
    • Windows
    • set PATH=%PATH%;C:\path\to\platform-tools
    • Linux and MacOS
    • echo "export PATH=\$PATH:/path/to/platform-tools" >> ~/.bash_profile && source ~/.bash_profile
  3. Download the APK file to your computer from your solution provider.
  4. Connect Glass to the computer with a USB cable.
  5. If a prompt appears on the screen, tap to allow USB debugging on Glass.
  6. Open a command line terminal on your computer.
  7. Follow the adb instructions to install the APK.