!248 L1服务化

Merge pull request !248 from CheungVane/master
This commit is contained in:
openharmony_ci 2023-03-30 08:43:48 +00:00 committed by Gitee
commit c83f30225a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 16 additions and 2 deletions

View File

@ -390,6 +390,19 @@ FeaturePolicy devAttestFeature[] = {
},
};
FeaturePolicy huksFeature[] = {
{
"huks_feature",
{
{
.type = RANGE,
.uidMin = 0,
.uidMax = __INT_MAX__,
},
},
},
};
static PolicySetting g_presetPolicies[] = {
{"permissionms", pmsFeature, 2},
{"abilityms", amsFeature, 2},
@ -413,7 +426,8 @@ static PolicySetting g_presetPolicies[] = {
{"battery_service", batteryFeature, 1},
{"dev_mgr_svc", deviceManagerFeature, 1},
{"wifisrvlite", wifiFeature, 3},
{"attest_service", devAttestFeature, 1}
{"attest_service", devAttestFeature, 1},
{"huks_service", huksFeature, 1}
};
static int g_presetPolicySize = sizeof(g_presetPolicies) / sizeof(PolicySetting);

View File

@ -29,7 +29,7 @@
#include "policy_preset_product.h"
#include "policy_registry.h"
static unsigned int g_systemSvcUids[] = {1, 2, 0, 6, 7, 8, 9, 10, 11, 19, 20};
static unsigned int g_systemSvcUids[] = {1, 2, 0, 6, 7, 8, 9, 10, 11, 12, 19, 20};
static unsigned int g_systemSvcUidSize = sizeof(g_systemSvcUids) / sizeof(unsigned int);