An experimental demo for capturing and displaying screenshot of Android devices.
- Setup the apk properly on the phone
./gradlew clean installDebug
$ adb shell
D1C:/ $ export CLASSPATH=/data/app/com.rayworks.droidcast-1/base.apk
D1C:/ $ exec app_process /system/bin com.rayworks.droidcast.Main '$@'
>>> DroidCast main entry
- Use
adb
forward socket connection from your pc to the connected device
$ adb forward tcp:53516 tcp:53516
- View the image via web browser http://localhost:53516/screenshot.jpg