تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
لتبسيط عملية توفير التطبيقات المتوافقة مع الأجهزة التي تعمل بنظام التشغيل Android Automotive، تأتي بعض السيارات مزوّدة بوضع التوافق الذي يعالج المشاكل الشائعة التي تواجهها عند توفير التطبيقات المتوافقة مع الأجهزة الجوّالة في السيارات.
على الرغم من أنّ برنامج تطبيقات Car ready
الجوّالة يستخدم وضع التوافق هذا، يمكن أيضًا تشغيل التطبيقات التي ليست جزءًا من
هذا البرنامج فيه.
فهم "وضع التوافق"
وضع التوافق مع نظام التشغيل Android Automotive هو ميزة برامج متاحة
في بعض المركبات لتحسين تجربة المستخدم للتطبيقات
المصمّمة للأجهزة الجوّالة عند تشغيلها على نظام التشغيل Android Automotive.
التنقّل للخلف
على عكس أشكال الأجهزة الأخرى، لا يُشترط أن تتضمّن أجهزة Android Automotive
ميزة الرجوع من خلال الأجهزة أو البرامج. يعالج وضع التوافق
هذه المشكلة من خلال طلب ميزة الرجوع المقدَّمة من النظام، سواء كان زرًا في الجهاز
أو زرًا في البرنامج أو إيماءة أو غير ذلك. ويؤدي ذلك إلى عدم حاجة التطبيقات إلى التأكّد من إمكانية التنقّل من خلال عناصر واجهة المستخدم الخاصة بها فقط.
check_circle
باستخدام وضع التوافق
يمكن للمستخدم الانتقال مرة أخرى إلى الشاشة السابقة حتى إذا لم يقدّم التطبيق عنصر تحكم للرجوع في واجهة المستخدم.
cancel
بدون وضع التوافق
لا يمكن للمستخدم الرجوع إلى الشاشة السابقة.
عرض المنطقة الآمنة
في السيارات، قد تؤدي عناصر البرامج والأجهزة، مثل أشرطة النظام واقتطاعات الشاشة، إلى عدم توفّر
الافتراضات التي تفترضها التطبيقات المطوّرة في الأساس للأجهزة الجوّالة. يعالج
وضع التوافق هذه المشكلة من خلال ضمان عرض التطبيقات في منطقة آمنة.
تغيير الكثافة
بما أنّ مسافة التفاعل في السيارات أكبر من تلك في الأجهزة الأخرى التي تتضمّن شاشة كبيرة، غالبًا ما تكون أهداف اللمس وأحجام الخطوط أصغر من المُقترَح عند استخدام التطبيق على سيارة. يعالج وضع التوافق هذه المشكلة من خلال السماح لمصنّعي المعدّات الأصلية بتحديد عامل قياس كثافة البكسل المستخدَم عند عرض التطبيقات.
مراحل النشاط
كما هو موضّح في مقالة إتاحة نظام التشغيل Android Automotive لتطبيقك المخصّص للسيارة المتوقفة، يحظر نظام التشغيل أنشطة تطبيقك تلقائيًا عندما تدخل السيارة في وضع القيادة للحدّ من عوامل الإلهاء التي تواجه السائق. على الأجهزة التي تتضمّن وضع التوافق، يجب ألا تكون واجهة المستخدم الخاصة بمنع الجهاز من المصنّع الأصلي للجهاز شفافة، لكي لا يبقى تطبيقك مرئيًا وينتقل إلى حالة متوقف عند حظره.
ضبط وضع التوافق
يتم تلقائيًا تشغيل أنشطة تطبيقك في وضع التوافق عندما يكون الجهاز
متوافقًا معه. لا يتم تشغيل الأنشطة في وضع التوافق عندما يكون عنصر
<uses-feature> للميزة android.hardware.type.automotive
متوفّرًا في البيان:
إذا كنت تفضّل تشغيل الأنشطة في وضع التوافق مع الشاشة،
بغض النظر عن عنصر <uses-feature> الموضّح سابقًا،
يمكنك إضافة عنصر <meta-data> التالي في بيان تطبيقك:
يجب أن تحدّد الأجهزة المتوافقة مع وضع التوافق في نظام التشغيل Android Automotive
ميزة النظام android.software.car.display_compatibility. لمعرفة
الأجهزة المتوافقة مع هذه الميزة، يمكنك استخدام
قائمة الأجهزة في Play Console.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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)."]]