기능 및 API 개요

Android 15에는 개발자를 위한 훌륭한 새로운 기능과 API가 도입되었습니다. 다음 섹션에는 관련 API를 시작하는 데 도움이 되는 이러한 기능이 요약되어 있습니다.

새로운 API, 수정된 API 및 삭제된 API에 관한 자세한 목록은 API 차이점 보고서를 참고하세요. 새로운 API에 관한 자세한 내용은 Android API 참조를 확인하세요. 새로운 API는 눈에 잘 띄도록 강조 표시됩니다. 또한 플랫폼 변경사항이 앱에 영향을 미칠 수 있는 분야에 관해 알아보려면 Android 15 Android 15를 타겟팅할 때 앱에 영향을 미치는 동작 변경사항targetSdkVersion와 관계없이 모든 앱에 영향을 미치는 동작 변경사항을 검토하세요.

카메라 및 미디어

Android 15에는 카메라 및 미디어 환경을 개선하고 크리에이터가 Android에서 비전을 실현할 수 있도록 지원하는 도구와 하드웨어에 액세스할 수 있는 다양한 기능이 포함되어 있습니다.

인앱 카메라 제어

Android 15에서는 지원되는 기기에서 카메라 하드웨어 및 알고리즘을 더 효과적으로 제어하기 위한 새 확장 프로그램을 추가합니다.

  • 고급 플래시 강도 조정을 통해 이미지를 캡처하는 동안 SINGLETORCH 모드에서 플래시 강도를 정밀하게 제어할 수 있습니다.

HDR 헤드룸 제어

Android 15 chooses HDR headroom that is appropriate for the underlying device capabilities and bit-depth of the panel. For pages that have lots of SDR content, such as a messaging app displaying a single HDR thumbnail, this behavior can end up adversely influencing the perceived brightness of the SDR content. Android 15 lets you control the HDR headroom with setDesiredHdrHeadroom to strike a balance between SDR and HDR content.

The brightness of SDR UI elements on the left screen appears to be more uniform than the brightness on the right screen, which simulates possible headroom issues when HDR and SDR content are mixed. By adjusting the HDR headroom, you can achieve a better balance between the SDR and HDR content.

음량 조절

Android 15 introduces support for the CTA-2075 loudness standard to help you avoid audio loudness inconsistencies and ensure users don't have to constantly adjust volume when switching between content. The system leverages known characteristics of the output devices (headphones and speaker) along with loudness metadata available in AAC audio content to intelligently adjust the audio loudness and dynamic range compression levels.

To enable this feature, you need to ensure loudness metadata is available in your AAC content and enable the platform feature in your app. For this, you instantiate a LoudnessCodecController object by calling its create factory method with the audio session ID from the associated AudioTrack; this automatically starts applying audio updates. You can pass an OnLoudnessCodecUpdateListener to modify or filter loudness parameters before they are applied on the MediaCodec.

// Media contains metadata of type MPEG_4 OR MPEG_D
val mediaCodec = …
val audioTrack = AudioTrack.Builder()
                                .setSessionId(sessionId)
                                .build()
...
// Create new loudness controller that applies the parameters to the MediaCodec
try {
   val lcController = LoudnessCodecController.create(mSessionId)
   // Starts applying audio updates for each added MediaCodec

AndroidX media3 ExoPlayer will soon be updated to leverage LoudnessCodecController APIs for a seamless app integration.

저조도 증폭

Android 15에서는 카메라 2야간 모드 카메라 확장 프로그램에서 모두 사용할 수 있는 새로운 자동 노출 모드인 어두운 조명 증폭을 도입합니다. Low Light Boost는 어두운 환경에서 미리보기 스트림의 노출을 조정합니다. 이는 야간 모드 카메라 확장 프로그램에서 정지 이미지를 만드는 방법과 다릅니다. 야간 모드는 사진 버스트를 결합하여 향상된 단일 이미지를 만들기 때문입니다. 야간 모드는 정지 이미지를 만드는 데 매우 효과적이지만 연속적인 프레임 스트림을 만들 수는 없지만 Low Light Boost는 만들 수 있습니다. 따라서 Low Light Boost는 다음과 같은 새로운 카메라 기능을 지원합니다.

  • 사용자가 어두운 사진의 프레임을 더 잘 조정할 수 있도록 개선된 이미지 미리보기를 제공합니다.
  • 어두운 곳에서 QR 코드 스캔 중

어두운 조명 부스트를 사용 설정하면 조명 수준이 낮을 때 자동으로 켜지고 조명이 더 많으면 자동으로 꺼집니다.

앱은 조명이 어두운 환경에서 미리보기 스트림을 녹화하여 밝게 된 동영상을 저장할 수 있습니다.

자세한 내용은 어두운 조명 부스트를 참고하세요.

가상 MIDI 2.0 기기

Android 13에서는 범용 MIDI 패킷 (UMP)을 사용하여 통신하는 USB를 사용하여 MIDI 2.0 기기에 연결할 수 있는 지원을 추가했습니다. Android 15는 가상 MIDI 앱으로 UMP 지원을 확장하여 컴포지션 앱이 USB MIDI 2.0 기기와 마찬가지로 가상 MIDI 2.0 기기로 신시사이저 앱을 제어할 수 있도록 합니다.

연결

Android 15에서는 앱이 최신 커뮤니케이션 기능에 액세스할 수 있도록 플랫폼을 업데이트합니다.

위성 지원

Android 15에서는 위성 연결을 위한 플랫폼 지원을 계속 확장하고 위성 연결 환경 전반에서 일관된 사용자 환경을 보장하기 위해 일부 UI 요소를 포함합니다.

앱은 ServiceState.isUsingNonTerrestrialNetwork()를 사용하여 기기가 위성에 연결된 시점을 감지하고 전체 네트워크 서비스를 사용할 수 없는 이유를 더 잘 파악할 수 있습니다. 또한 Android 15는 메시지를 보내고 받는 데 위성 연결을 사용할 수 있도록 SMS 및 MMS 앱은 물론 미리 로드된 RCS 앱을 지원합니다.

기기가 위성에 연결되면 알림이 표시됩니다.

더 원활한 NFC 환경

Android 15 is working to make the tap to pay experience more seamless and reliable while continuing to support Android's robust NFC app ecosystem. On supported devices, apps can request the NfcAdapter to enter observe mode, where the device listens but doesn't respond to NFC readers, sending the app's NFC service PollingFrame objects to process. The PollingFrame objects can be used to auth ahead of the first communication to the NFC reader, allowing for a one tap transaction in many cases.

월렛 역할

Android 15에는 사용자가 선호하는 월렛 앱과의 긴밀한 통합을 가능하게 하는 새로운 월렛 역할이 도입되었습니다. 이 역할은 NFC 기본 미접촉 결제 설정을 대체합니다. 사용자는 설정 > 앱 > 기본 앱으로 이동하여 월렛 역할 보유자를 관리할 수 있습니다.

월렛 역할은 결제 카테고리에 등록된 AID의 NFC 탭을 라우팅할 때 사용됩니다. 동일한 AID에 등록된 다른 앱이 포그라운드에서 실행되고 있지 않은 한 탭은 항상 월렛 역할 보유자로 이동합니다.

이 역할은 월렛 빠른 액세스 타일이 활성화될 때 이동할 위치를 결정하는 데도 사용됩니다. 역할이 'None'으로 설정되면 QuickAccess 카드를 사용할 수 없으며 결제 카테고리 NFC 탭은 포그라운드 앱에만 전달됩니다.

개발자 생산성 및 도구

생산성을 개선하기 위한 Google의 작업은 대부분 Android 스튜디오, Jetpack Compose, Android Jetpack 라이브러리와 같은 도구를 중심으로 진행되지만, Google은 항상 플랫폼에서 개발자가 비전을 더 쉽게 실현할 수 있는 방법을 찾고 있습니다.

PDF 개선사항

Android 15 개발자 프리뷰 2에는 PdfRenderer API의 주요 개선사항에 관한 초기 미리보기가 포함되어 있습니다. 앱은 비밀번호로 보호되는 파일 렌더링, 주석, 양식 수정, 검색, 사본과 함께 선택과 같은 고급 기능을 통합할 수 있습니다. 로컬 PDF 보기의 속도를 높이고 리소스 사용을 줄이기 위해 선형화된 PDF 최적화가 지원됩니다.

PDF 렌더링의 최신 업데이트에는 삽입된 PDF 파일 검색과 같은 기능이 포함되어 있습니다.

PdfRenderer는 플랫폼 출시와는 별개로 Google Play 시스템 업데이트를 사용하여 업데이트할 수 있는 모듈로 이동되었습니다. Google은 PdfRendererPreV이라는 호환되는 Android 15 이전 버전의 API 노출 영역을 만들어 Android 11 (API 수준 30)까지 이러한 변경사항을 다시 지원합니다.

Google에서는 PdfRenderer API 노출 영역의 개선사항에 관한 의견을 소중하게 생각하며, 향후 Android Jetpack 라이브러리를 통해 이러한 API를 앱에 더욱 쉽게 통합할 수 있도록 지원할 계획입니다.

자동 언어 전환 상세검색

Android 14 added on-device, multi-language recognition in audio with automatic switching between languages, but this can cause words to get dropped, especially when languages switch with less of a pause between the two utterances. Android 15 adds additional controls to help apps tune this switching to their use case. EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS confines the automatic switching to the beginning of the audio session, while EXTRA_LANGUAGE_SWITCH_MATCH_SWITCHES deactivates the language switching after a defined number of switches. These options are particularly useful if you expect that there will be a single language spoken during the session that should be autodetected.

세밀한 줄바꿈 컨트롤

Starting in Android 15, a TextView and the underlying line breaker can preserve the given portion of text in the same line to improve readability. You can take advantage of this line break customization by using the <nobreak> tag in string resources or createNoBreakSpan. Similarly, you can preserve words from hyphenation by using the <nohyphen> tag or createNoHyphenationSpan.

For example, the following string resource doesn't include a line break, and renders with the text "Pixel 8 Pro." breaking in an undesirable place:

<resources>
    <string name="pixel8pro">The power and brains behind Pixel 8 Pro.</string>
</resources>

In contrast, this string resource includes the <nobreak> tag, which wraps the phrase "Pixel 8 Pro." and prevents line breaks:

<resources>
    <string name="pixel8pro">The power and brains behind <nobreak>Pixel 8 Pro.</nobreak></string>
</resources>

The difference in how these strings are rendered is shown in the following images:

Layout for a line of text where the phrase "Pixel 8 Pro." isn't wrapped using a <nobreak> tag.
Layout for the same line of text where the phrase "Pixel 8 Pro." is wrapped using a <nobreak> tag.

OpenJDK 17 업데이트

Android 15에서는 최신 OpenJDK LTS 출시의 기능에 맞게 Android의 핵심 라이브러리를 새로고침하는 작업을 계속합니다.

다음과 같은 주요 기능과 개선사항이 포함됩니다.

이러한 API는 Google Play 시스템 업데이트를 통해 Android 12 (API 수준 31) 이상을 실행하는 10억 대 이상의 기기에서 업데이트되므로 개발자는 최신 프로그래밍 기능을 타겟팅할 수 있습니다.

자바 및 OpenJDK는 Oracle 및/또는 그 계열사의 상표 또는 등록 상표입니다.

대형 화면 및 폼 팩터

Android 15는 앱에서 대형 화면, 플립블, 폴더블을 비롯한 Android 폼 팩터를 최대한 활용할 수 있도록 지원합니다.

커버 화면 지원

앱은 Android 15에서 지원되는 플립형 기기의 작은 커버 화면에 Application 또는 Activity가 표시되도록 하는 데 사용하는 속성을 선언할 수 있습니다. 이러한 화면은 Android 앱을 실행하기에 호환되는 타겟으로 간주하기에는 너무 작지만 앱이 이를 지원하도록 선택하여 더 많은 위치에서 앱을 사용할 수 있습니다.

성능 및 배터리

Android는 개발자가 앱의 성능과 품질을 개선하는 데 도움을 주기 위해 끊임없이 노력하고 있습니다. Android 15에서는 앱의 작업을 더 효율적으로 실행하고 앱 성능을 최적화하며 앱에 관한 유용한 정보를 수집하는 데 도움이 되는 새로운 API를 도입합니다.

ApplicationStartInfo API

이전 버전의 Android에서 앱 시작은 다소 미스터리였습니다. 앱이 콜드, 웜, 핫 상태에서 시작되었는지 확인하기가 어려웠습니다. 프로세스 포크, onCreate 호출, 첫 번째 프레임 그리기 등 다양한 실행 단계에서 앱이 소요된 시간을 파악하기도 어려웠습니다. Application 클래스가 인스턴스화될 때 앱이 브로드캐스트, 콘텐츠 제공업체, 작업, 백업, 부팅 완료, 알람 또는 Activity에서 시작되었는지 알 방법이 없었습니다.

Android 15의 ApplicationStartInfo API는 이 모든 작업과 그 이상을 제공합니다. 자체 타임스탬프를 흐름에 추가하여 타이밍 데이터를 한곳에서 수집할 수도 있습니다. 측정항목을 수집하는 것 외에도 ApplicationStartInfo를 사용하여 앱 시작을 직접 최적화할 수 있습니다. 예를 들어 앱이 브로드캐스트로 인해 시작될 때 Application 클래스 내에서 UI 관련 라이브러리의 비용이 많이 드는 인스턴스화를 제거할 수 있습니다.

자세한 앱 크기 정보

Android 8.0(API 수준 26)부터 Android에는 APK 크기, APK에서 추출한 파일 크기, 기기에서 생성된 파일(예: AOT(Ahead-Of-Time) 컴파일 코드)의 합계인 단일 바이트 수로 앱 설치 크기를 요약하는 StorageStats.getAppBytes API가 포함되었습니다. 이 수치는 앱이 저장용량을 사용하는 방식과 관련하여 중요한 역할을 하지 않습니다.

Android 15에는 APK 파일 분할, AOT 및 속도 향상 관련 코드, dex 메타데이터, 라이브러리, 가이드 프로필 등 앱이 공간을 어떻게 사용하고 있는지 파악할 수 있는 StorageStats.getAppBytesByDataType([type]) API가 추가되었습니다.

SQLite 데이터베이스 개선

Android 15에는 앱에서 나타날 수 있는 특정 성능 문제를 타겟팅하는 기본 SQLite 엔진의 고급 기능을 노출하는 새로운 SQLite API가 도입되었습니다.

개발자는 특히 대규모 데이터베이스로 작업하거나 지연 시간에 민감한 쿼리를 실행할 때 SQLite 성능 권장사항을 참고하여 SQLite 데이터베이스를 최대한 활용해야 합니다.

  • 읽기 전용 지연된 트랜잭션: 읽기 전용 (쓰기 구문 제외) 트랜잭션을 실행할 때 beginTransactionReadOnly()beginTransactionWithListenerReadOnly(SQLiteTransactionListener)를 사용하여 읽기 전용 DEFERRED 트랜잭션을 실행합니다. 이러한 트랜잭션은 서로 동시에 실행될 수 있으며, 데이터베이스가 WAL 모드인 경우 IMMEDIATE 또는 EXCLUSIVE 트랜잭션과 동시에 실행될 수 있습니다.
  • 행 수 및 ID: 추가 쿼리를 실행하지 않고 변경된 행 수 또는 마지막으로 삽입된 행 ID를 검색할 수 있도록 새 API가 추가되었습니다. getLastChangedRowCount()은 현재 트랜잭션 내에서 가장 최근의 SQL 문이 삽입, 업데이트 또는 삭제한 행 수를 반환하는 반면 getTotalChangedRowCount()는 현재 연결의 개수를 반환합니다. getLastInsertRowId()는 현재 연결에 삽입할 마지막 행의 rowid를 반환합니다.
  • 원시 문: 원시 SQlite 문을 실행하여 편의 래퍼 및 이로 인해 발생할 수 있는 추가 처리 오버헤드를 우회합니다.

Android 동적 성능 프레임워크 업데이트

Android 15에서는 Android 동적 성능 프레임워크 (ADPF)에 대한 투자를 계속하고 있습니다. ADPF는 게임 및 성능이 집약적인 앱이 Android 기기의 전력 및 열 시스템과 더 직접적으로 상호작용할 수 있도록 지원하는 API 집합입니다. 지원되는 기기에서 Android 15는 새로운 ADPF 기능을 추가합니다.

  • 관련 스레드가 성능보다 절전을 선호함을 나타내기 위한 힌트 세션의 전력 효율 모드로 장기 실행되는 백그라운드 워크로드에 적합합니다.
  • GPU 및 CPU 작업 기간은 둘 다 힌트 세션에 보고할 수 있으므로 시스템이 CPU 및 GPU 주파수를 함께 조정하여 워크로드 수요를 가장 잘 충족할 수 있습니다.
  • 열 헤드룸 기준점: 헤드룸 예측을 기반으로 가능한 열 제한 상태를 해석합니다.

앱과 게임에서 ADPF를 사용하는 방법을 자세히 알아보려면 문서로 이동하세요.

개인 정보 보호

Android 15에는 앱 개발자가 사용자 개인 정보를 보호하는 데 도움이 되는 다양한 기능이 포함되어 있습니다.

화면 녹화 감지

Android 15 adds support for apps to detect that they are being recorded. A callback is invoked whenever the app transitions between being visible or invisible within a screen recording. An app is considered visible if activities owned by the registering process's UID are being recorded. This way, if your app is performing a sensitive operation, you can inform the user that they're being recorded.

val mCallback = Consumer<Int> { state ->
  if (state == SCREEN_RECORDING_STATE_VISIBLE) {
    // We're being recorded
  } else {
    // We're not being recorded
  }
}

override fun onStart() {
   super.onStart()
   val initialState =
      windowManager.addScreenRecordingCallback(mainExecutor, mCallback)
   mCallback.accept(initialState)
}

override fun onStop() {
    super.onStop()
    windowManager.removeScreenRecordingCallback(mCallback)
}

확장된 IntentFilter 기능

Android 15 builds in support for more precise Intent resolution through UriRelativeFilterGroup, which contains a set of UriRelativeFilter objects that form a set of Intent matching rules that must each be satisfied, including URL query parameters, URL fragments, and blocking or exclusion rules.

These rules can be defined in the AndroidManifest XML file with the new <uri-relative-filter-group> tag, which can optionally include an android:allow tag. These tags can contain <data> tags that use existing data tag attributes as well as the new android:query and android:fragment attributes.

Here's an example of the AndroidManifest syntax:

<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="http" />
  <data android:scheme="https" />
  <data android:domain="astore.com" />
  <uri-relative-filter-group>
    <data android:pathPrefix="/auth" />
    <data android:query="region=na" />
  </uri-relative-filter-group>
  <uri-relative-filter-group android:allow="false">
    <data android:pathPrefix="/auth" />
    <data android:query="mobileoptout=true" />
  </uri-relative-filter-group>
  <uri-relative-filter-group android:allow="false">
    <data android:pathPrefix="/auth" />
    <data android:fragmentPrefix="faq" />
  </uri-relative-filter-group>
</intent-filter>

Android의 개인 정보 보호 샌드박스

Android 15에서는 사용자 개인 정보 보호를 개선하고 모바일 앱에 효과적인 개인 맞춤 광고 경험을 지원하는 새로운 기술을 개발하기 위한 노력의 일환으로 Android의 개인 정보 보호 샌드박스의 최신 버전을 통합하여 Android 광고 서비스를 확장 프로그램 수준 10까지 제공합니다. 개인 정보 보호 샌드박스 페이지에서 시작하는 데 도움이 되는 Android의 개인 정보 보호 샌드박스 개발자 프리뷰 및 베타 프로그램에 관한 자세한 정보를 확인할 수 있습니다.

헬스 커넥트

Android 15는 앱에서 수집하는 건강 및 피트니스 데이터를 관리하고 공유하기 위한 안전한 중앙 집중식 플랫폼인 Android용 헬스 커넥트를 중심으로 Android 14 확장 프로그램 10을 통합합니다. 이 업데이트에서는 피트니스, 영양 등 새로운 데이터 유형 지원이 추가되었습니다.

부분 화면 공유

Android 15는 부분 화면 공유를 지원하므로 사용자는 전체 기기 화면이 아닌 앱 창만 공유하거나 녹화할 수 있습니다. Android 14 QPR2에서 처음 사용 설정된 이 기능에는 앱에서 부분 화면 공유 환경을 맞춤설정할 수 있는 MediaProjection 콜백이 포함되어 있습니다. Android 14 (API 수준 34) 이상을 타겟팅하는 앱의 경우 이제 각 MediaProjection 캡처 세션에 사용자 동의가 필요합니다.

보안

Android 15를 사용하면 앱의 보안을 강화하고 앱 데이터를 보호할 수 있습니다.

fs-verity를 사용하여 파일 보호

Android 15의 FileIntegrityManager에는 Linux 커널의 fs-verity 기능을 활용하는 새로운 API가 포함되어 있습니다. fs-verity를 사용하면 파일을 커스텀 암호화 서명으로 보호하여 조작되거나 손상되지 않았는지 확인할 수 있습니다. 이렇게 하면 보안이 강화되어 잠재적인 멀웨어 또는 앱의 기능이나 데이터를 손상시킬 수 있는 승인되지 않은 파일 수정으로부터 보호됩니다.

사용자 환경

Android 15에서는 앱 개발자와 사용자가 필요에 따라 기기를 구성할 수 있도록 더 많은 제어와 유연성을 제공합니다.

방해 금지 모드 규칙 개선

AutomaticZenRule를 사용하면 앱에서 관심 관리 (방해 금지 모드) 규칙을 맞춤설정하고 규칙을 활성화 또는 비활성화할 시점을 결정할 수 있습니다. Android 15는 사용자 환경을 개선하기 위해 이러한 규칙을 크게 개선합니다. 다음과 같은 개선사항이 포함됩니다.

  • AutomaticZenRule에 유형을 추가하여 시스템이 일부 규칙에 특수 처리를 적용할 수 있도록 합니다.
  • AutomaticZenRule에 아이콘을 추가하여 모드를 더 알아보기 쉽게 만듭니다.
  • 사용자를 위해 규칙이 활성화되어야 하는 조건을 설명하는 triggerDescription 문자열을 AutomaticZenRule에 추가합니다.
  • 그레이 스케일 표시, 야간 모드, 배경화면 어둡게 하기와 같은 작업을 트리거할 수 있도록 AutomaticZenRuleZenDeviceEffects를 추가했습니다.