Call迁移, BasicFeature -> SystemFeature

Signed-off-by: ywx1281445 <yuandongping@huawei.com>
This commit is contained in:
ywx1281445 2024-04-26 15:28:23 +08:00
parent b46afae365
commit 9214dcf429
44 changed files with 15 additions and 5 deletions

10
OAT.xml
View File

@ -152,6 +152,7 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/OpenHarmony.p12" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyApplication.pem" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyProfileRelease.pem" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyProfileDebug.pem" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/app_packing_tool.jar" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/TaskManagement/WorkScheduler/signTool/hap-sign-tool.jar" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/UploadAndDownLoad/environment/hfs.exe" desc="Provided by hfs"/>
@ -365,6 +366,13 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/screenshots/img.png" desc="Provided by code/SystemFeature/Media/VoiceCallDemo"/>
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/screenshots/img1.png" desc="Provided by code/SystemFeature/Media/VoiceCallDemo"/>
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/screenshots/img2.png" desc="Provided by code/SystemFeature/Media/VoiceCallDemo"/>
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/entry/src/main/resources/rawfile/wechat_voice_ring.mp3" desc="Provided by code/SystemFeature/Media/VoiceCallDemo"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/entry/src/main/resources/base/media/call_off.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/entry/src/main/resources/base/media/call_on.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Call/screenshots/device/call.png" desc="Provided by code/SystemFeature/Telephony/Call"/>
<filteritem type="filepath" name="code/BasicFeature/ArkTSCard/ArkTSCard/libs/ArkTSUser.hap" desc="Provided by code/BasicFeature/ArkTSCard/ArkTSCard"/>
<filteritem type="filepath" name="code/Project/HapBuild/compile-tool/tool/sign_tool/OpenHarmonyProfileDebug.pem" desc="Provided by code/Project/HapBuild"/>
<filteritem type="filepath" name="code/Project/HapBuild/compile-tool/tool/sign_tool/OpenHarmonyApplication.pem" desc="Provided by code/Project/HapBuild"/>
@ -418,6 +426,7 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/Solutions/Tools/FlipClock/lib/Brightness-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/entry/src/main/resources/rawfile/wechat_voice_ring.mp3" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/DataManagement/UDMF/UniformTypeDescriptor/UTDType/entry/src/main/resources/rawfile/arkdata/utd/utd.json5" desc="二进制文件无需添加License头"/>
</filefilter>
<filefilter name="copyrightPolicyFilter" desc="Copyright文件头校验策略的过滤条件" >
@ -448,6 +457,7 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/Solutions/Tools/FlipClock/lib/Brightness-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/SystemFeature/Media/VoiceCallDemo/entry/src/main/resources/rawfile/wechat_voice_ring.mp3" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/DataManagement/UDMF/UniformTypeDescriptor/UTDType/entry/src/main/resources/rawfile/arkdata/utd/utd.json5" desc="二进制文件,无需添加版权头"/>
</filefilter>
</filefilterlist>

View File

@ -2,7 +2,7 @@
### 介绍
本示例使用[call](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-call.md)相关接口实现了拨打电话并显示电话相关信息的功能
本示例使用[call](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-telephony-kit/js-apis-call-sys.md)相关接口实现了拨打电话并显示电话相关信息的功能
### 效果预览
@ -32,11 +32,11 @@ entry/src/main/ets/
* 该示例展示拨打电话功能dial方法拨打电话可设置通话参数hasCall方法判断是否存在通话getCallState方法获取当前通话状态isEmergencyPhoneNumber方法判断是否是紧急电话号码formatPhoneNumber方法格式化电话号码formatPhoneNumberToE164方法将电话号码格式化为E.164表示形式。
* 源码链接:[CallView.ets](entry/src/main/ets/common/CallView.ets)
* 接口参考:[@ohos.telephony.call](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-call.md)
* 接口参考:[@ohos.telephony.call](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-telephony-kit/js-apis-call-sys.md)
### 相关权限
拨打电话权限: [ohos.permission.PLACE_CALL](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md#ohospermissionplace_call)
拨打电话权限: [ohos.permission.PLACE_CALL](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-system-apps.md#ohospermissionplace_call)
### 依赖
@ -52,7 +52,7 @@ entry/src/main/ets/
4.本示例需要使用DevEco Studio 3.1 Beta2 (Build Version: 3.1.0.400, built on April 7, 2023)及以上版本才可编译运行。
5.本示例所配置的权限ohos.permission.PLACE_CALL为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/)。
5.本示例所配置的权限ohos.permission.PLACE_CALL为system_basic级别(相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-system-apps.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/hapsigntool-guidelines.md)。
### 下载
@ -60,7 +60,7 @@ entry/src/main/ets/
```
git init
git config core.sparsecheckout true
echo code/BasicFeature/Telephony/Call/ > .git/info/sparse-checkout
echo code/SystemFeature/Telephony/Call/ > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB