15.06 Update:
- x86 files (kindly given by @balika011) > 1cfeda8a9dbe1a328259edb42f48f0e4ea716072 - Update compilation script Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
This commit is contained in:
28
prebuilt/gapps/common/gapps_scripts.sh
Normal file
28
prebuilt/gapps/common/gapps_scripts.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user