Android Things — Remote Screen Access
Android Things is designed for IoT systems. These may or may not have a display attached. But while developing an application, every developer wishes to have all information available without any extra setup. In this article, I will show, how we can access Android Things running remotely on a Raspberry Pi3. You will not need any external display to connect to your RPi3 and still, you will be able to see and access Android Things screen on your development system — Macbook Pro in my case.
First, I will install the latest image “iot_rpi3.img” to my SD card.
- Download the latest preview image (version 0.3 in my case).
- Download and install “The Unarchiver”. Default unzipper on mac doesn’t work with the image we have.
- Unarchive the image to a location and follow commands as stated here for Mac. Following is what I did on my system:
Once the image is written on the sd card, Install Vysor on your system. I have installed it on my Chrome Browser.
Now, download the Vysor APK from here. This will be installed on your Android Things and through it, you will be able to remotely access Android Things screen on your system similar to accessing live Android device via Vysor.
- Connect to the Android Things (make sure your system and RPi3 are on the same network with RPi3 connected via LAN cable).
- Install Vysor APK to Android Things. See the steps below:
Abhinavs-MacBook-Pro:Downloads abhinavtyagi$ adb connect Android.local
connected to Android.local:5555
Abhinavs-MacBook-Pro:Downloads abhinavtyagi$ adb install Vysor-22.214.171.124.apk
Open the Android Studio and run your Android Things app. Also, open the Vysor app on Chrome.
You will see, Android Things device listed there “iot rpi3”. Click on the “View” button to access the Android Things screen remotely.
And that’s it! Now you can access and control Android Things screen remotely without connecting your Raspberry Pi or any other Hardware platform with an external display.