summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Yu <jackcwyu@google.com>2021-05-04 11:06:36 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-04 11:06:36 +0000
commitd052b0b1d1abda205590db2e7db08b377a8e0cb0 (patch)
tree7a6ccf14e7ecc9cf63c6edeb638232bb09879ed5
parent1b93ebc5b07fc90f670da24a29c47e7b2f0b505f (diff)
parent1371b44d5b5f50441a4dce38a4af705bb2dc1317 (diff)
downloadSecureElement-d052b0b1d1abda205590db2e7db08b377a8e0cb0.tar.gz
Original change: https://android-review.googlesource.com/c/platform/packages/apps/SecureElement/+/1688294 Change-Id: I9307fa05a2ad6d7ac8c04d713645cd035d611486
-rw-r--r--src/com/android/se/Terminal.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/com/android/se/Terminal.java b/src/com/android/se/Terminal.java
index 139390b..d97dd2f 100644
--- a/src/com/android/se/Terminal.java
+++ b/src/com/android/se/Terminal.java
@@ -688,18 +688,10 @@ public class Terminal {
// Return if not connected
return null;
}
- // Attempt to initialize the access control enforcer if it failed in the previous attempt
- // due to a kind of temporary failure or no rule was found.
+ // Return if the access control enforcer failed in previous attempt or no rule was found.
if (mAccessControlEnforcer == null || mAccessControlEnforcer.isNoRuleFound()) {
- try {
- initializeAccessControl();
- Log.i(mTag, "AccessControlEnforcer initialized");
- // Just finished to initialize the access control enforcer.
- // It is too much to check the refresh tag in this case.
- } catch (Exception e) {
- Log.i(mTag, "isNfcEventAllowed Exception: " + e.getMessage());
- return null;
- }
+ Log.i(mTag, "isNfcEventAllowed: No access rules for checking.");
+ return null;
}
mAccessControlEnforcer.setPackageManager(packageManager);