提交 b46a6787 编写于 作者: Z zhangxingxia

update xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 59a3b0e2
...@@ -24,6 +24,20 @@ ...@@ -24,6 +24,20 @@
"moduleType": "entry", "moduleType": "entry",
"installationFree": true "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": [ "abilities": [
{ {
"skills": [ "skills": [
......
...@@ -24,8 +24,20 @@ import { ...@@ -24,8 +24,20 @@ import {
volumeManager, volumeManager,
getPackageName, getPackageName,
} from "./Common"; } from "./Common";
import abilityAccessCtrl from '@ohos.abilityAccessCtrl';
import bundle from '@ohos.bundle';
describe("storageStatistics", function () { 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 * @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.
先完成此消息的编辑!
想要评论请 注册