Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while printing on Android 12 and above via BlueTooth #60

Closed
arcadius opened this issue Nov 30, 2023 · 1 comment
Closed

Error while printing on Android 12 and above via BlueTooth #60

arcadius opened this issue Nov 30, 2023 · 1 comment

Comments

@arcadius
Copy link

The below error appears when printing on Android 12 or above

Failed to print:
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@879bf1d0: AdapterService getBondedDevices
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2426)
	at android.os.Parcel.createException(Parcel.java:2410)
	at android.os.Parcel.readException(Parcel.java:2393)
	at android.os.Parcel.readException(Parcel.java:2335)
	at android.bluetooth.IBluetooth$Stub$Proxy.getBondedDevices(IBluetooth.java:3379)
	at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2502)
	at com.brother.ptouch.sdk.connection.BluetoothConnection.getPrinterDevice(BluetoothConnection.java:238)
	at com.brother.ptouch.sdk.connection.BluetoothConnection.open(BluetoothConnection.java:56)
	at com.brother.ptouch.sdk.Printer.init(Printer.java:2215)
	at com.brother.ptouch.sdk.Printer.startCommunication(Printer.java:2350)
	at com.brother.ptouch.sdk.printdemo.printprocess.BasePrint$PrinterThread.run(BasePrint.java:713)
@arcadius
Copy link
Author

fixed in PR
#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant