android_packages_modules_Co.../framework
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean 98732dbd6d Use the binder token to reference AutoKI in alarm
This patch uses the binder token represented by the callback
to communicate the identity of the AutoOnOffKeepalive through
the alarm mechanism. This is a lot more robust and easy to
understand.

Addressing this, on top of the robustness and readability
advantages, corrects three bugs.

• The |obj| in the message to CMD_MONITOR_AUTOMATIC_KEEPALIVE
  is now the binder token both on the sender side and the
  receiver side, while the previous code had a Network in the
  sender while the receiver expected AutoOnOffKeepalive,
  crashing the system server with a wrong cast.
• The intent sent in the alarm would have a yet-uninitialized
  value for the slot, so it would not be possible to find the
  auto keepalive when the alarm fires.
• When the slot is reassigned, the alarm continued to fire
  with the same slot value, so the auto keepalive would no
  longer be found after a pause/resume cycle that would
  change the slot.

Test: FrameworksNetTests
Change-Id: Ibdbfcd884e0d3559206cbaae7b6b7a524972c3ca
2023-02-04 08:05:00 +00:00
..
aidl-export/android/net Merge history of ConnectivityT 2022-03-25 11:02:45 +00:00
api [DK2]Add new SocketKeepalive.start to dynamically control keepalive 2023-01-20 13:51:20 +09:00
jni fix native jni method signature - these are all static methods 2022-07-28 18:08:22 +00:00
proto [MS54.3] Move NetworkStats to updatable sources 2022-02-28 03:24:19 +00:00
src/android/net Use the binder token to reference AutoKI in alarm 2023-02-04 08:05:00 +00:00
Android.bp Add CDM dependency in Tethering 2022-12-16 17:55:53 +00:00
jarjar-excludes.txt Add jarjar rules generator 2022-06-14 09:11:27 +00:00