Search code examples
androidandroid-management-api

enable system apps like camera and calculator by default in fully managed devices android management api


we are using android management API and developing our own EMMconsole and after provisioning android devices with fully managed devices:- https://developers.google.com/android/work/requirements/fully-managed-device system apps like camera gallery etc are blocked or hidden by default. we founded a solution for that is to specify package names under the policy for each app like the camera and set its installType to PREINSTALLED but as there are many manufacturers like Oppo, Xiaomi, Samsung and each comes with their own pre-installed apps with different package names so is there is any way we can set system apps to be enabled or preinstalled by default by setting something like a boolean value?


Solution

  • This worked for me !!

    After generating enrollment token add this to generated qrCode object

    "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED" : true