[BRLTTY] Latest brltty on android does not work
Peter Lecky
peter.lecky at stopka.sk
Mon Mar 3 07:04:08 UTC 2025
Hello,
We have other exception now:
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: org.a11y.brltty.android, PID: 24186
AndroidRuntime: java.lang.RuntimeException: Unable to create service
org.a11y.brltty.android.BrailleService: java.lang.SecurityException:
Starting FGS with type connectedDevice callerApp=ProcessRecord{4a8c71d
24186:org.a11y.brltty.android/u0a348} targetSDK=34 requires permissions:
all of the permissions allOf=true
[android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE] any of the
permissions allOf=false [android.permission.BLUETOOTH_ADVERTISE,
android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH_SCAN,
android.permission.CHANGE_NETWORK_STATE,
android.permission.CHANGE_WIFI_STATE,
android.permission.CHANGE_WIFI_MULTICAST_STATE, android.permission.NFC,
android.permission.TRANSMIT_IR, android.permission.UWB_RANGING, USB
Device, USB Accessory]
AndroidRuntime: at
android.app.ActivityThread.handleCreateService(ActivityThread.java:5196)
AndroidRuntime: at
android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
AndroidRuntime: at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2514)
AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:106)
AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:230)
AndroidRuntime: at android.os.Looper.loop(Looper.java:319)
AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:9063)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
AndroidRuntime: Caused by: java.lang.SecurityException: Starting FGS
with type connectedDevice callerApp=ProcessRecord{4a8c71d
24186:org.a11y.brltty.android/u0a348} targetSDK=34 requires permissions:
all of the permissions allOf=true
[android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE] any of the
permissions allOf=false [android.permission.BLUETOOTH_ADVERTISE,
android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH_SCAN,
android.permission.CHANGE_NETWORK_STATE,
android.permission.CHANGE_WIFI_STATE,
android.permission.CHANGE_WIFI_MULTICAST_STATE, android.permission.NFC,
android.permission.TRANSMIT_IR, android.permission.UWB_RANGING, USB
Device, USB Accessory]
AndroidRuntime: at
android.os.Parcel.createExceptionOrNull(Parcel.java:3091)
AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3075)
AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3058)
AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3000)
AndroidRuntime: at
android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7248)
AndroidRuntime: at
android.app.Service.startForeground(Service.java:775)
AndroidRuntime: at
org.a11y.brltty.android.BrailleNotification.create(BrailleNotification.java:182)
AndroidRuntime: at
org.a11y.brltty.android.BrailleService.onCreate(BrailleService.java:103)
AndroidRuntime: at
android.app.ActivityThread.handleCreateService(ActivityThread.java:5183)
AndroidRuntime: ... 9 more
And the crash on Android 16 (i still thing that this is possibly a
problem of early beta of Android):
$ ./adb install d:/brltty-latest.apk
Performing Streamed Install
adb: failed to install d:/brltty-latest.apk: Failure
[INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS:
Failed to extract native libraries, res=-113]
With best
Peter
On 2. 3. 2025 22:38, Dave Mielke wrote:
> [quoted lines by Peter Lecky on 2025/02/28 at 13:12 +0100]
>
>> - Same happens with 6.7 build from the webpage (https://brltty.app/archive)
> Please try the latest build that's on brltty.app:
>
> brltty -> Download -> Android -> Sideloading -> brltty-latest.apk
>
> Which is at: http://brltty.app/archive/Android/brltty-latest.apk
>
>> - 6.6 works fine on Android 14,
> It's a feature that was added in Android 10 but they only started enforcing it in Android 14. I was unaware of it till your post.
>
>> and canot be installed on beta of 16 with very ugly error, but i believe that because of early beta of Android.
> I'm curious. What's the error?
>
--
Peter Lecký Stopka n. o.
More information about the BRLTTY
mailing list