X Tutup
Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 635 Bytes

File metadata and controls

33 lines (25 loc) · 635 Bytes

Android-SerialPort-API

Google官方的Android串口通信Demo,修改成Android Studio项目

Gradle 引用

  1. 在根build.gradle中添加
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. 添加依赖
dependencies {
        compile 'com.github.licheedev.Android-SerialPort-API:serialport:1.0.1'
}

修改su路径

// su默认路径为 "/system/bin/su"
// 可通过此方法修改
SerialPort.setSuPath("/system/xbin/su");
X Tutup