New autofill cmds to enable / disable / check default augmented service.
Also fixed FrameworkResourcesServiceNameResolver so setDefaultServiceEnabled(true) doesn't thrown and exception when it's already true. Example: adb shell cmd content_capture set default-service-enabled 0 true Exception occurred while executing: java.lang.ArrayIndexOutOfBoundsException: src.length=11 srcPos=1 dst.length=11 dstPos=0 length=-1 at java.lang.System.arraycopy(Native Method) at android.util.SparseBooleanArray.removeAt(SparseBooleanArray.java:127) at com.android.server.infra.FrameworkResourcesServiceNameResolver.setDefaultServiceEnabled(FrameworkResourcesServiceNameResolver.java:180) Test: adb shell cmd autofill set default-augmented-service-enabled 0 false Test: adb shell cmd autofill get default-augmented-service-enabled 0 Test: atest CtsAutoFillServiceTestCases Bug: 123952975 Bug: 126266412 Change-Id: If24c69f4451a82c803a7f067956454f93b722f8f
Loading
Please register or sign in to comment