未验证 提交 4af7b5b0 编写于 作者: O openharmony_ci 提交者: Gitee

!1876 解决checkPermission用例失败

Merge pull request !1876 from wangtiantian/permission
...@@ -63,11 +63,6 @@ ...@@ -63,11 +63,6 @@
"name": "com.permission.CAMERA", "name": "com.permission.CAMERA",
"grantMode": "user_grant", "grantMode": "user_grant",
"availableScope": ["signature"] "availableScope": ["signature"]
},
{
"name": "com.permission.PERMISSION_A",
"grantMode": "system_grant",
"availableScope": ["signature"]
} }
], ],
"reqPermissions": [ "reqPermissions": [
...@@ -104,16 +99,6 @@ ...@@ -104,16 +99,6 @@
], ],
"when": "always" "when": "always"
} }
},
{
"name": "com.permission.PERMISSION_A",
"reason": "Need PERMISSION_A",
"usedScene": {
"ability": [
"com.example.actsbmscheckpermissiontest.MainAbility"
],
"when": "always"
}
} }
] ]
} }
......
...@@ -20,7 +20,7 @@ import commonEvent from '@ohos.commonevent' ...@@ -20,7 +20,7 @@ import commonEvent from '@ohos.commonevent'
const STRESSLEVEL = 20; const STRESSLEVEL = 20;
const BUNDLE_NAME = 'com.example.actsbmskittest'; const BUNDLE_NAME = 'com.example.actsbmskittest';
const PERMISSION_NAME = 'com.permission.PERMISSION_A'; const PERMISSION_NAME = 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED';
const START_ABILITY_TIMEOUT = 3000; const START_ABILITY_TIMEOUT = 3000;
var subscriberInfo_0100 = { var subscriberInfo_0100 = {
events: ['ACTS_Third1_Publish_CommonEvent'], events: ['ACTS_Third1_Publish_CommonEvent'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册