From 62d01f66f8755d55d9e99addce3deaf320a503a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= Date: Fri, 21 Feb 2025 14:20:26 +0800 Subject: [PATCH] remove developer mode in hnp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩 --- interfaces/innerkits/hnp/src/hnp_api.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/interfaces/innerkits/hnp/src/hnp_api.c b/interfaces/innerkits/hnp/src/hnp_api.c index 2f303234..62b4245a 100644 --- a/interfaces/innerkits/hnp/src/hnp_api.c +++ b/interfaces/innerkits/hnp/src/hnp_api.c @@ -164,11 +164,6 @@ int NativeInstallHnp(const char *userId, const char *hnpRootPath, const HapInfo char *apcEnv[MAX_ENV_NUM] = {0}; int index = 0; - if (!IsDeveloperModeOpen()) { - HNPAPI_LOG("\r\n [HNP API] native package install not in developer mode"); - return HNP_API_NOT_IN_DEVELOPER_MODE; - } - if ((userId == NULL) || (hnpRootPath == NULL) || (hapInfo == NULL)) { return HNP_API_ERRNO_PARAM_INVALID; } @@ -207,11 +202,6 @@ int NativeUnInstallHnp(const char *userId, const char *packageName) char *apcEnv[MAX_ENV_NUM] = {0}; int index = 0; - if (!IsDeveloperModeOpen()) { - HNPAPI_LOG("\r\n [HNP API] native package uninstall not in developer mode"); - return HNP_API_NOT_IN_DEVELOPER_MODE; - } - if ((userId == NULL) || (packageName == NULL)) { return HNP_API_ERRNO_PARAM_INVALID; } -- Gitee