From ba4fecb343e6fc8a1a438d383fde429ae4d18b66 Mon Sep 17 00:00:00 2001 From: TYM Tsai Date: Thu, 4 Jun 2020 02:25:37 +0800 Subject: [PATCH] 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 --- .../com/android/server/autofill/AutofillManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/autofill/java/com/android/server/autofill/AutofillManagerService.java b/services/autofill/java/com/android/server/autofill/AutofillManagerService.java index 42e859f9d7135..089861bee479a 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);