Documentation
¶
Overview ¶
Query network policy settings via the INetworkPolicyManager system service.
Uses INetworkPolicyManager via the "netpolicy" service to check background data restriction, per-UID policy, and metered network restrictions.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/network_policy ./examples/network_policy/ adb push build/network_policy /data/local/tmp/ && adb shell /data/local/tmp/network_policy
Click to show internal directories.
Click to hide internal directories.