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

Commit 45646123 authored by Yifan Hong's avatar Yifan Hong
Browse files

FingerprintService: requires ro.product.first_api_level

Test: fingerprint registration works
Bug: 79950359
Change-Id: I1c75b9258a5c63b23fa2c546f002a596c9d55dc3
parent 6555a9fa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1500,7 +1500,10 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
                userId = getUserOrWorkProfileId(clientPackage, userId);
                if (userId != mCurrentUserId) {
                    int firstSdkInt = Build.VERSION.FIRST_SDK_INT;
                    if (firstSdkInt == 0) firstSdkInt = Build.VERSION.SDK_INT;
                    if (firstSdkInt < Build.VERSION_CODES.BASE) {
                        Slog.e(TAG, "First SDK version " + firstSdkInt + " is invalid; must be " +
                                "at least VERSION_CODES.BASE");
                    }
                    File baseDir;
                    if (firstSdkInt <= Build.VERSION_CODES.O_MR1) {
                        baseDir = Environment.getUserSystemDirectory(userId);