gapps_scripts.sh 724 B

12345678910111213141516171819202122232425262728
  1. #!/sbin/sh
  2. good_ffc_device() {
  3. if cat /proc/cpuinfo |grep -q Victory; then
  4. return 1
  5. fi
  6. if cat /proc/cpuinfo |grep -q herring; then
  7. return 1
  8. fi
  9. if cat /proc/cpuinfo |grep -q sun4i; then
  10. return 1
  11. fi
  12. return 0
  13. }
  14. chmod 755 /system/addon.d/30-gapps.sh
  15. if [ -f "/system/addon.d/faceunlock.sh" ]; then
  16. chmod 755 /system/addon.d/31-faceunlock.sh
  17. fi
  18. if good_ffc_device && [ -e /system/etc/permissions/android.hardware.camera.front.xml ]; then
  19. chmod 755 /system/addon.d/31-faceunlock.sh
  20. elif [ -d /system/vendor/pittpatt/ ]; then
  21. rm -rf /system/vendor/pittpatt/
  22. rm -f /system/app/FaceLock.apk
  23. rm -f /system/lib/libfacelock_jni.so
  24. rm -f /system/addon.d/31-faceunlock.sh
  25. fi
  26. rm -rf /tmp/face