mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-27 01:10:52 +00:00
Add permission to scb.
Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com> Change-Id: I4de11541836903fd02b10346b8a153f7a5a541ca
This commit is contained in:
parent
f82445c805
commit
49090055e5
@ -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
|
@ -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');
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user