Salesforce

DataWedge Deploy / Auto Import Using StageNow MX XML and SOTI MobiControl

« Go Back

Information

 
Issue / QuestionHow to import DataWedge setting or profile on Android 8 to 11 using StageNow XML and SOTI MobiControl?
Applicable ToZebra Mobile computers running Android 8 and newer
Zebra Android Mobile computers with DataWedge 7.6 or later AND MX 9.2
Resolution / Answer

Assumptions: 

  • The user has installed StageNow version 5.1 or greater.
  • The user has Zebra Android devices with MX 9.2 or greater.
  • The user is familiar with and knows how to configure SOTI MobiControl.
  • The user knows how to configure, export, and download to the DataWedge database on the PC from the device.

 

Caveats

  • Android 13+ deploy the DataWedge db files to /data/tmp/public/ or /enterprise/usr/ as /sdcard/ will fail.
  • It is recommended to use the /data/tmp/public/ path for all Android versions in the future.
  • The DataWedge database filename is always - datawedge.db
  • A DataWedge profile filename always needs to use a preceding " dwprofile_ " followed by the profile name, i.e., dwprofile_MyAppName.db
  • As explained in TechDocs, do not rename the exported file or manually edit the database file contents. Doing so will result in errors and import failure.

 

Procedure: 
 

  1. Export the DataWedge setting (datawedge.db) or custom profile. In this demonstration, the name is Redspot. When exported, it is saved with the name dwprofile_Redspot.db.
  2. Save the DataWedge profile on the Windows PC. 
  3. Transfer the DataWedge profile to the device path /data/tmp/public/dwprofile_Redspot.db (ie StageNow can use the FileMgr Setting) 
  4. Create a new StageNow profile using MX 9.2 or higher and Xpert Mode. In this example, it is called Import_Datawedge.
  5. Add DataWedgeMgr.

Graphical user interface, text, application, chat or text message  Description automatically generated

  1. Enter the device's path to the DataWedge.db file and select the button to turn Automatic configuration import to ON.


     

  2. Select the Continue button.
  3. Select the Complete Profiles button.  
  4. Select the Export for MDM button to save the configuration as an XML file.
A picture containing logo  Description automatically generated
  1. Select Save to save the file as an XML file on your Windows PC.

    Graphical user interface, application  Description automatically generated 
     

  2. In MobiControl, you can use either a FileSync rule or a Package to send the files.

    1. StageNow .XML to /sdcard/  path on the device. ( ie /sdcard/Import_Datawedge.xml )

    2. DataWedge setting (datawedge.db) or custom profile (example, dwprofile_Redspot.db) to the /data/tmp/public/ path on the device.

In MobiControl, in the FileSync rule or the Package, add a postscript command pointing to the StageNow .XML (mxconfig <path to XML on the device>), which is case-sensitive.

Enable a Custom Post Sync script to enable file access permissions. For the datawedge db file example use: 

__chmod 777 /data/tmp/public/dwprofile_Redspot.db

For the xml, use mxconfig to run the xml such as:

mxconfig /sdcard/Import_Datawedge.xml 

 


MobiControl will send the DataWedge .db and XML files to the device, and then the postscript will launch the XML to trigger the import of the DataWedge database .db file.

 

Helpful Information:

URL Name000021417
TitleDataWedge Deploy / Auto Import Using StageNow MX XML and SOTI MobiControl

Powered by