How to set the Aladdin keyboard as default keyboard via script

PT
Phuoc Tran
Van Wezel Autoparts

In mobicontrol I am pushing 2 apps to our CT45 scanner. One is our picking app and the other is our Aladdin app for our CodiScanners from Datalogic. The Codiscanner is linked to our CT45 scanner via the Aladdin app.

The Aladdin app adds the aladdin keyboard which you need enable before it is recognized and is used in our picking app. I am trying to enable and set this aladdin keyboard after post-install as default keyboard via a script with the command: 

afw_set_preferred_keyboard com.datalogic.aladdinapp/.views.keyboardview.AladdinSoftKeyboard

But this seems not to work. If I try to manually send a script to the device then I only have as script types: Legacy, javascript, powershell 32-bit compatibility, powershell native. Is this normal?

I select javascript then I get the below error:

01:40:08 PM
Error
Custom log (missing ; before statement (UserScript#2))
MDV-VWA22071B34A2
A007703
 
01:39:52 PM
Information
Script was sent to device ( afw_set_preferred_keyboard com.datalogic.aladdinapp/.views.keyboardview.AladdinSoftKeyboard)

If I send it as Legacy script then the command is sent but nothing happens and there is no error in the log.

I see somewhere in a documentation that it mentions as script type: Android for Work but I do not have this choice.

Am I doing something wrong or am I missing something. Can you help me out?

 

 

 

 

15 days ago
SOTI MobiControl
ANSWERS

Hi Phuoc,

This will most definitely be a legacy script.

Have you attempted to send the script with only the subactivity? So instead try:

afw_set_preferred_keyboard views.keyboardview.AladdinSoftKeyboard

Thanks,

Bradley

PT
Phuoc Tran
15 days ago

Hi Bradley,

I tried sending it as a legacy script using your command but I do not see any result. Also the log does not mention any errors. See the below log for the last 3 entries that I have sent as legacy script.

02:30:07 PM

Information

Script was sent to device (afw_set_preferred_keyboard views.keyboardview.AladdinSoftKeyboard)
Phuoc
N/A
01:46:18 PM

Information

Script was sent to device (afw_set_preferred_keyboard com.datalogic.aladdinapp/.views.keyboardview.AladdinSoftKeyboard)
Phuoc
N/A
01:42:36 PM

Information

Script was sent to device ( afw_set_preferred_keyboard com.datalogic.aladdinapp/.views.keyboardview.AladdinSoftKeyboard)
MD
Matt Dermody Diamond Contributor
15 days ago

Does Datalogic offer and OEM specific configuration scripting to set the input type? I frequently set non-default keyboards like Enterprise Keyboard as the default input type on Zebra devices but I use Zebra's proprietary MX configuration layer to achieve that goal. I am not sure if the afw_ scripting is still valid any more, you may need to find a Datalogic specific configuration mechanism. The fact that it is a Datalogic app itself would make me think they would have their own documented mechanism for setting that keyboard as default en masse via MDM. It would be pretty embarassing of them to NOT have such an option.

PT
Phuoc Tran
14 days ago

Hi Matt,

thanks for your reply.

Datalogic supplied me with the below page from the Honeywell manual. Do they mean with "Enterprise Provisioner" then the Soti Mobicontrol console? What do you think?

Using deviceconfig.xml

<Section name="Language and input">
    <Key name="default_input_method" desc="Set default input method" flags="16">com.android.hsm.sip/.SIPSoftKeyboard</Key>
</Section>

Through Enterprise Provisioner

  1. Open Enterprise Provisioner.
  2. Navigate to Device Config > Personal > Language and Input > Enabled input methods, and edit the value to com.android.hsm.sip/.SIPSoftKeyboard.

For the Aladdin keyboard, use the value:

 com.datalogic.aladdinapp/.views.keyboardview.AladdinSoftKeyboard

PT
Phuoc Tran
14 days ago

Datalogic is pointing me to use the Honeywell OEMConfig in Soti mobicontrol. I checked there but the option to change the default keyboard is not in there.

I found in the meantime also that they mean Honeywell Enterprise Provisioner program. I downloaded and installed this program. With this program I can configure the available input methods and also the default keyboard. I can afterwards export this config as a xml file.

I wanted then to use SOTI MobiControl File Sync Rule method to sync this config file to the desired scanner but I am not able to upload this config file to the content library. Do you know what I am doing wrong here?

PT
Phuoc Tran
14 days ago

Is it because I configured the library wrongly? Does the library path need to be a unc path to a server?