Files
device_xiaomi_sm6150-common/rootdir/bin/init.dolby_fix.sh
basamaryan bc0dc1d83f 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>
2025-05-09 12:44:29 +00:00

16 lines
367 B
Bash

#!/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