Skip to content

Commit 0a928c9

Browse files
chore: regenerate specs and Go code with for-loop and writeStringList support
1 parent 73a1693 commit 0a928c9

270 files changed

Lines changed: 2409 additions & 691397 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Go Version](https://img.shields.io/github/go-mod/go-version/AndroidGoLab/binder)](go.mod)
88
[![Ask AI](https://img.shields.io/badge/Ask_AI-Context7-059669)](https://context7.com/androidgolab/binder)
99

10-
Call Android system services from pure Go. Provides ~14,000 type-safe Go methods across 1,500+ Android interfaces — ActivityManager, PowerManager, SurfaceFlinger, PackageManager, audio, camera and sensor HALs, and more — by speaking the Binder IPC wire protocol directly via `/dev/binder` ioctl syscalls. No Java, no NDK, no cgo required.
10+
Call Android system services from pure Go. Provides ~9,000 type-safe Go methods across 1,500+ Android interfaces — ActivityManager, PowerManager, SurfaceFlinger, PackageManager, audio, camera and sensor HALs, and more — by speaking the Binder IPC wire protocol directly via `/dev/binder` ioctl syscalls. No Java, no NDK, no cgo required.
1111

1212
Includes a complete AIDL compiler that parses Android Interface Definition Language files and generates the Go proxies, a version-aware runtime that adapts transaction codes across Android API levels, and a CLI tool (`bindercli`) for interactive service discovery and invocation.
1313

@@ -1504,7 +1504,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
15041504

15051505
## bindercli
15061506

1507-
`bindercli` is a unified command-line tool for interacting with Android Binder services and the AIDL compiler. It auto-generates subcommands for every AIDL interface in the project (1,500+ interfaces, 14,000+ methods), so you can call any Android system service method directly from the command line with typed flags.
1507+
`bindercli` is a unified command-line tool for interacting with Android Binder services and the AIDL compiler. It auto-generates subcommands for every AIDL interface in the project (1,500+ interfaces, 9,000+ methods), so you can call any Android system service method directly from the command line with typed flags.
15081508

15091509
Build and deploy:
15101510

@@ -2064,7 +2064,7 @@ git submodule update --init --depth 1
20642064
go run ./tools/cmd/aospgen -3rdparty tools/pkg/3rdparty -output . -smoke-tests
20652065
```
20662066

2067-
This discovers all AIDL files across `frameworks-base`, `frameworks-native`, `hardware-interfaces`, and `system-hardware-interfaces`, infers search roots from package declarations, and generates Go proxies for all AOSP services. The current AOSP snapshot produces **5,151 Go files** across **407 packages**.
2067+
This discovers all AIDL files across `frameworks-base`, `frameworks-native`, `hardware-interfaces`, and `system-hardware-interfaces`, infers search roots from package declarations, and generates Go proxies for all AOSP services. The current AOSP snapshot produces **3,213 Go files** across **341 packages**.
20682068

20692069
### Transaction Code Resolution
20702070

@@ -2356,11 +2356,11 @@ See the example app at [`examples/gomobile/`](examples/gomobile/).
23562356
│ └── driver.go Open, mmap, ioctl BINDER_WRITE_READ
23572357
├── servicemanager/ ServiceManager client
23582358
├── errors/ AIDL exception types (ExceptionCode, StatusError)
2359-
├── android/ Pre-generated AOSP service proxies (5,151 files)
2359+
├── android/ Pre-generated AOSP service proxies (3,213 files)
23602360
│ ├── app/ ActivityManager, AlarmManager, ...
23612361
│ ├── os/ ServiceManager, PowerManager, ...
23622362
│ ├── hardware/ HAL interfaces
2363-
│ └── ... 407 packages total
2363+
│ └── ... 341 packages total
23642364
├── com/ AOSP com.android.* service proxies
23652365
├── examples/ 106 runnable examples
23662366
└── .github/workflows/ CI configuration

android/app/admin/devicepolicystate.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/enforcingadmin.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/parcelablegranteemap.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/applicationexitinfo.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/contentproviderholder.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/notification.go

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/notificationchannelgroup.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/notificationhistory.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/pendingintent.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)