Documentation
¶
Overview ¶
Query app hibernation status via the AppHibernationService.
Uses IAppHibernationService via the "app_hibernation" service to check which packages are hibernating globally and for the current user, and whether OAT artifact deletion is enabled.
Note: AppHibernationService was introduced in Android 12 (API 31). Requires system permissions to query hibernation state.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/app_hibernation ./examples/app_hibernation/ adb push build/app_hibernation /data/local/tmp/ && adb shell /data/local/tmp/app_hibernation
Click to show internal directories.
Click to hide internal directories.