factory_reset

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: 9 Imported by: 0

Documentation

Overview

Factory reset demonstration via DevicePolicyManager.

WARNING: This example shows the API but does NOT actually perform a factory reset. The WipeDataWithReason call is commented out to prevent accidental data loss. Uncomment it only on emulators or devices you intend to wipe.

Build:

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

Jump to

Keyboard shortcuts

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