Files
vendor_gapps/out/arm/common/gapps_scripts.sh
jrizzoli a73691b96d 15.08 Update+
- Fix Play services battery drain on arm
- Fixed remove-faceunlock from updater script
- Show some love for who doesn't have realpath
- Export md5 as a file too
- Simplify create checks (@stucki 6a05464df7ae80784fc8fe8ff2de65152d7bb67b)
- Move target zip out of arch directory  (@stucki bf57998702c634f560535b586706931f56a3ed31)
- Clean Up after the build (@stucki f6660501afa1eaefc4d3cf1a043e5c73bdab398d)
- CleanUp final output
2015-07-09 15:18:23 +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