本頁針對設有工作資料夾的裝置列出範例政策。
個人擁有的裝置
佈建設有工作資料夾的個人裝置後,Android Device Policy 會自動將政策設定套用至工作資料夾。方法是將相同政策套用至設有工作資料夾和全代管裝置的裝置。
// Applies to the work profile. "passwordRequirements": { "passwordMinimumLength": 6, "passwordQuality": "ALPHABETIC" }, "applications": [{ "defaultPermissionPolicy": "GRANT", "installType": "FORCE_INSTALLED", // Auto-installs app in the work profile "packageName": "com.google.android.gm" }, { "installType": "AVAILABLE", // Adds app to the work profile's managed Play Store "packageName": "com.google.android.apps.docs" }], // Applies to the whole device. "parentProfilePasswordRequirements": { "passwordMinimumLength": 4, "passwordQuality": "NUMERIC_COMPLEX" }
公司擁有的裝置
在佈建具有工作資料夾的公司裝置後,Android Device Policy 會自動將大多數政策設定套用至工作資料夾。雖然個人設定檔會維護使用者隱私,但企業還是可以在個人資料夾和整個裝置上強制執行特定限制和設定。
工作資料夾小工具
workProfilewidgets
可讓 IT 管理員進一步控管裝置主畫面中顯示的小工具。
這項設定目前預設為不允許,但您可以使用應用程式層級 workProfileWidgets
和裝置層級 workProfileWidgetsDefault
API。
個人使用政策
企業可以在公司裝置的個人設定檔中強制執行特定限制,例如封鎖特定應用程式的安裝、停用相機,以及設定使用者可暫停工作資料夾的時間長度。詳情請參閱 personalUsagePolicies
。
裝置通用政策
此表中的政策會套用至整個裝置。
政策名稱 | ||
---|---|---|
frpAdminEmails |
deviceOwnerLockScreenInfo |
systemUpdate |
addUserDisabled |
bluetoothDisabled |
bluetoothConfigDisabled |
cellBroadcastsConfigDisabled |
mobileNetworksConfigDisabled |
tetheringConfigDisabled |
wifiConfigDisabled |
dataRoamingDisabled |
shareLocationDisabled |
smsDisabled |
usbFileTransferDisabled |
autoTimeRequired |
mountPhysicalMediaDisabled |
outgoingCallsDisabled |
setWallpaperDisabled |
unmuteMicrophoneDisabled |
範例政策
// Applies to the work profile "passwordRequirements": { "passwordMinimumLength": 6, "passwordQuality": "ALPHABETIC" }, "applications": [{ "defaultPermissionPolicy": "GRANT", "installType": "FORCE_INSTALLED", // Auto-installs app in the work profile "packageName": "com.google.android.gm" }, { "installType": "AVAILABLE", // Adds app to the work profile's managed Play Store "packageName": "com.google.android.apps.docs" }], // Applies to the personal profile "personalUsagePolicies": { "personalPlayStoreMode": "BLACKLIST", "personalApplicationPolicy": [{ "packageName": "com.example.app", "installType": "BLOCKED" }], "maxDaysWithWorkOff": 3, "cameraDisabled": true, "screenCaptureDisabled": true }, // Applies to the whole device. "bluetoothDisabled": true, "usbFileTransferDisabled": true
已知問題
在公司擁有的裝置上,可能無法立即擷取及更新個人使用政策 (延遲時間應不超過 10 分鐘),直到系統顯示「找不到結果」畫面為止。否則,使用者可從 Play 商店安裝任何應用程式,直到手機啟動到載入及套用個人使用政策為止。
套用個人使用政策後,請等待十分鐘,再觸發快取更新作業 (例如選取應用程式),然後重新開啟個人 Play 應用程式。接著,請正確套用個人使用政策。