WorkScheduler迁移, BasicFeature -> SystemFeature

Signed-off-by: ywx1281445 <yuandongping@huawei.com>
This commit is contained in:
ywx1281445 2024-05-07 10:57:28 +08:00
parent 7138fd8791
commit 6378859951
61 changed files with 61 additions and 19 deletions

58
OAT.xml
View File

@ -145,16 +145,19 @@ 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="Provided by code/BasicFeature/Notification/CustomCommonEvent"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="Provided by code/BasicFeature/Ads/OAIDSample"/>
<filteritem type="filepath" name="code/Solutions/Tools/FlipClock/lib/Brightness-1.0.0.tgz" desc="Provided by code/Solutions/Tools/FlipClock"/>
<filteritem type="filepath" name="code/DataMock/QuickFix/entry-signed-release.hqf" desc="Provided by code/BasicFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/DataMock/QuickFix/entry-signed-release.hqf" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/Solutions/Shopping/ASOrangeShopping/data/freeinstall/famanager.hap" desc="Provided by BMS"/>
<filteritem type="filepath" name="code/Solutions/Shopping/ASOrangeShopping/data/freeinstall/launcher.hap" desc="Provided by code/SystemFeature/ApplicationModels/Launcher"/>
<filteritem type="filepath" name="code/DataMock/WorkScheduler/UpdateWorkScheduler.hap" desc="Provided by code/BasicFeature/TaskManagement/WorkScheduler"/>
<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/DataMock/WorkScheduler/UpdateWorkScheduler.hap" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/OpenHarmony.p12" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyApplication.pem" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyProfileRelease.pem" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/OpenHarmonyProfileDebug.pem" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/app_packing_tool.jar" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/signTool/hap-sign-tool.jar" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/signature/material/OpenHarmony.p12" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/signature/material/OpenHarmonyApplication.pem" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/signature/material/hap-sign-tool.jar" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/UploadAndDownLoad/environment/hfs.exe" desc="Provided by hfs"/>
<filteritem type="filepath" name="code/BasicFeature/DeviceManagement/Vibrator/CustomHaptic/libs/library.har" desc="Provided by code/BasicFeature/DeviceManagement/Vibrator"/>
<filteritem type="filepath" name="code/Solutions/Shopping/OrangeShopping/libs/ohos-qr-code-scan-1.0.2.har" desc="Provided by media/QRCodeScan"/>
@ -483,6 +486,45 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/SystemFeature/Notification/CustomNotificationPush/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Notification/CustomNotificationPush"/>
<filteritem type="filepath" name="code/SystemFeature/Notification/CustomNotificationPush/screenshots/filter_off.png" desc="Provided by code/SystemFeature/Notification/CustomNotificationPush"/>
<filteritem type="filepath" name="code/SystemFeature/Notification/CustomNotificationPush/screenshots/filter_on.png" desc="Provided by code/SystemFeature/Notification/CustomNotificationPush"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/entry/src/main/resources/base/media/right.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/screenshots/device/dialog.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/screenshots/device/newVersion.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/WorkScheduler/screenshots/device/oldVersion.png" desc="Provided by code/SystemFeature/TaskManagement/WorkScheduler"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/entry/src/main/resources/base/media/Tomato.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/screenshots/device/after.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/TransientTask/screenshots/device/before.png" desc="Provided by code/SystemFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bgFive.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bgFour.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bgOne.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bgThree.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bgTwo.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/bird.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/fgFive.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/fgFour.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/fgOne.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/fgThree.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/fgTwo.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeNorthFive.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeNorthFour.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeNorthOne.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeNorthThree.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeNorthTwo.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeSouthFive.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeSouthFour.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeSouthOne.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeSouthThree.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/ets/common/pic/pipeSouthTwo.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/screenshot/snapshot1.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/SystemFeature/TaskManagement/Flybird/screenshot/snapshot2.png" desc="Provided by code/SystemFeature/TaskManagement/Flybird"/>
<filteritem type="filepath" name="code/BasicFeature/ArkTSCard/ArkTSCard/libs/ArkTSUser.hap" desc="Provided by code/BasicFeature/ArkTSCard/ArkTSCard"/>
<filteritem type="filepath" name="code/BasicFeature/Native/Audio/entry/src/main/resources/base/media/pic_Audiovivid.png" desc="Provided by code/BasicFeature/Native/Audio"/>
<filteritem type="filepath" name="code/BasicFeature/Native/Audio/screenshots/device/AudioVivid.jpg" desc="Provided by code/BasicFeature/Native/Audio"/>

View File

@ -2,11 +2,11 @@
### 介绍
本示例使用[@ohos.WorkSchedulerExtensionAbility](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-WorkSchedulerExtensionAbility.md)
、[@ohos.net.http](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-http.md)
、[@ohos.notification](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-notification.md)
、[@ohos.bundle](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-Bundle.md)
、[@ohos.fileio](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-fileio.md) 等接口,实现了设置后台任务、下载更新包
本示例使用[@ohos.WorkSchedulerExtensionAbility](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-backgroundtasks-kit/js-apis-WorkSchedulerExtensionAbility.md)
、[@ohos.net.http](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-network-kit/js-apis-http.md)
、[@ohos.notification](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-notification-kit/js-apis-notification.md)
、[@ohos.bundle](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-ability-kit/js-apis-Bundle-sys.md)
、[@ohos.fileio](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-core-file-kit/js-apis-fileio.md) 等接口,实现了设置后台任务、下载更新包
、保存更新包、发送通知 、安装更新包实现升级的功能。
### 效果预览
@ -64,11 +64,11 @@ entry/src/main/ets/
### 相关权限
[ohos.permission.INTERNET](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md#ohospermissioninternet)
[ohos.permission.INTERNET](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-all.md#ohospermissioninternet)
[ohos.permission.INSTALL_BUNDLE](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md#ohospermissioninstall_bundle)
[ohos.permission.INSTALL_BUNDLE](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-system-apps.md#ohospermissioninstall_bundle)
[ohos.permission.NOTIFICATION_CONTROLLER](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md#ohospermissionnotification_controller)
[ohos.permission.NOTIFICATION_CONTROLLER](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-system-apps.md#ohospermissionnotification_controller)
### 依赖
@ -79,12 +79,12 @@ entry/src/main/ets/
1. 本示例仅支持标准系统上运行。
2. 本示例已适配API version 9版本SDK本示例涉及使用系统接口@ohos.bundle需要手动替换Full
SDK才能编译通过具体操作可参考[替换指南](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/)。
SDK才能编译通过具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/faqs/full-sdk-switch-guide.md)。
3. 本示例需要使用DevEco Studio 3.1 Beta2 (Build Version: 3.1.0.400, built on April 7, 2023)及以上版本才可编译运行;
4. 本示例所配置的权限ohos.permission.INSTALL_BUNDLE与ohos.permission.NOTIFICATION_CONTROLLER为system_core级别(
相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-auto-configuring-signature-information-0000001271659465))。
相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/AccessToken/permissions-for-system-apps.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://docs.openharmony.cn/pages/v4.0/zh-cn/application-dev/security/hapsigntool-overview.md))。
### 下载
@ -92,6 +92,6 @@ entry/src/main/ets/
git init
git config core.sparsecheckout true
echo code/BasicFeature/TaskManagement/WorkScheduler/ > .git/info/sparse-checkout
echo code/SystemFeature/TaskManagement/WorkScheduler/ > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master