Skip to content

Commit d6dc743

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
docs: add bindercli quick start section after usage examples
Condensed install + 4 example commands with a link to the full bindercli reference section below.
1 parent e8989f0 commit d6dc743

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,35 @@ More examples: [`examples/`](examples/)
155155
| [`softap_wifi_hal`](examples/softap_wifi_hal/) | WiFi chip info, AP interface state |
156156
| [`softap_tether_offload`](examples/softap_tether_offload/) | Tethering offload config, stats |
157157

158+
## bindercli Quick Start
159+
160+
`bindercli` lets you call any Android system service from the command line — no Go code needed.
161+
162+
**Install and deploy:**
163+
164+
```bash
165+
GOOS=linux GOARCH=arm64 go build -o bindercli ./cmd/bindercli/
166+
adb push bindercli /data/local/tmp/
167+
```
168+
169+
**Try it:**
170+
171+
```bash
172+
# List all binder services
173+
adb shell /data/local/tmp/bindercli service list
174+
175+
# Check battery level
176+
adb shell /data/local/tmp/bindercli android.hardware.health.IHealth get-health-info
177+
178+
# Query ActivityManager
179+
adb shell /data/local/tmp/bindercli android.app.IActivityManager get-process-limit
180+
181+
# Get GPS hardware info
182+
adb shell /data/local/tmp/bindercli android.location.ILocationManager get-gnss-hardware-model-name
183+
```
184+
185+
See the full [bindercli reference](#bindercli) for all subcommands and more examples.
186+
158187
## Building and Running
159188

160189
Binaries are pure Go (no CGO) and run directly on Android:

0 commit comments

Comments
 (0)