Script to change settings in TE_settings or Entreprise browser

Solved
A
Amine
Lisa Dräxlmaier GmbH

I need a script to change specific Etreprise Browser settings in CK65 devices.

below the xml of one setting

<?xml version="1.0" encoding="UTF-8"?>

<ConfigDoc name="EnterpriseBrowser">

<Section name="Configuration">

<Key name="pref_key_show_maintenance_due_alerts">false</Key>

</Section>

</ConfigDoc>

2 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
2 years ago

I don't know the enterprise browser from honeywell but maybe there is a possibility to do those settings via managed app config or their oem config app?

Otherwise you could do this via barcode scanning: https://support.honeywellaidc.com/s/article/How-to-configure-the-Enterprise-Browser-on-Android-devices


Not sure if this will help you, i assume the XML already exists on the device? Then you could change the setting maybe by just replacing a unique string via javascript (we use it for an ini file and not sure if there's an xml parser integrated into Soti's javascript, so just an example!):

txtFile = new mobicontrol.io.File('/sdcard/YourTextFile.ini');
var text = txtFile.readText();
var result = text.replace(/SearchUniqueString/, 'ReplacementString');
txtFile.writeText(result);
Example:
txtFile = new mobicontrol.io.File('/sdcard/YourTextFile.ini');
var text = txtFile.readText();
var result = text.replace(/"pref_key_show_maintenance_due_alerts">false</, '"pref_key_show_maintenance_due_alerts">true<');
txtFile.writeText(result);
SB
Simon Breuer
2 years ago

You can apply the Config XML with the following MobiControl script:

sendintent -b "intent:#Intent;action=com.honeywell.ezconfig.intent.action.IMPORT_XML;S.path=/sdcard/honeywell/EnterpriseBrowser.xml;launchFlags=0x1400020;end"

Simply place the XML file in the location mentioned in the string.

Attention: The XML must be named EnterpriseBrowser.xml. But you may set a prefix, for example: "myPrefix_EnterpriseBrowser.xml".

A
Amine
2 years ago

Hi,

I changed the needed settings in xml files for EntrepriseBrowser and te_settings placed the files in /sdcar/honeywell/persist folder, settings applied after reboot for the EntrepriseBrowser but not for te_settings. I tested the script for te_settings unfortunately didn't work, settings couldn't be changed

Thank you

Amine

M
MPMOD@SOTI
2 years ago
M
MPMOD@SOTI
2 years ago

Hi Amine,

Thank you for posting on SOTI Pulse! 

Has the posts from Rafael or Simon helped you configure the setting for your Enterprise Browser?

Please feel free to reach out to us if you have any further questions in the future.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter 

A
Amine
2 years ago

Hello,

I get the hint from Honeywell support that the te_settings would be used with the entire configuration not only the changed fields.

Thanks for your support.

Solution
M
MPMOD@SOTI
2 years ago

Hi Amine,

That is great to hear that you were able to get it resolved with Honeywell. Please feel free to post a detailed response and mark the post as the solution.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter