Proper clean up when Ui test automation service is unregistered or dies.
The UI test automation service was not removed from the list of enabled and installed service where it was explicitly added on registration. This was leaving the accessibility manager service in an inconsistent state. bug:8185435 Change-Id: Ice17cdef361fe98ce34f8dd01ec11dbad6c4d0c2
This commit is contained in:
committed by
The Android Automerger
parent
3d850df9b4
commit
a514b4fe80
@@ -2105,6 +2105,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
if (mIsAutomation) {
|
||||
// We no longer have an automation service, so restore
|
||||
// the state based on values in the settings database.
|
||||
userState.mInstalledServices.remove(mAccessibilityServiceInfo);
|
||||
userState.mEnabledServices.remove(mComponentName);
|
||||
userState.mUiAutomationService = null;
|
||||
userState.mUiAutomationServiceClient = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user