未验证 提交 065f60e5 编写于 作者: O openharmony_ci 提交者: Gitee

!7930 【account】【monthly】修改 权限和api终审接口名称修改

Merge pull request !7930 from 郭永强/cherry-pick-1678693968
......@@ -45,6 +45,10 @@
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"abilities": [
......
......@@ -46,11 +46,12 @@ export default function ActsAccountAppAccess() {
parameters:
{},
},
},
)
await sleep(1500);
}, (err, data) => {
console.debug("====>accountauthenticatorfeatureAbility.startAbilityForResult err:" + JSON.stringify(err))
console.debug("====>accountauthenticatorfeatureAbility.startAbilityForResult data:" + JSON.stringify(data))
done();
})
console.debug("====>ActsAccountAuthenticator beforeAll end====");
done();
});
beforeEach(async (done)=>{
console.debug("====>afterEach start====");
......
......@@ -42,6 +42,10 @@
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
......
......@@ -32,7 +32,8 @@ export default function ActsAccountAppAccess() {
console.info(`sleep #{time} over ...`)
})
}
beforeAll(async function (done) {
beforeAll(async function (done) {
console.debug("====>accountauthenticatorbeforeAll start====");
await featureAbility.startAbility(
{
want:
......@@ -44,10 +45,12 @@ export default function ActsAccountAppAccess() {
parameters:
{},
},
},
)
await sleep(1000)
done();
}, (err, data) => {
console.debug("====>accountauthenticatorfeatureAbility.startAbility err:" + JSON.stringify(err))
console.debug("====>accountauthenticatorfeatureAbility.startAbility data:" + JSON.stringify(data))
done();
})
console.debug("====>accountauthenticatorfeatureAbility.startAbility end")
});
beforeEach(async function (done) {
console.debug("====>afterEach start====");
......
......@@ -261,7 +261,7 @@ class MyAuthenticator extends rpc.RemoteObject {
case 5 :
name = readString8(data)
callback = new MyAuthenticatorCallback(data.readRemoteObject())
this.authenticatorImpl.isAccountRemovable(name, callback)
this.authenticatorImpl.checkAccountRemovable(name, callback)
break
}
return true
......@@ -345,7 +345,7 @@ class MyAuthenticatorImpl {
callback.onResult(10016, {})
}
isAccountRemovable(name, callback) {
checkAccountRemovable(name, callback) {
console.log(TAG + "name: " + name)
var isRemovable = this.accountRemovability[name]
if (isRemovable == undefined || isRemovable == false) {
......
......@@ -160,7 +160,7 @@ class MyAuthenticator extends account_appAccount.Authenticator {
callback.onResult(10016, {})
}
isAccountRemovable(name, callback) {
checkAccountRemovable(name, callback) {
console.log(TAG + "name: " + name)
var isRemovable = false;
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册