How to: Record Google Glass Screen using ADB

How to: Record Google Glass Screen using ADB

Back in September of last year, Google released XE9 which brought various features for Explorers. One of these features was the arrival of Vignettes. Vignettes superimpose a screenshot of your Glass display over a picture taken through Glass.

SNP_701AD4810A5B726D3EB191077BD61C69528F_3377417_en_v0Many Explorers thought of doing this with video of the display on Glass, though this only recently became possible. The ability to record you screen using ADB came natively in Android 4.4 KitKat and now that Glass runs KitKat, we can easily record Glass’ display.
Here is our example of a quick video using this native KitKat feature.
Before you are able to record your screen, you must install ADB itself on your computer. Just follow the steps on how to install ADB and set your PATH, then come back to this page to learn how to record the display on Glass.
How to install ADB on Mac
How to install ADB on Windows
How to record your Google Glass display
After you successfully install ADB itself on your computer (and added it to your PATH), you are almost ready to start recording your Glass display.

Put on Google Glass and swipe all the way to the left and click on the Settings bundle. Next, navigate to the right and click on the Device Info card. Swipe to right and you will want to tap the “Turn on debug” card, giving our computer access to Glass once plugged in.
Next, plug Glass into your Mac/Windows computer using the Micro-USB cable provided by Google. I highly recommend using the cable provided by Google because Explorers using third-party cables have run into problems in some cases where their computer won’t recognize Glass.
For Mac, open Terminal. You can find this basic command prompt app in “Utilities” in your Application folder, or by typing “Terminal” in spotlight. For Windows open CMD. You can open this by clicking the start button, and in the “search programs and files” box, simply type in “CMD”.

I will be using a Mac; however, it is the same process on a Windows machine. Once you have a command prompt window open, type the following and press enter:

adb devices

You should see something similar to the screenshot below.

ADB Devices

4. Type the following; you can name the video anything you like. For this example, we will be using “demo” as our title. Press enter.

adb shell screenrecord /sdcard/demo.mp4

5. To stop the recording, press Ctrl-C.

6. To retrieve the newly recorded video type the following and replace “demo” with the title you inserted above.

adb pull /sdcard/demo.mp4

If you see the following then you successfully recorded your Google Glass display.

ADB Shell Pull

7. You will find your video in the Home folder of your computer.

That’s it! You successfully recorded your Google Glass display and now you can use it as a demonstration tool, or however you please.

If you have any questions please let us know in the comments below!