feat(push): 支持解绑手机号与设备策略推送
- 新增 contentType=18 解绑标记,上报 otherInfo 时不再携带 SIM 卡手机号 - 新增 contentType=19 设备策略解析并落库到 MMKV - 屏幕采集服务改为按需启动,远程会话结束后停止并释放资源 - 增加通知心跳刷新,避免静止画面不推帧导致黑屏
This commit is contained in:
@@ -73,4 +73,53 @@ public class CommonConfig {
|
||||
@Deprecated
|
||||
public static final String CURRENT_LOCATION_ID_KEY = "current_map_location_ID";
|
||||
|
||||
/**
|
||||
* 设备解绑标记(1=已解除手机号绑定,0=未解绑)。
|
||||
* <p>
|
||||
* 由服务端下发「解除绑定」推送(contentType = 18)置为 1。
|
||||
* 置为 1 后,设备上报 {@code otherInfo} 时不再携带手机号,
|
||||
* 从而避免服务端把 SIM 卡手机号重新写回 {@code sys_sn.snMobile}。
|
||||
*/
|
||||
public static final String KEY_DEVICE_UNBIND_MOBILE = "device_unbind_mobile_key";
|
||||
|
||||
// ===================== 设备策略开关(由服务端策略推送 contentType=19 下发) =====================
|
||||
/** USB偏好设置(1开 0关) */
|
||||
public static final String KEY_POLICY_USB_DATA = "policy_usb_data_key";
|
||||
/** 时间设置管控(1开 0关) */
|
||||
public static final String KEY_POLICY_TIME_SETTING = "policy_time_setting_key";
|
||||
/** 存储卡(1开 0关) */
|
||||
public static final String KEY_POLICY_STORAGE_CARD = "policy_storage_card_key";
|
||||
/** 恢复出厂(1开 0关) */
|
||||
public static final String KEY_POLICY_FACTORY_RESET = "policy_factory_reset_key";
|
||||
/** WiFi热点开关(1开 0关) */
|
||||
public static final String KEY_POLICY_WIFI_HOTSPOT = "policy_wifi_hotspot_key";
|
||||
/** 蓝牙开关(1开 0关) */
|
||||
public static final String KEY_POLICY_BLUETOOTH_SWITCH = "policy_bluetooth_switch_key";
|
||||
/** 壁纸功能(1开 0关) */
|
||||
public static final String KEY_POLICY_WALLPAPER = "policy_wallpaper_key";
|
||||
/** 通知栏显示(1开 0关) */
|
||||
public static final String KEY_POLICY_NOTIFICATION_BAR = "policy_notification_bar_key";
|
||||
/** 状态栏下拉开关(1开 0关) */
|
||||
public static final String KEY_POLICY_STATUS_BAR_PULL_DOWN = "policy_status_bar_pull_down_key";
|
||||
/** 系统导航条显示(1开 0关) */
|
||||
public static final String KEY_POLICY_SYSTEM_NAV_BAR_SHOW = "policy_system_nav_bar_show_key";
|
||||
/** 系统导航栏设置(1开 0关) */
|
||||
public static final String KEY_POLICY_SYSTEM_NAV_BAR_SETTING = "policy_system_nav_bar_setting_key";
|
||||
/** 导航条选项(1开 0关) */
|
||||
public static final String KEY_POLICY_NAV_BAR_OPTIONS = "policy_nav_bar_options_key";
|
||||
/** 蓝牙功能开关(1开 0关) */
|
||||
public static final String KEY_POLICY_BLUETOOTH_FUNCTION = "policy_bluetooth_function_key";
|
||||
/** OTA升级管控(1开 0关) */
|
||||
public static final String KEY_POLICY_OTA_UPGRADE = "policy_ota_upgrade_key";
|
||||
/** 应用安装开关(1开 0关) */
|
||||
public static final String KEY_POLICY_APP_INSTALL = "policy_app_install_key";
|
||||
/** 自动旋转(1开 0关) */
|
||||
public static final String KEY_POLICY_AUTO_ROTATE = "policy_auto_rotate_key";
|
||||
/** 自动亮度(1开 0关) */
|
||||
public static final String KEY_POLICY_AUTO_BRIGHTNESS = "policy_auto_brightness_key";
|
||||
/** 护眼模式(1开 0关) */
|
||||
public static final String KEY_POLICY_EYE_PROTECTION = "policy_eye_protection_key";
|
||||
/** 深色模式(1开 0关) */
|
||||
public static final String KEY_POLICY_DARK_MODE = "policy_dark_mode_key";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user