
- x86 files (kindly given by @balika011) > 1cfeda8a9dbe1a328259edb42f48f0e4ea716072 - Update compilation script Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
29 lines
724 B
Bash
29 lines
724 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 -f /system/app/FaceLock.apk
|
|
rm -f /system/lib/libfacelock_jni.so
|
|
rm -f /system/addon.d/31-faceunlock.sh
|
|
fi
|
|
rm -rf /tmp/face
|