Change the default android keyboard via script

Solved

I know there used to be a way to push this via scripting but I'm having trouble finding it. 

We recently had an app update that has a custom keyboard that needs to be enabled and made active.

For some reason this time the app update went through, it lost the keyboard settings and needs to be reenabled but due to the lockdown launcher they are being blocked from accessing the keyboard settings.

Any help is much appreciated.

Additional info:

Devices in question are Samsung Tablets and Moto G Power Phones, all fully updated

Devices are all set up with android enterprise and we are running the cloud Mobicontrol 15.6 server

We have 2 apps with custom keyboards, 1 is Proglove's Insight Mobile and the other is Zebra's Scan-to-connect app

2 years ago
Android Scripting
ANSWERS
RS
Rafael Schäfer
2 years ago

Hi Patrick,

see following documentation: https://www.soti.net/mc/help/v15.6/en/scriptcmds/reference/androidplus_enterprise_do.html

afw_set_preferred_keyboard

Specifies a preferred keyboard for use.

Minimum device agent version: 15.1.5

Android OS: OS6 and above

Note: Setting the keyboard via this script will not prevent the user from changing the keyboard later.
afw_set_preferred_keyboard<pkg_name>

Where <pkg_name> is the font package containing the keyboard.

Example

afw_set_preferred_keyboard com.fontskeyboard.fonts

Solution
M
MPMOD@SOTI
2 years ago

Hi Patrick,

Thank you for posting on SOTI Pulse! 

I am glad to see that your issue was resolved. 

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