Android Doze
- How is network access restricted in device idle?
- Android P
- Uses
Apf
: controller
- Uses
- Android M
- Introduced by – who else? – Dianne Hackborn in https://android.googlesource.com/platform/frameworks/base/+/8ad2af7%5E%21/#F9
- No Apf.
- DeviceIdleController toggles states.
- Detected by https://android.googlesource.com/platform/frameworks/base/+/8ad2af7/services/core/java/com/android/server/net/NetworkPolicyManagerService.java
- Set by http://androidxref.com/6.0.0_r1/xref/frameworks/base/services/core/java/com/android/server/NetworkManagementService.java
- Which triggers http://androidxref.com/6.0.0_r1/xref/frameworks/base/services/core/java/com/android/server/NativeDaemonConnector.java
- through the Netdconnector: http://androidxref.com/6.0.0_r1/xref/system/netd/
- using iptables under the hood
- Android P