OSDN Git Service

Fix CTS case failed in CtsAutoFillServiceTestCases
authorshitian.ma <shitian.ma@mediatek.com>
Thu, 11 Jul 2019 01:38:31 +0000 (09:38 +0800)
committerAdam He <adamhe@google.com>
Wed, 17 Jul 2019 18:08:58 +0000 (11:08 -0700)
The case failed due to AutofillManager can not find the ResolveInfo of AutofillCompatAccessibilityService.
AutofillCompatAccessibilityService is not visible for instant App.
Cts test process is working at other users. And the calling App is instant App.
So cts test process can’t get service info of AutofillCompatAccessibilityService.

Bug: 137236035
Test: run cts -m CtsAutoFillServiceTestCases
Change-Id: I4dffc615ea1d8290bc02e51a9aa055fa0ead467f

core/res/AndroidManifest.xml

index eda6cd0..a3fccd9 100644 (file)
         <service
                 android:name="com.android.server.autofill.AutofillCompatAccessibilityService"
                 android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
+                android:visibleToInstantApps="true"
                 android:exported="true">
             <meta-data
                     android:name="android.accessibilityservice"