Scan2Deploy Host Profile
Overview
A Host Profile Scan2Deploy profile supports every Scan2Deploy action, including installing apps and configuring Datalogic Launcher, Enterprise Browser, QuickBoard, and Visual Formatter. The profile is saved as a .tar file, and the barcode data only holds the location of that file. Instead of scanning the barcode, your MDM sends the same data to the Scan2Deploy Agent on the device in an intent, and the agent loads the profile from that location and applies it.
The .tar file can be hosted in one of three places, set in the File Hosting Location section of Scan2Deploy Studio:
- Scan2Deploy Studio: Studio hosts the
.tarfile from the PC it runs on. Studio must be running and reachable by the devices on the network, so this is best suited to testing or small, on-site deployments. - Device storage: Your MDM pushes the
.tarfile to the device, then sends the intent. No server is needed. Used with SOTI MobiControl, SureMDM, and Workspace ONE. - External hosting: The
.tarfile is hosted on a web, FTP, or SFTP server that the devices can reach, and the agent downloads it. Used with Microsoft Intune, which can't push files to Android Enterprise devices.
If the profile only uses the actions supported by Barcode Only profiles, use a Barcode Only profile instead, as nothing needs to be hosted.
Before you begin
- Complete the steps in Scan2Deploy: Before you begin, and read What both have in common for how MDM-deployed profiles behave.
- Make sure the devices have enough free storage for the
.tarfile, including any APKs and firmware it contains.
Create the profile
These steps set up a profile that your MDM can send to the devices. What the profile changes on the device is up to you: you choose it in Add your configuration.
Start the profile
- Open Scan2Deploy Studio.
- On the Welcome page, select Create Profile.
- On the Action Selection page, select the device Model, SKU, and OS Version.
- Under Configuration Actions, select Host Profile.
Add your configuration
- Select the actions for the settings you want to change on the devices. Wi-Fi Setup is selected by default; clear it if your MDM manages Wi-Fi.
- Select the > arrow to open the page of each selected action.
- If you kept Wi-Fi Setup, clear Remove saved networks on the Wi-Fi Setup page to keep the networks already on the device, such as those set by your MDM. It is selected by default.
- On each page, set the settings you want to apply. See the Scan2Deploy Studio documentation for each action.
Prepare the profile for your MDM
- On the Save and Scan page, select the File Hosting Location tab.
- Clear Use Studio to automatically host profile from this PC.
- Set the hosting location for your MDM:
- SOTI MobiControl, SureMDM, and Workspace ONE: Select Device storage and enter
/sdcard/Download/profile.taras the path. - Microsoft Intune: Select the server protocol and enter the location where the
.tarfile will be hosted, such ashttps://<storage-account>.blob.core.windows.net/scan2deploy/profile.tar.
- SOTI MobiControl, SureMDM, and Workspace ONE: Select Device storage and enter
- Select the Settings tab.
- Under Scan2Deploy QR Code Settings, check that Version is set to V3.
- Select Silent Deploy, so the profile is applied in the background without the Scan2Deploy Agent opening on the screen of a device that may be in use.
- Select Save and save the
.tarfile. - Rename the saved
.tarfile toprofile.tar, or use the actual filename in the path above and in the steps below. - Select Copy.
- Copy the data for your MDM:
- SOTI MobiControl, SureMDM, and Workspace ONE: Select EMM Intent, then select your MDM (SOTI MobiControl, SureMDM, or Airwatch Intelligent Hub). The intent is copied, formatted for your MDM.
- Microsoft Intune: Select Profile Data, then select Encrypted data.
See Save and Scan for more details on the copy options.
Deploy the profile
- SOTI MobiControl
- Microsoft Intune
- SureMDM
- Workspace ONEWorkspace ONE (formerly AirWatch)
These steps are based on SOTI's Creating a Package guide. A SOTI package copies the .tar file to the device, then runs the SOTI MobiControl intent copied from Scan2Deploy Studio as a post-install script.
A profile that includes APKs or a firmware update can be larger than 2 GB, so a SOTI package is the recommended method. If your .tar file is under 2 GB, you can use a File Sync policy instead.
Create the package
- Sign in to the SOTI MobiControl web console.
- Open the main menu and select Packages.
- Select New Package.
- Select Create.
- Select Android as the platform.
- Enter a name for the package, such as
Scan2Deploy Profile, and a version. - Select Next.
- On the Files tab, select Add.
- Browse to, or drag in,
profile.tar. - Set File Destination to
/sdcard/Download/. - Select Save.
Add the intent script
- On the Scripts tab, select Add.
- Select Post-Install Script.
- Paste the SOTI MobiControl intent copied from Scan2Deploy Studio.
- Select Save.
- Select Next.
- Select Publish.
Assign the package with a profile
These steps are based on SOTI's Creating a Profile guide.
- Navigate to Policies > Profiles.
- Select New Profile.
- Select Android Enterprise as the platform.
- Enter a name for the profile, such as
Scan2Deploy Profile. - Open the Packages tab.
- Select Add.
- Select the
Scan2Deploy Profilepackage. - Select Add to Profile.
- Select Save and Assign.
- Select the target devices or device groups.
- Select Assign.
- Verify that the profile is applied, either on the device or in the session status file
/sdcard/Download/S2DStatus.log.
Alternative: File Sync policy (profiles under 2 GB)
These steps are based on SOTI's Using File Sync Policies guide. SOTI File Sync doesn't support files larger than 2 GB.
- Navigate to Policies > File Sync.
- Select New File Sync Policy.
- Select Android as the device family.
- Enter a name for the policy, such as
Scan2Deploy Profile, and select Next. - On the Configure tab, select Download from Server.
- In Server File/Folder Name, select File Manager and upload
profile.tar. - In Device File/Folder Name, enter
/sdcard/Download/profile.tar. - Select Next.
- On the Scripts tab, turn on Enable Post-Sync Script.
- Set Script Type to Custom and paste the SOTI MobiControl intent copied from Scan2Deploy Studio.
- Turn on Execute Script Only if Files Transmitted so the profile is applied only when a new
.tarfile is transferred. - Select Next.
- On the Schedule tab, configure the synchronization schedule.
- Select Save and Assign.
- On the Devices tab, select the target devices or device groups.
- Select Assign.
Intune can't push files or send intents to Android Enterprise devices. Instead, host the .tar file on a server the devices can reach, and use the Launch Activities setting of Datalogic OEMConfig to open the Scan2Deploy Agent with the profile data, using the start activity intent. The agent then downloads the .tar file and applies it.
Intune supports only one OEMConfig profile per device on Datalogic devices. Add the launch activity to your existing OEMConfig profile from OEMConfig, rather than creating a new profile.
Host the profile
Any web, FTP, or SFTP server that the devices can reach can host the .tar file. To host it in Azure Blob Storage, follow the same steps as for the firmware package in Firmware Update on the Microsoft Intune tab:
- Create an Azure Storage Account and a blob container with anonymous read access, such as
scan2deploy. - Open the container.
- Select Upload.
- Select Browse for files and choose
profile.tar. - Select Upload.
- Select the uploaded blob and check that its URL matches the location entered in Scan2Deploy Studio.
- Open the URL in a private browser window to verify that the file is downloadable without authentication.
Anyone with the URL can download a file in a container with anonymous read access. Don't include credentials in a profile hosted this way, or use a server that only your devices can reach.
Add the launch activity to the OEMConfig profile
- Sign in to the Microsoft Intune admin center.
- Select Devices.
- Select Manage devices.
- Select Configuration.
- Select your Datalogic OEMConfig profile.
- Select Properties.
- Next to Configuration settings, select Edit.
- Select Configuration designer.
- Expand Launch Activities.
- Set Package Name to
com.datalogic.scan2deploy. - Set Component Name to
com.datalogic.scan2deploy.MainActivity. - Under Launch Activity Extras, select Add.
- Set Extra Type to String.
- Set Extra Name to
data. - Set Extra Value to the encrypted data copied from Scan2Deploy Studio.
- Select Review + save.
- Select Save.
- Verify that the profile is applied, either on the device or in the session status file
/sdcard/Download/S2DStatus.log.
These steps are based on 42Gears' File Transfer (Android) and Jobs for Android guides. A Composite Job pushes the .tar file to the device, then runs the SureMDM intent copied from Scan2Deploy Studio.
Create the File Transfer job
- Sign in to the SureMDM web console.
- Navigate to Jobs.
- Select New Job.
- Select Android.
- Select File Transfer.
- Select Add, then select the upload icon.
- Upload
profile.tar, set the device path to/sdcard/Download/, and select OK. - Enter a job name, such as
Scan2Deploy Profile File. - Select Save.
Create the Run Script job
- Navigate to Jobs > New Job.
- Select Android.
- Select Run Script.
- Enter a job name, such as
Apply Scan2Deploy Profile. - Paste the SureMDM intent copied from Scan2Deploy Studio.
- Select Save.
Create and apply a Composite Job
- Navigate to Jobs > New Job.
- Select Android.
- Select Composite Job and select Add.
- Add the two jobs in this order:
Scan2Deploy Profile File(File Transfer).Apply Scan2Deploy Profile(Run Script).
- Select Save.
- Return to the Home tab and select the target device or devices.
- Select Apply.
- Select the Composite Job.
- Select Apply.
- Verify that the profile is applied, either on the device or in the session status file
/sdcard/Download/S2DStatus.log.
These steps are based on Omnissa's Product Provisioning documentation. A Files/Actions component pushes the .tar file to the device, then runs the Airwatch Intelligent Hub intent copied from Scan2Deploy Studio.
Create the Files/Actions component
- Sign in to the Workspace ONE UEM console.
- Navigate to Devices > Provisioning > Components > Files/Actions.
- Select Add Files/Actions.
- Select Android.
- Enter a name, such as
Scan2Deploy Profile. - Select the Files tab.
- Select Add Files.
- Select Choose Files and upload
profile.tar. - Set the Download Path to
/sdcard/Download/. - Select Save.
- Select the Manifest tab.
- Under Install Manifest, select Add Action.
- Select Run Intent.
- Paste the Airwatch Intelligent Hub intent copied from Scan2Deploy Studio.
- Select Save.
- Select Save to save the Files/Actions component.
Create and assign the product
- Navigate to Devices > Provisioning > Product List View.
- Select Add Product.
- Select Android.
- On the General tab, enter a Name, such as
Scan2Deploy Profile. - In Assigned Groups, select the Smart Groups that should receive the profile.
- Select the Manifest tab.
- Select Add.
- Select File/Action - Install from the Action(s) To Perform list.
- In Files/Actions, select the Files/Actions component created earlier.
- Select Save.
- Select Activate to preview the devices that will receive the profile.
- Select Activate again to start the deployment.
- Monitor the product deployment status in Workspace ONE UEM.
- Verify that the profile is applied, either on the device or in the session status file
/sdcard/Download/S2DStatus.log.