How to clear keyboard input history on a device using the Knox SDK
This article guides you through the steps on how to clear the input history on your device’s keyboard, including saved login information. Following these steps prepares the device for a new user without requiring a factory reset or work profile removal.
How do I clear the keyboard input history on my device using the Knox SDK?
In order to clear the keyboard history for a user, invoke the Knox SDK API
com.sec.android.inputmethod passed in the parameter.
Ensure that the permission
com.samsung.android.knox.permission.KNOX_APP_MGMT is declared or granted.
Although the default Samsung keyboard is passed into the API call, all keyboards’ histories will be removed by this API since it removes both cache and stored application data.
To ensure the white bar is removed while still hiding the navigation buttons, invoke
The following is an example of how to do this:
CustomDeviceManager cdm = CustomDeviceManager.getInstance(); SystemManager sm = cdm.getSystemManager(); sm.setStatusBarMode(CustomDeviceManager.HIDE);
You must have a KPE Premium license to use the
ApplicationPolicy.wipeApplicationData() method does not affect autofill settings configured through Settings > Language and input > Autofill service, or any other keyboard settings.
You can disable autofill on the Samsung browser by using the public boolean
setAutoFillSetting (boolean enable) API with the
For sample MVNO configurations, see the Knox Developer documentation.Back to KBAs
Is this page helpful?
Thank you for your feedback!