Forum Discussion
(COPE) Hide app in work profile
Thanks for the suggestions.
They have indeed tested on 2 of our products, the policies work on our old model running Android 12 but don't work on our newer model on Android 14
Ivanti uses this API: https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setApplicationHidden(android.content.ComponentName,%20java.lang.String,%20boolean)
Hm, that could be a bug in the newer model. It doesn't seem to be due to the configuration and we don't have any problems with Android 14.
Have you ever requested a bug report / verbose logcat logs from the customer? Ideally, you might see errors there. The policy controller triggers the action and the system gradually works through the necessary steps. Maybe an error occurs during a single action, as a result of which the app remains visible in the launcher. But that's just a guess for now.
For example, these are two of many pieces of information when Google Meet is deactivated in the Work Profile (=userId 10):
02-28 12:18:37.159 1167 31382 I PackageManager: setApplicationHiddenSettingAsUser, packageName: com.google.android.apps.tachyon, userId: 10, hidden: false, callingUid: 1000, callingPackage: system
02-28 12:18:40.827 1167 1367 I SettingsProvider: onPackageRemoved (userId 10) PackageName = com.google.android.apps.tachyon
- Yunchuan9 days agoLevel 2.0: Eclair
Thanks Alex, will do further testing, we have only verified with the test DPC that the API was working fine
Related Content
- 2 years ago
- 2 years ago