Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShellUtils函数checkRootPermission判断root权限 #17

Open
mic101 opened this issue Apr 23, 2015 · 1 comment
Open

ShellUtils函数checkRootPermission判断root权限 #17

mic101 opened this issue Apr 23, 2015 · 1 comment

Comments

@mic101
Copy link

mic101 commented Apr 23, 2015

如果执行了checkRootPermission判断是否是root才执行业务逻辑 但是下面再执行以su运行的命令。就会很容易导致命令执行失败。

@Trinea
Copy link
Owner

Trinea commented Apr 24, 2015

那就直接 executeCommand(),su 参数设置为 true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants