执行 shell 命令 @param command 待执行命令 @param isRoot 是否以 root 权限执行 @return CommandResult
(
final String command,
final boolean isRoot
)
| 31 | * @return {@link CommandResult} |
| 32 | */ |
| 33 | public static CommandResult execCmd( |
| 34 | final String command, |
| 35 | final boolean isRoot |
| 36 | ) { |
| 37 | return execCmd(new String[]{command}, isRoot, true); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * 执行 shell 命令 |
no test coverage detected