Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,在我的文件管理器中,我想添加一个选项以在 /system 目录中创建文件夹。我试过这个添加到我的代码中。它不起作用。我做错了什么?
File dir = new File(path + name); Runtime.getRuntime().exec("su -c \"mount -orw,remount /\""); Runtime.getRuntime().exec("su -c \"mkdir" + dir.getAbsolutePath + "\"");
固定的!我需要在 mkdir 之后添加一个空格。
Runtime.getRuntime().exec("su -c \"mkdir " + dir.getAbsolutePath + "\"");