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

Skip to content
Commit bd3b0e25 authored by Sal Savage's avatar Sal Savage
Browse files

Don't remove an account we haven't created yet

This change adds a boolean check to make sure we don't try to remove an
AccountManager account that we haven't created. Without the boolean
check, a java.lang.SecurityException can be thrown.

We risk getting into this state in the real world if we try to connect
and subsequently disconnect a device before our AccountManagerService is
up and associated with our process. Simple quick adapter toggles where
we try to connect to an out of range or off PBAP Server device can cause
the issue to very rarely appear.

Bug: 310662485
Flag: EXEMPT, simple boolean check with a provided test
Test: atest PbapClientConnectionHandlerTest.java
Change-Id: Ic78e63a89d27ab5e7adf3b8d5458f1b61e85f83b
parent 68fcce00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment