android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean 5bcc838f4e Fix a possible system server crash
The scenario is as follows : an app registers a network callback,
then unregisters it and dies immediately after. In this scenario,
the system server will receive a notification of the binder death
and enqueue a call to handleRemoveNetworkRequest. If the callback
unregister message has been process first, this call would result
in unlinkToDeath being called twice on the same Binder, crashing.
This patch fixes the problem by using handleReleaseNetworkRequest
instead of Remove, which looks up the NRI in a map on the handler
thread before calling Remove, returning without doing anything if
the NRI has already been removed.

Test: ConnectivityServiceTest
Test: New test for this
Bug: 194394697
Change-Id: I82a28c37450146838410bf5a059aac295a985fca
2021-07-27 04:37:29 +00:00
..
connectivity Listen EXTERNAL_APPLICATIONS_AVAILABLE intent 2021-07-02 22:35:26 +08:00
net Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
ConnectivityServiceTest.java Fix a possible system server crash 2021-07-27 04:37:29 +00:00
IpSecServiceParameterizedTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecServiceRefcountedResourceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
LegacyTypeTrackerTest.kt Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetIdManagerTest.kt Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetworkManagementServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NsdServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00