#notglass #untilnow
Shell Java
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
com/google/i18n/phonenumbers/data Added the native framework to the Home apk; added build instructions … May 27, 2013
examples Music APK modified to send Glass RemoteControlClient messages Jul 6, 2013
util SilicaSTFU Jun 18, 2013
xe5 XE6 Glass Home Jun 5, 2013
xe6 XE7 version of Glass Home and Glass Voice, added vanilla GlassSound Jul 2, 2013
xe7 XE7 version of Glass Home and Glass Voice, added vanilla GlassSound Jul 2, 2013
README.md XE7 Glass Setup Jul 3, 2013
buildbrowser.sh Glass Browser Jul 2, 2013
buildcamera.sh Added the native framework to the Home apk; added build instructions … May 27, 2013
buildhangouts.sh Hangouts (untested) May 27, 2013
buildhome.sh XE7 version of Glass Home and Glass Voice, added vanilla GlassSound Jul 2, 2013
buildmaps.sh Added the native framework to the Home apk; added build instructions … May 27, 2013
buildmyglass.sh MyGlass modded May 29, 2013
buildsetup.sh Added the native framework to the Home apk; added build instructions … May 27, 2013
buildvoice.sh Glass Browser Jul 2, 2013
getsrc.sh Forgot a library in Hangouts May 27, 2013
glassbrowser-modded.apk Glass Browser Jul 2, 2013
glasshome-modded.apk XE7 version of Glass Home and Glass Voice, added vanilla GlassSound Jul 2, 2013
glasspeople-modded.apk Glass People Jul 2, 2013
glasssetup-modded.apk XE7 Glass Setup Jul 3, 2013
glassvoice-modded.apk XE7 version of Glass Home and Glass Voice, added vanilla GlassSound Jul 2, 2013
pushallapks.sh Added the native framework to the Home apk; added build instructions … May 27, 2013

README.md

Xenologer: repackaging Google Glass XE7 APKs to run on other devices

Google Glass's build process is fairly conservative - they don't use hidden APIs often, and when they do, they use reflection. Thus, it is relatively easy to repackage the Glass APKs for other devices.

Modifications to the base APK

The use-library element in AndroidManifest is removed, as it refers to unused code.

com/google/glass/hidden/HiddenViewConfiguration.smali is patched to always return 0xffff instead of calling the nonexistent View.getDeviceTapTimeout

All native libraries required are shipped with the APK, as are all the Glass fonts.

For the camera, instead of calling Camera.open() to get the rear facing camera, Camera.open(0) is called to get the first camera, as the Nexus 7 doesn't have a rear camera.

Install

Download the APK: These were extracted from the official XE7 system image.

Home: http://zhuoweizhang.net/Xenologer/glasshome-modded.apk

Voice: http://zhuoweizhang.net/Xenologer/glassvoice-modded.apk

Browser: http://zhuoweizhang.net/Xenologer/glassbrowser-modded.apk

People: http://zhuoweizhang.net/Xenologer/glasspeople-modded.apk

Setup: http://zhuoweizhang.net/Xenologer/glasssetup-modded.apk (Follow http://imgur.com/a/IBqFf to use the modified Setup)

Coming soon

Camera: http://zhuoweizhang.net/Xenologer/xe6/glasscamera-modded.apk

This is based on a XE6 APK, but have the XE6 features disabled as they crash the camera.

Bluetooth: http://zhuoweizhang.net/Xenologer/xe6/glassbluetooth-modded.apk

this is modified to include an icon in the app grid in case it doesn't start on reboot. Also, the Bluetooth headset functionality is disabled.

Install just like any other boring APK. None of the Google Glass apps need system privilages. I do not recommend installing these APKs as system APKs, as the Glass apps will attempt to reboot the phone after a force close.

For more fun, Download the official MyGlass companion (can't download in your country? https://www.dropbox.com/s/5u88xt3iqd0wndw/com.google.glass.companion-130-v1.3.0.apk ) onto another companion phone and connect to the Glass device with MyGlass.

Thanks to @mralext20 for the copy of MyGlass!

Maps: use the XE5 version for now. http://zhuoweizhang.net/Xenologer/xe5/glassmaps-modded.apk

Glass apps that won't be converted

Hangouts: crashes on Android 4.2 due to a change in the underlying Android code. If you have another version of Android, try http://zhuoweizhang.net/Xenologer/xe6/glasshangouts-modded.apk

GlassSound.apk: installs and runs without modification. Get a copy from any XE7 system dump, or at http://zhuoweizhang.net/Xenologer/xe7/GlassSound.apk Not essential for Glass; Glass will just run muted without it.

GlassPhotosphere.apk: As stated by http://www.studio8apps.com/running-google-glass-photo-sphere-viewer-on-android-phone/ , runs (for the easter egg) without modification. Again, any dumped copy from a XE6 should run fine. Not essential to Glass.

GlassSettings.apk: installs and runs without modification. Get a copy from any XE6 system dump. Not essential for Glass.

Tutorials and guides

Need help? Want to help? Check out the Wiki page.

Tutorial by tonystark23: http://www.youtube.com/watch?v=fNsu9xvpdNw

Virtual DPad app for navigating around Glass by Androguide: https://github.com/Androguide/GLASSInput/blob/master/GlassInput.apk?raw=true

Setting up Glass with the Setup application: http://imgur.com/a/IBqFf

Building these APKs from the modified dump

This area is still quite rough - I would love some help!

These sources are managed with a shell script (because I am not familiar with git submodules).

Run getsrc.sh then one of the build*.sh to build the APK you want. You need to modify them to suit your needs. In particular, there's a dosignapk.sh script that they call, which signs the APKs with your key. Go to http://developer.android.com/tools/publishing/app-signing.html for details.

You must have APKTool, 7Zip, and the Android SDK in your path.

Finally, note that the build scripts copy the com folder into the resulting APKs, as APKTool is too dumb to get them from the original APK.

Credits/License

While I don't have permission from the Glass team to post these, Google Glass is a device for explorers, thus, I believe it agrees with the spirit of discovery to post these APKs.

Some APKs was pulled from Android Police's dump at http://www.androidpolice.com/2013/05/08/download-google-glass-xe4-and-xe5-system-dumps-please-do-something-cool-with-these/