Add permission to scb.

Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com>
Change-Id: I4de11541836903fd02b10346b8a153f7a5a541ca
This commit is contained in:
zhangyafei-echo 2024-03-19 20:18:34 +08:00
parent f82445c805
commit 49090055e5
4 changed files with 7 additions and 10 deletions

View File

@ -14,3 +14,5 @@
# any change to xxx_ipc_interface_code.h needs to be reviewed by @leonchan5
interfaces/inner_api/ability_manager/include/ability_manager_ipc_interface_code.h @leonchan5
interfaces/inner_api/app_manager/include/appmgr/app_mgr_ipc_interface_code.h @leonchan5
services/common/include/ui_extension_utils.h @li-weifeng2
services/common/include/ui_extension_utils.h @zhangyafei-echo

View File

@ -17,18 +17,13 @@ let ExtensionAbility = requireNapi('app.ability.ExtensionAbility');
class UIExtensionAbility extends ExtensionAbility {
onCreate(want) {
console.log('onCreate, want:' + want.abilityName);
console.log('onCreate');
}
onRequest(want, startId) {
console.log('onRequest, want:' + want.abilityName + ', startId:' + startId);
}
onLoadContent() {
console.log('onLoadContent');
return '';
}
onDestroy() {
console.log('onDestroy');
}

View File

@ -9763,8 +9763,8 @@ int32_t AbilityManagerService::GetUIExtensionRootHostInfo(const sptr<IRemoteObje
HILOG_DEBUG("Get ui extension host info.");
CHECK_POINTER_AND_RETURN(token, ERR_INVALID_VALUE);
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
HILOG_ERROR("Not sa call.");
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall() && !CheckCallingTokenId(BUNDLE_NAME_SCENEBOARD)) {
HILOG_ERROR("Permission deny.");
return ERR_PERMISSION_DENIED;
}