How to create Magisc module for Xiaomi MI A1
For this example we want to enable HAL3, EIS and fluencepro. And disable backlight keys.
-
Edit module info in
module.prop
:
id=nixlab-a1-aio-module
name=Nixlab A1 AIO Module
version=v1
versionCode=1
author=nixlab
description=Enable - HAL3, EIS, fluencepro. Disable - backlight keys.
minMagisk=17000
- Edit module config in
config.sh
.
for HAL3, EIS and fluencepro set:
# Set to true if you need to load system.prop
PROPFILE=true
for disable backlight keys set:
# Set to true if you need late_start service script
LATESTARTSERVICE=true
- For enable HAL3, EIS and fluencepro add to
common\system.prop
:
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
ro.qc.sdk.audio.fluencetype=fluencepro
- For disable backlight keys add to
common\service.sh
:
echo 0 > sys/devices/soc/leds-qpnp-10/leds/button-backlight/max_brightness