Glass in the Enterprise – Tips and Tricks



Glass in the Enterprise – Tips and Tricks

0 0


google-glass-in-the-enterprise

Tips and Tricks for Glass in the Enterprise

On Github mimming / google-glass-in-the-enterprise

Glass in the Enterprise

Tips and Tricks

Created by Jenny Tong / mimming.com / @BaconatedGeek

Hi! I'm Jenny.

I'm a Developer Advocate at  

I like to help people cause trouble with code.

But, I'm not a member of the Google Glass team.

Agenda

  • Where Glass fits
  • Tips and Tricks
  • Hacks

Where Glass fits

super secret sub-agenda

It depends...

  • Who is using it
  • Who administrates it working
  • Problem that you're solving

Who is using it

  • Customer
  • Employee
  • Machine operator

Who is the admin

  • Internal IT
  • Service vendor
  • The user themselves

Use cases

  • Checklist
  • Remote expert
  • Information archival
  • Reference

Where Glass fits

You are all unique snowflakes.

Photo by Dakota Lynch

Tips and tricks

Photo credit: pinguino on Flickr

Tips and tricks

  • Power
  • Poking around; getting root
  • Bypass built in stuff
  • Device management
  • App distribution
  • Extending the hardware

Warning

Hacking ahead. Thar be dragons

Drawing credit brownpau on flickr

Power

Power

  • The USB port has different modes
    • Data
    • Fast charge
    • USB host
    • audio
  • Fix it in software
    • Duty cycle to keep things under control
    • Some sensors are more power hungry than others

Poking around

# list of built in and custom *.apk’s
$ adb shell ls /system/priv-app

# list of running framework services
$ adb shell dumpsys -l

# list of packages native libraries
$ adb shell ls /system/lib

Unlocking Glass

This disables your warranty

$ adb reboot bootloader
$ fastboot oem unlock
$ fastboot flash boot boot.img       # Rooted boot image
$ fastboot flash system system.img   # Your custom system image

Bypass Built in stuff

  • Built in Glass features may not fit your enterprise
  • Some of this stuff requires root, find your balance

Replace the launcher

  • You don't need root
  • Overriding the launcher intent
  • Don't delete GlassHome.apk
  • A good place to start is the AOSP launcher
# Remove this property inside AndroidManifest.xml
# <manifest android.sharedUserId=”android.uid.system”>

# Install it
$ adb install Launcher2.apk

Disable updates

  • This is probably a bad idea. It disables security updates.
  • You need root
$ adb shell rm system/priv-app/GlassUpdate.apk

Prevent Timeline Sync

  • Requires WRITE_SYNC_SETTINGS permission
  • You don't need root
// Disable all sync adapters
ContentResolver.setMasterSyncAutomatically(false);

// Cancel any running sync
ContentResolver.cancelSync(null, null);

Run Glass without a user

You need root

# on a fresh Glass
$ adb shell rm system/priv-app/GlassSetup.apk

# after logging a user in
$ adb shell rm data/system/users/0/accounts.db

Strange things will happen (e.g. it breaks the camera button)

Device management

  • Glass is young
  • It's primarily intended for consumers, but more enterprise stuff is coming
  • For now, hacks

Skip the tutorial

Tap with 2 fingers, 7 times

Managing users

  • Do your own auth with a QR code
  • MyGlass has an auth API too, but it requires you to be in MyGlass

App distribution

  • Express courier
  • Private entry on Glass Marketplace

Extending the hardware

  • USB OTG
  • Bluetooth
  • IoT

THE END

Questions?

Slides

https://mimming.com/presos/google-glass-in-the-enterprise

Slides' Code

https://github.com/mimming/google-glass-in-the-enterprise/

Created by Jenny Tong / mimming.com / @BaconatedGeek