Enables Wi-Fi Display (Miracast) on Pixel phones where Google disabled it in software. Uses fabricated overlays, system properties, and sysconfig XML. Includes WebUI for KernelSU manager. Tested hardware: Pixel 10 Pro Fold (rango), Tensor G5, BCM4390.
22 lines
694 B
Bash
22 lines
694 B
Bash
#!/system/bin/sh
|
|
# Miracast Enabler - post-fs-data
|
|
# Runs early in boot before most services start
|
|
|
|
MODDIR=${0%/*}
|
|
|
|
# Core Wi-Fi Display props
|
|
resetprop persist.debug.wfd.enable 1
|
|
resetprop persist.sys.wfd.virtual 0
|
|
|
|
# HDCP — disable by default for maximum compatibility
|
|
resetprop persist.sys.wfd.nohdcp 1
|
|
resetprop wlan.wfd.hdcp disable
|
|
|
|
# Tensor / Pixel: force GPU composition for virtual displays
|
|
# HWC on Tensor chips does not correctly handle virtual display layers,
|
|
# which causes black screen or green artifacts during Miracast
|
|
resetprop debug.sf.enable_hwc_vds 0
|
|
|
|
# Wi-Fi Direct concurrency — needed on Pixel to allow P2P alongside STA
|
|
resetprop wifi.direct.interface p2p-dev-wlan0
|