החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קריאת מסך מוגבלת
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בגרסאות Android 9 וגרסאות ישנות יותר, ההרשאות לצילום מאגר המסך (READ_FRAME_BUFFER
, CAPTURE_VIDEO_OUTPUT
ו-CAPTURE_SECURE_VIDEO_OUTPUT
) הוענקו לאפליקציות עם חתימה או הרשאות עם הרשאות מיוחדות. כך ניתן היה לבצע פעילויות לצילום מאגר המסך בצורה חלקה, כמו צילום צילומי מסך או הקלטה של תוכן המסך של המכשיר.
החל מ-Android 10, כדי למנוע גישה שקטה לתוכן המסך של המכשיר, לא ניתנות הרשאות הקלטת וידאו לאפליקציות עם הרשאות. הגישה ללא הסכמת המשתמש מוגבלת, והיא ניתנת רק לאפליקציות שיש להן הרשאות חתימה. יצרני מכשירים שמפעילים אפליקציות עם הרשאות שמסתמכות על הפונקציונליות הזו של צילום שקט מושפעים מהדרישה הזו.
החל מגרסה 10 של Android, אם אין לכם את הרשאות החתימה לצילום מאגרי המסך שמפורטות למעלה, האפליקציה לא יכולה לצלם מאגרי מסך ללא הסכמת המשתמש. כדי לוודא שיש לכם את ההרשאות הנדרשות, חפשו בקובץ המניפסט את הרשאות החתימה שצוינו למעלה. מעבירים את כל האפליקציות המושפעות עם ההרשאות (כפי שנמצאו בחיפוש) לכיתה MediaProjectionManager, שמאפשרת לכל אפליקציה של צד שלישי לצלם מאגרי מסך ללא הרשאות, אבל בהסכמת המשתמש. בתהליך הזה מוצגת תיבת דו-שיח שמבקשת מהמשתמש לאפשר צילום מסך כשאפליקציה מפעילה אותו. ב-Android 10, התכונות החדשות של תיבת הדו-שיח כוללות את התכונות הבאות:
- יצירת שיוך גלוי יותר באמצעות סמל העברה.
- מידע נוסף על רמת הרגישות של הנתונים שאפשר לגשת אליהם.
- המשתמשים לא יכולים להסתיר את תיבת הדו-שיח בפעמים הבאות שהם יפעילו את השירות: תיבת הדו-שיח תוצג בכל פעם.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# Restricted screen reading\n\nIn Android 9 and lower, the screen buffer\ncapture permissions (`READ_FRAME_BUFFER`,\n`CAPTURE_VIDEO_OUTPUT`, and\n`CAPTURE_SECURE_VIDEO_OUTPUT`) were granted to apps that\nhad *either* signature or privileged permissions. This\nenabled seamless screen-buffer capturing activities, such as\ntaking screenshots, or recording a device's screen contents.\n\nStarting in Android 10, to prevent\nsilent access to a device's screen contents, video capture\npermissions aren't granted to privileged apps. Access\nwithout user consent is [restricted](https://developer.android.com/about/versions/11/privacy/permissions),\nand granted only to apps that have signature\npermissions. Device manufacturers that run privileged apps relying\non this silent capture functionality are affected by this\nrequirement.\n\nAs of Android 10 if you\ndon't have the listed screen-buffer capture signature permissions, your\napp can't capture screen buffers without user consent. To\nensure you have the permissions you need, search your manifest file\nfor the previously listed signature permissions. Migrate all affected privileged\napps (as found in your search) to the [MediaProjectionManager](https://developer.android.com/reference/android/media/projection/MediaProjectionManager)\nclass, which allows any third party app\nto capture screen buffers without permissions, but with user\nconsent. This flow displays a dialog that prompts the user to\nallow screen capturing when an app initiates it. In Android 10,\nnew features of the dialog include the following:\n\n- Provides more visible associations with the **Cast** icon.\n- Provides more information about the sensitivity of the data that can be accessed.\n- Prevents users from hiding the dialog on future initiations: the dialog shows every time."]]