Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 越狱应用程序:不允许在/System/Library/Audio/UISounds上使用chmod_Ios_Jailbreak_Chmod - Fatal编程技术网

Ios 越狱应用程序:不允许在/System/Library/Audio/UISounds上使用chmod

Ios 越狱应用程序:不允许在/System/Library/Audio/UISounds上使用chmod,ios,jailbreak,chmod,Ios,Jailbreak,Chmod,我想发展我自己的调整。它将使用shell脚本来替换一些UI声音。 这是我的剧本: #!/bin/sh chmod 755 /System/Library/Audio/UISounds cd /System/Library/Audio/UISounds/tmp_*myapp* cp Bubble.caf /System/Library/Audio/UISounds cd /System/Library/Audio/UISounds mv Tock.caf sauvegarde_Tock.

我想发展我自己的调整。它将使用shell脚本来替换一些UI声音。 这是我的剧本:

#!/bin/sh

chmod 755 /System/Library/Audio/UISounds

cd /System/Library/Audio/UISounds/tmp_*myapp*

cp Bubble.caf /System/Library/Audio/UISounds

cd /System/Library/Audio/UISounds

mv Tock.caf sauvegarde_Tock.caf
mv Bubble.caf Tock.caf

exit 0
当我尝试在移动终端中运行脚本时,我得到: chmod:更改“/System/Library/Audio/UISounds”的权限:不允许操作

我知道我必须是根用户才能运行这个命令行,但是我该怎么做呢?我的意思是,我该如何为下载了我的调整的所有IDEVICE上的chmod编写脚本

我希望你能理解我的目标,英语不是我的主要语言
提前感谢您的帮助

如果你在移动终端上运行,那么你必须使用标准的unix命令来获得privileges su或sudoYes,我知道,但问题是这个脚本是用于调整的,它将在用户切换操作时启动,所以我们不会在MobileTerminal中使用,而是在Tweak的首选项中使用,你明白吗?从什么开始切换?Obj-C代码?根据我的Obj-C代码的首选项@@Borrden:噢,很有趣!我会找的。是的,我知道这个密码,但是如果想要下载我的调整的人像我一样更改了他们的根密码,这可能是个问题。为此,我必须找到在/系统上执行chmod的解决方案,但您的技巧可以救我,谢谢^^@Nate:如果我不清楚的话,很抱歉。我指的是一种PSListController,它将在preference.app中运行。在这种情况下,用户可以切换一个选项,通过运行我在第一条消息中编写的脚本,将一个UISound重新放置到另一个选项上!