از 27 مارس 2025، توصیه می کنیم از android-latest-release به جای aosp-main برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Android از تنظیمات، برنامهها و دادههای چند کاربر پشتیبانی میکند. Android Automotive برای ارائه یک تجربه مشترک از دستگاه به پشتیبانی چند کاربره Android متکی است، که در آن هر کاربر دستگاه برای شخص فیزیکی متفاوتی در نظر گرفته شده است. در Android 10 و بالاتر، Android Automotive از این دسته از کاربران پشتیبانی می کند:
کاربر سیستم هدلس . کاربر سیستم هدلس در پس زمینه اجرا می شود و همه سرویس های سیستم را میزبانی می کند. برای Automotive، کاربر سیستم برای استفاده و دسترسی مستقیم توسط یک شخص فیزیکی در نظر گرفته نشده است.
کاربر معمولی . دستگاههای خودرو، دستگاههای مشترکی هستند و هر کاربر برای استفاده توسط شخص فیزیکی متفاوتی در نظر گرفته شده است. کاربران اندروید می توانند نقش های متفاوتی داشته باشند. برای اطلاعات بیشتر به نقش ها و محدودیت ها مراجعه کنید. در خودرو، همه کاربران عادی کاربران ثانویه هستند.
کاربر مهمان. کاربران خودرو می توانند شامل کاربران موقت مانند دوستانی باشند که وسیله نقلیه قرض می گیرند. برای استفاده از این قبیل، Android Automotive دسترسی کاربر مهمان را به تمام اجزای مورد نیاز برای استفاده از خودرو فراهم می کند. فقط یک کاربر مهمان را می توان در یک دستگاه در یک زمان تعریف کرد.
نمودار زیر نشان می دهد که چگونه حالت کاربر سیستم بدون سر خودرو از تجربه چند کاربره پشتیبانی می کند:
وسایل نقلیه وسایل مشترکی هستند که ممکن است توسط افراد مختلف هدایت شوند. هر فرد می تواند کاربر خود را داشته باشد که هر کدام برنامه ها و داده های خود را دارد. با این حال، مالک وسیله نقلیه ممکن است بخواهد همه کاربران توانایی یکسانی برای اصلاح دستگاه نداشته باشند. بنابراین، Automotive از مفهوم ارائه نقشها و محدودیتهای مختلف به کاربران پشتیبانی میکند. نقش های کاربری زیر پشتیبانی می شوند:
مدیر. به طور پیش فرض، کاربران عادی با نقش ادمین می توانند هر کاری را انجام دهند. کاربران ادمین می توانند نقش مدیریت را به سایر کاربران اعطا کنند.
غیر ادمین بهطور پیشفرض، کاربران عادی با نقش غیر سرپرست نمیتوانند دادههای کارخانه را بازنشانی کنند، نقش سرپرست را به خود اختصاص دهند یا سایر کاربران را حذف کنند.
مهمان بهطور پیشفرض، کاربر مهمان نه میتواند دادههای کارخانه را بازنشانی کند و نه کاربران دیگر را حذف کند. به طور پیشفرض، کاربر مهمان محدودیتهای دیگری دارد، مانند عدم امکان تغییر (افزودن یا حذف) حسابها، نصب برنامهها یا اعمال صفحه قفل. به طور پیش فرض، مهمان نیز زودگذر است.
همانطور که در بالا گفته شد، هر نقش دارای مجموعه ای از محدودیت های پیش فرض است به طوری که کاربر جدیدی که با آن نقش ایجاد شده است، همان محدودیت های مربوطه را دارد.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Multi-user support\n\nAndroid supports [multiple users](/docs/devices/admin/multi-user#general_defs)\nsettings, apps, and data. Android Automotive relies on Android's multi-user support\nto provide a shared device experience, wherein each device user is intended to be used by a\ndifferent physical person. In Android 10 and higher, Android\nAutomotive supports these types of users:\n\n- **[Headless\n system user](/docs/devices/admin/multi-user#automotive-user-types).** The headless system user runs in the background and hosts all system services. For Automotive, the system user isn't intended to be used, nor directly accessed, by a physical person.\n- **[Regular user](/docs/devices/admin/multi-user#automotive-user-types).** Automotive devices are shared devices and each user is intended to be used by a different physical person. Android users can have different roles. See [Roles and restrictions](#roles-restrictions) for more information. In Automotive, all regular users are secondary users.\n- **Guest user.** Automotive users can include temporary users, such as friends, who borrow a vehicle. To accommodate uses like this, Android Automotive provides a guest user with access to all components needed to use the vehicle. Only one guest user can be defined on a device at a time.\n\n| **Note:** The primary user flag ([FLAG_PRIMARY](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android10-release/core/java/android/content/pm/UserInfo.java#46)) isn't yet supported in the Automotive headless system user model.\n\nThe following diagram illustrates how the Automotive headless system user mode\nsupports the multi-user experience:\n\n**Figure 1.** Multi-user experience.\n\nTo learn more, see [Android Automotive multi-user](/docs/devices/admin/multi-user#automotive-multi-user).\n\nRoles and restrictions\n----------------------\n\nVehicles are shared devices that may be driven by different people. Each person\ncan have their own user, each with their own apps and data. However, a vehicle owner may\nnot want all users to have the same ability to modify the device. Therefore, Automotive supports\nthe concept of providing users with different roles and restrictions. The following user roles are\nsupported:\n\n- **Admin.** By default, regular users with the role of admin can perform *every* task. Admin users can grant the admin role to other users.\n- **Non-admin.** By default, regular users with the role non-admin can't factory data reset the device, grant themselves an admin role, or delete other users.\n- **Guest.** By default, a guest user can neither factory data reset the device nor delete other users. By default, a guest user has other restrictions, such as not being able to modify (add or remove) accounts, install apps, or apply a lockscreen. By default, guest is also ephemeral.\n\nAs stated above, each role has a default set of restrictions so that a new\nuser created with that role has the same respective restrictions."]]