Private static final String APP_PACKAGES = else if (_INT >= Build.VERSION_CODES. Private static final String PLAYER_PACKAGE = "" Private static final String KIOSK_PACKAGE = "" Val adminName = getComponentName(context)ĭpm.setLockTaskPackages(adminName, APP_PACKAGES) Java // Allowlist two apps. Val dpm = context.getSystemService(Context.DEVICE_POLICY_SERVICE) Private val APP_PACKAGES = arrayOf(KIOSK_PACKAGE, PLAYER_PACKAGE) CallĭtLockTaskPackages() toĪllowlist apps for lock task mode as shown in the following sample: In earlier versions, the app must already support starting its own activity inĪ DPC must allowlist apps before they can be used in lock task mode. In Android 9.0 or later a DPC can start any app’s activity into lock task mode. The secondary user must be affiliated with the primary user. Android version support for DPC admin modes Android version Which versions of Android support allowlisting apps by user. The system can run in lock task mode in Android 5.0 or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |