!5185 代码加密字段删除

Merge pull request !5185 from Zhou Shihui/rename
This commit is contained in:
openharmony_ci 2024-01-02 12:38:08 +00:00 committed by Gitee
commit aeabd1adba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 0 additions and 19 deletions

View File

@ -3349,14 +3349,6 @@ void CreateProfileTypeObject(napi_env env, napi_value value)
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "INTENT_PROFILE", nIntentProfile));
}
void CreateApplicationReservedFlagObject(napi_env env, napi_value value)
{
napi_value nEncryptedApplication;
NAPI_CALL_RETURN_VOID(env, napi_create_int32(
env, static_cast<int32_t>(ApplicationReservedFlag::ENCRYPTED_APPLICATION), &nEncryptedApplication));
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "ENCRYPTED_APPLICATION", nEncryptedApplication));
}
ErrCode InnerGetAppProvisionInfo(
const std::string &bundleName, int32_t userId, AppProvisionInfo &appProvisionInfo)
{

View File

@ -276,7 +276,6 @@ void CreateModuleTypeObject(napi_env env, napi_value value);
void CreateBundleTypeObject(napi_env env, napi_value value);
void CreateCompatiblePolicyObject(napi_env env, napi_value value);
void CreateProfileTypeObject(napi_env env, napi_value value);
void CreateApplicationReservedFlagObject(napi_env env, napi_value value);
void RegisterClearCacheListener();
} // namespace AppExecFwk
} // namespace OHOS

View File

@ -82,10 +82,6 @@ static napi_value BundleManagerExport(napi_env env, napi_value exports)
NAPI_CALL(env, napi_create_object(env, &nProfileType));
CreateProfileTypeObject(env, nProfileType);
napi_value nApplicationReservedFlag = nullptr;
NAPI_CALL(env, napi_create_object(env, &nApplicationReservedFlag));
CreateApplicationReservedFlagObject(env, nApplicationReservedFlag);
napi_property_descriptor desc[] = {
DECLARE_NAPI_FUNCTION("getBundleArchiveInfo", GetBundleArchiveInfo),
DECLARE_NAPI_FUNCTION("getBundleArchiveInfoSync", GetBundleArchiveInfoSync),
@ -146,7 +142,6 @@ static napi_value BundleManagerExport(napi_env env, napi_value exports)
DECLARE_NAPI_FUNCTION("verifyAbc", VerifyAbc),
DECLARE_NAPI_PROPERTY("ProfileType", nProfileType),
DECLARE_NAPI_FUNCTION("getRecoverableApplicationInfo", GetRecoverableApplicationInfo),
DECLARE_NAPI_PROPERTY("ApplicationReservedFlag", nApplicationReservedFlag),
DECLARE_NAPI_FUNCTION("setAdditionalInfo", SetAdditionalInfo),
};

View File

@ -1249,11 +1249,6 @@ void CommonFunc::ConvertApplicationInfo(napi_env env, napi_value objAppInfo, con
&nAppProvisionType));
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objAppInfo, "appProvisionType", nAppProvisionType));
napi_value nApplicationReservedFlag;
NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, appInfo.applicationReservedFlag, &nApplicationReservedFlag));
NAPI_CALL_RETURN_VOID(
env, napi_set_named_property(env, objAppInfo, "applicationReservedFlag", nApplicationReservedFlag));
napi_value nIsSystemApp;
NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, appInfo.isSystemApp, &nIsSystemApp));
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objAppInfo, "systemApp", nIsSystemApp));