diff options
| author | 2025-02-27 18:45:42 +0100 | |
|---|---|---|
| committer | 2025-02-27 10:10:21 -0800 | |
| commit | aea185f3d8d2743f01bdeb6484b734787846f11a (patch) | |
| tree | 4bddfd68fe7d7b49b4fe589f1dba28e4c9f2285d /libs/androidfw/ObbFile.cpp | |
| parent | e01305a74a8f273d4704970d8f7509cf9b651e4f (diff) | |
AppCompatOverridesService: Remove finalizer and unregistration logic
This has no hope of currently working in production, because
DeviceConfig holds a strong reference to the listener, so the finalizer
never gets called - besides, this is a singleton service in
system_process that shouldn't ever get collected.
During testing, the finalizer is unnecessary for the same reason. The
only way the class can be finalized is if the Context and the
DeviceConfig both are unreachable, but then there's really no need to
unregister anymore.
However, during AppCompatOverridesServiceTest the finalizer invokes
DeviceConfig methods on the finalizer thread concurrently with
non-thread-safe stubbing in TestableDeviceConfig, causing occasional
test flakes (that, due to the combined effect of the bugs at b/399645852
cause every subsequent test in the class to fail).
Bug: 397997489
Test: atest AppCompatOverridesServiceTest
Flag: TEST_ONLY
Change-Id: Ic5ed380286df6cd41c9b1a504e237d320c37080c
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions