From 9e954ea9875a225e87b8031a67fb4765c913a266 Mon Sep 17 00:00:00 2001 From: Tad Date: Fri, 1 Sep 2023 20:51:15 -0400 Subject: [PATCH] Restore face unlock for Pixel 4 series We keep fingerprint reader blobs, so why not these? Signed-off-by: Tad --- .../0040-euicc-restrictions.patch | 2 +- Scripts/Common/Deblob.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Patches/LineageOS-20.0/android_frameworks_base/0040-euicc-restrictions.patch b/Patches/LineageOS-20.0/android_frameworks_base/0040-euicc-restrictions.patch index 0d31b392..a2405f0b 100644 --- a/Patches/LineageOS-20.0/android_frameworks_base/0040-euicc-restrictions.patch +++ b/Patches/LineageOS-20.0/android_frameworks_base/0040-euicc-restrictions.patch @@ -29,7 +29,7 @@ index ff8d96dd23f2..97027ebbca2d 100644 + diff --git a/services/core/java/com/android/server/ext/PackageManagerHooks.java b/services/core/java/com/android/server/ext/PackageManagerHooks.java -index 007b65349e55..415a4d033e38 100644 +index 007b65349e55..3c38b9e73049 100644 --- a/services/core/java/com/android/server/ext/PackageManagerHooks.java +++ b/services/core/java/com/android/server/ext/PackageManagerHooks.java @@ -6,6 +6,7 @@ import android.annotation.UserIdInt; diff --git a/Scripts/Common/Deblob.sh b/Scripts/Common/Deblob.sh index 7e643164..d1a33741 100644 --- a/Scripts/Common/Deblob.sh +++ b/Scripts/Common/Deblob.sh @@ -228,11 +228,11 @@ echo "Deblobbing..."; fi; #Face Unlock [Google] - blobs=$blobs"|libfacenet.so|libfilterpack_facedetect.so|libfrsdk.so"; - blobs=$blobs"|android.hardware.biometrics.face.*"; #depends on airbrush - blobs=$blobs"|manifest_face.xml"; + blobs=$blobs"|libfacenet.so|libfilterpack_facedetect.so|libfrsdk.so"; #legacy + #blobs=$blobs"|android.hardware.biometrics.face.*"; #modern, depends on airbrush + #blobs=$blobs"|manifest_face.xml"; #blobs=$blobs"|firmware/faceauth"; - makes=$makes"|android.hardware.biometrics.face.*"; + #makes=$makes"|android.hardware.biometrics.face.*"; #GPS [Qualcomm] #blobs=$blobs"|gpsd"; @@ -895,8 +895,8 @@ deblobVendorBp() { sed -i ':a;N;s/\n/&/3;Ta;/manifest_android.hardware.drm-service.widevine.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; sed -i ':a;N;s/\n/&/3;Ta;/manifest_vendor.xiaomi.hardware.mlipay.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; sed -i ':a;N;s/\n/&/3;Ta;/vendor.qti.hardware.radio.atcmdfwd@1.0.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; - sed -i ':a;N;s/\n/&/3;Ta;/android.hardware.biometrics.face-service.22.pixel.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; - sed -i ':a;N;s/\n/&/3;Ta;/manifest_face.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; + #sed -i ':a;N;s/\n/&/3;Ta;/android.hardware.biometrics.face-service.22.pixel.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; + #sed -i ':a;N;s/\n/&/3;Ta;/manifest_face.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile"; } export -f deblobVendorBp; #