clipboard_monitor

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

Documentation

Overview

Set and read clipboard text via the Android clipboard binder service.

Demonstrates actual clipboard copy-paste through the IClipboard binder interface: sets a plain-text clip using the generated ClipData struct, reads it back with ClipData.UnmarshalParcel, and verifies the round-trip.

Build:

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

Jump to

Keyboard shortcuts

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