Skip to content

Commit

Permalink
james: Update check_device.sh
Browse files Browse the repository at this point in the history
Signed-off-by: the-flash <flash@remainsilent.net>
  • Loading branch information
the-flash committed Feb 16, 2021
1 parent e088a2e commit 455ec03
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions configs/check_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 455ec03

Please sign in to comment.