mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade
This is required after switching to the OnePlus Dolby Atmos stack Based on:09e0c6ad23346519f7f2Change-Id: I2ac8f83899a0866975aa6cbce26da9670b16843d Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Co-authored-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
15
rootdir/bin/init.dolby_fix.sh
Normal file
15
rootdir/bin/init.dolby_fix.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/vendor/bin/sh
|
||||
#
|
||||
# Copyright (C) 2022 Paranoid Android
|
||||
# Copyright (C) 2025 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
fix_applied=$(getprop persist.vendor.audio.dolby_fix_applied)
|
||||
|
||||
if [ "$fix_applied" != "true" ]; then
|
||||
# Remove /data/vendor/dolby
|
||||
rm -rf /data/vendor/dolby/*
|
||||
setprop persist.vendor.audio.dolby_fix_applied true
|
||||
fi
|
||||
Reference in New Issue
Block a user