Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
This commit is contained in:
CheungVane 2022-12-06 21:14:39 +08:00
parent bff3672321
commit 90ea4227e8
2 changed files with 16 additions and 2 deletions

View File

@ -377,6 +377,19 @@ FeaturePolicy wifiFeature[] = {
},
};
FeaturePolicy huksFeature[] = {
{
"huks_feature",
{
{
.type = RANGE,
.uidMin = 0,
.uidMax = __INT_MAX__,
},
},
},
};
static PolicySetting g_presetPolicies[] = {
{"permissionms", pmsFeature, 2},
{"abilityms", amsFeature, 2},
@ -399,7 +412,8 @@ static PolicySetting g_presetPolicies[] = {
{"devauth_svc", devAuthFeature, 1},
{"battery_service", batteryFeature, 1},
{"dev_mgr_svc", deviceManagerFeature, 1},
{"wifisrvlite", wifiFeature, 3}
{"wifisrvlite", wifiFeature, 3},
{"huks_feature", 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};
static unsigned int g_systemSvcUids[] = {1, 2, 0, 6, 7, 8, 9, 10, 11, 12, 19};
static unsigned int g_systemSvcUidSize = sizeof(g_systemSvcUids) / sizeof(unsigned int);