Files
vendor_gapps/prebuilt/gapps/common/gapps_scripts.sh
jrizzoli bcd682ecbf 15.07 Update:
- Fix removal of faceunlock (@ShevT > 1d4f9afc144843459a2f7c19d269996c688874aa)
- Fix typo in addon.d script
- Add md5 calculation (based on @pete4abw > ae166a10ad8c683182a1cd437242520254e40684)
- Improve log content (aka make it useful)

Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
2015-07-03 13:44:50 +02:00

29 lines
721 B
Bash

#!/sbin/sh
good_ffc_device() {
if cat /proc/cpuinfo |grep -q Victory; then
return 1
fi
if cat /proc/cpuinfo |grep -q herring; then
return 1
fi
if cat /proc/cpuinfo |grep -q sun4i; then
return 1
fi
return 0
}
chmod 755 /system/addon.d/30-gapps.sh
if [ -f "/system/addon.d/faceunlock.sh" ]; then
chmod 755 /system/addon.d/31-faceunlock.sh
fi
if good_ffc_device && [ -e /system/etc/permissions/android.hardware.camera.front.xml ]; then
chmod 755 /system/addon.d/31-faceunlock.sh
elif [ -d /system/vendor/pittpatt/ ]; then
rm -rf /system/vendor/pittpatt/
rm -rf /system/app/FaceLock/
rm -f /system/lib/libfacelock_jni.so
rm -f /system/addon.d/31-faceunlock.sh
fi
rm -rf /tmp/face