-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,16 @@ | |
2、[email protected]:licheedev/Android-SerialPort-API.git | ||
3、[email protected]:kongqw/AndroidSerialPort.git | ||
4、[email protected]:GeekBugs/Android-SerialPort.git | ||
|
||
|
||
|
||
### 注意事项: | ||
1、SELinux是Google从android 5.0开始,强制引入的一套非常严格的权限管理机制,主要用于增强系统的安全性。 | ||
在开发中,我们经常会遇到由于SELinux造成的各种权限不足,即使拥有“万能的root权限”,也不能获取全部的权限。 | ||
2、SerialPort类中将sSuPath改成:/system/bin/sh , 而不是/system/bin/su。 | ||
3、可通过 adb shell 进入设备后,输入:setenforce 0 (临时禁用掉SELinux),可参考: https://blog.csdn.net/tung214/article/details/72734086/ | ||
4、可通过androidstudio自带的模拟器调试串口,可参考:https://www.jianshu.com/p/491481c8a971 | ||
5、具体命令如下: | ||
cd D:\androidSdk\emulator | ||
emulator.exe -list-avds | ||
emulator @Pixel_2_API_22 -writable-system -qemu -serial COM5 |