Merge "fix fingerprint condition on sdk level logic" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
69e88693d8
@@ -1499,8 +1499,10 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
|
|||||||
try {
|
try {
|
||||||
userId = getUserOrWorkProfileId(clientPackage, userId);
|
userId = getUserOrWorkProfileId(clientPackage, userId);
|
||||||
if (userId != mCurrentUserId) {
|
if (userId != mCurrentUserId) {
|
||||||
|
int firstSdkInt = Build.VERSION.FIRST_SDK_INT;
|
||||||
|
if (firstSdkInt == 0) firstSdkInt = Build.VERSION.SDK_INT;
|
||||||
File baseDir;
|
File baseDir;
|
||||||
if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.O_MR1) {
|
if (firstSdkInt <= Build.VERSION_CODES.O_MR1) {
|
||||||
baseDir = Environment.getUserSystemDirectory(userId);
|
baseDir = Environment.getUserSystemDirectory(userId);
|
||||||
} else {
|
} else {
|
||||||
baseDir = Environment.getDataVendorDeDirectory(userId);
|
baseDir = Environment.getDataVendorDeDirectory(userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user