Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c4212774
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c4212774
编写于
2月 08, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 08, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7406 包管理修改用例,仅支持系统资源Hap定义权限生效
Merge pull request !7406 from wangtiantian/fix_definePerm
上级
006d1169
65d9974c
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
39 addition
and
238 deletion
+39
-238
bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/src/main/js/test/ActsBmsAccessTokenTest.test.js
...tokentest/src/main/js/test/ActsBmsAccessTokenTest.test.js
+24
-30
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/src/main/config.json
...ager/sceneProject/bmsaccesstokenfive/src/main/config.json
+2
-26
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/src/main/config.json
...ager/sceneProject/bmsaccesstokenfour/src/main/config.json
+2
-26
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/src/main/config.json
...nager/sceneProject/bmsaccesstokenone/src/main/config.json
+2
-26
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/src/main/config.json
...ger/sceneProject/bmsaccesstokenthree/src/main/config.json
+0
-24
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/src/main/config.json
...nager/sceneProject/bmsaccesstokentwo/src/main/config.json
+0
-24
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/src/main/config.json
...anager/sceneProject/bmsmodulenameone/src/main/config.json
+2
-26
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/src/main/config.json
...anager/sceneProject/bmsmodulenametwo/src/main/config.json
+2
-26
security/access_token/AccessTokenTest_Normal_js/src/main/config.json
...cess_token/AccessTokenTest_Normal_js/src/main/config.json
+3
-28
security/access_token/AccessTokenTest_Normal_js/src/main/js/test/AccessToken.test.js
...sTokenTest_Normal_js/src/main/js/test/AccessToken.test.js
+2
-2
未找到文件。
bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/src/main/js/test/ActsBmsAccessTokenTest.test.js
浏览文件 @
c4212774
...
@@ -63,14 +63,12 @@ describe('ActsBmsAccessTokenTest', function () {
...
@@ -63,14 +63,12 @@ describe('ActsBmsAccessTokenTest', function () {
await
bundle
.
getBundleInfo
(
BUNDLE_NAME3
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
await
bundle
.
getBundleInfo
(
BUNDLE_NAME3
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
.
then
(
bundleInfo
=>
{
.
then
(
bundleInfo
=>
{
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME3
);
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME3
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
3
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
2
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.ALPHA
"
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.DISTRIBUTED_DATASYNC
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.BETA
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissions
[
2
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
2
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
3
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
2
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
...
@@ -87,18 +85,16 @@ describe('ActsBmsAccessTokenTest', function () {
...
@@ -87,18 +85,16 @@ describe('ActsBmsAccessTokenTest', function () {
await
bundle
.
getBundleInfo
(
BUNDLE_NAME2
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
await
bundle
.
getBundleInfo
(
BUNDLE_NAME2
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
.
then
(
bundleInfo
=>
{
.
then
(
bundleInfo
=>
{
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME2
);
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME2
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
5
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
4
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.ALPHA
"
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.LOCATION_IN_BACKGROUND
"
);
expect
(
bundleInfo
.
reqPermissions
[
2
]).
assertEqual
(
"
ohos.permission.LOCATION_IN_BACKGROUND
"
);
expect
(
bundleInfo
.
reqPermissions
[
2
]).
assertEqual
(
"
ohos.permission.USE_BLUETOOTH
"
);
expect
(
bundleInfo
.
reqPermissions
[
3
]).
assertEqual
(
"
ohos.permission.USE_BLUETOOTH
"
);
expect
(
bundleInfo
.
reqPermissions
[
3
]).
assertEqual
(
"
ohos.permission.VIBRATE
"
);
expect
(
bundleInfo
.
reqPermissions
[
4
]).
assertEqual
(
"
ohos.permission.VIBRATE
"
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
4
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
5
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
2
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
2
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
3
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
3
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
4
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
...
@@ -115,20 +111,18 @@ describe('ActsBmsAccessTokenTest', function () {
...
@@ -115,20 +111,18 @@ describe('ActsBmsAccessTokenTest', function () {
await
bundle
.
getBundleInfo
(
BUNDLE_NAME1
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
await
bundle
.
getBundleInfo
(
BUNDLE_NAME1
,
bundle
.
BundleFlag
.
GET_BUNDLE_WITH_REQUESTED_PERMISSION
)
.
then
(
bundleInfo
=>
{
.
then
(
bundleInfo
=>
{
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME1
);
expect
(
bundleInfo
.
name
).
assertEqual
(
BUNDLE_NAME1
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
6
);
expect
(
bundleInfo
.
reqPermissions
.
length
).
assertEqual
(
5
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.ALPHA
"
);
expect
(
bundleInfo
.
reqPermissions
[
0
]).
assertEqual
(
"
ohos.permission.DISTRIBUTED_DATASYNC
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.BETA
"
);
expect
(
bundleInfo
.
reqPermissions
[
1
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissions
[
2
]).
assertEqual
(
"
ohos.permission.KEEP_BACKGROUND_RUNNING
"
);
expect
(
bundleInfo
.
reqPermissions
[
2
]).
assertEqual
(
"
ohos.permission.LOCATION_IN_BACKGROUND
"
);
expect
(
bundleInfo
.
reqPermissions
[
3
]).
assertEqual
(
"
ohos.permission.LOCATION_IN_BACKGROUND
"
);
expect
(
bundleInfo
.
reqPermissions
[
3
]).
assertEqual
(
"
ohos.permission.USE_BLUETOOTH
"
);
expect
(
bundleInfo
.
reqPermissions
[
4
]).
assertEqual
(
"
ohos.permission.USE_BLUETOOTH
"
);
expect
(
bundleInfo
.
reqPermissions
[
4
]).
assertEqual
(
"
ohos.permission.VIBRATE
"
);
expect
(
bundleInfo
.
reqPermissions
[
5
]).
assertEqual
(
"
ohos.permission.VIBRATE
"
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
5
);
expect
(
bundleInfo
.
reqPermissionStates
.
length
).
assertEqual
(
6
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
0
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_DENIED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
DENI
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
1
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
GRANT
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
2
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
GRANT
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
2
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
DENI
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
3
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
DENI
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
3
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_
GRANT
ED
);
expect
(
bundleInfo
.
reqPermissionStates
[
4
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
4
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
expect
(
bundleInfo
.
reqPermissionStates
[
5
]).
assertEqual
(
bundle
.
GrantStatus
.
PERMISSION_GRANTED
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
expect
(
err
).
assertFail
();
expect
(
err
).
assertFail
();
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,34 +67,10 @@
...
@@ -67,34 +67,10 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"use ohos.permission.ALPHA"
"reason"
:
"use ohos.permission.DISTRIBUTED_DATASYNC"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,34 +67,10 @@
...
@@ -67,34 +67,10 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"use ohos.permission.ALPHA"
"reason"
:
"use ohos.permission.DISTRIBUTED_DATASYNC"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,34 +67,10 @@
...
@@ -67,34 +67,10 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"use ohos.permission.ALPHA"
"reason"
:
"use ohos.permission.DISTRIBUTED_DATASYNC"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,31 +67,7 @@
...
@@ -67,31 +67,7 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
"name"
:
"ohos.permission.ALPHA"
,
"reason"
:
"use ohos.permission.ALPHA"
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"reason"
:
"use ohos.permission.KEEP_BACKGROUND_RUNNING"
"reason"
:
"use ohos.permission.KEEP_BACKGROUND_RUNNING"
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,31 +67,7 @@
...
@@ -67,31 +67,7 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
"name"
:
"ohos.permission.ALPHA"
,
"reason"
:
"use ohos.permission.ALPHA"
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"reason"
:
"use ohos.permission.KEEP_BACKGROUND_RUNNING"
"reason"
:
"use ohos.permission.KEEP_BACKGROUND_RUNNING"
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,34 +67,10 @@
...
@@ -67,34 +67,10 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"use ohos.permission.ALPHA"
"reason"
:
"use ohos.permission.DISTRIBUTED_DATASYNC"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
...
...
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/src/main/config.json
浏览文件 @
c4212774
...
@@ -67,34 +67,10 @@
...
@@ -67,34 +67,10 @@
}
}
}
}
],
],
"definePermissions"
:[
{
"availableLevel"
:
"normal"
,
"description"
:
"ALPHA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"ALPHA label"
,
"name"
:
"ohos.permission.ALPHA"
,
"provisionEnable"
:
true
},
{
"availableLevel"
:
"normal"
,
"description"
:
"BETA description"
,
"distributedSceneEnable"
:
true
,
"grantMode"
:
"user_grant"
,
"label"
:
"BETA label"
,
"name"
:
"ohos.permission.BETA"
,
"provisionEnable"
:
true
}
],
"reqPermissions"
:[
"reqPermissions"
:[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"use ohos.permission.ALPHA"
"reason"
:
"use ohos.permission.DISTRIBUTED_DATASYNC"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
"name"
:
"ohos.permission.KEEP_BACKGROUND_RUNNING"
,
...
...
security/access_token/AccessTokenTest_Normal_js/src/main/config.json
浏览文件 @
c4212774
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
"package"
:
"ohos.acts.security.access_token.normal"
,
"package"
:
"ohos.acts.security.access_token.normal"
,
"name"
:
".entry"
,
"name"
:
".entry"
,
"deviceType"
:
[
"deviceType"
:
[
"tablet"
,
"tablet"
,
"default"
,
"default"
,
"phone"
"phone"
],
],
"distro"
:
{
"distro"
:
{
...
@@ -26,34 +26,9 @@
...
@@ -26,34 +26,9 @@
"moduleName"
:
"entry"
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
"moduleType"
:
"entry"
},
},
"definePermissions"
:
[
{
"name"
:
"ohos.permission.ALPHA"
,
"grantMode"
:
"user_grant"
,
"availableLevel"
:
"system_basic"
,
"provisionEnable"
:
true
,
"distributedSceneEnable"
:
true
,
"label"
:
"ALPHA label"
,
"description"
:
"ALPHA description"
},
{
"name"
:
"ohos.permission.BETA"
,
"grantMode"
:
"system_grant"
,
"availableLevel"
:
"system_basic"
,
"provisionEnable"
:
true
,
"distributedSceneEnable"
:
true
,
"label"
:
"BETA label"
,
"description"
:
"BETA description"
}
],
"reqPermissions"
:
[
"reqPermissions"
:
[
{
{
"name"
:
"ohos.permission.ALPHA"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
"reason"
:
"use ohos.permission.ALPHA"
},
{
"name"
:
"ohos.permission.BETA"
,
"reason"
:
"use ohos.permission.BETA"
},
},
{
{
"name"
:
"ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
,
"name"
:
"ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
,
...
...
security/access_token/AccessTokenTest_Normal_js/src/main/js/test/AccessToken.test.js
浏览文件 @
c4212774
...
@@ -35,8 +35,8 @@ const TIMEOUT = 5000;
...
@@ -35,8 +35,8 @@ const TIMEOUT = 5000;
const
ERR_PARAM_INVALID
=
12100001
;
const
ERR_PARAM_INVALID
=
12100001
;
const
DEFAULT_PERMISSION_FALG
=
0
;
const
DEFAULT_PERMISSION_FALG
=
0
;
var
permissionNameUser
=
"
ohos.permission.
ALPHA
"
;
var
permissionNameUser
=
"
ohos.permission.
DISTRIBUTED_DATASYNC
"
;
var
permissionNameSystem
=
"
ohos.permission.
BETA
"
;
var
permissionNameSystem
=
"
ohos.permission.
GET_BUNDLE_INFO
"
;
var
tokenID
=
undefined
;
var
tokenID
=
undefined
;
export
default
function
AccessTokenTest
()
{
export
default
function
AccessTokenTest
()
{
describe
(
'
AccessTokenTest
'
,
function
()
{
describe
(
'
AccessTokenTest
'
,
function
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录