Skip to main content

Get Google Glass on your Nexus (or in that case Android)


Guess we all are interested about Google Glass. Pretty interested I might say. And all the more since the Glass Explorer prototypes started making its way to the dev community. Last day while reading a idea gist about what might be some good things to implement in glass fro Wikimedia I was pointed to the Glass Viewer in Google Glass Developer portal(Playground).

And today I found a way to run Glass apps in my Nexus 4.
Thanks to Michael Evans(as he pointed that out) and Google we now have working factory images for the XE5 root.

The build process is also very detailed. 
And then we have another dump (which is very useful) from AndroidPolice

Now how would you like if these were repackaged as install-able APK's which you can try in your android?


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.

So without Further Ado: Install

Download the APK:
Setup: http://goo.gl/32FXv 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 privileges. I do not recommend installing these APKs as system APKs, as the Glass apps will attempt to reboot the phone after a force close.

It works on both Nexus 4 and Note 2 (not tested by me).

Everything including the raw image and apk and build process for these are in github.
I'll update this post with the links very soon.

Till then Go-Glass!!





Popular posts from this blog

LibrePlanet 2017: Liberating your open source experience

LibrePlanet is a yearly gathering of free software activists, users, and contributors—and, it's my favorite conference of the year. Here's why.
LibrePlanet is run by the Free Software Foundation, and has steadily evolved from a yearly members' meeting with presentations from staff and board members to a full blown two-day conference with speakers and attendees from all over the world. The event brings people who care about free software together to talk about the future of the movement, address current challenges, and celebrate successes.
Prelude I was invited to give a talk at LibrePlanet 2017 on 25th March at MIT, in Cambridge, Massachusetts representing Mozilla as a Tech Speaker. I reached Boston on 25th early morning. Around 1 AM. The journey itself was awesome till I realized that you don't get Uber or Lyft at Boston Airport.

Not that the apps don't function there. They work! Just no driver will be ready to pick you up from Airport at that time. After trying t…

Bringing the Focus back : Firefox Focus (Builds) for Android

Firefox Focus – A Free, Fast Private Browser for....android! On 17th November 2016 Mozilla announced Firefox Focus. A free fast and easy to use private browser for iOS. Firefox Focus was filled with goodies. From inbuilt tracker blocking, content blockers to making privacy the first class citizen. It was all of that. Wrapped in a nice package, but only for Apple Ecosystem. The argument for having focus was to make privacy dead simple and default experience for most people out there. An excellent read is this article "Privacy made simple with Firefox Focus".
And while this was all fine, a lot of us were severely disappointed that we don't have an android version. That all changes now.
Mozilla has released a port of the Firefox Focus source code and I decided to build a port from it. And this is how it looks in my One Plus One.
If you notice it looks almost similar to its iOS counterpart. Focus blocks tracking cookies by default in its system. But there are small design c…

TechSpeakers Ahoy! : A Berlin Meetup

Mozilla Foundations is a curious organization. Though most of us have grown up getting acquainted with it by using Netscape and later Firefox, Thunderbird. There is also the foundation part where it undertakes a lot of projects to make the openweb and world as a whole a better place.
Among many teams that help volunteers, budding developers dip their toes into code, help in evangelism, code contribution, advocacy is Developer Relations (DevRel) and they came up with an ingenious plan to come up with a team of volunteers passionate about these to come forward represent Mozilla DevRel. Havi Hoffman (from Mozilla Labs), Dietrich Ayala (From Platfrom Engineering, Firefox OS) and many others handpicked a group of people who eventually came to know as Mozilla TechSpeakers. (If you want to read more about it, this lovely piece by Havi is a must read!). I was fortunate enough to be in the first group (knows as pilot pilots). And eventually ended up being facilitator to the last group which gr…