USB Permission SDK ================== **Introduction** Android app USB permission application prompt window whitelist (that is, to control pop up interface of the permission dialog) Mainly divided into 3 interfaces: add application whitelist, delete application whitelist, clear whitelist *Compatible with iMin Android 11 devices built-in printer series model (M2 Max, D1, D Pro) with the latest iMin OS version update (check your update in "Wireless Update" option) **Development environment** Suitable for Eclipse/Android Studio/tools that support Android application development **Instructions** 1. Import the package that sets the system database: import android.provider.Settings; 2. Use the android standard method of setting the database (key/value) a. Increase the whitelist interface of the application: Settings.System.putString(getContentResolver() , "imin_system_add" , "com.xxx.xx"); imin_system_add : indicates the key to add the application whitelistcom.xxx.xx : represents the package name of the whitelisted application (the full application package name) b. Delete the whitelist interface of the application: Settings.System.putString(getContentResolver() , "imin_system_remove" , "com.xxx.xx"); imin_system_remove : represents the key to remove the application whitelist com.xxx.xx : represents the package name of the whitelisted application (the full application package name) c. Clear whitelist interface: Settings.System.putString(getContentResolver() , "imin_system_clear" , "clear"); imin_system_clear : indicates the key to clear the whitelist clear : means to clear all package names of whitelisted applications