package_monitor

command
v0.0.9 Latest Latest
Warning

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

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

Documentation

Overview

Monitor installed packages by polling the PackageManager.

Uses IPackageManager via the "package" service to list all installed packages and detect changes by comparing against a previous snapshot. This demonstrates how to build a package monitoring tool using the binder interface, since real-time broadcast receivers require a full Android app context.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/package_monitor ./examples/package_monitor/
adb push build/package_monitor /data/local/tmp/ && adb shell /data/local/tmp/package_monitor

Jump to

Keyboard shortcuts

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