Skip to content
Snippets Groups Projects
Commit b64e8f84 authored by Francesco Pham's avatar Francesco Pham
Browse files

openharmony-standard-3.0: add patch to remove uid check


OpenHarmony uses couple of UIDs/GIDs for running it's services.
Currently in meta-openharmony we have everything run as root, which 
causes some issues in starting abilities. As a temporary workaround
we are removing the Uid check.

Apply to foundation/aafwk/standard

Signed-off-by: default avatarFrancesco Pham <francesco.pham@huawei.com>
parent 400e9d5d
No related branches found
No related tags found
1 merge request!88openharmony-standard-3.0: add patches and initialization changes to fix ACTS failures
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
OpenHarmony uses couple of UIDs/GIDs for running it's services.
Currently in meta-openharmony we have everything run as root, which
causes some issues in starting abilities. As a temporary workaround
we are removing the Uid check.
Apply to foundation/aafwk/standard
Signed-off-by: Francesco Pham <francesco.pham@huawei.com>
Upstream-Status: Inappropriate
diff --git a/services/abilitymgr/include/ability_util.h b/services/abilitymgr/include/ability_util.h
index a090a1eb..d495a75b 100644
--- a/services/abilitymgr/include/ability_util.h
+++ b/services/abilitymgr/include/ability_util.h
@@ -144,10 +144,10 @@ static sptr<AppExecFwk::IBundleMgr> GetBundleManager()
if (callerUid == -1) {
callerUid = IPCSkeleton::GetCallingUid();
}
- if (ROOT_UID == callerUid) {
- HILOG_ERROR("uid is root,ability cannot be start when the visible is false");
- return ABILITY_VISIBLE_FALSE_DENY_REQUEST;
- }
+ // if (ROOT_UID == callerUid) {
+ // HILOG_ERROR("uid is root,ability cannot be start when the visible is false");
+ // return ABILITY_VISIBLE_FALSE_DENY_REQUEST;
+ // }
auto bms = GetBundleManager();
CHECK_POINTER_AND_RETURN(bms, GET_ABILITY_SERVICE_FAILED);
auto isSystemApp = bms->CheckIsSystemAppByUid(callerUid);
...@@ -72,6 +72,7 @@ SRC_URI += "file://foundation_distributedschedule_safwk-slash-system-symlink.pat ...@@ -72,6 +72,7 @@ SRC_URI += "file://foundation_distributedschedule_safwk-slash-system-symlink.pat
SRC_URI += "file://test-xts-acts-Start-tests-from-onInit.patch;patchdir=${S}/test/xts/acts" SRC_URI += "file://test-xts-acts-Start-tests-from-onInit.patch;patchdir=${S}/test/xts/acts"
SRC_URI += "file://RenderText-PerformLayout-remove-sigsegv-code.patch;patchdir=${S}/foundation/ace/ace_engine" SRC_URI += "file://RenderText-PerformLayout-remove-sigsegv-code.patch;patchdir=${S}/foundation/ace/ace_engine"
SRC_URI += "file://remove-root-uid-check.patch;patchdir=${S}/foundation/aafwk/standard"
inherit python3native gn_base ptest inherit python3native gn_base ptest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment