Merge "fix fingerprint condition on sdk level logic" into pi-dev

am: 69e88693d8

Change-Id: Ie587e46c28e81c051103fb5a8d5053d5a4ebd583
This commit is contained in:
Yifan Hong
2018-05-18 12:16:10 -07:00
committed by android-build-merger

View File

@@ -1499,8 +1499,10 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
try {
userId = getUserOrWorkProfileId(clientPackage, userId);
if (userId != mCurrentUserId) {
int firstSdkInt = Build.VERSION.FIRST_SDK_INT;
if (firstSdkInt == 0) firstSdkInt = Build.VERSION.SDK_INT;
File baseDir;
if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.O_MR1) {
if (firstSdkInt <= Build.VERSION_CODES.O_MR1) {
baseDir = Environment.getUserSystemDirectory(userId);
} else {
baseDir = Environment.getDataVendorDeDirectory(userId);