Merge "FingerprintService: requires ro.product.first_api_level" into pi-dev
am: 908b548f3c
Change-Id: Id568f13a8f143e0c05c0efe482e0a05158127114
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user