我怎样才能改变的/ mnt / SD卡文件夹的Kindle Fire的读/写权限?文件夹、权限、SD、mnt

2023-09-05 08:06:59 作者:治愈系男子

我试图开发亚马逊的应用程序内的机器人。对于这一点,我从这个网站的https://developer.amazon.com/sdk/in-app-purchasing/sample-$c$c/button-clicker.html.本文认为,我们必须把设备的MNT / sdkcard文件夹中的文件amazon.sdktester.json。对于此,我读了这个网站的文章 https://developer.amazon.com /sdk/fire/connect-adb.html#InstallApp ,做同样的。但是,当我试图把SD卡上的日食给我下面的错误文件:

  [2012年11月19日13时39分39秒 -  DDMS]传输错误:权限被拒绝

[2012年11月19日13时39分39秒]推选择失败:权限被拒绝
 

有没有办法改变的Kindle Fire的根文件夹的权限。

解决方案

请尝试使用的在 ADB搭配chmod 命令外壳 ..

下面是一些搭配chmod示例:

     添加单权限的文件/目录         

更改权限一组。 +符号表示增加许可。   例如,请执行以下操作给执行权限的用户   不管别的:

  $ CHMODü+ X文件名
 
究竟是谁,慢慢地杀死了Kindle

        添加多个权限的文件/目录         

使用逗号分隔的多个权限集,如下图所示。

          

$搭配chmod U + R,G + X文件名

           从一个文件/目录中删除的权限         

下面的示例删除读写权限的用户。

          

$搭配chmod u型RX文件名

           有关的文件/目录下的所有角色更改权限         

下面的示例将执行权限的用户,组和其他   (基本上任何人都可以执行这个文件)。

          

$搭配chmod一+ X文件名

           请准许同一个文件的另一个文件(使用参考)         

如果您想更改文件权限另一个相同的文件,使用   如下所示参考选项。在这个例子中,文件2的许可   将被设置完全相同file1相同的许可。

          

$搭配chmod --reference =文件1文件2

           应用权限的所有文件的目录下递归         

使用选项-R递归改变权限,如下图所示。

          

$搭配chmod -R 755目录名/

           更改只对目录执行权限(文件不受影响)         

在一个特定的目录,如果你有多个子目录和   文件,以下命令将分配执行权限只   所有的子目录在当前目录(未在文件   当前目录)。

          

$搭配chmod U + X *

  

I am trying to develop Amazon In-app in android. For this i download the sample code for from this site https://developer.amazon.com/sdk/in-app-purchasing/sample-code/button-clicker.html. This article suggests that we have to put a file amazon.sdktester.json in mnt/sdkcard folder of device. For this i read article from this site https://developer.amazon.com/sdk/fire/connect-adb.html#InstallApp and do the same. But when i tried to push file on sdcard the eclipse gives me following error:

[2012-11-19 13:39:39 - ddms] transfer error: Permission denied

[2012-11-19 13:39:39] Failed to push selection: Permission denied

Is there any way to change the permissions of root folder of Kindle Fire.

解决方案

Please try to use chmod command in the ADB shell...

Following are some chmod sample:

Add single permission to a file/directory

Changing permission to a single set. + symbol means adding permission. For example, do the following to give execute permission for the user irrespective of anything else:

$ chmod u+x filename

Add multiple permission to a file/directory

Use comma to separate the multiple permission sets as shown below.

$ chmod u+r,g+x filename

Remove permission from a file/directory

Following example removes read and write permission for the user.

$ chmod u-rx filename

Change permission for all roles on a file/directory

Following example assigns execute privilege to user, group and others (basically anybody can execute this file).

$ chmod a+x filename

Make permission for a file same as another file (using reference)

If you want to change a file permission same as another file, use the reference option as shown below. In this example, file2′s permission will be set exactly same as file1′s permission.

$ chmod --reference=file1 file2

Apply the permission to all the files under a directory recursively

Use option -R to change the permission recursively as shown below.

$ chmod -R 755 directory-name/

Change execute permission only on the directories (files are not affected)

On a particular directory if you have multiple sub-directories and files, the following command will assign execute permission only to all the sub-directories in the current directory (not the files in the current directory).

$ chmod u+X *

 
精彩推荐
图片推荐