בדיקה באמצעות האמולטור שניתן להגדרה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי לדמות חלק מהתצורות שקיימות אצל יצרני ציוד מקורי, פרופילי חומרה מסוימים תומכים בהגדרה בזמן ריצה.
ההגדרות האלה מיושמות באמצעות שכבות-על של משאבים בסביבת זמן ריצה (RRO), וניתן לנהל אותן באמצעות הפקודה adb shell cmd overlay
.
משתמשים בפקודות הבאות כדי להפעיל או להשבית RRO:
adb shell cmd overlay enable NAME
adb shell cmd overlay disable NAME
שינוי המיקום של סרגל המערכת
כברירת מחדל, למהדורת האמולטור שני סרגלי מערכת – שורת סטטוס בחלק העליון של המסך וסרגל ניווט בחלק התחתון של המסך. למרות שבדגמי רכב רבים יש את הפריסה הזו, בחלק מהם היא לא קיימת. חשוב לזכור שברכבים מסוימים שורת המערכת נמצאת בצדדים האופקיים של המסך ולא בצדדים האנכיים, דבר שעלול להפר את ההנחות שעושים כשמפתחים אפליקציות לגורמים שונים של פורמטים לנייד. פרטים נוספים והנחיות טכניות זמינים במאמר סרגלי מערכת, מצב immersive ורינדור מקצה לקצה.
אפשר להשתמש ב-RROs הבאים כדי לשנות את שורת הסטטוסים:
com.android.systemui.rro.bottom
com.android.systemui.rro.bottom.rounded
com.android.systemui.rro.left
com.android.systemui.rro.right
יצירת אמולציה של מגרעות במסך
בחלק מהרכבים יש מסכים עם חתכים שונים מאוד בהשוואה למסכים במכשירים ניידים. במקום חריצים או חתכים למצלמת נקב, בחלק מהרכבים עם Android Automotive OS יש מסכים מעוקלים, כך שהמסך לא מרובע. פרטים נוספים והנחיות טכניות זמינים במאמר התאמה למסכים בעלי צורה לא סדירה.
אפשר להשתמש ב-RROs הבאים כדי לדמות חתכים במסך:
com.android.internal.display.cutout.emulation.top_and_right
com.android.internal.display.cutout.emulation.free_form
com.android.internal.emulation.automotive_ultrawide_cutout
הגדרות בדיקה מומלצות
מכיוון שמספר ההגדרות הכולל שאפשר ליצור על ידי שילוב של קובצי ה-RRO האלה גדול למדי, מומלץ לבדוק את האפליקציה באמצעות השילובים הבאים של פרופילים של חומרה ושל קובצי RRO, שדומים לכלי רכב מסוימים שנוסעים היום בכבישים.
- Automotive (1080p לרוחב) עם
com.android.systemui.rro.left
או com.android.systemui.rro.right
- Automotive Ultrawide עם
com.android.systemui.rro.left
ו-com.android.internal.emulation.automotive_ultrawide_cutout
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת 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,["# Test using the configurable emulator\n\nTo help emulate some of the configurations seen across OEMs, certain [hardware\nprofiles](/training/cars/testing/emulator#bundled-profiles) support runtime\nconfigurability.\n\nThese configurations are implemented using [Runtime Resource\nOverlays](https://source.android.com/docs/core/runtime/rros) (RROs)\nand can be managed using the `adb shell cmd overlay` command.\n\nUse the following commands to enable or disable a RRO: \n\n adb shell cmd overlay enable \u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e\n adb shell cmd overlay disable \u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e\n\nModify system bar position\n--------------------------\n\nBy default, the configurable emulator has two system bars -- a status bar on the\ntop of the screen and a navigation bar at the bottom of the screen. Though many\ncars share this layout, some don't. Of particular note is that some cars have\ntheir system bar(s) on the horizontal sides of the screen and not the vertical\nsides, which may break assumptions made when developing apps for mobile form\nfactors. See [System bars, immersive mode, and\nedge-to-edge rendering](/training/cars/parked/automotive-os#bars-immersive-edge)\nfor more details and technical guidance.\n\nThe following RROs can be used to modify the system bars:\n\n- `com.android.systemui.rro.bottom`\n- `com.android.systemui.rro.bottom.rounded`\n- `com.android.systemui.rro.left`\n- `com.android.systemui.rro.right`\n\nEmulate display cutouts\n-----------------------\n\nSome cars have screens with display cutouts that are very different when\ncompared to those seen on mobile devices. Instead of the notches or pinhole\ncamera cutouts, some Android Automotive OS vehicles have curved screens that\nmake the screen non-rectangular. See [Adapt to irregularly shaped displays](/training/cars/parked/automotive-os#irregular-displays)\nfor more details and technical guidance.\n\nThe following RROs can be used to emulate display cutouts:\n\n- `com.android.internal.display.cutout.emulation.top_and_right`\n- `com.android.internal.display.cutout.emulation.free_form`\n- `com.android.internal.emulation.automotive_ultrawide_cutout`\n\nRecommended testing configurations\n----------------------------------\n\nSince the total number of configurations that can be created by combining these\nRROs is quite large, we recommend testing your app using the following\ncombinations of [hardware profiles](/training/cars/testing/emulator#bundled-profiles)\nand RROs, which are similar to some vehicles on the road today.\n\n- *Automotive (1080p landscape)* with `com.android.systemui.rro.left` or `com.android.systemui.rro.right`\n- *Automotive Ultrawide* with `com.android.systemui.rro.left` and `com.android.internal.emulation.automotive_ultrawide_cutout`"]]