Allow calls from secondary user Settings app.
This is so that Face Unlock can be a valid option for a lockscreen.
Otherwise get a PERMISSION_DENIED when uid = 101000.
Change-Id: I0085b27dbd4d2f1988ba654acadd72c30f76a47e
diff --git a/keystore/keystore.cpp b/keystore/keystore.cpp
index 3f13c11..af8c937 100644
--- a/keystore/keystore.cpp
+++ b/keystore/keystore.cpp
@@ -1340,7 +1340,7 @@
struct action* action = actions;
int i;
- while (~user->uid && user->uid != uid) {
+ while (~user->uid && user->uid != (uid % AID_USER)) {
++user;
}
while (action->code && action->code != code) {