기능 및 API 개요

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

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

카메라 및 미디어

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

Android 미디어 및 카메라용 최신 기능과 개발자 솔루션에 관한 자세한 내용은 Google I/O의 최신 Android 미디어 및 카메라 환경 빌드 강연을 참고하세요.

어두운 조명 모드

Android 15 introduces Low Light Boost, an auto-exposure mode available to both Camera 2 and the night mode camera extension. Low Light Boost adjusts the exposure of the Preview stream in low-light conditions. This is different from how the night mode camera extension creates still images, because night mode combines a burst of photos to create a single, enhanced image. While night mode works very well for creating a still image, it can't create a continuous stream of frames, but Low Light Boost can. Thus, Low Light Boost enables camera capabilities, such as:

  • Providing an enhanced image preview, so users are better able to frame their low-light pictures
  • Scanning QR codes in low light

If you enable Low Light Boost, it automatically turns on when there's a low light level, and turns off when there's more light.

Apps can record off the Preview stream in low-light conditions to save a brightened video.

For more information, see Low Light Boost.

인앱 카메라 제어

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

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

HDR 헤드룸 제어

Android 15는 기본 기기 기능과 패널의 비트 심도에 적합한 HDR 헤드룸을 선택합니다. 단일 HDR 썸네일을 표시하는 메시지 앱과 같이 SDR 콘텐츠가 많은 페이지의 경우 이 동작은 SDR 콘텐츠의 인지되는 밝기에 부정적인 영향을 줄 수 있습니다. Android 15에서는 setDesiredHdrHeadroom로 HDR 헤드룸을 제어하여 SDR과 HDR 콘텐츠 간의 균형을 맞출 수 있습니다.

왼쪽 화면에 있는 SDR UI 요소의 밝기는 오른쪽 화면의 밝기보다 더 균일하게 보입니다. 이는 HDR과 SDR 콘텐츠가 혼합될 때 발생할 수 있는 헤드룸 문제를 시뮬레이션합니다. HDR 헤드룸을 조정하면 SDR과 HDR 콘텐츠 간의 밸런스를 개선할 수 있습니다.

음량 제어

Android 15에서는 CTA-2075 음량 표준을 오디오 음량 불일치를 피하고 사용자가 콘텐츠 전환 시 볼륨 조정 이 시스템은 AAC 오디오 콘텐츠에서 사용할 수 있는 소리 크기 메타데이터와 함께 출력 장치(헤드폰 및 스피커)의 알려진 특성을 활용하여 오디오 소리 크기와 다이내믹 레인지 압축 수준을 지능적으로 조정합니다.

이 기능을 사용 설정하려면 AAC 콘텐츠에서 음량 메타데이터를 사용할 수 있는지 확인하고 앱에서 플랫폼 기능을 사용 설정해야 합니다. 이렇게 하려면 연결된 AudioTrack의 오디오 세션 ID를 사용하여 create 팩토리 메서드를 호출하여 LoudnessCodecController 객체를 인스턴스화합니다. 그러면 오디오 업데이트가 자동으로 적용됩니다. OnLoudnessCodecUpdateListener를 전달하여 볼륨 매개변수가 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도 원활한 앱 통합을 위한 LoudnessCodecController API

가상 MIDI 2.0 기기

Android 13에는 USB를 사용하는 MIDI 2.0 기기: USB를 사용하여 통신합니다. 범용 MIDI 패킷 (UMP): Android 15에서는 UMP 지원을 가상 MIDI 앱으로 확장하여 작곡 앱이 USB MIDI 2.0 기기에서와 마찬가지로 가상 MIDI 2.0 기기로 신디사이저 앱을 제어할 수 있도록 합니다.

더 효율적인 AV1 소프트웨어 디코딩

dav1d 로고

이제 VideoLAN의 인기 있는 AV1 소프트웨어 디코더인 dav1d를 하드웨어에서 AV1 디코딩을 지원하지 않는 Android 기기에서 사용할 수 있습니다. dav1d는 기존 AV1 소프트웨어 디코더보다 성능이 최대 3배 더 우수하므로 일부 저성능 및 중간 등급 기기를 포함한 더 많은 사용자가 HD AV1을 재생할 수 있습니다.

지금은 앱에서 "c2.android.av1-dav1d.decoder"라는 이름으로 dav1d를 호출하여 dav1d를 사용하도록 선택해야 합니다. 이후 업데이트에서 dav1d가 기본 AV1 소프트웨어 디코더가 됩니다. 이 지원은 표준화되어 Google Play 시스템 업데이트를 수신하는 Android 11 기기로 백포팅됩니다.

개발자 생산성 및 도구

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

OpenJDK 17 업데이트

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

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

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

PDF 개선

Android 15에서는 PdfRenderer API가 크게 개선되었습니다. 앱에는 렌더링과 같은 고급 기능을 비밀번호로 보호된 파일, 주석, 양식 수정, 검색, 선택(사본 포함) 선형화된 PDF 로컬 PDF 보기의 속도를 높이고 리소스 사용을 줄이기 위해 최적화가 지원됩니다. Jetpack PDF 라이브러리는 이러한 API를 사용하여 PDF 추가를 간소화합니다. 앱에 추가할 수 있습니다.

<ph type="x-smartling-placeholder">
</ph>
PDF 렌더링의 최신 업데이트에는 포함된 PDF 파일을 검색할 수 있습니다

PdfRenderer를 Google을 사용하여 업데이트할 수 있는 모듈로 이동했습니다. 플랫폼 출시와는 별개인 Play 시스템 업데이트(Google에서는 Android 11 (API 수준 30)으로 다시 돌아가 API 노출 영역 Android 15 이전 버전 PdfRendererPreV

자동 언어 전환 미세 조정

Android 14에서는 언어 간 자동 전환을 통해 오디오에 기기 내 다국어 인식을 추가했지만, 이로 인해 특히 두 발화 간에 일시중지가 적은 언어가 전환되는 경우 단어가 누락될 수 있습니다. Android 15에는 앱이 이 전환을 사용 사례에 맞게 조정할 수 있도록 추가 컨트롤이 추가되었습니다. EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS는 자동 전환을 오디오 세션의 시작 부분으로 제한하고, EXTRA_LANGUAGE_SWITCH_MATCH_SWITCHES는 정의된 수의 스위치 후에 언어 전환을 비활성화합니다. 이 옵션은 세션 중에 사용되는 단일 언어가 있을 것으로 예상되는 경우 특히 유용합니다.

개선된 OpenType 변수 글꼴 API

Android 15는 OpenType 가변 글꼴의 사용성을 개선합니다. 이제 할 수 있습니다. 지정하지 않고 가변 글꼴에서 FontFamily 인스턴스 생성 가중치 축의 buildVariableFamily API 사용. 텍스트 렌더기는 표시되는 텍스트와 일치하도록 wght 축의 값입니다.

새 API를 사용하면 Typeface를 만드는 코드가 간소화됩니다. 상당히 크게 개선되었습니다.

Kotlin

val newTypeface = Typeface.CustomFallbackBuilder(
            FontFamily.Builder(
                Font.Builder(assets, "RobotoFlex.ttf").build())
                    .buildVariableFamily())
    .build()

자바

Typeface newTypeface = Typeface.CustomFallbackBuilder(
            new FontFamily.Builder(
                new Font.Builder(assets, "RobotoFlex.ttf").build())
                    .buildVariableFamily())
    .build();

이전에는 동일한 Typeface를 만들려면 훨씬 더 많은 코드가 필요했습니다.

Kotlin

val oldTypeface = Typeface.CustomFallbackBuilder(
            FontFamily.Builder(
                Font.Builder(assets, "RobotoFlex.ttf")
                    .setFontVariationSettings("'wght' 400")
                    .setWeight(400)
                    .build())
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 100")
                        .setWeight(100)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 200")
                        .setWeight(200)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 300")
                        .setWeight(300)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 500")
                        .setWeight(500)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 600")
                        .setWeight(600)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 700")
                        .setWeight(700)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 800")
                        .setWeight(800)
                        .build()
                )
                .addFont(
                    Font.Builder(assets, "RobotoFlex.ttf")
                        .setFontVariationSettings("'wght' 900")
                        .setWeight(900)
                        .build()
                ).build()
        ).build()

자바

Typeface oldTypeface = new Typeface.CustomFallbackBuilder(
    new FontFamily.Builder(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 400")
            .setWeight(400)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 100")
            .setWeight(100)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 200")
            .setWeight(200)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 300")
            .setWeight(300)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 500")
            .setWeight(500)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 600")
            .setWeight(600)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 700")
            .setWeight(700)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 800")
            .setWeight(800)
            .build()
    )
    .addFont(
        new Font.Builder(assets, "RobotoFlex.ttf")
            .setFontVariationSettings("'wght' 900")
            .setWeight(900)
            .build()
    )
    .build()
).build();

다음은 Typeface가 이전 API와 새 API를 모두 사용하여 생성된 방법의 예입니다. 렌더링:

신규 및 이전 글꼴 사용 시 Typeface 렌더링의 차이점 예
API

이 예에서 이전 API로 만든 Typeface에는 350, 450, 550, 650 Font 인스턴스이므로 렌더러가 가장 가까운 가중치로 대체됩니다. 따라서 이 경우 350 대신 300이 렌더링되고, 450 대신 400이 렌더링되고, 등등. 반대로 새 API로 생성된 Typeface는 동적으로 생성됩니다. 주어진 가중치에 대한 Font 인스턴스. 따라서 350에 대해 정확한 가중치가 렌더링됨 450, 550, 650도 마찬가지입니다.

세밀한 줄바꿈 제어

Android 15부터 TextView 및 기본 줄바꿈은 동일한 줄에 있는 텍스트의 지정된 부분을 보존하여 있습니다. 이 줄바꿈 맞춤설정은 문자열 리소스의 <nobreak> 태그 createNoBreakSpan 마찬가지로 <nohyphen> 태그를 사용하여 하이픈 연결 createNoHyphenationSpan

예를 들어 다음 문자열 리소스에는 줄바꿈이 포함되지 않습니다. 'Pixel 8 Pro' 텍스트로 렌더링됩니다. 바람직하지 않은 곳에서 깨짐:

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

반대로 이 문자열 리소스에는<nobreak> "Pixel 8 Pro"라고 말합니다. 줄바꿈을 방지할 수 있습니다.

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

이러한 문자열이 렌더링되는 방식의 차이점은 이미지:

'Pixel 8 Pro'라는 문구가 있는 텍스트 줄의 레이아웃 <nobreak> 태그를 사용하여 래핑되지 않습니다.
'Pixel 8 Pro' 문구가 있는 텍스트 줄의 레이아웃 <nobreak> 태그를 사용하여 래핑됩니다.

앱 보관처리

Android 및 Google Play는 작년에 앱 보관 지원을 발표하여 사용자가 Google Play에서 Android App Bundle을 사용하여 게시된 기기에서 자주 사용하지 않는 앱을 부분적으로 삭제하여 공간을 확보할 수 있도록 했습니다. Android 15에는 앱 보관처리를 위한 OS 수준 지원이 포함되어 있습니다. 모든 앱 스토어에서 이를 더 쉽게 구현할 수 있습니다.

REQUEST_DELETE_PACKAGES 권한이 있는 앱은 PackageInstaller requestArchive 메서드를 호출하여 설치된 앱 패키지 보관처리를 요청할 수 있습니다. 이 경우 APK와 캐시된 파일이 삭제되지만 사용자 데이터는 유지됩니다. 보관처리된 앱은 LauncherApps API를 통해 표시 가능한 앱으로 반환됩니다. 사용자에게는 이러한 앱이 보관처리되었음을 강조하는 UI 처리가 표시됩니다. 사용자가 보관처리된 앱을 탭하면 해당 설치 프로그램은 보관 취소 요청을 받게 되며, 복원 프로세스는 ACTION_PACKAGE_ADDED 브로드캐스트에서 모니터링됩니다.

그래픽

Android 15에서는 ANGLE 및 캔버스 그래픽 시스템 추가를 비롯한 최신 그래픽 개선사항을 제공합니다.

Android의 GPU 액세스 현대화

Vulkan logo

Android hardware has evolved quite a bit from the early days where the core OS would run on a single CPU and GPUs were accessed using APIs based on fixed-function pipelines. The Vulkan® graphics API has been available in the NDK since Android 7.0 (API level 24) with a lower-level abstraction that better reflects modern GPU hardware, scales better to support multiple CPU cores, and offers reduced CPU driver overhead — leading to improved app performance. Vulkan is supported by all modern game engines.

Vulkan is Android's preferred interface to the GPU. Therefore, Android 15 includes ANGLE as an optional layer for running OpenGL® ES on top of Vulkan. Moving to ANGLE will standardize the Android OpenGL implementation for improved compatibility, and, in some cases, improved performance. You can test out your OpenGL ES app stability and performance with ANGLE by enabling the developer option in Settings -> System -> Developer Options -> Experimental: Enable ANGLE on Android 15.

The Android ANGLE on Vulkan roadmap

Roadmap of upcoming changes to the Android GPU APIs.

As part of streamlining our GPU stack, going forward we will be shipping ANGLE as the GL system driver on more new devices, with the future expectation that OpenGL/ES will be only available through ANGLE. That being said, we plan to continue support for OpenGL ES on all devices.

Recommended next steps

Use the developer options to select the ANGLE driver for OpenGL ES and test your app. For new projects, we strongly encourage using Vulkan for C/C++.

캔버스 개선사항

Android 15에서는 새로운 기능을 통해 Android 캔버스 그래픽 시스템을 현대화하고 있습니다.

  • Matrix44는 3D에서 캔버스를 조작하려고 할 때 사용해야 하는 좌표 변환을 위한 4x4 행렬을 제공합니다.
  • clipShader는 현재 클립을 지정된 셰이더와 교차하는 반면 clipOutShader는 클립을 현재 클립과 셰이더의 차이로 설정하여 각각 셰이더를 알파 마스크로 처리합니다. 이를 통해 복잡한 도형을 효율적으로 그릴 수 있습니다.

성능 및 배터리

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

배터리 효율적인 권장사항, 네트워크 및 전력 사용량 디버깅, Android 15 및 최신 버전의 Android에서 백그라운드 작업의 배터리 효율성을 개선하는 방법에 관한 자세한 내용은 Google I/O의 Android에서 백그라운드 작업의 배터리 효율 개선 강연을 참고하세요.

애플리케이션 시작 정보 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가 추가되었습니다.

앱 관리 프로파일링

Android 15에는 ProfilingManager 클래스가 포함되어 있습니다. 이 클래스를 사용하면 앱 내에서 프로파일링 정보를 수집할 수 있습니다. 이제 Cloud Shell에서 Android Jetpack API를 사용하면 프로파일링 구성을 간소화할 수 있고 핵심 API는 힙 덤프, 힙 덤프, 프로필, 스택 샘플링 등이 있습니다. 앱에 콜백을 제공합니다. 앱의 파일로 전달되는 출력 파일을 식별하기 위해 제공된 태그 를 참조하세요. API는 성능 영향을 최소화하기 위해 비율 제한을 실행합니다.

SQLite 데이터베이스 개선사항

Android 15 introduces SQLite APIs that expose advanced features from the underlying SQLite engine that target specific performance issues that can manifest in apps. These APIs are included with the update of SQLite to version 3.44.3.

Developers should consult best practices for SQLite performance to get the most out of their SQLite database, especially when working with large databases or when running latency-sensitive queries.

  • Read-only deferred transactions: when issuing transactions that are read-only (don't include write statements), use beginTransactionReadOnly() and beginTransactionWithListenerReadOnly(SQLiteTransactionListener) to issue read-only DEFERRED transactions. Such transactions can run concurrently with each other, and if the database is in WAL mode, they can run concurrently with IMMEDIATE or EXCLUSIVE transactions.
  • Row counts and IDs: APIs were added to retrieve the count of changed rows or the last inserted row ID without issuing an additional query. getLastChangedRowCount() returns the number of rows that were inserted, updated, or deleted by the most recent SQL statement within the current transaction, while getTotalChangedRowCount() returns the count on the current connection. getLastInsertRowId() returns the rowid of the last row to be inserted on the current connection.
  • Raw statements: issue a raw SQlite statement, bypassing convenience wrappers and any additional processing overhead that they may incur.

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

Android 15 continues our investment in the Android Dynamic Performance Framework (ADPF), a set of APIs that allow games and performance intensive apps to interact more directly with power and thermal systems of Android devices. On supported devices, Android 15 adds ADPF capabilities:

  • A power-efficiency mode for hint sessions to indicate that their associated threads should prefer power saving over performance, great for long-running background workloads.
  • GPU and CPU work durations can both be reported in hint sessions, allowing the system to adjust CPU and GPU frequencies together to best meet workload demands.
  • Thermal headroom thresholds to interpret possible thermal throttling status based on headroom prediction.

To learn more about how to use ADPF in your apps and games, head over to the documentation.

개인 정보 보호

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

화면 녹화 감지

Android 15에서는 녹화 중임을 감지하는 앱 지원을 추가합니다. 콜백은 앱이 화면 녹화 내에서 표시 또는 숨김 상태 간에 전환될 때마다 호출됩니다. 앱은 등록 프로세스의 UID가 소유한 활동이 표시되는 경우 표시되는 것으로 간주됩니다. 있습니다. 이렇게 하면 앱에서 민감한 작업을 실행하는 경우 녹화 중임을 사용자에게 알릴 수 있습니다.

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는 URL 쿼리 매개변수, URL 프래그먼트, 차단 또는 제외 규칙을 비롯하여 각각 충족되어야 하는 Intent 일치 규칙 집합을 형성하는 UriRelativeFilter 객체 집합을 포함하는 UriRelativeFilterGroup를 통해 더 정확한 Intent 확인을 지원합니다.

이러한 규칙은 AndroidManifest XML 파일에서 다음과 같이 정의할 수 있습니다. <uri-relative-filter-group> 태그(원하는 경우 android:allow 태그 이러한 태그에는 기존 데이터 태그 속성과 android:queryandroid:fragment 속성을 사용하는 <data> 태그가 포함될 수 있습니다.

다음은 AndroidManifest 문법의 예입니다.

<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>

비공개 스페이스

The private space can be unlocked and locked to show or hide sensitive apps on a device.

Private space 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. The private space uses a separate user profile. The user can choose to use the device lock or a separate lock factor for the private space.

Apps in the private space show up in a separate container in the launcher, and are hidden from the recents view, notifications, settings, and from other apps when the private space is locked. User-generated and downloaded content (such as media or files) and accounts are separated between the private space and the main space. The system sharesheet and the photo picker can be used to give apps access to content across spaces when the private space is unlocked.

Users can't move existing apps and their data into the private space. Instead, users select an install option in the private space to install an app using whichever app store they prefer. Apps in the private space are installed as separate copies from any apps in the main space (new copies of the same app).

When a user locks the private space, the profile is stopped. While the profile is stopped, apps in the private space are no longer active and can't perform foreground or background activities, including showing notifications.

We recommend that you test your app with private space to make sure your app works as expected, especially if your app falls into one of the following categories:

선택한 사진 액세스에 대한 최근 사용자 선택 쿼리 쿼리

이제 앱에서 가장 최근에 선택한 사진만 강조 표시할 수 있습니다. 미디어 권한에 대한 부분 액세스 권한이 부여된 경우 동영상 및 동영상 등 YouTube에 저장된 동영상 파일도 안전하게 보호할 수 있습니다. 이 기능을 통해 자주 요청되는 앱의 사용자 환경을 개선할 수 있습니다. 사진 및 동영상에 액세스할 수 없습니다. 앱에서 이 기능을 사용하려면 MediaStore를 쿼리할 때 QUERY_ARG_LATEST_SELECTION_ONLY 인수 ContentResolver까지

Kotlin

val externalContentUri = MediaStore.Files.getContentUri("external")

val mediaColumns = arrayOf(
   FileColumns._ID,
   FileColumns.DISPLAY_NAME,
   FileColumns.MIME_TYPE,
)

val queryArgs = bundleOf(
   // Return only items from the last selection (selected photos access)
   QUERY_ARG_LATEST_SELECTION_ONLY to true,
   // Sort returned items chronologically based on when they were added to the device's storage
   QUERY_ARG_SQL_SORT_ORDER to "${FileColumns.DATE_ADDED} DESC",
   QUERY_ARG_SQL_SELECTION to "${FileColumns.MEDIA_TYPE} = ? OR ${FileColumns.MEDIA_TYPE} = ?",
   QUERY_ARG_SQL_SELECTION_ARGS to arrayOf(
       FileColumns.MEDIA_TYPE_IMAGE.toString(),
       FileColumns.MEDIA_TYPE_VIDEO.toString()
   )
)

Java

Uri externalContentUri = MediaStore.Files.getContentUri("external");

String[] mediaColumns = {
    FileColumns._ID,
    FileColumns.DISPLAY_NAME,
    FileColumns.MIME_TYPE
};

Bundle queryArgs = new Bundle();
queryArgs.putBoolean(MediaStore.QUERY_ARG_LATEST_SELECTION_ONLY, true);
queryArgs.putString(MediaStore.QUERY_ARG_SQL_SORT_ORDER, FileColumns.DATE_ADDED + " DESC");
queryArgs.putString(MediaStore.QUERY_ARG_SQL_SELECTION, FileColumns.MEDIA_TYPE + " = ? OR " + FileColumns.MEDIA_TYPE + " = ?");
queryArgs.putStringArray(MediaStore.QUERY_ARG_SQL_SELECTION_ARGS, new String[] {
    String.valueOf(FileColumns.MEDIA_TYPE_IMAGE),
    String.valueOf(FileColumns.MEDIA_TYPE_VIDEO)
});

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

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

헬스 커넥트

Android 15는 앱에서 수집한 건강/피트니스 데이터를 관리하고 공유하는 안전하고 중앙 집중식 플랫폼인 Android용 헬스 커넥트를 중심으로 최신 확장 프로그램을 통합합니다. 이번 업데이트에서는 피트니스, 영양, 피부 온도, 훈련 계획 등에서 추가 데이터 유형을 지원합니다.

피부 온도 측정으로 보다 정확하게 저장하고 공유할 수 있음 웨어러블 또는 기타 추적 장치의 온도 데이터.

트레이닝 계획은 사용자가 피트니스 목표를 달성할 수 있도록 도와주는 구조화된 운동 계획입니다. 트레이닝 계획 지원에는 다양한 완료 및 실적 목표가 포함됩니다.

Android에서 헬스 커넥트의 최신 업데이트에 관해 자세히 알아보려면 Android로 적응형 환경 구축 Health 강연을 확인해 보세요.

부분 화면 공유

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

사용자 환경 및 시스템 UI

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

Android 15의 최신 개선사항을 사용하여 앱의 사용자 환경을 개선하는 방법에 관한 자세한 내용은 Google I/O의 Android 앱의 사용자 환경 개선 강연을 참고하세요.

Generated Previews API로 더 풍부한 위젯 미리보기

Before Android 15, the only way to provide widget picker previews was to specify a static image or layout resource. These previews often differ significantly from the look of the actual widget when it is placed on the home screen. Also, static resources can't be created with Jetpack Glance, so a Glance developer had to screenshot their widget or create an XML layout to have a widget preview.

Android 15 adds support for generated previews. This means that app widget providers can generate RemoteViews to use as the picker preview, instead of a static resource.

Apps can provide Remote Views to the Widget Picker, so they can update the content in the picker to be more representative of what the user will see.

Push API

Apps can provide generated previews through a push API. Apps can provide previews at any point in their lifecycle, and don't receive an explicit request from the host to provide previews. Previews are persisted in AppWidgetService, and hosts can request them on-demand. The following example loads an XML widget layout resource and sets it as the preview:

AppWidgetManager.getInstance(appContext).setWidgetPreview(
   ComponentName(
       appContext,
       SociaLiteAppWidgetReceiver::class.java
   ),
   AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN,
   RemoteViews("com.example", R.layout.widget_preview)
)

The expected flow is:

  1. At any time, the widget provider calls setWidgetPreview. The provided previews are persisted in AppWidgetService with other provider info.
  2. setWidgetPreview notifies hosts of an updated preview through the AppWidgetHost.onProvidersChanged callback. In response, the widget host reloads all of its provider information.
  3. When displaying a widget preview, the host checks AppWidgetProviderInfo.generatedPreviewCategories, and if the chosen category is available, calls AppWidgetManager.getWidgetPreview to return the saved preview for this provider.

When to call setWidgetPreview

Because there is no callback to provide previews, apps can choose to send previews at any point when they are running. How often to update the preview depends on the widget's use case.

The following list describes the two main categories of preview use cases:

  • Providers that show real data in their widget previews, such as personalized or recent information. These providers can set the preview once the user has signed in or has done initial configuration in their app. After this, they can set up a periodic task to update the previews at their chosen cadence. Examples of this type of widget could be a photo, calendar, weather or news widget.
  • Providers that show static information in previews or quick-action widgets that don't display any data. These providers can set previews once, when the app first launches. Examples of this type of widget include a drive quick actions widget or chrome shortcuts widget.

Some providers might show static previews on the hub mode picker, but real information on the homescreen picker. These providers should follow the guidance for both of these use cases to set previews.

PIP 모드

Android 15에서는 PIP 모드의 변경사항을 도입하여 더 매끄럽게 전환됩니다. 이렇게 하면 기본 UI 위에 UI 요소가 오버레이된 앱은 PIP 모드로 전환됩니다.

개발자는 onPictureInPictureModeChanged 콜백을 사용하여 오버레이된 UI 요소의 공개 상태를 전환하는 로직을 정의합니다. 이 콜백은 PIP 시작 또는 종료 애니메이션이 완료되면 트리거됩니다. 시작까지 Android 15에서는 PictureInPictureUiState 클래스에 다른 상태가 포함되어 있습니다.

이 UI 상태에서 Android 15 (API 수준 35)를 타겟팅하는 앱은 다음으로 호출되는 Activity#onPictureInPictureUiStateChanged 콜백 isTransitioningToPip() PIP 애니메이션이 시작되는 즉시 작동합니다. 현재 앱이 PIP 모드일 때 앱과 관련이 없는 많은 UI 요소가 예시 뷰 또는 레이아웃에서 동영상, 평점, 제목 등이 있습니다. 앱이 PIP 모드로 전환되면 onPictureInPictureUiStateChanged 콜백으로 UI 요소를 숨깁니다. 이 PIP 창에서 앱이 전체 화면 모드로 전환되면 다음과 같이 이러한 요소를 숨기기 해제하는 onPictureInPictureModeChanged 콜백 다음 예를 참고하세요.

override fun onPictureInPictureUiStateChanged(pipState: PictureInPictureUiState) {
        if (pipState.isTransitioningToPip()) {
          // Hide UI elements
        }
    }
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
        if (isInPictureInPictureMode) {
          // Unhide UI elements
        }
    }

관련 없는 UI 요소 (PIP 창)를 빠르게 볼 수 있도록 전환하면 도움이 됩니다. 더 매끄럽고 깜박임이 없는 PIP 입력 애니메이션을 제공합니다.

개선된 방해 금지 모드 규칙

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

  • AutomaticZenRule에 유형 추가(시스템에서 특수 항목 적용 가능) 일부 규칙이 적용되지 않습니다
  • AutomaticZenRule에 아이콘을 추가하여 모드를 더 쉽게 인식할 수 있도록 했습니다.
  • AutomaticZenRule에 다음을 설명하는 triggerDescription 문자열 추가 사용자에게 규칙이 활성화되기 위한 조건입니다.
  • 추가됨 ZenDeviceEffects 드림 규칙을 통해 그레이 스케일 등의 작업을 트리거할 수 있으므로 AutomaticZenRule로 변경 디스플레이, 야간 모드, 또는 배경화면을 어둡게 할 수 있습니다.

알림 채널에 VibrationEffect 설정

Android 15는 NotificationChannel.setVibrationEffect를 사용하여 채널별로 수신 알림에 리치 진동을 설정할 수 있도록 지원하므로 사용자가 기기를 보지 않고도 다양한 유형의 알림을 구분할 수 있습니다.

대형 화면 및 폼 팩터

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

개선된 대형 화면 멀티태스킹

Android 15 gives users better ways to multitask on large screen devices. For example, users can save their favorite split-screen app combinations for quick access and pin the taskbar on screen to quickly switch between apps. This means that making sure your app is adaptive is more important than ever.

Google I/O has sessions on Building adaptive Android apps and Building UI with the Material 3 adaptive library that can help, and our documentation has more to help you Design for large screens.

커버 화면 지원

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

연결

Android 15에서는 앱이 통신 및 무선 기술의 최신 발전 사항에 액세스할 수 있도록 플랫폼을 업데이트합니다.

위성 지원

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

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

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

더 부드러운 NFC 환경

Android 15에서는 Android의 강력한 NFC 앱 생태계를 계속 지원하는 동시에 비접촉 결제 환경을 더 원활하고 안정적으로 만들기 위해 노력하고 있습니다. 지원되는 기기에서 앱은 NfcAdapter관찰 모드로 전환하도록 요청할 수 있습니다. 이 모드에서는 기기가 NFC 리더를 수신 대기하지만 응답하지 않으며 앱의 NFC 서비스 PollingFrame 객체를 전송하여 처리합니다. PollingFrame 객체는 NFC 리더와의 첫 번째 통신에 앞서 인증하는 데 사용할 수 있으며 대부분의 경우 원탭 트랜잭션을 허용합니다.

또한 이제 앱이 지원되는 기기에 필터를 등록할 수 있으므로 폴링 루프 활동에 관한 알림을 받을 수 있으므로 여러 NFC 인식 애플리케이션에서 원활하게 작동할 수 있습니다.

월렛 역할

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

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

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

보안

Android 15는 앱의 보안을 강화하고 앱 데이터를 보호하며 사용자에게 데이터에 관한 더 높은 투명성과 제어 기능을 제공합니다. 사용자 보호 장치를 개선하고 새로운 위협으로부터 앱을 보호하기 위해 Google에서 어떤 노력을 기울이고 있는지 자세히 알아보려면 Google I/O의 Android에서 사용자 보안 보호 강연을 참조하세요.

자동 완성과 인증 관리자 통합

Starting with Android 15, developers can link specific views like username or password fields with Credential Manager requests, making it easier to provide a tailored user experience during the sign-in process. When the user focuses on one of these views, a corresponding request is sent to Credential Manager. The resulting credentials are aggregated across providers and displayed in autofill fallback UIs, such as inline suggestions or drop-down suggestions. The Jetpack androidx.credentials library is the preferred endpoint for developers to use and will soon be available to further enhance this feature in Android 15 and higher.

원탭 가입 및 로그인을 생체 인식 프롬프트와 통합

인증 관리자는 생체 인식 메시지를 사용자 인증 정보 생성에 통합 및 로그인 프로세스로 이루어져 있으므로 제공업체가 생체 인식 프롬프트 따라서 사용자 인증 정보 제공업체는 생성 및 가져오기 흐름의 결과를 제공하며, 생체 인식 흐름 결과로 보강됩니다. 이 간소화된 프로세스로 더 효율적이고 간소화된 사용자 인증 정보를 만들 수 있습니다. 생성 및 검색 프로세스가 포함됩니다.

엔드 투 엔드 암호화를 위한 키 관리

Android 15에 암호화 공개 키 저장을 위한 OS 수준 API를 제공하여 Android 앱의 엔드 투 엔드 암호화 (E2EE)를 용이하게 하는 E2eeContactKeysManager가 도입되었습니다.

E2eeContactKeysManager는 플랫폼 연락처 앱과 통합되도록 설계되어 사용자에게 연락처의 공개 키를 중앙에서 관리하고 확인하는 방법을 제공합니다.

콘텐츠 URI의 권한 확인

Android 15에는 콘텐츠 URI에 권한 검사를 실행하는 새로운 API 세트가 도입되었습니다.

접근성

Android 15에는 사용자의 접근성을 개선하는 기능이 추가되었습니다.

향상된 점자 기능

Android 15에서는 TalkBack이 USB 및 보안 블루투스를 통해 HID 표준을 사용하는 점자 디스플레이를 지원할 수 있도록 했습니다.

마우스 및 키보드에서 사용하는 것과 매우 유사한 이 표준은 Android가 시간이 지남에 따라 더 다양한 점자 디스플레이를 지원하는 데 도움이 될 것입니다.

다국어 지원

Android 15에는 기기를 다양한 언어로 사용할 때의 사용자 환경을 보완하는 기능이 추가되었습니다.

CJK 가변 글꼴

Android 15부터 한국어, 중국어, 일본어, 한국어 (CJK) 언어의 글꼴 파일 NotoSansCJK가 가변 글꼴로 변경됩니다. 가변 글꼴은 CJK 언어의 창의적인 서체를 위한 새로운 가능성을 열어줍니다. 디자이너는 더 광범위한 스타일을 탐색하고 이전에는 달성하기 어렵거나 불가능했던 시각적으로 눈에 띄는 레이아웃을 만들 수 있습니다.

한국어, 일본어, 중국어 (CJK) 언어의 변수 글꼴이 다양한 글꼴 너비로 표시되는 방식

문자 간 양쪽 맞춤

Android 15부터 JUSTIFICATION_MODE_INTER_CHARACTER 사용 이전 단어 간 사유(이전): Android 8.0 (API 수준 26)에서 처음 도입되었으며 근거는 특정 API를 사용하는 언어에 유사한 기능을 중국어, 일본어 등 분할을 위한 공백 문자

JUSTIFICATION_MODE_NONE를 사용한 일본어 텍스트 레이아웃
JUSTIFICATION_MODE_NONE를 사용한 영어 텍스트 레이아웃


JUSTIFICATION_MODE_INTER_WORD를 사용한 일본어 텍스트 레이아웃
JUSTIFICATION_MODE_INTER_WORD를 사용한 영어 텍스트 레이아웃


JUSTIFICATION_MODE_INTER_CHARACTER를 사용한 일본어 텍스트 레이아웃
JUSTIFICATION_MODE_INTER_CHARACTER를 사용한 영어 텍스트 레이아웃

자동 줄바꿈 구성

Android는 일본어와 한국어의 구문 기반 줄바꿈을 Android 13 (API 수준 33) 그러나 구문 기반 줄바꿈은 짧은 텍스트 줄의 가독성을 개선하지만 긴 텍스트 줄에는 적합하지 않습니다. Android 15에서는 앱이 짧은 줄에만 구문 기반 줄바꿈을 적용할 수 있습니다. LINE_BREAK_WORD_STYLE_AUTO를 사용하여 텍스트 생성 옵션을 선택합니다. 이 옵션을 선택하면 텍스트에 가장 적합한 단어 스타일 옵션이 선택됩니다.

짧은 텍스트 줄의 경우 동일하게 작동하는 구문 기반 줄바꿈이 사용됨 다음과 같이 LINE_BREAK_WORD_STYLE_PHRASE로 설정합니다. 다음 이미지:

LINE_BREAK_WORD_STYLE_AUTO은 짧은 텍스트 줄의 경우 구문 기반 줄바꿈을 적용하여 텍스트의 가독성을 개선합니다. 이 방법은 LINE_BREAK_WORD_STYLE_PHRASE

텍스트가 더 긴 경우 LINE_BREAK_WORD_STYLE_AUTO는 no를 사용합니다. 줄바꿈 단어 스타일로, LINE_BREAK_WORD_STYLE_NONE 다음 이미지:

텍스트가 긴 경우 LINE_BREAK_WORD_STYLE_AUTO 줄바꿈 단어 스타일을 적용하지 않으므로 텍스트의 가독성이 향상됩니다. 이 방법은 LINE_BREAK_WORD_STYLE_NONE

새로운 일본어 헨타이가나 글꼴

Android 15의 오래된 일본어 히라가나 (헨타이가나) 글꼴 파일 기본적으로 번들로 묶여 있습니다. 독특한 모양의 헨타이가나 캐릭터는 예술 작품이나 디자인에 독특한 감각을 더하는 동시에 전송 및 이해에 대해 살펴봤습니다.

일본어 Hentaigana 글꼴의 문자 및 텍스트 스타일입니다.

VideoLAN cone Copyright (c) 1996~2010 VideoLAN. 누구나 VideoLAN 프로젝트 또는 VideoLAN팀에서 개발한 제품을 언급하기 위해 이 로고 또는 수정된 버전을 사용하거나 수정할 수 있지만 프로젝트가 보증한다는 의미는 아닙니다.

Vulkan 및 Vulkan 로고는 Khronos Group Inc.의 등록 상표입니다.

OpenGL은 등록 상표이며 OpenGL ES 로고는 Khronos의 허가 하에 사용한 Hewlett Packard Enterprise의 상표입니다.