Update driver map with real Pixel 10 paths and SELinux contexts

This commit is contained in:
sssnake
2026-03-31 10:54:11 -07:00
parent d0061b82bb
commit 90decee874
2 changed files with 27 additions and 15 deletions

View File

@@ -169,25 +169,37 @@ DRIVER_MAP="$CONFDIR/driver_map.conf"
load_driver_map() {
if [ ! -f "$DRIVER_MAP" ]; then
cat > "$DRIVER_MAP" << 'MAP'
# Driver Spoof Map
# Driver Spoof Map — Pixel 10 Pro Fold (rango)
# Format: stock_path|custom_filename|target_process|spoof_type
# spoof_type: process (per-process ns) or global (all processes)
#
# GPU — PowerVR DXT-48-1536
# Place custom GPU driver as: drivers/libGLES_powervr_custom.so
#/vendor/lib64/egl/libGLES_powervr.so|libGLES_powervr_custom.so|surfaceflinger|process
#/vendor/lib64/libPVROCL.so|libPVROCL_custom.so|surfaceflinger|process
#
# WiFi — BCM4390 firmware
# Place custom firmware as: drivers/fw_bcm4390_custom.bin
#/vendor/firmware/fw_bcmdhd4390.bin|fw_bcm4390_custom.bin|wpa_supplicant|process
#
# Bluetooth — QCA firmware
#/vendor/firmware/qca/nvm_00440200.bin|nvm_custom.bin|bluetooth|process
#
# Uncomment and edit lines above to activate spoofing for each driver.
# The stock file is NEVER modified. Custom files must be placed in:
# Stock file is NEVER modified. Place custom files in:
# /data/adb/modules/driver-manager/drivers/
# Uncomment lines to activate.
#
# ---- GPU — PowerVR DXT-48-1536 ----
# SELinux: u:object_r:same_process_hal_file:s0
#/vendor/lib64/egl/libEGL_powervr.so|libEGL_powervr_custom.so|surfaceflinger|process
#/vendor/lib64/egl/libGLESv1_CM_powervr.so|libGLESv1_CM_powervr_custom.so|surfaceflinger|process
#/vendor/lib64/egl/libGLESv2_powervr.so|libGLESv2_powervr_custom.so|surfaceflinger|process
#/vendor/lib64/hw/vulkan.powervr.so|vulkan.powervr_custom.so|surfaceflinger|process
#/vendor/lib64/libPVROCL.so|libPVROCL_custom.so|surfaceflinger|process
#/vendor/lib64/hw/gralloc.default.so|gralloc.default_custom.so|surfaceflinger|process
#
# ---- WiFi — Broadcom BCM4390 firmware ----
# SELinux: u:object_r:vendor_fw_file:s0
# Active firmware: fw_bcmdhd.bin (symlink/copy of _4390_b1 variant)
# Revisions: _4390_a0 (first), _4390_b0, _4390_b1 (current)
#/vendor/firmware/fw_bcmdhd.bin|fw_bcm4390_custom.bin|wpa_supplicant|process
#/vendor/firmware/fw_bcmdhd.bin_4390_b1|fw_bcm4390_b1_custom.bin|wpa_supplicant|process
#/vendor/firmware/bcmdhd_clm.blob_4390_b1|bcmdhd_clm_custom.blob|wpa_supplicant|process
#/vendor/firmware/bcmdhd.cal_4390_b1|bcmdhd_cal_custom.cal|wpa_supplicant|process
#
# ---- Bluetooth — Broadcom (brcm) ----
# SELinux: u:object_r:vendor_fw_file:s0
# BCM.hcd = main BT firmware, BTFW_B.hcd = variant
#/vendor/firmware/brcm/BCM.hcd|BCM_custom.hcd|bluetooth|process
#/vendor/firmware/brcm/BTFW_B.hcd|BTFW_B_custom.hcd|bluetooth|process
MAP
mlog "Created default driver map at $DRIVER_MAP"
fi