Out/Target/product/sabresd_6dq/System/bin - Permission Denied in Android 7.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Out/Target/product/sabresd_6dq/System/bin - Permission Denied in Android 7.

ソリューションへジャンプ
2,227件の閲覧回数
ThanarajS
Contributor III

Hi All,

   I had compiled Android 7 Source code and checking the Wi-Fi related functionality. I am not able to access Any system/bin commands [ifconfig,....etc], its throwing error as Permission denied.

root@sabresd_6dq:/system/bin # ifconfig -a                                     
ifconfig: type=1400 audit(811.510:56): avc: denied { net_raw } for pid=1239 comm="ifconfig" capability=13 scontext=u:r:shell:s0 tcontext=u:r:s0
socket 2 0: Permission denied
1|root@sabresd_6dq:/system/bin #

How to change System/bin permission in Android 7 Source?.

Thanks!!!

Regards,

Raj.

Regards,
Thanaraj Subramani
ラベル(4)
1 解決策
1,883件の閲覧回数
gary_bisson
Senior Contributor III

Hi,

Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.

Regards,

Gary

元の投稿で解決策を見る

6 返答(返信)
1,883件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

I think you used 'user' to build the source code. Please try to build the source code using 'userdebug'

pastedImage_1.png

for more information, please read the chapter 3.3 in Android User's Guide.

0 件の賞賛
返信
1,883件の閲覧回数
ThanarajS
Contributor III

Hi Jimmychan,

I tried with userdebug option even though its throwing same permission denied error.

Is there any other way to change permission ?

Please help me to fix this issue....

Thanks

Regrads,

Raj.

Regards,
Thanaraj Subramani
0 件の賞賛
返信
1,883件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

please also try to add “androidboot.selinux=disabled” in uboot’s bootargs.

0 件の賞賛
返信
1,884件の閲覧回数
gary_bisson
Senior Contributor III

Hi,

Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.

Regards,

Gary

1,883件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Thanks Gary.

0 件の賞賛
返信
1,883件の閲覧回数
ThanarajS
Contributor III

Thanks Gary Bisson.

It was working for me.....

Regards,

Raj.

Regards,
Thanaraj Subramani
0 件の賞賛
返信