未验证 提交 96441aa0 编写于 作者: O openharmony_ci 提交者: Gitee

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

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