8

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.

techraf
  • 4,353
  • 10
  • 32
  • 43
Ebrahim Byagowi
  • 947
  • 3
  • 11
  • 15

4 Answers4

4

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.

Fred
  • 4,592
  • 19
  • 29
3

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

https://www.github.com/albfan/miraclecast

flakeshake
  • 6,244
  • 1
  • 16
  • 35
1

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.

bla
  • 41
  • 2
0

Yes, you can install Android 11 on a Raspberry Pi 3 or 4

I have only tried one configuration

That is Android 11 via Lineage OS 18.1

This specific build

https://konstakang.com/devices/rpi4/LineageOS18/

This version only runs on a RPi4 with 2GB ram. I tried 1GB and while it ran, it was highly unstable with several application crashes before boot is finished

But on RPi4 2GB, it worked very well for my purpose, is working very well right now for a spacedesk viewer

Shodan
  • 126
  • 5