Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94e0dc44 authored by Jiwen 'Steve' Cai's avatar Jiwen 'Steve' Cai
Browse files

Use /data/vendor_ce/0/facedata for FaceHAL's secure storage

Also remove "import android.provider.Settings" per checkstyle_hook's
warning.

Bug: 129754192
Test: Manually verify that debug data is written into
      /data/vendor_ce/0/facedata.
Change-Id: I8a00c338c2a665510757fc8686f802b3badf2765
parent a23242a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -887,7 +887,7 @@ public class FaceService extends BiometricServiceBase {
            try {
                userId = getUserOrWorkProfileId(clientPackage, userId);
                if (userId != mCurrentUserId) {
                    final File baseDir = Environment.getDataVendorDeDirectory(userId);
                    final File baseDir = Environment.getDataVendorCeDirectory(userId);
                    final File faceDir = new File(baseDir, FACE_DATA_DIR);
                    if (!faceDir.exists()) {
                        if (!faceDir.mkdir()) {