android 权限,Android .exec(“su”):权限被拒绝...

时间:2025-02-27 14:48:21

当我使用这段代码时:

process = ().exec("su");

os = new DataOutputStream(());

总有一个错误,任何想法?在Android虚拟设备上运行

W/(3211): : Error running exec(). Command: [su] Working Directory: null Environment: null

W/(3211): at (:211)

W/(3211): at (:174)

W/(3211): at (:247)

W/(3211): at (:190)

W/(3211): at (:661)

W/(3211): at $(:410)

W/(3211): at (:818)

W/(3211): Caused by: : Permission denied

W/(3211): at (Native Method)

W/(3211): at (:209)

W/(3211): ... 6 more