mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

facing Issue in android12+ or android 13 with this library

uniqueram opened this issue · comments

Everything was working fine until Android 11 but things broke afterward, The application is opening as it should in Android 13 but when the print button is pressed from the scale the application keeps on crashing Also using the external device it is hard to logcat the possible error so I am stuck here what went wrong in android 13 when print button is pressed application crashed. I think the possible error is due to USB communication when the communication is initiated it crashes.

I have tried #494 without any success.

application crashes only when the data is sent from the scale.

please provide callstack and use more specific title

As I am unable to log the problem as the application is not connected to android studio while using with the scale via USB cable so asking anyone facing issue while running this application in android 12+

You can connect adb/android-studio over wifi. Setup sometimes a bit shaky for me, e.g. USB adb connection first, then switch to tcp, but sometimes only working on newly rebooted Android device.

Does the same issue happen with https://github.com/kai-morich/SimpleUsbTerminal?

I have solved the issue in one place I haven't consider the pendingIntent.flag_Immutable:0; after placing this it works.