• Home
Name Date Size #Lines LOC

..--

AppScope/12-May-2024-3633

entry/12-May-2024-1,122915

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-20241.8 KiB3618

README_zh.mdD12-May-20241.8 KiB3719

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024168 21

package.jsonD12-May-2024378 1918

README.md

1# Mission Manager
2
3### Introduction
4
5This sample calls APIs related to the mission manager to lock, unlock, and clear missions, and switch them to the foreground.
6
7### Concepts
8
9Mission manager: You can lock, unlock, and clear missions, and switch them to the foreground.
10
11### Required Permissions
12
13ohos.permission.MANAGE_MISSIONS
14
15### Usage
16
171. Pull down the sample app to obtain the mission information, including the bundle name, running status, locking status, mission snapshot, and whether the mission supports migration. Information about a maximum of 10 missions can be obtained.
18
192. Swipe left on the mission list and touch **Lock** to lock a mission.
20
213. If the mission is locked, touch **Unlock** to unlock it.
22
234. Touch **Delete** to delete a mission.
24
255. Touch **Move** to switch a mission to the foreground.
26
27### Constraints
28
291. This sample can only be run on standard-system devices.
30
312. This sample supports only the SDK of API version 9 and uses the system API **@ohos.application.missionManager**. Therefore, you must manually switch to the Full SDK for successful compilation. For details about the operation, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md).
32
333. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.992, built on July 14, 2022) must be used.
34
354. The permission **ohos.permission.MANAGE_MISSIONS** is at the system_core level. Therefore, you must manually configure the signature for the corresponding permission level. For details about the permission level, see [Permission List](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md). For details about the configuration operation, see [Having Your App Automatically Signed](https://docs.openharmony.cn/pages/v3.2Beta/en/application-dev/security/hapsigntool-overview.md/).
36

README_zh.md

1# 系统任务管理
2
3### 简介
4
5本示例通过调用系统任务管理的能力,对系统任务执行锁定、解锁、清理、切换到前台等操作。
6
7![](./screenshots/device/missionManager.png)
8
9### 相关概念
10
11任务管理:对任务执行锁定、解锁、清理、切换到前台等操作。
12
13### 相关权限
14
15任务管理权限:ohos.permission.MANAGE_MISSIONS
16
17### 使用说明
18
191.下拉“**获取系统任务信息**”,获取当前系统任务的包名、运行状态、锁定状态、任务是否支持迁移、任务快照等信息列表,且最多可获取10条任务。
20
212.左滑任务列表,点击“**锁定**”,即可锁定指定的任务。
22
233.若当前任务已锁定,可点击“**解锁**”,即可解锁指定的任务。
24
254.点击“**删除**”,即可删除指定的任务。
26
275.点击“**移动**”,即可将指定的任务移动到前台执行。
28
29### 约束与限制
30
311.本示例仅支持在标准系统上运行。
32
332.本示例仅支持API9版本SDK,本示例涉及使用系统接口:@ohos.application.missionManager,需要手动替换Full SDK才能编译通过,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)34
353.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
36
374.本示例所配置的权限ohos.permission.MANAGE_MISSIONS为system_core级别(相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://docs.openharmony.cn/pages/v3.2Beta/zh-cn/application-dev/security/hapsigntool-overview.md/))