Skip to content

Commit b454f61

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix: regenerate CLI commands and README after codegen changes
The updated code generator changed which types are in types sub-packages, which affected interface method signatures visible to spec2cli. Regenerate CLI and README to match.
1 parent 886e45b commit b454f61

2 files changed

Lines changed: 333 additions & 9 deletions

File tree

README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ More examples: [`examples/`](examples/)
546546
| [`activity_manager`](examples/activity_manager/) | Process limits, monkey test flag, permission checks |
547547
| [`audio_status`](examples/audio_status/) | Audio device info, volume state |
548548
| [`battery_health`](examples/battery_health/) | Capacity, charge status, current draw |
549+
| [`bluetooth_status`](examples/bluetooth_status/) | Query Bluetooth adapter status and scan for BLE devices via binder. |
549550
| [`camera_capture`](examples/camera_capture/) | Camera frame capture using gralloc-allocated buffers. |
550551
| [`camera_connect`](examples/camera_connect/) | Camera device connection with callback stub |
551-
| [`camera_fwk`](examples/camera_fwk/) | |
552552
| [`device_info`](examples/device_info/) | Device properties, build info |
553553
| [`display_info`](examples/display_info/) | Display IDs, brightness, night mode |
554554
| [`error_handling`](examples/error_handling/) | Graceful error handling: service checks, typed errors, permissions |
@@ -562,6 +562,7 @@ More examples: [`examples/`](examples/)
562562
| [`power_status`](examples/power_status/) | Power supply state, charging info |
563563
| [`security_test_apk`](examples/security_test_apk/) | Binary security_test_apk probes whether an app-sandboxed process can |
564564
| [`server_service`](examples/server_service/) | Register a Go service and call it back via binder |
565+
| [`server_service_aidl`](examples/server_service_aidl/) | Register a Go binder service using a generated AIDL stub. |
565566
| [`softap_manage`](examples/softap_manage/) | WiFi hotspot enable/disable, config |
566567
| [`softap_tether_offload`](examples/softap_tether_offload/) | Tethering offload config, stats |
567568
| [`softap_wifi_hal`](examples/softap_wifi_hal/) | WiFi chip info, AP interface state |
@@ -620,7 +621,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
620621

621622
<!-- BEGIN GENERATED PACKAGES -->
622623

623-
380 packages: 1507 interfaces, 2337 parcelables, 952 enums, 133 unions.
624+
385 packages: 1513 interfaces, 2370 parcelables, 957 enums, 133 unions.
624625

625626
<details>
626627
<summary><strong>aaudio</strong> (1 packages)</summary>
@@ -722,7 +723,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
722723

723724
| Package | Interfaces | Parcelables | Enums | Unions | Import Path |
724725
|---|---|---|---|---|---|
725-
| [`android/bluetooth`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/bluetooth) | 48 | 28 | 0 | 0 | `github.com/AndroidGoLab/binder/android/bluetooth` |
726+
| [`android/bluetooth`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/bluetooth) | 50 | 32 | 1 | 0 | `github.com/AndroidGoLab/binder/android/bluetooth` |
726727
| [`android/bluetooth/le`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/bluetooth/le) | 4 | 12 | 0 | 0 | `github.com/AndroidGoLab/binder/android/bluetooth/le` |
727728

728729
</details>
@@ -846,7 +847,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
846847
</details>
847848

848849
<details>
849-
<summary><strong>android/hardware</strong> (117 packages)</summary>
850+
<summary><strong>android/hardware</strong> (118 packages)</summary>
850851

851852
| Package | Interfaces | Parcelables | Enums | Unions | Import Path |
852853
|---|---|---|---|---|---|
@@ -872,6 +873,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
872873
| [`android/hardware/bluetooth/audio`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/bluetooth/audio) | 3 | 83 | 26 | 12 | `github.com/AndroidGoLab/binder/android/hardware/bluetooth/audio` |
873874
| [`android/hardware/bluetooth/finder`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/bluetooth/finder) | 1 | 1 | 0 | 0 | `github.com/AndroidGoLab/binder/android/hardware/bluetooth/finder` |
874875
| [`android/hardware/bluetooth/lmp_event`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/bluetooth/lmp_event) | 2 | 1 | 3 | 0 | `github.com/AndroidGoLab/binder/android/hardware/bluetooth/lmp_event` |
876+
| [`android/hardware/bluetooth/offload/leaudio`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/bluetooth/offload/leaudio) | 2 | 1 | 0 | 0 | `github.com/AndroidGoLab/binder/android/hardware/bluetooth/offload/leaudio` |
875877
| [`android/hardware/bluetooth/ranging`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/bluetooth/ranging) | 3 | 9 | 12 | 0 | `github.com/AndroidGoLab/binder/android/hardware/bluetooth/ranging` |
876878
| [`android/hardware/boot`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/boot) | 1 | 0 | 1 | 0 | `github.com/AndroidGoLab/binder/android/hardware/boot` |
877879
| [`android/hardware/broadcastradio`](https://pkg.go.dev/github.com/AndroidGoLab/binder/android/hardware/broadcastradio) | 4 | 11 | 5 | 1 | `github.com/AndroidGoLab/binder/android/hardware/broadcastradio` |
@@ -1283,7 +1285,17 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
12831285
</details>
12841286

12851287
<details>
1286-
<summary><strong>com/android</strong> (60 packages)</summary>
1288+
<summary><strong>bluetooth/constants</strong> (2 packages)</summary>
1289+
1290+
| Package | Interfaces | Parcelables | Enums | Unions | Import Path |
1291+
|---|---|---|---|---|---|
1292+
| [`bluetooth/constants`](https://pkg.go.dev/github.com/AndroidGoLab/binder/bluetooth/constants) | 0 | 0 | 1 | 0 | `github.com/AndroidGoLab/binder/bluetooth/constants` |
1293+
| [`bluetooth/constants/aics`](https://pkg.go.dev/github.com/AndroidGoLab/binder/bluetooth/constants/aics) | 0 | 0 | 3 | 0 | `github.com/AndroidGoLab/binder/bluetooth/constants/aics` |
1294+
1295+
</details>
1296+
1297+
<details>
1298+
<summary><strong>com/android</strong> (61 packages)</summary>
12871299

12881300
| Package | Interfaces | Parcelables | Enums | Unions | Import Path |
12891301
|---|---|---|---|---|---|
@@ -1322,6 +1334,7 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
13221334
| [`com/android/onemedia`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/onemedia) | 2 | 0 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/onemedia` |
13231335
| [`com/android/onemedia/playback`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/onemedia/playback) | 1 | 0 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/onemedia/playback` |
13241336
| [`com/android/printspooler/renderer`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/printspooler/renderer) | 2 | 0 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/printspooler/renderer` |
1337+
| [`com/android/server/bluetooth`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/server/bluetooth) | 1 | 28 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/server/bluetooth` |
13251338
| [`com/android/server/inputflinger`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/server/inputflinger) | 6 | 3 | 1 | 0 | `github.com/AndroidGoLab/binder/com/android/server/inputflinger` |
13261339
| [`com/android/server/power/stats`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/server/power/stats) | 0 | 1 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/server/power/stats` |
13271340
| [`com/android/smspush/unitTests`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/android/smspush/unitTests) | 1 | 0 | 0 | 0 | `github.com/AndroidGoLab/binder/com/android/smspush/unitTests` |
@@ -1350,6 +1363,15 @@ See the full [bindercli reference](#bindercli) for all subcommands and more exam
13501363

13511364
</details>
13521365

1366+
<details>
1367+
<summary><strong>com/example</strong> (1 packages)</summary>
1368+
1369+
| Package | Interfaces | Parcelables | Enums | Unions | Import Path |
1370+
|---|---|---|---|---|---|
1371+
| [`com/example`](https://pkg.go.dev/github.com/AndroidGoLab/binder/com/example) | 1 | 0 | 0 | 0 | `github.com/AndroidGoLab/binder/com/example` |
1372+
1373+
</details>
1374+
13531375
<details>
13541376
<summary><strong>com/google</strong> (1 packages)</summary>
13551377

@@ -1960,7 +1982,7 @@ git submodule update --init --depth 1
19601982
go run ./tools/cmd/aospgen -3rdparty tools/pkg/3rdparty -output . -smoke-tests
19611983
```
19621984

1963-
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,097 Go files** across **399 packages**.
1985+
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,174 Go files** across **406 packages**.
19641986

19651987
### Transaction Code Resolution
19661988

@@ -2252,12 +2274,12 @@ See the example app at [`examples/gomobile/`](examples/gomobile/).
22522274
│ └── driver.go Open, mmap, ioctl BINDER_WRITE_READ
22532275
├── servicemanager/ ServiceManager client
22542276
├── errors/ AIDL exception types (ExceptionCode, StatusError)
2255-
├── android/ Pre-generated AOSP service proxies (5,097 files)
2277+
├── android/ Pre-generated AOSP service proxies (5,174 files)
22562278
│ ├── app/ ActivityManager, AlarmManager, ...
22572279
│ ├── os/ ServiceManager, PowerManager, ...
22582280
│ ├── hardware/ HAL interfaces
2259-
│ └── ... 399 packages total
2281+
│ └── ... 406 packages total
22602282
├── com/ AOSP com.android.* service proxies
2261-
├── examples/ 23 runnable examples
2283+
├── examples/ 24 runnable examples
22622284
└── .github/workflows/ CI configuration
22632285
```

0 commit comments

Comments
 (0)