提交 ffcadb12 编写于 作者: Z zhangxingxia

update xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 d75e13d9
......@@ -11,6 +11,7 @@
"target": 5
}
},
"apl":"system_core",
"deviceConfig": {},
"module": {
"package": "ohos.acts.storage.statistics",
......@@ -24,6 +25,20 @@
"moduleType": "entry",
"installationFree": true
},
"reqPermissions": [
{
"name" : "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name" : "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name" : "ohos.permission.READ_MEDIA",
"reason" : "use ohos.permission.READ_MEDIA"
}
],
"abilities": [
{
"skills": [
......
......@@ -24,8 +24,20 @@ import {
volumeManager,
getPackageName,
} from "./Common";
import abilityAccessCtrl from '@ohos.abilityAccessCtrl';
import bundle from '@ohos.bundle';
describe("storageStatistics", function () {
beforeAll(async function (){
let appInfo = await bundle.getApplicationInfo('ohos.acts.storage.statistics', 0, 100);
let tokenID = appInfo.accessTokenId;
let atManager = abilityAccessCtrl.createAtManager();
let result = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.READ_MEDIA",1);
console.log("tokenID:" + tokenID + "-result:" + result);
let result1 = await atManager.verifyAccessToken(tokenID, "ohos.permission.READ_MEDIA");
console.log("tokenID:" + tokenID + "-result:" + result1);
});
/**
* @tc.number SUB_DF_VOLUME_GET_TOTAL_SIZE_OF_VOLUME_0000
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册