Reference post
Http://bbs.c Sdn.net/topi CS/320267733I tried to debug the serial port on the serial port terminal chmod 777/dev/s3c2410_serial0chmod 777/dev/s3c2410_serial1chmod 777/dev/s3c2410_serial -- sate210, it can also be used as a common serial port with http: // code like chmod 777/dev/s3c2410_seri_3. Google.com/P /Android-Ser Ialport-API/You can use the serial APK compiled by an API that can read or write the serial port without prompting you
Do not Hava read/write permission to the serial port! However, you will be prompted again after the restart
Do not Hava read/write permission to the serial port can only be re-input on the serial port terminal one by one chmod 777/dev/s3c2410_serial0chmod 777/dev/s3c2410_serial1chmod 777/dev/s3c2410_serial -- sate210 debug, it can also be used as a common serial port to use chmod 777/dev/s3c2410_seri_3, but there is also a solution, that is, to modify the kernel at 1. Re-compile the APK File
Copy the project to the samples of ndk and modify the SerialPort. c file under JNI.
Change one line to open (path_utf, o_rdwr | o_sync); remove the intermediate option
Recompile and generate the ***. APK file. Load the file!
2. Change permissions
Add the command at the end of the init. RC file in the root directory to modify the read and write permissions of serail_uart0. Save and restart reboot.