未验证 提交 71e05d56 编写于 作者: O openharmony_ci 提交者: Gitee

!20527 AbilityDelegatorRegistry.executeShellCommand 添加支持的命令

Merge pull request !20527 from songjindian/change_AbilityDelegator
......@@ -838,6 +838,8 @@ executeShellCommand(cmd: string, callback: AsyncCallback\<ShellCmdResult>): void
执行指定的shell命令(callback形式)
仅支持如下shell命令:aa, bm, cp, mkdir, rm, uinput, hilog, ppwd, echo, uitest, acm, hidumper, wukong, pkill, ps, pidof
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -865,6 +867,8 @@ executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\<S
指定超时时间,并执行指定的shell命令(callback形式)
仅支持如下shell命令:aa, bm, cp, mkdir, rm, uinput, hilog, ppwd, echo, uitest, acm, hidumper, wukong, pkill, ps, pidof
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -894,6 +898,8 @@ executeShellCommand(cmd: string, timeoutSecs?: number): Promise\<ShellCmdResult>
指定超时时间,并执行指定的shell命令(promise形式)
仅支持如下shell命令:aa, bm, cp, mkdir, rm, uinput, hilog, ppwd, echo, uitest, acm, hidumper, wukong, pkill, ps, pidof
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册