1f7a47986Sopenharmony_ci/*
2f7a47986Sopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
3f7a47986Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4f7a47986Sopenharmony_ci * you may not use this file except in compliance with the License.
5f7a47986Sopenharmony_ci * You may obtain a copy of the License at
6f7a47986Sopenharmony_ci *
7f7a47986Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f7a47986Sopenharmony_ci *
9f7a47986Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f7a47986Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f7a47986Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f7a47986Sopenharmony_ci * See the License for the specific language governing permissions and
13f7a47986Sopenharmony_ci * limitations under the License.
14f7a47986Sopenharmony_ci */
15f7a47986Sopenharmony_ci
16f7a47986Sopenharmony_ci#ifndef COMMON_NATIVE_INCLUDE_EDM_CONSTANTS_H
17f7a47986Sopenharmony_ci#define COMMON_NATIVE_INCLUDE_EDM_CONSTANTS_H
18f7a47986Sopenharmony_ci
19f7a47986Sopenharmony_ci#include <iostream>
20f7a47986Sopenharmony_ci
21f7a47986Sopenharmony_cinamespace OHOS {
22f7a47986Sopenharmony_cinamespace EDM {
23f7a47986Sopenharmony_cinamespace EdmConstants {
24f7a47986Sopenharmony_ci    constexpr int32_t DECIMAL = 10;
25f7a47986Sopenharmony_ci    constexpr int32_t APPID_MAX_SIZE = 200;
26f7a47986Sopenharmony_ci    constexpr int32_t DEFAULT_USER_ID = 100;
27f7a47986Sopenharmony_ci    constexpr int32_t USB_ERRCODE_INTERFACE_NO_INIT = 88080389;
28f7a47986Sopenharmony_ci    constexpr uint32_t ALLOWED_USB_DEVICES_MAX_SIZE = 1000;
29f7a47986Sopenharmony_ci    constexpr int32_t STORAGE_USB_POLICY_READ_WRITE = 0;
30f7a47986Sopenharmony_ci    constexpr int32_t STORAGE_USB_POLICY_READ_ONLY = 1;
31f7a47986Sopenharmony_ci    constexpr int32_t STORAGE_USB_POLICY_DISABLED = 2;
32f7a47986Sopenharmony_ci    constexpr int32_t USB_INTERFACE_DESCRIPTOR = 0;
33f7a47986Sopenharmony_ci    constexpr int32_t USB_DEVICE_DESCRIPTOR = 1;
34f7a47986Sopenharmony_ci    constexpr uint32_t DISALLOWED_USB_DEVICES_TYPES_MAX_SIZE = 200;
35f7a47986Sopenharmony_ci    constexpr int32_t AUTO_START_APPS_MAX_SIZE = 10;
36f7a47986Sopenharmony_ci    constexpr int32_t BLUETOOTH_WHITELIST_MAX_SIZE = 1000;
37f7a47986Sopenharmony_ci    constexpr int32_t DISALLOW_LIST_FOR_ACCOUNT_MAX_SIZE = 1000;
38f7a47986Sopenharmony_ci
39f7a47986Sopenharmony_ci    const char* const PERMISSION_TAG_VERSION_11 = "version_11";
40f7a47986Sopenharmony_ci    const char* const PERMISSION_TAG_VERSION_12 = "version_12";
41f7a47986Sopenharmony_ci    const char* const PERMISSION_TAG_SYSTEM_API = "system";
42f7a47986Sopenharmony_ci
43f7a47986Sopenharmony_ci    const char* const DISALLOW_FOR_ACCOUNT_TYPE = "disallowForAccount";
44f7a47986Sopenharmony_ci    const char* const FINGERPRINT_AUTH_TYPE = "fingerprintAuth";
45f7a47986Sopenharmony_ci
46f7a47986Sopenharmony_ci
47f7a47986Sopenharmony_ci    namespace DeviceInfo {
48f7a47986Sopenharmony_ci        const char* const DEVICE_NAME = "deviceName";
49f7a47986Sopenharmony_ci        const char* const DEVICE_SERIAL = "deviceSerial";
50f7a47986Sopenharmony_ci        const char* const SIM_INFO = "simInfo";
51f7a47986Sopenharmony_ci        const char* const SIM_SLOT_ID = "slotId";
52f7a47986Sopenharmony_ci        const char* const SIM_MEID = "MEID";
53f7a47986Sopenharmony_ci        const char* const SIM_IMSI = "IMSI";
54f7a47986Sopenharmony_ci        const char* const SIM_ICCID = "ICCID";
55f7a47986Sopenharmony_ci        const char* const SIM_IMEI = "IMEI";
56f7a47986Sopenharmony_ci        constexpr int32_t SIM_SLOT_ID_0 = 0;
57f7a47986Sopenharmony_ci        constexpr int32_t SIM_SLOT_ID_1 = 1;
58f7a47986Sopenharmony_ci    } // namespace DeviceInfo
59f7a47986Sopenharmony_ci
60f7a47986Sopenharmony_ci    namespace Restrictions {
61f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_BLUETOOTH = "bluetooth";
62f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_MODIFY_DATETIME = "modifyDateTime";
63f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_PRINTER = "printer";
64f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_HDC = "hdc";
65f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_MIC = "microphone";
66f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_FINGER_PRINT = "fingerprint";
67f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_SCREENSHOT = "screenshot";
68f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_SCREEN_RECORD = "screenRecord";
69f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_USB = "usb";
70f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_WIFI = "wifi";
71f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_DISK_RECOVERY_KEY = "diskRecoveryKey";
72f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_NEAR_LINK = "nearLink";
73f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_TETHERING = "tethering";
74f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_INACTIVE_USER_FREEZE = "inactiveUserFreeze";
75f7a47986Sopenharmony_ci        const char* const LABEL_DISALLOWED_POLICY_CAMERA = "camera";
76f7a47986Sopenharmony_ci    } // namespace Restrictions
77f7a47986Sopenharmony_ci
78f7a47986Sopenharmony_ci    namespace SecurityManager {
79f7a47986Sopenharmony_ci        const char* const PATCH = "patch";
80f7a47986Sopenharmony_ci        const char* const ENCRYPTION = "encryption";
81f7a47986Sopenharmony_ci        const char* const ROOT = "root";
82f7a47986Sopenharmony_ci        const char* const SET_SINGLE_WATERMARK_TYPE = "single";
83f7a47986Sopenharmony_ci        const char* const SET_ALL_WATERMARK_TYPE = "all";
84f7a47986Sopenharmony_ci    } // namespace SecurityManager
85f7a47986Sopenharmony_ci
86f7a47986Sopenharmony_ci    namespace DeviceSettings {
87f7a47986Sopenharmony_ci        const char* const SCREEN_OFF = "screenOff";
88f7a47986Sopenharmony_ci        const char* const POWER_POLICY = "powerPolicy";
89f7a47986Sopenharmony_ci        const char* const DATE_TIME = "dateTime";
90f7a47986Sopenharmony_ci    } // namespace DeviceSettings
91f7a47986Sopenharmony_ci
92f7a47986Sopenharmony_ci    namespace DeviceControl {
93f7a47986Sopenharmony_ci        const char* const RESET_FACTORY = "resetFactory";
94f7a47986Sopenharmony_ci        const char* const REBOOT = "reboot";
95f7a47986Sopenharmony_ci        const char* const SHUT_DOWN = "shutDown";
96f7a47986Sopenharmony_ci        const char* const LOCK_SCREEN = "lockScreen";
97f7a47986Sopenharmony_ci    } // namespace DeviceControl
98f7a47986Sopenharmony_ci} // namespace EdmConstants
99f7a47986Sopenharmony_ci} // namespace EDM
100f7a47986Sopenharmony_ci} // namespace OHOS
101f7a47986Sopenharmony_ci
102f7a47986Sopenharmony_ci#endif // COMMON_NATIVE_INCLUDE_EDM_CONSTANTS_H
103