#鸿蒙学习大百科#如何设置当前的加密分区?

如何设置当前的加密分区?

HarmonyOS
2024-10-22 14:41:59
1022浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
努力向前进
onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
  // 存储普通信息前,切换到EL1设备级加密
  this.context.area = contextConstant.AreaMode.EL1; // 切换area
  // 存储普通信息

  // 存储敏感信息前,切换到EL2用户级加密
  this.context.area = contextConstant.AreaMode.EL2; // 切换area
  // 存储敏感信息

  // 存储敏感信息前,切换到EL3用户级加密
  this.context.area = contextConstant.AreaMode.EL3; // 切换area
  // 存储敏感信息

  // 存储敏感信息前,切换到EL4用户级加密
  this.context.area = contextConstant.AreaMode.EL4; // 切换area
  // 存储敏感信息
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
分享
微博
QQ
微信
回复
2024-10-22 22:15:13
相关问题