libserialport.dart icon indicating copy to clipboard operation
libserialport.dart copied to clipboard

permission denied errno = 13

Open wrjcs opened this issue 3 years ago • 8 comments

Hello, I use this package into my android project. And when I open the port, I got this error permission denied errno = 13 Could you help me? Thanks.

wrjcs avatar Jun 21 '21 07:06 wrjcs

I also have this same issue. Is there any solution? How can I have serial port permission for Android?

donna6355 avatar Aug 18 '22 02:08 donna6355

Same issue for me as well, I can open port on macOS but not able to open them on Android emulator or real device connected having a USB C/RS232 port connected.

@donna6355 @wrjcs did you find any solution?

Thanks.

saguado69 avatar Aug 20 '22 18:08 saguado69

I didn't find the proper solution yet, but I found one possible way to allow permission. You need a rooted android phone and connect it to your PC. Open terminal and try this.

$adb shell 
$su
$chmod 666 /dev/ttys0

Though I failed to root my android phone and couldn't try this.... @saguado69 wish you good luck...

donna6355 avatar Aug 24 '22 00:08 donna6355

Thank you for sharing @donna6355, I find a workaround with usbserial library (https://pub.dev/packages/usb_serial), ao the pitty is that I have to use both libraries for my cross-platform project, but it works fine.

Regards,

S.

saguado69 avatar Aug 25 '22 11:08 saguado69

Thank you for sharing @donna6355, I find a workaround with usbserial library (https://pub.dev/packages/usb_serial), ao the pitty is that I have to use both libraries for my cross-platform project, but it works fine.

Regards,

S.

saguado69 avatar Aug 25 '22 11:08 saguado69

Thank you for sharing @donna6355, I find a workaround with usbserial library (https://pub.dev/packages/usb_serial), ao the pitty is that I have to use both libraries for my cross-platform project, but it works fine.

Regards,

S.

saguado69 avatar Aug 25 '22 11:08 saguado69

Thank you for sharing @donna6355, I find a workaround with usbserial library (https://pub.dev/packages/usb_serial), ao the pitty is that I have to use both libraries for my cross-platform project, but it works fine.

Regards,

S.

saguado69 avatar Aug 25 '22 11:08 saguado69

Thank you for sharing @donna6355, I find a workaround with usbserial library (https://pub.dev/packages/usb_serial), ao the pitty is that I have to use both libraries for my cross-platform project, but it works fine.

Regards,

S.

saguado69 avatar Aug 25 '22 11:08 saguado69