Add faceunlock to whitelist xml
diff --git a/app/src/main/Android.bp b/app/src/main/Android.bp
index e89bcea..d109a4e 100644
--- a/app/src/main/Android.bp
+++ b/app/src/main/Android.bp
@@ -19,3 +19,9 @@
jni_libs : ["libtensorflowlite_jni"],
vintf_fragments: ["manifest_face_lmodroid.xml"],
}
+
+prebuilt_etc {
+ name: "whitelist_faceunlock.xml",
+ src: "whitelist_faceunlock.xml",
+ sub_dir: "sysconfig",
+}
diff --git a/app/src/main/whitelist_faceunlock.xml b/app/src/main/whitelist_faceunlock.xml
new file mode 100644
index 0000000..ce88e6e
--- /dev/null
+++ b/app/src/main/whitelist_faceunlock.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2023 LibreMobileOS Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<config>
+ <allow-in-power-save package="package:com.libremobileos.faceunlock" />
+</config>