自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
RootcanalUtils.RootcanalController
public
static
class
RootcanalUtils.RootcanalController
extends Object
implements
AutoCloseable
java.lang.Object
|
↳ |
com.android.sts.common.RootcanalUtils.RootcanalController
|
摘要
公共方法
createHciDevice
public RootcanalUtils.HciDevice createHciDevice ()
通过连接到 rootcanal 的 HCI 套接字创建新的 HCI 设备。
抛出 |
DeviceNotAvailableException |
|
IOException |
|
InterruptedException |
|
sendTestChannelCommand
public String sendTestChannelCommand (String cmd,
String... args)
向 rootcanal 测试渠道发送一条命令。
发送 `help` 命令以获取 Rootcanal 接受的命令列表。
参数 |
cmd |
String :要发送的命令 |
args |
String :命令的参数 |
返回 |
String |
来自 rootcanal 的响应字符串
|
抛出 |
IOException |
|
InterruptedException |
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[null,null,["最后更新时间 (UTC):2025-03-26。"],[],[]]