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

构造方法中尝试进行提权会导致进程被系统直接杀掉,try-catch也无效 #3

Open
chockqiu opened this issue Jul 22, 2019 · 0 comments

Comments

@chockqiu
Copy link

Process su = Runtime.getRuntime().exec(mSuPath);
String cmd = "chmod 666 " + device.getAbsolutePath() + "\n" + "exit\n";
su.getOutputStream().write(cmd.getBytes());

建议通过标志位决定是否需要进行提权操作

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

1 participant