commit | 9532f7c682fdd4b1e6e553cd6f61fc0cf2555902 | [log] [tgz] |
---|---|---|
author | Anthony Stange <stange@google.com> | Tue Feb 21 17:57:38 2023 +0000 |
committer | Devin Moore <devinmoore@google.com> | Wed Feb 22 23:15:14 2023 +0000 |
tree | f9dbbbf986ade5e36a838c2ca43f613055085131 | |
parent | c95fa0f0e7c7b73746ff850b85a79fc5f92b784e [diff] |
Add removeInstanceForPackageMethod to SensorManager In order to ensure that clients don't leak their sensor manager instance that we currently store in a static map, they need to be able to remove their instance. Otherwise, this instance is never removed from the list and will hang around until our SensorManage instance is destroyed. Bug: 269014004 Test: Run ./libsensorserviceaidl_fuzzer Change-Id: I52185f74ae8d28b379440235ca6f03c5089081f5