동작 변경사항: 모든 앱

Android 15 플랫폼에는 앱에 영향을 줄 수 있는 동작 변경사항이 있습니다. targetSdkVersion과 관계없이 Android 15에서 실행되는 모든 앱에 적용되는 동작 변경사항은 다음과 같습니다. 이러한 변경사항을 적절히 지원해야 하는 경우 앱을 테스트한 후 필요에 따라 수정해야 합니다.

또한 Android 15를 타겟팅하는 앱에만 영향을 주는 동작 변경사항 목록을 검토해야 합니다.

핵심 기능

Android 15는 Android 시스템의 다양한 핵심 기능을 수정하거나 확장합니다.

패키지 중지됨 상태 변경

패키지 FLAG_STOPPED 상태 (사용자가 앱 아이콘을 길게 누르고 '강제 종료'를 선택하여 AOSP 빌드에서 참여할 수 있음)의 의도는 항상 사용자가 앱을 직접 실행하거나 공유 시트 또는 위젯을 통해 앱과 간접적으로 상호작용 (앱을 라이브 배경화면으로 선택 등)하여 이 상태에서 앱을 명시적으로 삭제할 때까지 앱을 이 상태로 유지하는 것이었습니다. Android 15에서는 의도된 동작에 맞게 시스템 동작을 업데이트했습니다. 앱은 직접 또는 간접적인 사용자 작업을 통해서만 중지된 상태에서 삭제되어야 합니다.

의도한 동작을 지원하기 위해 시스템은 기존 제한사항 외에도 앱이 Android 15를 실행하는 기기에서 중지된 상태가 되면 모든 대기 중인 인텐트를 취소합니다. 사용자 작업으로 인해 앱이 중지된 상태에서 삭제되면 ACTION_BOOT_COMPLETED 브로드캐스트가 앱에 전송되어 대기 중인 인텐트를 다시 등록할 수 있는 기회를 제공합니다.

ApplicationStartInfo.wasForceStopped() 메서드를 호출하여 앱이 중지 상태인지 확인할 수 있습니다.

16KB 페이지 크기 지원

이전에는 Android에서 4KB 메모리 페이지 크기만 지원하여 Android 기기가 일반적으로 보유한 평균 총 메모리에 맞게 시스템 메모리 성능을 최적화했습니다. Android 15부터 AOSP는 페이지 크기 16KB (16KB 기기)를 사용하도록 구성된 기기를 지원합니다. 앱이 NDK 라이브러리를 직접 또는 SDK를 통해 간접적으로 사용하는 경우 이러한 16KB 기기에서 작동하도록 앱을 다시 빌드해야 합니다.

기기 제조업체가 더 많은 실제 메모리 (RAM)가 있는 기기를 계속 빌드함에 따라 이러한 기기 중 다수가 기기 성능을 최적화하기 위해 16KB (결국 더 큰) 페이지 크기를 채택할 것입니다. 16KB 페이지 크기 기기에 대한 지원을 추가하면 앱이 이러한 기기에서 실행될 수 있으며 앱이 관련 성능 개선의 이점을 누릴 수 있습니다. 다시 컴파일하지 않으면 앱이 향후 Android 출시에서 16KB 기기에서 작동하지 않습니다.

앱 지원을 추가할 수 있도록 앱이 영향을 받는지 확인하는 방법, 앱을 다시 빌드하는 방법 (해당하는 경우), 에뮬레이터 (Android Emulator용 Android 15 시스템 이미지 포함)를 사용하여 16KB 환경에서 앱을 테스트하는 방법에 관한 안내를 제공해 드렸습니다.

이점 및 성능 향상

Devices configured with 16 KB page sizes use slightly more memory on average, but also gain various performance improvements for both the system and apps:

  • Lower app launch times while the system is under memory pressure: 3.16% lower on average, with more significant improvements (up to 30%) for some apps that we tested
  • Reduced power draw during app launch: 4.56% reduction on average
  • Faster camera launch: 4.48% faster hot starts on average, and 6.60% faster cold starts on average
  • Improved system boot time: improved by 8% (approximately 950 milliseconds) on average

These improvements are based on our initial testing, and results on actual devices will likely differ. We'll provide additional analysis of potential gains for apps as we continue our testing.

앱이 영향을 받는지 확인하기

If your app uses any native code, then you should rebuild your app with support for 16 KB devices. If you are unsure if your app uses native code, you can use the APK Analyzer to identify whether any native code is present and then check the alignment of ELF segments for any shared libraries that you find. Android Studio also provides features that help you to automatically detect alignment issues.

If your app only uses code written in the Java programming language or in Kotlin, including all libraries or SDKs, then your app already supports 16 KB devices. Nevertheless, we recommend that you test your app in a 16 KB environment to verify that there are no unexpected regressions in app behavior.

일부 앱이 비공개 스페이스를 지원하는 데 필요한 변경사항

Private space is a new feature in Android 15 that lets users create a separate space on their device where they can keep sensitive apps away from prying eyes, under an additional layer of authentication. Because apps in the private space have restricted visibility, some types of apps need to take additional steps to be able to see and interact with apps in a user's private space.

All apps

Because apps in the private space are kept in a separate user profile, similar to work profiles, apps shouldn't assume that any installed copies of their app that aren't in the main profile are in the work profile. If your app has logic related to work profile apps that make this assumption, you'll need to adjust this logic.

Medical apps

When a user locks the private space, all apps in the private space are stopped, and those apps can't perform foreground or background activities, including showing notifications. This behavior might critically impact the use and function of medical apps installed in the private space.

The private space setup experience warns users that the private space is not suitable for apps that need to perform critical foreground or background activities, such as showing notifications from medical apps. However, apps can't determine whether or not they're being used in the private space, so they can't show a warning to the user for this case.

For these reasons, if you develop a medical app, review how this feature might impact your app and take appropriate actions—such as informing your users not to install your app in the private space—to avoid disrupting critical app capabilities.

Launcher apps

If you develop a launcher app, you must do the following before apps in the private space will be visible:

  1. Your app must be assigned as the default launcher app for the device—that is, possessing the ROLE_HOME role.
  2. Your app must declare the ACCESS_HIDDEN_PROFILES normal permission in your app's manifest file.

Launcher apps that declare the ACCESS_HIDDEN_PROFILES permission must handle the following private space use cases:

  1. Your app must have a separate launcher container for apps installed in the private space. Use the getLauncherUserInfo() method to determine which type of user profile is being handled.
  2. The user must be able to hide and show the private space container.
  3. The user must be able to lock and unlock the private space container. Use the requestQuietModeEnabled() method to lock (by passing true) or unlock (by passing false) the private space.
  4. While locked, no apps in the private space container should be visible or discoverable through mechanisms such as search. Your app should register a receiver for the ACTION_PROFILE_AVAILABLE and ACTION_PROFILE_UNAVAILABLE broadcasts and update the UI in your app when the locked or unlocked state of the private space container changes. Both of these broadcasts include EXTRA_USER, which your app can use to refer to the private profile user.

    You can also use the isQuietModeEnabled() method to check whether the private space profile is locked or not.

App store apps

The private space includes an "Install Apps" button that launches an implicit intent to install apps into the user's private space. In order for your app to receive this implicit intent, declare an <intent-filter> in your app's manifest file with a <category> of CATEGORY_APP_MARKET.

PNG 기반 그림 이모티콘 글꼴 삭제됨

기존의 PNG 기반 그림 이모티콘 글꼴 파일 (NotoColorEmojiLegacy.ttf)이 삭제되고 벡터 기반 파일만 남았습니다. Android 13 (API 수준 33)부터 시스템 그림 이모티콘 렌더러에서 사용하는 그림 이모티콘 글꼴 파일이 PNG 기반 파일에서 벡터 기반 파일로 변경되었습니다. 시스템은 호환성 문제로 인해 Android 13 및 14에서 기존 글꼴 파일을 유지했습니다. 따라서 자체 글꼴 렌더러가 있는 앱은 업그레이드할 수 있을 때까지 기존 글꼴 파일을 계속 사용할 수 있었습니다.

앱이 영향을 받는지 확인하려면 앱 코드에서 NotoColorEmojiLegacy.ttf 파일에 대한 참조를 검색합니다.

다음과 같은 여러 가지 방법으로 앱을 조정할 수 있습니다.

  • 텍스트 렌더링에 플랫폼 API를 사용합니다. 텍스트를 비트맵 지원 Canvas로 렌더링하고 필요한 경우 이를 사용하여 원시 이미지를 가져올 수 있습니다.
  • 앱에 COLRv1 글꼴 지원을 추가합니다. FreeType 오픈소스 라이브러리는 버전 2.13.0 이상에서 COLRv1을 지원합니다.
  • 최후의 수단으로 기존 그림 이모티콘 글꼴 파일(NotoColorEmoji.ttf)을 APK에 번들로 묶을 수 있습니다. 단, 이 경우 앱에서 최신 그림 이모티콘 업데이트를 놓치게 됩니다. 자세한 내용은 Noto Emoji GitHub 프로젝트 페이지를 참고하세요.

최소 타겟 SDK 버전이 23에서 24로 증가

Android 15 builds on the the changes that were made in Android 14 and extends this security further. In Android 15, apps with a targetSdkVersion lower than 24 can't be installed. Requiring apps to meet modern API levels helps to ensure better security and privacy.

Malware often targets lower API levels in order to bypass security and privacy protections that have been introduced in higher Android versions. For example, some malware apps use a targetSdkVersion of 22 to avoid being subjected to the runtime permission model introduced in 2015 by Android 6.0 Marshmallow (API level 23). This Android 15 change makes it harder for malware to avoid security and privacy improvements. Attempting to install an app targeting a lower API level results in an installation failure, with a message like the following one appearing in Logcat:

INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 24, but found 7

On devices upgrading to Android 15, any apps with a targetSdkVersion lower than 24 remain installed.

If you need to test an app targeting an older API level, use the following ADB command:

adb install --bypass-low-target-sdk-block FILENAME.apk

보안 및 개인 정보 보호

Android 15 introduces robust measures to combat one-time passcode (OTP) fraud and to protect the user's sensitive content, focusing on hardening the Notification Listener Service and screenshare protections. Key enhancements include redacting OTPs from notifications accessible to untrusted apps, hiding notifications during screenshare, and securing app activities when OTPs are posted. These changes aim to keep the user's sensitive content safe from unauthorized actors.

Developers need to be aware of the following to ensure their apps are compatible with the changes in Android 15:

OTP Redaction

Android will stop untrusted apps that implement a NotificationListenerService from reading unredacted content from notifications where an OTP has been detected. Trusted apps such as companion device manager associations are exempt from these restrictions.

Screenshare Protection

  • Notification content is hidden during screen sharing sessions to preserve the user's privacy. If the app implements setPublicVersion(), Android shows the public version of the notification which serves as a replacement notification in insecure contexts. Otherwise, the notification content is redacted without any further context.
  • Sensitive content like password input is hidden from remote viewers to prevent revealing the user's sensitive information.
  • Activities from apps that post notifications during screenshare where an OTP has been detected will be hidden. App content is hidden from the remote viewer when launched.
  • Beyond Android's automatic identification of sensitive fields, developers can manually mark parts of their app as sensitive using setContentSensitivity, which is hidden from remote viewers during screenshare.
  • Developers can choose to toggle the Disable screen share protections option under Developer Options to be exempted from the screenshare protections for demo or testing purposes. The default system screen recorder is exempted from these changes, since the recordings remain on-device.

카메라 및 미디어

Android 15에서는 모든 앱의 카메라 및 미디어 동작이 다음과 같이 변경됩니다.

리소스 한도에 도달하면 직접 및 오프로드 오디오 재생으로 인해 이전에 열린 직접 또는 오프로드 오디오 트랙이 무효화됨

Android 15 이전에는 다른 앱에서 오디오를 재생하고 리소스 한도에 도달한 동안 앱이 직접 또는 오프로드 오디오 재생을 요청하면 앱이 새 AudioTrack를 열지 못했습니다.

Android 15부터 앱이 직접 재생 또는 오프로드 재생을 요청하고 리소스 한도에 도달하면 시스템은 새 트랙 요청을 처리하지 못하게 하는 현재 열려 있는 모든 AudioTrack 객체를 무효화합니다.

직접 및 오프로드 오디오 트랙은 일반적으로 압축된 오디오 형식을 재생하기 위해 열립니다. 직접 오디오를 재생하는 일반적인 사용 사례로는 HDMI를 통해 인코딩된 오디오를 TV로 스트리밍하는 것이 있습니다. 오프로드 트랙은 일반적으로 하드웨어 DSP 가속이 있는 휴대기기에서 압축된 오디오를 재생하는 데 사용됩니다.)

사용자 환경 및 시스템 UI

Android 15에는 더 일관되고 직관적인 사용자 환경을 만들기 위한 몇 가지 변경사항이 포함되어 있습니다.

선택한 앱에 뒤로 탐색 예측 애니메이션 사용 설정

Android 15부터 뒤로 탐색 예측 애니메이션의 개발자 옵션이 삭제되었습니다. 이제 홈으로 돌아가기, 교차 작업, 교차 활동과 같은 시스템 애니메이션이 전체적으로 또는 활동 수준에서 뒤로 탐색 예측 동작을 선택한 앱에 표시됩니다. 앱이 영향을 받는 경우 다음 작업을 실행합니다.

  • 뒤로 탐색 예측 동작을 사용하도록 앱이 올바르게 이전되었는지 확인합니다.
  • 프래그먼트 전환이 뒤로 탐색 예측 탐색과 함께 작동하는지 확인합니다.
  • 애니메이션 및 프레임워크 전환에서 이전하고 대신 애니메이터 및 androidx 전환을 사용하세요.
  • FragmentManager가 알지 못하는 백 스택에서 이전합니다. 대신 FragmentManager 또는 탐색 구성요소에서 관리하는 백 스택을 사용하세요.

사용자가 앱을 강제 종료하면 위젯이 사용 중지됨

사용자가 Android 15를 실행하는 기기에서 앱을 강제 종료하면 시스템은 일시적으로 앱의 모든 위젯을 사용 중지합니다. 위젯이 비활성화되어 있고 사용자는 위젯과 상호작용할 수 없습니다. Android 15부터 시스템은 앱이 강제 종료될 때 앱의 대기 중인 인텐트를 모두 취소하기 때문입니다.

시스템은 사용자가 다음에 앱을 실행할 때 이러한 위젯을 다시 사용 설정합니다.

자세한 내용은 패키지 중지 상태 변경사항을 참고하세요.

미디어 프로젝션 상태 표시줄 칩은 사용자에게 화면 공유, 전송, 녹화를 알림

화면 프로젝션 악용은 사용자가 기기 화면이 공유되고 있다는 사실을 모르기 때문에 금융 정보와 같은 민감한 사용자 데이터를 노출합니다.

Android 15 QPR1 이상을 실행하는 기기에서 실행되는 앱의 경우 크고 눈에 잘 띄는 상태 표시줄 칩이 진행 중인 화면 프로젝션을 사용자에게 알립니다. 사용자는 칩을 탭하여 화면 공유, 전송, 녹화를 중지할 수 있습니다. 또한 기기 화면이 잠기면 화면 프로젝션이 자동으로 중지됩니다.

화면 공유, 전송, 녹화를 위한 상태 표시줄 칩입니다.

앱이 영향을 받는지 확인하기

기본적으로 앱에는 상태 표시줄 칩이 포함되며 잠금 화면이 활성화되면 화면 프로젝션이 자동으로 일시중지됩니다.

이러한 사용 사례에 맞게 앱을 테스트하는 방법을 자세히 알아보려면 상태 표시줄 칩 및 자동 중지를 참고하세요.

백그라운드 네트워크 액세스 제한

Android 15에서는 유효한 프로세스 수명 주기 외부에서 네트워크 요청을 시작하는 앱에 예외가 발생합니다. 일반적으로 UnknownHostException 또는 기타 소켓 관련 IOException입니다. 유효한 수명 주기 외부에서 발생하는 네트워크 요청은 일반적으로 앱이 더 이상 활성 상태가 아님에도 앱이 모르는 사이에 네트워크 요청을 계속하기 때문에 발생합니다.

이 예외를 완화하려면 수명 주기 인식 구성요소를 사용하여 네트워크 요청이 수명 주기를 인식하고 유효한 프로세스 수명 주기를 종료할 때 취소되도록 합니다. 사용자가 애플리케이션을 종료해도 네트워크 요청이 실행되어야 하는 경우 WorkManager를 사용하여 네트워크 요청을 예약하거나 포그라운드 서비스를 사용하여 사용자에게 표시되는 작업을 계속하는 것이 좋습니다.

지원 중단

각 출시에서 특정 Android API는 더 이상 사용되지 않거나 더 나은 개발자 환경 제공이나 새 플랫폼 기능 지원을 위해 리팩터링해야 할 수 있습니다. 이 경우 더 이상 사용되지 않는 API를 공식적으로 지원 중단하고 개발자에게 대신 사용할 대체 API를 안내합니다.

지원 중단이란 API에 관한 공식 지원은 종료되나 개발자는 계속 사용할 수 있다는 의미입니다. 이번 Android 출시에서 주목할 만한 지원 중단에 대해 자세히 알아보려면 지원 중단 페이지를 참고하세요.