How I can cast my Android screen to the Raspbian?

Per this Android 4.3 is added some API for easy screen casting, Settings > Device > Display > Cast screen however I couldn't find anyway to make that with Raspbian.

It is done for Airplay but from some searching I've reached to this and this (needs very specific custom ROM) and I couldn't find any solution for live casting my Android device screen to use Raspberry Pi HDMI output.


Miracast (what the cast setting on a Nexus enables) is tricky because it's a direct device to device Wi-Fi protocol. There appears to be a project called OpenWFD that's working on Linux support but it's not ready yet. You'd probably have better luck using something like VNC, which works reasonably well on the RaspberryPi already.

  • It's not clear how you would get the source Android content to transmit via VNC, unless you plan on heavily modifying the source device's Android install, or restricting to certain apps with their own built-in VNC support. Dec 14 '15 at 1:53

The MiracleCast project can turn a Raspberry Pi into a Miracast reciever or transmitter. See here for a success story on a Raspberry Pi.



It's not perfect, but I'm doing it using XPRA.

  1. Shadow your normal X screen (xpra shadow :0) on your laptop
  2. Log into the raspbian over SSH (with access to running X screen)
  3. Attach to your laptop: xpra attach ssh:ip_address:0

cons: You won't cast a video that way, but web pages, apps, presentation - yes. You need a control inversion where raspberry pi is able to log into your (higher level security) system.

  • 1
    It seems like you may have misread the question. The source is no a laptop but rather an Android device, and the mirror display is the pi. This means you can't use an arbitrary solution, but rather only make use of functionality which the Android operating system (or failing that specific apps with the content of interest) already supports(s). Dec 14 '15 at 1:49
  • True - because I found this question when I was looking for info on how to cast Linux screen to rpi. Mea culpa. For android my only idea is VNC server on android and client on rpi. Still not best for casting images/videos. Ex. (rooted devices): play.google.com/store/apps/details?id=org.onaips.vnc&hl=pl
    – bla
    Dec 15 '15 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.