Skip to content
Commit a70dd8c9 authored by Felipe Leme's avatar Felipe Leme
Browse files

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
parent 6625e37e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment