summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-05-05 01:10:29 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-05-05 01:10:29 +0000
commit587c5159e5ebb6b9e5358e0ff95e188f541b62c3 (patch)
tree7a6ccf14e7ecc9cf63c6edeb638232bb09879ed5
parent72c4b673379ebb83b25ea4d76eac8d7bd9051d57 (diff)
parentd052b0b1d1abda205590db2e7db08b377a8e0cb0 (diff)
downloadSecureElement-587c5159e5ebb6b9e5358e0ff95e188f541b62c3.tar.gz
Change-Id: I5593dee7fd95877453893af443dd9ab2ba59b8bb
-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);