[BRLTTY] Latest brltty on android does not work

Peter Lecky peter.lecky at stopka.sk
Mon Mar 3 09:10:03 UTC 2025


Still same crash:

  AndroidRuntime: FATAL EXCEPTION: main
  AndroidRuntime: Process: org.a11y.brltty.android, PID: 796
  AndroidRuntime: java.lang.RuntimeException: Unable to create service 
org.a11y.brltty.android.BrailleService: java.lang.SecurityException: 
Starting FGS with type connectedDevice callerApp=ProcessRecord{69d18ea 
796:org.a11y.brltty.android/u0a350} 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{69d18ea 
796:org.a11y.brltty.android/u0a350} 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
Wouldn't be it this?

https://stackoverflow.com/questions/76943771/foreground-service-crashing-on-android-14 


On 3. 3. 2025 10:02, Dave Mielke wrote:
> [quoted lines by Peter Lecky on 2025/03/03 at 09:41 +0100]
>
>> lrwxrwxrwx 1 android android 89 Jun 16  2021 brltty-dev.apk -> ../brltty/git/master/Android/Gradle/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk
>> Can you please regenerate it?
> It should work now.
>
>> If you use it only to test brltty and not for google pay, then you can try to
>> flash your device with lineageos. Version 22.1 contains Android 15, but i am
>> not sure whether you will be able to install and completely use google
>> services on it.
> No. I use it for all kinds of things.
>
-- 
Peter Lecký Stopka n. o.


More information about the BRLTTY mailing list