針對 Android for Work 裝置建立 Intune 自訂設定檔設定Create Intune custom profile settings for Android for Work devices

使用 Intune Android for Work 自訂設定原則來指派 OMA-URI 設定,以用於控制 Android for Work 裝置上的功能。Use the Intune Android for Work custom configuration policy to assign OMA-URI settings that can be used to control features on Android for Work devices. 這些是許多行動裝置製造商用來控制裝置功能的標準設定。These are standard settings that many mobile device manufacturers use to control device features.

此功能的目的是讓您指派無法使用 Intune 原則設定的 Android 設定。This capability is intended to allow you to assign Android settings that are not configurable with Intune policies. Intune 目前支援有限數目的 Android 自訂原則。Intune supports a limited number of Android custom policies at present. 請參閱本主題中的範例,以找出您可以設定的原則。See the examples in this topic to find out which policies you can configure.

建立自訂設定檔Create a custom profile

  1. 請使用如何設定自訂裝置設定中的指示以便開始。Use the instructions in How to configure custom device settings to get started.
  2. 在 [自訂 OMA-URI 設定] 刀鋒視窗上,選擇 [新增] 以新增新的設定。On the Custom OMA-URI Settings blade, choose Add to add a new setting.
  3. 在 [新增資料列] 刀鋒視窗上,設定下列各項︰On the Add Row blade, configure the following:
    • 名稱:為 Android for Work 自訂設定輸入唯一名稱,以協助您在 Azure 入口網站中識別。Name - Enter a unique name for the Android for work custom settings to help you identify it in the Azure portal.
    • 描述:提供可給予 Android 自訂原則概觀的描述,以及其他可協助您找到該原則的相關資訊。Description - Provide a description that gives an overview of the Android custom policy and other relevant information that helps you to locate it.
    • OMA-URI:輸入您想要提供設定的 OMA-URI。OMA-URI - Enter the OMA-URI you want to supply a setting for.
    • 資料類型:選取要指定此 OMA-URI 設定的資料類型。Data type - Select the data type in which you will specify this OMA-URI setting. 選擇 [字串]、[字串 (XML 檔案)]、[日期和時間]、[整數]、[浮點數]、[布林值] 或 [Base64 (檔案)]。Choose from String, String (XML file), Date and time, Integer, Floating point, Boolean, or Base64 (file).
    • :指定要與您先前指定的 OMA-URI 產生關聯的值。Value - Specify the value to associate with the OMA-URI that you specified previously. 您用來提供此值的方法,將視您所選取的檔案類型而有所不同。The method you use to supply this value will vary according to the data type you selected. 例如,如果您選擇 [日期和時間],您將會從日期選擇器選取值。For example, if you chose Date and time, you'll select the value from a date picker.
  4. 當您完成後,請選擇 [確定] 以返回 [自訂 OMA-URI 設定],然後請新增更多設定,或是選擇 [建立] 以建立自訂設定檔。When you have finished, choose OK to return to the Custom OMA-URI Settings, and then add more settings, or choose Create to create the custom profile.

範例Example

在此範例中,您將會建立自訂設定檔,以用來限制是否在受管理的 Android for Work 裝置上允許工作和個人應用程式的複製和貼上動作。In this example, you'll create a custom profile that can be used to restrict whether copy and paste actions between work and personal apps are allowed on managed Android for Work devices.

  1. 透過本主題中的程序來使用下列值針對 Android for Work 裝置建立自訂設定檔:Use the procedure in this topic to create a custom profile for Android for Work devices using the following values:
    • 名稱:輸入「封鎖複製和貼上」或是您自行選擇的文字。Name - Enter "Block copy and paste" or text of your own choosing.
    • 描述:輸入「封鎖工作和個人應用程式的複製/貼上」或是您自行選擇的文字。Description - Enter "Blocks copy/paste between work and personal apps" or text of your own choosing.
    • OMA-URI:輸入 ./Vendor/MSFT/WorkProfile/DisallowCrossProfileCopyPasteOMA-URI - Enter ./Vendor/MSFT/WorkProfile/DisallowCrossProfileCopyPaste.
    • 資料類型:選取 [布林值] 以表示此 OMA-URI 的值只會是 TrueFalseData type - Select Boolean to indicate that the value for this OMA-URI is either True or False.
    • ︰選取 [True]。Value - Select True.
  2. 您應該會得到看起來類似此影像的設定。You should end up with a setting looking similar to this image. 針對 Android for Work 封鎖複製和貼上Block copy and paste for Android for Work.
  3. 現在,當您將此自訂設定檔指派至您所管理的 Android for Work 裝置時,工作設定檔和個人設定檔中的應用程式,將無法在彼此之間進行複製和貼上。Now, when you assign this custom profile to Android for Work devices you manage, copy and paste will be blocked between apps in the work, and personal profiles.