Documentation
¶
Overview ¶
Query network configuration via the netd system service.
Uses INetd via the "netd" service to check IP forwarding status and OEM network management. The netd service provides low-level network configuration including routing and interface management.
Note: Most netd operations require root or AID_SYSTEM. There is no DNS resolver AIDL proxy in the generated code; DNS configuration is queried indirectly through netd's network management.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/dns_config ./examples/dns_config/ adb push build/dns_config /data/local/tmp/ && adb shell /data/local/tmp/dns_config
Click to show internal directories.
Click to hide internal directories.