summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTYM Tsai <tymtsai@google.com>2020-06-04 02:25:37 +0800
committerTYM Tsai <tymtsai@google.com>2020-06-04 02:46:26 +0000
commitba4fecb343e6fc8a1a438d383fde429ae4d18b66 (patch)
tree4286fd962a04e9e8db3b533cc2321021cc8ba3c9
parent938216c0738696e815e0a5b02e78523f4f34de4c (diff)
Fix inline not worked after the service package updated
AutofillService package updated cause autofill framework removed its service from the cached. When next time want to use the service, autofill framework will try to update the service information, but the service will be set as disabled due to can not get the service information from package manager. Adds the service package policy flag: PACKAGE_UPDATE_POLICY_REFRESH_EAGER to early make the cached to avoid this issue. Bug: 158034069 Test: manual Test: atest CtsAutoFillServiceTestCases Change-Id: Ib67617fac8dcaa92b76768bd61aa19211eac523d
-rw-r--r--services/autofill/java/com/android/server/autofill/AutofillManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/autofill/java/com/android/server/autofill/AutofillManagerService.java b/services/autofill/java/com/android/server/autofill/AutofillManagerService.java
index 42e859f9d713..089861bee479 100644
--- a/services/autofill/java/com/android/server/autofill/AutofillManagerService.java
+++ b/services/autofill/java/com/android/server/autofill/AutofillManagerService.java
@@ -192,7 +192,7 @@ public final class AutofillManagerService
public AutofillManagerService(Context context) {
super(context,
new SecureSettingsServiceNameResolver(context, Settings.Secure.AUTOFILL_SERVICE),
- UserManager.DISALLOW_AUTOFILL);
+ UserManager.DISALLOW_AUTOFILL, PACKAGE_UPDATE_POLICY_REFRESH_EAGER);
mUi = new AutoFillUI(ActivityThread.currentActivityThread().getSystemUiContext());
mAm = LocalServices.getService(ActivityManagerInternal.class);