Citrix Endpoint Management

Files device policy

You can add and deploy files for users to access on their Android and Android Enterprise devices. You specify the directory where you want to store the file on the device. For example, you want users to receive a company document or .pdf file. Deploy the file to devices and let users know where the file is located.

Android devices don’t support running scripts natively. Users need third-party software to run scripts.

You can add the following file types with this policy:

  • Text-based files (.xml, .html, .py, and so on)
  • Other files, such as documents, pictures, spreadsheets, or presentations

To add or configure this policy, go to Configure > Device Policies. For more information, see Device policies.

Android Enterprise settings

Files device policy for Android Enterprise

  • File to be imported: To select the file to import, click Browse and navigate to the file location.
  • File type: Select either File or Script.
  • Execute immediately: When you select Script, the Execute immediately option appears. Nothing happens when you enable this setting. Users must run the script manually.
  • Replace macro expressions: Select whether to replace macro token names in a script with a device or user property. For macro syntax, see Macros. The default is Off.
  • Destination folder: In the list, select the location where you want to store the uploaded file, or select Add new to specify a file location. Select the %Flash Storage%\ or the %XenMobile Storage%\ macro to indicate where to store the uploaded file. The macro expands to the applicable location on each device.
    • %XenMobile Storage%\ expands to Android/data/com.zenprise/ in the internal storage directory.
    • For Android 9.0 and earlier, %Flash Storage%\ saves the file to the external storage directory.
    • For Android 10.0 and later, %Flash Storage%\ saves the file to the Downloads folder of the internal storage directory.
    • For Android 11.0 and later, %XenMobile Storage%\ no longer applies because of restrictions imposed by Google on access to the target location.
  • Destination file name: Optional. If you must change a file name before deploying it to a device, type the file name.
  • If file exists: In the list, select whether to copy an existing file. The default is Copy file only if different.

Android settings

  • File to be imported: To select the file to import, click Browse and navigate to the file location.
  • File type: Select either File or Script.
  • Execute immediately: When you select Script, the Execute immediately option appears. Nothing happens when you enable this setting. Users must run the script manually.
  • Replace macro expressions: Select whether to replace macro token names in a script with a device or user property. For macro syntax, see Macros. The default is Off.
  • Destination folder: In the list, select the location where you want to store the uploaded file, or select Add new to specify a file location. Select the %Flash Storage%\ or the %XenMobile Storage%\ macro to indicate where to store the uploaded file. The macro expands to the applicable location on each device.
    • %XenMobile Storage%\ expands to Android/data/com.zenprise/ in the internal storage directory.
    • For Android 9.0 and earlier, %Flash Storage%\ saves the file to the external storage directory.
    • For Android 10.0 and later, %Flash Storage%\ saves the file to the Downloads folder of the internal storage directory.
    • For Android 11.0 and later, %XenMobile Storage%\ no longer applies because of restrictions imposed by Google on access to the target location.
  • Destination file name: Optional. If you must change a file name before deploying it to a device, type the file name.
  • If file exists: In the list, select whether to copy an existing file. The default is Copy file only if different.
Files device policy