Run Google Glass on your Android phone

Search This thread

NOMIOMI

Senior Member
Nov 4, 2010
1,315
1,270
Abbottabad
Xenologer: repackaging Google Glass XE5 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
An instructional video (don_doff_background.mov, 8MB) is removed to save space.
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:
Home: http://zhuowei.github.io/Xenologer/glasshome-modded.apk
Camera: http://zhuowei.github.io/Xenologer/glasscamera-modded.apk
Maps: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
Setup: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
This one's been modified so that instead of scanning a barcode, it uses the existing Google Account to setup and then force closes.
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.
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://zhuowei.github.io/Xenologer/glasshangouts-modded.apk
GlassSound.apk: installs and runs without modification. Get a copy from any XE5 system dump. 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 XE5 should run fine. Not essential to Glass.
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.
The APK was pulled from Android Police's dump at http://www.androidpolice.com/2013/0...em-dumps-please-do-something-cool-with-these/
 

Ste3105

New member
Jul 1, 2009
1
0
Think you have the wrong link for the 'Setup'

Can't seem to get it working properly even when I have downloaded the correct link, just keeps telling me to register it on my phone/pc.

Also is there a way to get past the warning page of the maps?
 

nikctsh

Senior Member
Jan 15, 2011
402
36
Sorry for this dump question, but what is this? Google glass on android? Means the APK is taken from google glass? Can I install it on my S3 non-rooted?
 

webwalk®

Senior Member
Dec 26, 2010
339
44
paranoid android got me with their hover joke :S
but i was happy to find the original https://github.com/zhuowei/Xenologer?utm_source=feedly
and then this thread.

the files are mixed from XE5, XE6 and XE7

current build is XE12 ill try with the newest files later...

i like it alot but:

- Browser is not working (no connection)
- Directions do not work (same problem)
- camera has a weird error

but i get incomming mails....

maybe i need a 2nd device for the myglass app? trying later...
currently running paranoid android 4.2 beta 3 (4.2.2) gs3

a nice feature is if you use it with xhalo floating window and launch it in window mode as you can use the touchscreen :)
too bad it doesnt work with android wear..

exhw9skz.png

xe86k5zg.png

eimekfy8.png
 

jacksparao

Senior Member
May 4, 2012
864
659
India
appzinventors.wordpress.com
update the links

pls update the links...

Xenologer: repackaging Google Glass XE5 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
An instructional video (don_doff_background.mov, 8MB) is removed to save space.
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:
Home: http://zhuowei.github.io/Xenologer/glasshome-modded.apk
Camera: http://zhuowei.github.io/Xenologer/glasscamera-modded.apk
Maps: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
Setup: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
This one's been modified so that instead of scanning a barcode, it uses the existing Google Account to setup and then force closes.
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.
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://zhuowei.github.io/Xenologer/glasshangouts-modded.apk
GlassSound.apk: installs and runs without modification. Get a copy from any XE5 system dump. 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 XE5 should run fine. Not essential to Glass.
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.
The APK was pulled from Android Police's dump at http://www.androidpolice.com/2013/0...em-dumps-please-do-something-cool-with-these/
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Xenologer: repackaging Google Glass XE5 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
    An instructional video (don_doff_background.mov, 8MB) is removed to save space.
    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:
    Home: http://zhuowei.github.io/Xenologer/glasshome-modded.apk
    Camera: http://zhuowei.github.io/Xenologer/glasscamera-modded.apk
    Maps: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
    Setup: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
    This one's been modified so that instead of scanning a barcode, it uses the existing Google Account to setup and then force closes.
    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.
    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://zhuowei.github.io/Xenologer/glasshangouts-modded.apk
    GlassSound.apk: installs and runs without modification. Get a copy from any XE5 system dump. 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 XE5 should run fine. Not essential to Glass.
    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.
    The APK was pulled from Android Police's dump at http://www.androidpolice.com/2013/0...em-dumps-please-do-something-cool-with-these/
    2
    Apktool isn't too dumb in the future 2.0 version for "unknown" files/folders (ex /com), fyi.
    1
    Seems like the Maps and Camera apk link is dead..
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone