• Home
Name Date Size #Lines LOC

..--

AppScope/12-May-2024-3633

entry/12-May-2024-1,5151,349

screenshots/devices/12-May-2024-

.gitignoreD12-May-2024142 1111

README.mdD12-May-20241.1 KiB2010

README_zh.mdD12-May-20241.8 KiB4322

build-profile.json5D12-May-20241 KiB4341

hvigorfile.tsD12-May-2024158 21

package.jsonD12-May-2024373 1818

README.md

1# SIM Management
2
3## Introduction
4
5This sample shows how to use the SIM management service to manage SIM settings, including the ICCID, default voice service, ISO country code, home PLMN, service provider name, and GID1.
6
7### Usage
8
91. Check the SIM card area. If a SIM card is inserted into SIM card slot 1, the SIM card 1 area is displayed in blue; if no SIM card is inserted, the SIM card 1 area is displayed in white. The case is the same for SIM card 2 area.
10
112. Click the SIM card 1 area. A dialog showing the ICCID, ISO country code, home PLMN, service provider name, and GID1 of SIM card 1 will be displayed. If you click the SIM card 1 area again, the dialog disappears. The case is the same for SIM card 2 area.
12
133. Buttons for the default active SIM card are in blue background. Currently, only the default active SIM card is displayed. The function of changing the default active SIM card is not supported.
14
154. The call transfer function is not supported currently, and therefore the button is not responsive.
16
17### Constraints
18
19This sample can only be run on standard-system devices.
20

README_zh.md

1# SIM卡管理
2
3### 简介
4
5本示例使用[sim](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-sim.md)相关接口,展示了电话服务中SIM卡相关功能,包含SIM卡的服务提供商、ISO国家码、归属PLMN号信息,以及默认语音卡功能。
6
7使用说明:
8
91.若SIM卡槽1插入SIM卡则SIM卡1区域显示为蓝色,否则默认为白色。
10
112.点击SIM卡1区域,弹窗显示SIM卡1的相关信息,再次点击面板消失。
12
133.默认拨号的SIM卡其按钮背景色为蓝色,目前只展示默认拨号的SIM卡,更改默认拨号卡功能暂不支持。
14
154.呼叫转移界面功能暂不支持,故点击按钮无实际操作。
16
17
18### 效果预览
19
20|主页|
21|--------------------------------|
22|![](screenshots/devices/main.png)|
23
24### 相关权限
25
26电话权限:[ohos.permission.GET_TELEPHONY_STATE](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)
27
28### 依赖
29
30不涉及。
31
32### 约束与限制
33
341.本示例暂不支持双卡功能,且需要插入SIM卡,目前该功能仅支持部分机型。
35
362.本示例仅支持在标准系统上运行。
37
383.本示例仅支持API9版本SDK,版本号:3.2.10.6。
39
404.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。
41
425.本示例所配置的权限ohos.permission.GET_TELEPHONY_STATE为system_basic级别(相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/security/hapsigntool-overview.md/))43