From 455ec031b979e22ab34e26372f8bb5885c7f2531 Mon Sep 17 00:00:00 2001 From: the-flash Date: Fri, 12 Feb 2021 00:59:11 +0000 Subject: [PATCH] james: Update check_device.sh Signed-off-by: the-flash --- configs/check_device.sh | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/configs/check_device.sh b/configs/check_device.sh index 9a3fa28..1cbbf52 100644 --- a/configs/check_device.sh +++ b/configs/check_device.sh @@ -2,22 +2,12 @@ SKU=`getprop ro.boot.hardware.sku` -if [ "$SKU" = "XT1924-6" ] || [ "$SKU" = "XT1924-7" ] || [ "$SKU" = "XT1924-8" ]; then - rm -rf /system_root/system/priv-app/MotoDoze - rm /vendor/etc/audio_platform_info_ahannah.xml - rm /vendor/etc/mixer_paths_ahannah.xml - rm /vendor/etc/sensors/sensor_def_qcomdev_ahannah.conf -else - mv /vendor/etc/audio_platform_info_ahannah.xml /vendor/etc/audio_platform_info.xml - mv /vendor/etc/mixer_paths_ahannah.xml /vendor/etc/mixer_paths.xml - mv /vendor/etc/sensors/sensor_def_qcomdev_ahannah.conf /vendor/etc/sensors/sensor_def_qcomdev.conf - rm -rf /vendor/app/LineageActions - rm /vendor/etc/permissions/android.hardware.sensor.compass.xml - rm /vendor/etc/permissions/android.hardware.sensor.gyroscope.xml -fi +rm -rf /vendor/app/LineageActions +rm /vendor/etc/permissions/android.hardware.vulkan.compute-0.xml +rm /vendor/etc/permissions/android.hardware.vulkan.level-0.xml +rm /vendor/etc/permissions/android.hardware.vulkan.version-1_1.xml -if [ "$SKU" = "XT1924-1" ] || [ "$SKU" = "XT1924-4" ] || [ "$SKU" = "XT1924-5" ]; then - rm /vendor/etc/permissions/android.hardware.vulkan.compute-0.xml - rm /vendor/etc/permissions/android.hardware.vulkan.level-0.xml - rm /vendor/etc/permissions/android.hardware.vulkan.version-1_1.xml +if [ "$SKU" = "XT1921-2" ]; then + rm /vendor/etc/permissions/unavail.android.hardware.fingerprint.xml + rm /vendor/etc/permissions/unavail.android.hardware.gyroscope.xml fi