קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ב-Android מגרסה 10 ואילך, תשתית ה-Wi-Fi כוללת את ה-API של הצעות לחיבור ל-Wi-Fi לחיבור לאינטרנט, ואת ה-API של בקשות לרשת Wi-Fi לחיבור בין מכשירים. ב-Android מגרסה 11 ואילך, Settings Intent API מאפשר לבקש מהמשתמש לאשר הוספה של רשת שמורה או הגדרה של Passpoint.
ממשקי API
שלושת ממשקי ה-API מיועדים למקרים שונים של שימוש, ויש להם יכולות ומגבלות שונות:
Suggestion API: מטרגט אפליקציות שמספקות תצורות עם אפשרות גישה לאינטרנט. המשתמש לא יכול להיות הבעלים של ההגדרות האלה. המשתמשים יכולים להשבית הגדרות ספציפיות או להשבית את האפליקציה שמציעה את ההגדרות, אבל הם לא יכולים למחוק אותן.
נדרש אישור משתמש לכל אפליקציה, ולא לכל רשת שהאפליקציה מציעה.
מיועד לאפליקציות להגדרת העברת נתונים מרשת סלולרית לרשת Wi-Fi ולאפליקציות אחרות שעשויות לנהל באופן פעיל רשתות להעברת נתונים.
Network request API: מיועד לאפליקציות שצריכות להתחבר למכשיר עמית, למשל כשמגדירים מכשיר IoT או כשמעבירים קבצים למצלמה. במקרים כאלה, מכשיר ה-peer מתחיל SoftAP וה-API מאפשר לאפליקציה להנחות את המשתמש להתחבר למכשיר. הרשת שנוצרת לא מיועדת לספק גישה לאינטרנט, לא ניתן להשתמש בה במערכת ולא ניתן להשתמש בה באף אפליקציה מלבד האפליקציה שמגדירה אותה.
בפעם הראשונה שמתבצע חיבור למכשיר עמית חדש, נדרש אישור של המשתמש.
ACTION_WIFI_ADD_NETWORKS
API: מאפשר לאפליקציות (באישור המשתמש) להוסיף רשתות או הגדרות של Passpoint לרשימת הרשתות או המינויים השמורים. לאחר מכן, המערכת מתייחסת להגדרות האלה כאילו המשתמש הוסיף אותן ישירות. לדוגמה, המשתמש יכול למחוק אותם מאוחר יותר.
נדרש אישור משתמש לכל בקשה להוספת רשתות שמורות.
מיועד לאפליקציות שמגדירות נקודת גישה ביתית וצריכות להוסיף את ההגדרה לרשימת הרשתות השמורות של המשתמש. אפליקציות שמספקות הגדרת Passpoint של חשבון משתמש, כמו רשתות ארגוניות, רשתות מאוחדות ומוסדות חינוכיים.
הגדרת Wi-Fi מאובטח ל-Enterprise
ב-Android מגרסה 11 QPR1 ואילך, המערכת מחייבת הגדרות אבטחה מחמירות לחיבורים של Wi-Fi Enterprise שמבוססים על TLS. מידע נוסף זמין במאמר הגדרת אבטחה של Wi-Fi Enterprise.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-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-08-27 (שעון UTC)."],[],[],null,["On Android 10 and higher, the Wi-Fi infrastructure includes the Wi-Fi suggestion\nAPI for internet connectivity and the Wi-Fi network request API for peer-to-peer\nconnectivity. On Android 11 and higher, the Settings Intent API lets you\nask the user to approve adding a saved network or Passpoint configuration.\n\nAPIs\n\nThe three APIs target different use cases and have different capabilities and\nconstraints:\n\n- [Suggestion API](/develop/connectivity/wifi/wifi-suggest): targets apps that\n provision and provide internet-capable configurations. These configurations\n are not individually owned by the user. Users can disable specific\n configurations or disable the suggesting app, but can't delete\n them.\n\n - User approval is required per app, not per network suggested by the app.\n - Intended for carrier Wi-Fi offload configuration apps and other apps that may actively manage offload networks.\n- [Network request API](/develop/connectivity/wifi/wifi-bootstrap): targets\n apps that need to connect to a peer device, such as when configuring an IoT\n device or transferring files to a camera. In such cases, the peer device\n starts up a SoftAP and the API allows the app to guide the user to connect to\n the device. The resulting network is not intended to provide internet access,\n can't be used by the system, and can't be used by any app except the\n configuring app.\n\n - User selection and approval is required the first time a connection is made to a new peer.\n - Intended for IoT configuration apps and IoT file transfer apps.\n- [`ACTION_WIFI_ADD_NETWORKS`\n API](/develop/connectivity/wifi/wifi-save-network-passpoint-config): allows\n apps (with user approval) to add networks or Passpoint configurations to the\n saved network or subscription list. These configurations are then treated as\n if the user added them directly. For example, the user can later delete them.\n\n - User approval is required for every request to add saved networks.\n - Intended for apps that configure a home Access Point and need to add the configuration to the user's saved network list. Apps that provision a user-account Passpoint configuration, such as Enterprise, federated networks, and educational institutions.\n\n| **Note:** These APIs are a replacement for the deprecated `WifiManager.addNetwork(WifiConfiguration config)` and related APIs. The other deprecated APIs allowed apps to directly add and manage a Wi-Fi configuration in the saved network list. The replacement APIs provide use-case-targeted alternatives.\n\nSecure Wi-Fi Enterprise configuration\n\nOn Android 11 QPR1 and higher, the system mandates strict security\nconfigurations for TLS-based Wi-Fi Enterprise connections. For more\ninformation, see\n[Secure Wi-Fi Enterprise configuration](/develop/connectivity/wifi-enterprise)."]]