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
- File to be imported: To select the file to import, click Browse and navigate to the file location.
- 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 toAndroid/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.
Important:
The Files device policy no longer supports adding scripts on Android Enterprise. If an existing policy contains a script, an error message displays when selecting the policy and you can re-add the policy to resolve the issue.
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 toAndroid/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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论