try {
Process proc = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(proc.getOutputStream());
os.writeBytes("cp -rf /data/data/com.aaaaaaa/shared_prefs/applog.xml /sdcard/Download/applog.txt\n");
os.writeBytes("exit\n");
os.flush();
} catch (IOException e) {
e.printStackTrace();
}
android app用root权限执行adb命令或linux命令
于 2022-10-07 23:35:15 首次发布