sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade

This is required after switching to the OnePlus Dolby Atmos stack

Based on:
09e0c6ad23
346519f7f2

Change-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:
basamaryan
2025-02-04 15:37:31 -05:00
committed by therealmharc
parent 3c1c3192ec
commit bc0dc1d83f
5 changed files with 48 additions and 0 deletions

View 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