Open Source Google Glass Development
Much like quartz sand is the main ingredient in most commercial glass, we want OpenQuartz to be the main "ingredient" in the future development for Google Glass
### Example Applications for Google Glass([/example-apps](../master/example-apps)) - GDK - [Hello Glass](../master/example-apps/HelloGlass) - *Andre Compagno* - Basic "HelloWorld" - [Voice Example](../master/example-apps/Voice Example) - *Andre Compagno* - Voice Recognition Example - [Camera App](../master/example-apps/OG_CameraApp) - *Jared Burrows* - Basic Camera application with Camera preview - with "Hotfix" - post-XE11 - [Memo App](../master/example-apps/GlassMemo) - *Andre Compagno* - Voice Memo Application - [Location Example](../master/example-apps/OG_Location) - *Jared Burrows* - Basic Location on Live Cards - OpenCV - [Face Detection](../master/example-apps/OG_OCV_FaceDetection) - *Jared Burrows* - "Hotfix" for Google Glass camera preview - post-XE11 - Optimization coming soon - [Image Manipulation](../master/example-apps/OG_OCV_Image_Manipulation)(Mixed Processing and Camera Control Tutorials) - *Jared Burrows* - Canny, Sobel, RGBA, Gray, Feature Detection, etc - Misc - [Glass Preview](../master/example-apps/OG_CameraPreview) - *Jared Burrows* - "Hotfix" for Google Glass camera preview - post-XE11 - [Launchy Launcher](../master/example-apps/OG_LaunchyWrapper) - *Jared Burrows* - Sometimes Launchy will not open up after the XE-12, this launches Launchy directly ### Google Glass Application Source Code([/glass-source](../master/glass-source)):UPDATE(11/19/13): GDK is now out! You can still easily decompile applications using this method.
Since the GDK is not yet released, we can look around how the current Google Glass Android applications were compile by breaking them down. The decompiled Google Glass applications are included. Here are a list of tools to decompile the native APKs:
- Decompiling APKs
- Decompiling compiled Java (.class) files
- View decompiled JAR files from Dex2Jar
- JD-GUI
- Dumping APK Resources
- Android APKtool
- All in One Tool
Read more:
- http://stackoverflow.com/questions/3122635/is-it-possible-to-decompile-an-android-apk-file
- http://blog.burrowsapps.com/2012/02/hacking-facebook-for-android.html
- http://blog.burrowsapps.com/2012/05/how-to-reverse-engineer-android-malware.html
Since there is no "Google Play" for the Glass yet, we have to side load Android applications for now.
- Keep Your Google Glass On while charging/developing:
- adb shell svc power stayon true | false | usb | ac
- Turn off Wifi and only use Bluetooth
- adb shell svc wifi enable | disable
- Installing/Uninstall Applications(.apks):
- adb install -r FILE.apk
- adb uninstall FILE.apk
- Running the Application:
- adb shell am start -n PACKAGE.NAME/.MAIN.ACTIVITY.NAME
- List all Packages on your Android Device:
- adb shell pm list packages -f
- List all Relative Information about your Android Device:
- adb shell dumpsys
- adb shell dumpsys battery
- adb shell dumpsys wifi
- adb shell dumpsys cpuinfo
- adb shell dumpsys meminfo
- adb shell dumpsys meminfo PACKAGE.NAME
- adb shell cat "/system/build.prop" | grep "product"
- adb shell dumpsys
- Show the AndroidManifest for an APK
- aapt dump xmltree FILE.apk AndroidManifest.xml
- Screenshots from Commandline
- adb shell /system/bin/screencap -p /sdcard/screenshot.png
- adb pull /sdcard/screenshot.png screenshot.png
Read more:
- http://developer.android.com/tools/help/adb.html
- http://stackoverflow.com/questions/11201659/whats-android-adb-shell-dumpsys-tool-and-its-benefits
- Google Glass Playground
- OpenShades: WearScript
- Example of Decompiled Resources:
- Compass
- Level
- Stopwatch
- Waveform
- Google
- Android SDK
- Android NDK (Native Development Kit)
- GDK (Glass Development Kit)
- Misc
- OpenCV(OpenCV for Android)
Copyright (C) 2014 OpenQuartz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.