15.05 Update
- Make for different platforms (arm, arm64, x86) - Add arm64 support - Update GNow - Fix FaceUnlock FC
This commit is contained in:
24
prebuilt/gapps/arm/faceunlock.sh
Normal file
24
prebuilt/gapps/arm/faceunlock.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
}
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user