Read data from serial port in android 7.1.2 on NanoPC-3
Posted: Sat Dec 26, 2020 12:39 pm
Hi ,i wrote the app in android studio 4.2, in that app i want to read data from serial port 'UART 3' but i got a security exception that say selinux setenforce enforced, i use this command in adb to set ecnforced to permitive " adb shell su 0 setenforce 0" and then i can read data, but after restart the device, setenforce restore to ecforced, so how can set it permanently to permitive ? i try to root it but can not found any way to do that. have you any solution can help me ?