Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d21d3ddf authored by Joanne's avatar Joanne
Browse files

Fix InlineSuggestionRenderService service connection leakage

The system reset the remote InlineRenderService and binds service
when updateLocked() is called but the system doesn’t unbind it.
The updatedLocked() will be called in many conditions like service
change, autofill device config change, etc. These behaviors will
occur during the test that causes the connection
to increase more and more.

To fix the issue, we don't reset the remote InlineRenderService and
only bind the service if it doesn't be set yet and unbind it after
per user service implementation destroyed.

Bug: 242097472
Test: run cts and run command “dumpsys activity services
com.google.android.ext.services”. The connection is the same after
CTS is done.
Test: atest android.autofillservice.cts.inline
Test: atest android.autofillservice.cts.dropdown
Test: manul. Test some top apps, the inline still works.
Test: manual. Test with test app, the dropdown still works.

Change-Id: Ia51ef58b1cc1926385c501c34bd756f7c223b313
parent bcdc0217
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