Install Zebra Enterprise Keyboard as Default and Disable GBoard

Publish Date: 14-Mar-2024 Last Modified Date: 27-Aug-2025 SOTI MobiControl
885 0

Summary

How to install Zebra Enterprise Keyboard, set it as the default keyboard and disable GBoard. Also information on the basic process of using SOTI MobiControl Package Studio for packaging multiple files in one project.

Related SOTI ONE Platform Products

SOTI MobiControl

Related Device OS

Android Classic;Android Enterprise

Situation

When installing Zebra Enterprise Keyboard to a device you want it to be the default keyboard and disable GBoard to prevent the user from changing the keyboard, and to make sure the users is using the keyboard you have provided.

This process can be used both for Android Classic and Android Enterprise devices.

Environment

You will need the following:

Example XML files: (this can be copied/pasted into your own XML file using any text editor):

Disable_GBoard.xml

<wap-provisioningdoc>
    <characteristic version="4.2" type="AppMgr">
        <parm name="Action" value="DisableApplication" />
        <parm name="Package" value="com.google.android.inputmethod.latin" />
    </characteristic>
</wap-provisioningdoc>

Enterprise_Keyboard_Set_Default_ver3.9.xml

<wap-provisioningdoc>
    <characteristic type="UiMgr" version="4.3" >
        <parm name="InputMethodAction" value="1"/>
        <characteristic type="InputMethodDetails">
        <parm name="InputMethodOption" value="4"/>
        <parm name="InputMethodPackageName" value="com.symbol.mxmf.csp.enterprisekeyboard"/>
        <parm name="InputMethodClassName" value="com.android.inputmethod.latin.LatinIME"/>
        </characteristic>
    </characteristic>
</wap-provisioningdoc>

Enterprise_Keyboard_Set_Default_ver4.0.xml

<wap-provisioningdoc>
    <characteristic type="UiMgr" version="4.3" >
        <parm name="InputMethodAction" value="1"/>
        <characteristic type="InputMethodDetails">
        <parm name="InputMethodOption" value="4"/>
        <parm name="InputMethodPackageName" value="com.zebra.mdna.enterprisekeyboard"/>
        <parm name="InputMethodClassName" value="com.android.inputmethod.latin.LatinIME"/>
        </characteristic>
    </characteristic>
</wap-provisioningdoc>

Reference links:

Process Description

Note: Test below deployment on handful of test devices before applying on production fleet.

1. Start MobiControl Package Studio.
Start MobiControl Package Studio 

2. Create a new project by selecting New Project or select File > New Project.
Select File > New Project 

3. Enter project details and select the location for it to be saved and then select Next.
Enter project details 

4. Select Post-Install script to be included and select Next.
 Select Post-Install script  

5. Skip the page where to add files and just select Next.
The New Package wizard  
6. Confirm Size Settings and select Finish.
Confirm Size Settings  
7. Select Close.
Select Close

8. We now have a project with only a Post-Install script added
A project with only a Post-Install script added 
9. The next steps are optional but it is good practice to keep all project files in the same folder structure as the project. If you want to skip this and just add the files go for step 10.

    1. Open your File Browser and navigate to the location of the project.

    2. Create another subfolder, for example called files.
      Create another subfolder 

    3. Copy all of the project files to the files folder, in this case, APK file and XML files.
      Copy all of the project files 

10. Add the files to project by right-clicking on the project parent and select Add Android Apk.
Add the files to project 

11. Navigate to the folder of the project and the files folder and select the APK file.
Navigate to the folder of the project 

12. Deselect Automatically Run Activity after Install if do not want the application to start after installed on the device, in this case we do not want that. Then press OK.
Deselect Automatically Run Activity after Install 

13. Continue with adding the XML files by once again right-clicking on the parent and select Add Files.
Continue with adding the XML files 

14. Select the XML files and add them to the project.
 Select the XML files  

15. Confirm the location where the files will be installed to the device, in this case we stick with %sdcard% folder. Then press OK.
Confirm the location where the files will be installed 

16. Confirm that all files have been added to the project.
Confirm that all files have been added to the project 

17. Double-click the Post-Install script.
Double-click the Post-Install script 

18. Add the following script commands:

mxconfig "%sdcard%Disable_Gboard.xml"
mxconfig "%sdcard%Enterprise_Keyboard_Set_Default_ver3.9.xml"

Adding the script commands

19. The Post-Install script will be run after the installation of the APK file and the files and the mxconfig command will initiate the XML processing by Zebra MX Framework.

20. To start building the project, select Project > Build Package.
To start building the project, select Project > Build Package. 

21. Wait for the package to be built and then upload it to the web console and assign it in a profile. For example, try it on a test device first to verify that it is being installed correctly.
Wait for the package to be built  

Verification and Validation

Manually verify on the test device that the setting for virtual keyboard has been changed to Enterprise Keyboard and that GBoard is now disabled.

Was this helpful?