KeyHandler: Adjust for Oplus

Change-Id: Icc5e6583f48756fc765970c9e7a0f27425f37105
This commit is contained in:
LuK1337
2022-04-10 21:04:40 +02:00
parent a446bb68c6
commit 99f10d3d04
2 changed files with 40 additions and 50 deletions

View File

@@ -2,5 +2,5 @@
if [[ -f /mnt/vendor/persist/engineermode/tri_state_hall_data ]]; then
CALIBRATION_DATA="$(cat /mnt/vendor/persist/engineermode/tri_state_hall_data)"
CALIBRATION_DATA="${CALIBRATION_DATA//;/,}"
echo -n $CALIBRATION_DATA > /sys/devices/platform/soc/soc:tri_state_key/hall_data_calib
echo -n $CALIBRATION_DATA > /proc/tristatekey/hall_data_calib
fi