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

No permission to read or write this serial port even after setting suPath Android. #22

Open
KeaganFerrao opened this issue Feb 2, 2022 · 2 comments

Comments

@KeaganFerrao
Copy link

Getting "No permission to read or write this serial port" Error while trying to read serial port.But After setting the su path, the app does not run at all. It stops on a white screen and "BUNDLE ./index.js" command dosen't move ahead. (/system/xbin/su is my root path)

Code snippet: -
SerialPortAPI.setSuPath("/system/xbin/su");
let serialPort = await SerialPortAPI.open("/dev/ttyS1", { baudRate: 9600 })
serialPort.onReceived(buff => {
setData(buff.toString('hex').toUpperCase());
})
} catch (error) {
console.log(error.message)
setData(error.message);
}

@lakpriya1s
Copy link

@KeaganFerrao Could you resolve your issue?

@yaser-elbatal
Copy link

any update ?

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

3 participants