提交 3f7d8e15 编写于 作者: Y yu

change PERMISSION_SYSTEM_FIXED

Signed-off-by: Nyu <yulei99@huawei.com>
Change-Id: If2a16d17dca5f81663159734954e27b8dc34d916
上级 bc4e3318
...@@ -22,7 +22,7 @@ import osAccount from '@ohos.account.osAccount' ...@@ -22,7 +22,7 @@ import osAccount from '@ohos.account.osAccount'
var PermissionFlag = { var PermissionFlag = {
PERMISSION_USER_SET: 1, PERMISSION_USER_SET: 1,
PERMISSION_USER_FIXED: 2, PERMISSION_USER_FIXED: 2,
PERMISSION_SYSTEM_FIXED: 3 PERMISSION_SYSTEM_FIXED: 4
}; };
var GrantStatus = { var GrantStatus = {
...@@ -42,7 +42,7 @@ export default function AccessTokenTest() { ...@@ -42,7 +42,7 @@ export default function AccessTokenTest() {
describe('AccessTokenTest', function () { describe('AccessTokenTest', function () {
console.info('##########start AccessTokenTest'); console.info('##########start AccessTokenTest');
beforeAll(async function (done){ beforeAll(async function (done){
var accountManager = osAccount.getAccountManager(); var accountManager = osAccount.getAccountManager();
var userId = await accountManager.getOsAccountLocalIdFromProcess(); var userId = await accountManager.getOsAccountLocalIdFromProcess();
var appInfo = await bundle.getApplicationInfo('ohos.acts.security.access_token.normal', 0, userId); var appInfo = await bundle.getApplicationInfo('ohos.acts.security.access_token.normal', 0, userId);
tokenID = appInfo.accessTokenId; tokenID = appInfo.accessTokenId;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册