mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +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');
|
||||
}
|
||||
|
@ -4795,7 +4795,7 @@ int32_t AbilityManagerProxy::GetUIExtensionRootHostInfo(const sptr<IRemoteObject
|
||||
}
|
||||
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken (data)) {
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
HILOG_ERROR("Write remote object failed.");
|
||||
return INNER_ERR;
|
||||
}
|
||||
|
@ -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