Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f1b208aa
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f1b208aa
编写于
2月 22, 2022
作者:
G
gaoxi785
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix appaccount permission and osaccount json
Signed-off-by:
N
gaoxi785
<
gaoxi785@huawei.com
>
上级
b0e90ff0
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
155 addition
and
2 deletion
+155
-2
account/appaccount/actsaccounttest/entry/src/main/config.json
...unt/appaccount/actsaccounttest/entry/src/main/config.json
+22
-0
account/appaccount/actsaccounttest/signature/openharmony_sx.p7b
...t/appaccount/actsaccounttest/signature/openharmony_sx.p7b
+0
-0
account/appaccount/actsgetallaccounts/entry/src/main/config.json
.../appaccount/actsgetallaccounts/entry/src/main/config.json
+20
-0
account/appaccount/actsgetallaccounts/signature/openharmony_sx.p7b
...ppaccount/actsgetallaccounts/signature/openharmony_sx.p7b
+0
-0
account/appaccount/actssetchecksyncenable/entry/src/main/config.json
...account/actssetchecksyncenable/entry/src/main/config.json
+25
-1
account/appaccount/actssetchecksyncenable/entry/src/main/js/test/Syncenable.test.js
...checksyncenable/entry/src/main/js/test/Syncenable.test.js
+25
-0
account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b
...count/actssetchecksyncenable/signature/openharmony_sx.p7b
+0
-0
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/entry/src/main/config.json
...s/actsgetallaccessibleaccounts/entry/src/main/config.json
+20
-0
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/signature/openharmony_sx.p7b
...actsgetallaccessibleaccounts/signature/openharmony_sx.p7b
+0
-0
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/entry/src/main/config.json
...s/actsgetallaccessiblemultiple/entry/src/main/config.json
+20
-0
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/signature/openharmony_sx.p7b
...actsgetallaccessiblemultiple/signature/openharmony_sx.p7b
+0
-0
account/appaccount/sceneProject/actsaccountaccessibleFirst/entry/src/main/config.json
...ect/actsaccountaccessibleFirst/entry/src/main/config.json
+22
-0
account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b
...t/actsaccountaccessibleFirst/signature/openharmony_sx.p7b
+0
-0
account/osaccount/actsosaccountpermissiontest/actsosaccountpermissionnotest/Test.json
...untpermissiontest/actsosaccountpermissionnotest/Test.json
+1
-1
未找到文件。
account/appaccount/actsaccounttest/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -24,6 +24,28 @@
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
{
"skills"
:
[
...
...
account/appaccount/actsaccounttest/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/appaccount/actsgetallaccounts/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -35,6 +35,26 @@
{
"name"
:
"ohos.permission.GET_ACCOUNTS_PRIVILEGED"
,
"reason"
:
"ceshi"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
...
...
account/appaccount/actsgetallaccounts/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/appaccount/actssetchecksyncenable/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -27,14 +27,38 @@
"defPermissions"
:
[
{
"availableScope"
:
[],
"grantMode"
:
"
system
_grant"
,
"grantMode"
:
"
user
_grant"
,
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
,
"reason"
:
"ceshi"
},
{
"name"
:
"ohos.permission.DISTRIBUTED_DATASYNC"
,
"reason"
:
"ceshi"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
...
...
account/appaccount/actssetchecksyncenable/entry/src/main/js/test/Syncenable.test.js
浏览文件 @
f1b208aa
...
...
@@ -12,10 +12,35 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
abilityAccessCtrl
from
'
@ohos.abilityAccessCtrl
'
import
account
from
'
@ohos.account.appAccount
'
import
bundle
from
'
@ohos.bundle
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
const
TIMEOUT
=
2000
;
const
PERMISSION_USER_SET
=
1
;
const
PERMISSION_USER_NAME
=
"
ohos.permission.DISTRIBUTED_DATASYNC
"
;
var
tokenID
=
undefined
;
describe
(
'
ActsSetCheckSyncEnable
'
,
function
()
{
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
var
appInfo
=
await
bundle
.
getApplicationInfo
(
'
com.example.actssetchecksyncenable
'
,
0
,
100
);
tokenID
=
appInfo
.
accessTokenId
;
console
.
debug
(
"
accessTokenId
"
+
appInfo
.
accessTokenId
+
"
bundleName:
"
+
appInfo
.
bundleName
);
var
atManager
=
abilityAccessCtrl
.
createAtManager
();
var
result
=
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
PERMISSION_USER_NAME
,
PERMISSION_USER_SET
);
console
.
debug
(
"
tokenId
"
+
tokenID
+
"
result:
"
+
result
);
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
})
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
}
/*
* @tc.number : ActsSetCheckSyncEnable_0100
...
...
account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -35,6 +35,26 @@
{
"name"
:
"ohos.permission.GET_ACCOUNTS_PRIVILEGED"
,
"reason"
:
"ceshi"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
...
...
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -35,6 +35,26 @@
{
"name"
:
"ohos.permission.GET_ACCOUNTS_PRIVILEGED"
,
"reason"
:
"ceshi"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
...
...
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/appaccount/sceneProject/actsaccountaccessibleFirst/entry/src/main/config.json
浏览文件 @
f1b208aa
...
...
@@ -24,6 +24,28 @@
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
,
"reason"
:
"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name"
:
"ohos.permission.REMOVE_CACHE_FILES"
,
"reason"
:
"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name"
:
"ohos.permission.LISTEN_BUNDLE_CHANGE"
,
"reason"
:
"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"abilities"
:
[
{
"skills"
:
[
...
...
account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b
浏览文件 @
f1b208aa
无法预览此类型文件
account/osaccount/actsosaccountpermissiontest/actsosaccountpermissionnotest/Test.json
浏览文件 @
f1b208aa
...
...
@@ -10,7 +10,7 @@
{
"test-file-name"
:
[
"ActsOsAccountPermissionNoTest.hap"
,
"ActsOsAccountScenePermission"
"ActsOsAccountScenePermission
.hap
"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录