모바일 앱을 Android Automotive OS 기기에 가져오는 프로세스를 간소화하기 위해 특정 자동차에는 기존 모바일 앱을 자동차에 가져올 때 발생하는 일반적인 문제를 해결하는 호환성 모드가 제공됩니다.
이 호환성 모드는 자동차 지원 모바일 앱 프로그램에서 사용되지만 이 프로그램에 속하지 않은 앱도 이 모드에서 실행할 수 있습니다.
호환성 모드 이해
Android Automotive OS 호환성 모드는 일부 차량에서 Android Automotive OS에서 실행할 때 휴대기기용으로 빌드된 앱의 사용자 환경을 개선하기 위해 사용할 수 있는 소프트웨어 기능입니다.
뒤로 탐색
다른 폼 팩터와 달리 Android Automotive OS 기기에는 하드웨어 또는 소프트웨어 뒤로 어포던스가 필요하지 않습니다. 호환성 모드는 하드웨어 버튼, 소프트웨어 버튼, 동작 등 시스템에서 제공하는 뒤로 어포던스를 요구하여 이 문제를 해결합니다. 이렇게 하면 앱이 자체 UI 요소를 통해서만 탐색성을 보장할 필요가 없습니다.
check_circle
호환성 모드를 사용하여
앱이 UI에 뒤로 어포던스를 제공하지 않더라도 사용자는 이전 화면으로 이동할 수 있습니다.
cancel
호환성 모드가 적용되지 않음
사용자가 이전 화면으로 돌아갈 수 없습니다.
안전 영역 렌더링
자동차에서는 시스템 표시줄 및 디스플레이 컷아웃과 같은 소프트웨어 및 하드웨어 요소로 인해 주로 휴대기기용으로 개발된 앱의 가정이 무너질 수 있습니다. 호환성 모드는 앱이 안전한 영역에서 렌더링되도록 하여 이 문제를 해결합니다.
밀도 조정
자동차의 상호작용 거리는 다른 대형 화면 기기보다 길기 때문에 자동차에서 실행할 때 터치 영역과 글꼴 크기가 권장보다 작을 수 있습니다. 호환성 모드는 OEM이 앱을 렌더링할 때 사용되는 DPI 배율을 지정할 수 있도록 허용하여 이 문제를 해결합니다.
활동 수명 주기
주차 앱에 Android Automotive OS 지원 추가에 설명된 대로, 운전자의 주의가 분산되는 것을 줄이기 위해 자동차가 운전 모드로 전환되면 OS에서 앱의 활동을 자동으로 차단합니다. 호환성 모드가 있는 기기에서는 OEM의 차단 UI가 투명해서는 안 되므로 앱이 더 이상 표시되지 않고 차단되면 중지됨 수명 주기 상태로 전환됩니다.
호환성 모드 구성
기본적으로 앱의 활동은 기기에서 호환성 모드를 지원하는 경우 호환성 모드로 실행됩니다. android.hardware.type.automotive 기능의 <uses-feature> 요소가 매니페스트에 있는 경우 활동이 호환성 모드에서 실행되지 않습니다.
Android Automotive OS 호환성 모드를 지원하는 기기는 android.software.car.display_compatibility 시스템 기능을 선언해야 합니다. 이 기능을 지원하는 기기를 확인하려면 Play Console의 기기 카탈로그를 사용하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-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"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Android Automotive OS compatibility mode\n\nTo simplify the process of bringing mobile apps to Android Automotive OS devices,\ncertain cars come with a compatibility mode that addresses common issues\nfaced when bringing existing mobile apps into cars.\n\nWhile this compatibility mode is used by the [Car ready mobile\napps](/training/cars/car-ready-mobile-apps) program, apps that are not part of\nthat program can also run in it.\n\nUnderstand compatibility mode\n-----------------------------\n\nAndroid Automotive OS compatibility mode is a software feature available\non [some vehicles](#determine-support) to improve the user experience of apps\nbuilt for mobile devices when run on Android Automotive OS.\n\n### Back navigation\n\nUnlike other form factors, there is no requirement for Android Automotive OS\ndevices to have a hardware or software back affordance. The compatibility mode\naddresses this by requiring a system provided back affordance, be it a hardware\nbutton, software button, gesture, or something else. This removes the need for\napps to ensure navigability solely through their own UI elements. \ncheck_circle\n\n### With compatibility mode\n\nThe user can navigate back to the previous screen even though the app doesn't provide a back affordance in its UI. \ncancel\n\n### Without compatibility mode\n\nThe user cannot navigate back to the previous screen.\n\n### Safe area rendering\n\nIn cars, software and hardware elements such as [system bars and display\ncutouts](/training/cars/parked/automotive-os#insets-and-cutouts) may break\nassumptions made by apps developed primarily for mobile devices. The\ncompatibility mode addresses this by ensuring apps are rendered in a safe area.\n\n### Density scaling\n\nBecause the interaction distance in cars is greater than with other large screen\ndevices, touch targets and font sizes are often smaller than recommended when\nrunning on a car. The compatibility mode addresses this by allowing OEMs to\nspecify a DPI scaling factor used when rendering apps.\n\n### Activity lifecycle\n\nAs described in [Add support for Android Automotive OS to your parked\napp](/training/cars/parked/automotive-os#driver-distraction), the OS blocks your\napp's activities automatically when the car enters driving mode to reduce\ndistractions for the driver. On devices with compatibility mode,\nthe OEM's blocking UI must not be transparent, so your app is no longer visible\nand transitions to the\n[*Stopped* lifecycle state](/guide/components/activities/activity-lifecycle#onstop)\nwhen blocked.\n| **Caution:** This behavior applies to *all* applications running on a device that supports compatibility mode, not just the apps that run in compatibility mode.\n\nConfigure compatibility mode\n----------------------------\n\nBy default, your app's activities are run in compatibility mode when the device\nsupports it. Activities **aren't** run in compatibility mode when a\n`\u003cuses-feature\u003e` element for the `android.hardware.type.automotive`\nfeature is present in the manifest: \n\n \u003capplication ...\u003e\n ...\n \u003cuses-feature android:name=\"android.hardware.type.automotive\" ...\u003e\n ...\n \u003c/application\u003e\n\nIf you'd prefer for your activities to be run in display compatibility mode,\nirrespective of the `\u003cuses-feature\u003e` element described earlier,\nyou can add the following `\u003cmeta-data\u003e` element in your app's manifest: \n\n \u003capplication ...\u003e\n ...\n \u003cmeta-data android:name=\"android.software.car.display_compatibility\" android:value=\"true\"/\u003e\n ...\n \u003c/application\u003e\n\nTest your app in compatibility mode\n-----------------------------------\n\nTo test your app in compatibility mode, you can use the [generic system images\nwith compatibility mode](/training/cars/testing/emulator?filter=compatibility-mode#generic-images) or [Android Automotive OS on Pixel Tablet](/training/cars/testing/aaos-on-pixel) system\nimages.\n\nDetermine device support\n------------------------\n\nDevices that support the Android Automotive OS compatibility mode must declare\nthe `android.software.car.display_compatibility` system feature. To discover\nwhich devices support this feature, you can use the Play Console's\n[Device catalog](https://play.google.com/console/about/devicecatalog)."]]