Android 13에서는 작업 관리자라는 새로운 시스템 UI 어포던스가 사용자에게 백그라운드 앱의 포그라운드 서비스에서 사용 중인 리소스와 상태를 알리고, 사용자가 그러한 앱을 중지할 수 있도록 해줍니다.
Android 13에 알림 권한이 도입됨에 따라 사용자는 포그라운드 서비스를 실행하는 백그라운드 앱에서 위치, 미디어 재생, 프로젝션, 데이터 동기화, 영상 통화 및 음성 통화, 연결된 기기와 관련해 보내는 알림을 끌 수 있습니다. 이러한 알림을 끄면 포그라운드 서비스에서 사용자에게 상태 및 리소스 사용량을 표시하는 필수 알림이 표시되지 않습니다. 작업 관리자는 빠른 설정 화면에 정보 표시줄을 추가하여, 백그라운드에서 실행되는 앱을 포함해 메모리, 배터리와 같은 휴대전화 리소스의 사용량을 사용자에게 알려줍니다. 이 인터페이스를 사용하면 앱이 포그라운드 서비스를 오랫동안 실행 중일 때 사용자에게 알림이 전송되고 그러면 사용자는 앱을 중지할 수 있습니다. 어포던스는 화면에 눈에 띄지 않게 배치되므로 중요한 알림을 가리지 않습니다. 자세한 내용은 작업 관리자를 참고하세요.
백그라운드 앱을 위한 작업 관리자 구현
이 기능의 참조 AOSP 구현을 사용할 수 있지만, OEM은 이 시스템 UI를 맞춤설정하고 수정할 수 있습니다. 단, 구현이 [8.5/H-0- 1] CDD 요구사항을 충족하는 경우에 한합니다.
다이얼러와 카메라 등 기기 기능의 핵심인 특정 앱은 작업 관리자에 중지 어포던스를 표시해서는 안 됩니다.
AOSP 구현은 시스템 UI와 시스템 서버 사이에 새로운 내부 콜백 API를 사용합니다. 이 API를 사용하면 시스템 서버는 시스템 UI에 새 포그라운드 서비스가 시작된 시점을 알릴 수 있습니다. 또한 사용자의 요청이 있는 경우 이 API는 시스템 서버에 특정 앱을 중지하도록 알립니다.
백그라운드 앱 알림을 위한 작업 관리자 유효성 검사
수동 테스트에서는 작업 관리자 기능을 백그라운드에서 실행되는 앱과 비교하여 유효성을 검사합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-04-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-04-27(UTC)"],[],[],null,["# Task Manager\n\nIn Android 13, a new System UI affordance called the\n[Task Manager](https://developer.android.com/about/versions/13/changes/fgs-manager)\nnotifies the user about the state and resources being used by the foreground\nservices on background apps and enables the user to stop these apps.\n\nWith the introduction of [notification permissions](https://developer.android.com/about/versions/13/changes/notification-permission)\nin Android 13, users have control over turning off\nnotifications from background apps that run [foreground services](https://developer.android.com/guide/components/foreground-services)\nfor location, media playback and projection, data sync, video and voice calls,\nand connected devices. When such notifications are turned off, required\nnotifications from foreground services that indicate their state and resource\nusage to the user aren't displayed. The Task Manager adds an information bar\non the Quick Settings display to inform users of the apps running in the\nbackground and their usage of phone resources such as memory and battery. With\nthis interface, users are notified if an app is running a foreground service for\na long time and can choose to stop an app. The affordance is placed on the\ndisplay in a subtle way so it doesn't obstruct important notifications. See\n[Task Manager](https://developer.android.com/about/versions/13/changes/fgs-manager)\nfor more information.\n\nImplement Task Manager for background apps\n------------------------------------------\n\nAlthough a [reference AOSP implementation](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/packages/SystemUI/src/com/android/systemui/qs/FgsManagerController.kt)\nfor this feature is available, Android-powered device implementers can customize and\nmodify this System UI.\nThe stop affordance in the Task Manager mustn't be displayed for apps which are\ncore to the functionality of the device, such as Dialer and Camera.\n\nThe AOSP implementation uses a new internal [callback API](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/java/android/app/IForegroundServiceObserver.aidl)\nbetween the [System UI](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/packages/SystemUI)\nand [System Server](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/services/core/java/com/android/server). This API lets the System Server notify the System UI when new\nforeground services are started. The API also notifies the System Server to\nstop certain apps, when requested by the user.\n| **Note:** This feature can't be turned off.\n\nValidate Task Manager for background apps notifications\n-------------------------------------------------------\n\nFor manual testing, validate the Task Manager feature against apps that are\nrunning in the background.\n\nFor unit testing, use [unit tests](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/FgsManagerControllerTest.java)\navailable in AOSP."]]