devEco studio API11 openharmony4.1 rk3568 L2
网口设置静态IP,
rk3568 OpenHarmony4.0与3.2网络设置静态IP,断电保存_openharmony设置静态ip-CSDN博客
https://blog.csdn.net/Devlin_/article/details/138124882?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522BE8DC437-F72E-47F6-8CCC-84894086BDAB%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=BE8DC437-F72E-47F6-8CCC-84894086BDAB&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-138124882-null-
安装到开发板后,设置静态IP,hilog报错:
E C015b0/NetMgrCommon: [IsSystemCaller-(netmanager_base_permission.cpp:83)]Caller is not allowed, need sys permissive
08-05 18:09:28.337 377 377 E C015b0/NetMgrExtPart: [IsIfaceActive-(ethernet_service.cpp:255)]Caller not have sys permission
08-05 18:09:28.337 377 462 E C015b0/NetMgrCommon: [IsSystemCaller-(netmanager_base_permission.cpp:83)]Caller is not allowed, need sys permissive
08-05 18:09:28.337 377 462 E C015b0/NetMgrExtPart: [IsIfaceActive-(ethernet_service.cpp:255)]Caller not have sys permission
08-05 18:09:28.337 4088 4143 E C057c2/IPCObjectProxy: SendRequest 133: failed, handle:20 error:202 desc:OHOS.NetManagerStandard.IEthernetService
08-05 18:09:28.338 4088 4143 E C015b0/NetMgrExtPart: [SendRequest-(ethernet_service_proxy.cpp:341)]proxy SendRequest failed, error code: [202]
这个权限如何配置,
目前modules.json5中有:
"requestPermissions": [ { "name": 'ohos.permission.GET_NETWORK_INFO' }, { "name": 'ohos.permission.INTERNET' }, { "name": 'ohos.permission.CONNECTIVITY_INTERNAL' }
ohos.permission.CONNECTIVITY_INTERNAL
允许应用程序获取网络相关的信息或修改网络相关设置。当前仅支持系统应用申请该权限。
权限级别:system_basic
授权方式:system_grant
ACL使能:true
起始版本:8
这个权限是system_basic级别权限,普通应用无法直接使用,需要修改配置文件中的allowed-acls,配置完后重新签名
具体参考声明ACL权限 (openharmony.cn) 方式二