我是Android的初学者。
我正在尝试通过修改init.rc文件来创建符号链接。 但是当我在代码下面插入时,我在adb shell中看到了结果。 我找不到我需要的东西。
symlink /data/.hidden /.hiddenlink我成功生成了/data/.hidden目录。 但是我没能对该目录进行隐藏的符号链接。
我认为init.rc文件中的上述命令没有语法错误。 但我不知道为什么会这样。
你能给我一个解决方案吗?
I'm a beginner of Android.
I'm trying to make symlink by modifying init.rc file. But when I insert below code, I see the result in adb shell. I can't find what I need.
symlink /data/.hidden /.hiddenlinkI had success generating /data/.hidden directory. But I failed to make hidden symbolic link to that directory.
I think there is no syntax error in the above command in init.rc file. But I don't know why this happened.
Could you give me a solution?
最满意答案
我想你可以尝试这样的事情
symlink /data/.hidden /.hidden不知何故,一些android路径我们需要为软链接指定与目标文件/文件夹名称相同的名称。 通过这个技巧它对我有用。
i think you can try something like this
symlink /data/.hidden /.hiddensomehow some of the android paths we need to give the same name for the soft link as that of the target file/folder name. It worked for me by doing this trick.
Android init.rc:无法创建符号链接(Android init.rc: unable to Create Symbolic Links)我是Android的初学者。
我正在尝试通过修改init.rc文件来创建符号链接。 但是当我在代码下面插入时,我在adb shell中看到了结果。 我找不到我需要的东西。
symlink /data/.hidden /.hiddenlink我成功生成了/data/.hidden目录。 但是我没能对该目录进行隐藏的符号链接。
我认为init.rc文件中的上述命令没有语法错误。 但我不知道为什么会这样。
你能给我一个解决方案吗?
I'm a beginner of Android.
I'm trying to make symlink by modifying init.rc file. But when I insert below code, I see the result in adb shell. I can't find what I need.
symlink /data/.hidden /.hiddenlinkI had success generating /data/.hidden directory. But I failed to make hidden symbolic link to that directory.
I think there is no syntax error in the above command in init.rc file. But I don't know why this happened.
Could you give me a solution?
最满意答案
我想你可以尝试这样的事情
symlink /data/.hidden /.hidden不知何故,一些android路径我们需要为软链接指定与目标文件/文件夹名称相同的名称。 通过这个技巧它对我有用。
i think you can try something like this
symlink /data/.hidden /.hiddensomehow some of the android paths we need to give the same name for the soft link as that of the target file/folder name. It worked for me by doing this trick.
发布评论