I've tried several examples on Android 10, and they all fail at the GetService call.
Below is the error message I encountered when running the package_queryexample.
PS D:\goProject\test_binder> .\build.ps1
test_binder: 1 file pushed, 0 skipped. 2.3 MB/s (5908140 bytes in 2.503s)
2026/06/27 04:39:15 [W C:/Users/admin/go/pkg/mod/github.com/!android!go!lab/binder@v0.0.9/binder/versionaware/transport.go:718] versionaware: saveCachedTable: MkdirAll(/tmp/.binder_cache): mkdir /tmp: read-only file system
get package service: servicemanager: GetService("package"): versionaware: method android.os.IServiceManager.getService not found in version 29.device
I verified via command line that the service is present.
PS D:\goProject\test_binder> adb shell "service list | grep package"
132 package_native: [android.content.pm.IPackageManagerNative]
133 package: [android.content.pm.IPackageManager]
android device info: android10 arm64
PS D:\goProject\test_binder> adb shell "getprop | grep -E 'ro.product.cpu|ro.build.version.sdk'"
[ro.build.version.sdk]: [29]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
I've tried several examples on Android 10, and they all fail at the
GetServicecall.Below is the error message I encountered when running the
package_queryexample.I verified via command line that the service is present.
android device info: android10 arm64