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 12, 2021
1 parent e088a2e commit af1e874
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions configs/check_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@

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
if [ "$SKU" = "XT1921-2" ]; then
rm /vendor/etc/permissions/unavail.android.hardware.fingerprint.xml
rm /vendor/etc/permissions/unavail.android.hardware.gyroscope.xml
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

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
fi
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

0 comments on commit af1e874

Please sign in to comment.