החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
המדיניות בנושא גישה להתראות ושירותי האזנה להתראות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
המדיניות בנושא גישה להתראות והמדיניות בנושא מאזינים להתראות כוללות את ההרשאות וההגדרות הבאות.
- ההרשאה המיוחדת
ACCESS_NOTIFICATIONS
מאפשרת לאפליקציה לקרוא את הקבוצה הנוכחית של ההתראות, כולל כל המטא-נתונים והכוונות המצורפות.
- כדי להגדיר אפליקציה כמאזין ברירת מחדל להתראות, מוסיפים את שם החבילה שלה ל-
config_defaultListenerAccessPackages
ב-config.xml
או לכל שכבת-על של יצרן ציוד מקורי. למאזין ההתראות שמוגדר כברירת מחדל ניתנת גישה לכל ההתראות הנכנסות, אבל המשתמשים יכולים להשבית את הגישה להתרעות בהגדרות של 'גישה להתראות' באפליקציית ההגדרות.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# Notification access and notification listener policy\n\nThe notification access and notification listener policy covers the following permission\nand configuration.\n\n\n- The [ACCESS_NOTIFICATIONS](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/res/AndroidManifest.xml?q=android.permission.ACCESS_NOTIFICATIONS) privileged permission allows an app to read the current set of notifications, including any metadata and attached intents.\n- An app can be designated as a default notification listener by adding its package name to [config_defaultListenerAccessPackages](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/res/res/values/config.xml?q=config_defaultListenerAccessPackages&sq=&ss=android) in `config.xml` or any OEM overlays. A default notification listener is granted access to all incoming notifications, but access to notifications can be turned off by users in the Notification Access settings in the Settings app."]]