network_policy

command
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL