提交 22751437 编写于 作者: S songjindian

AbilityDelegatorRegistry.executeShellCommand 添加支持的命令

Signed-off-by: Nsongjindian <songjindian1@huawei.com>
上级 006163cf
......@@ -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.
先完成此消息的编辑!
想要评论请 注册