Skip to content

Commit

Permalink
[kiosksetup] Keep all apps enabled when provisioning.
Browse files Browse the repository at this point in the history
Add PROVISIONING_LEAVE_ALL_SYSTEM_APPS to QR code to preserve all apps
when provisioning. Some devices remove too much, including the file
selection app making it impossible to select audio books folders.
  • Loading branch information
msimonides committed May 30, 2024
1 parent 90b2e02 commit f034a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ private void finishWithDeviceOwnerIntent() {
DevicePolicyManager.EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS,
true
);
intent.putExtra(
DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED,
true
);
setResult(RESULT_OK, intent);
finish();
}
Expand Down
5 changes: 3 additions & 2 deletions kiosksetup/src/main/provisioning-qrcode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME":"com.studio4plus.homerplayer2.kiosk/com.studio4plus.homerplayer2.kiosk.deviceadmin.DeviceAdminReceiver",
"android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION":"https://github.com/msimonides/homerplayer2/releases/download/${version}/Homer.Player.2.Kiosk-${version}.apk",
"android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM":"${apkChecksum}",
"android.app.extra.PROVISIONING_SKIP_ENCRYPTION":true
}
"android.app.extra.PROVISIONING_SKIP_ENCRYPTION":true,
"android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true
}

0 comments on commit f034a32

Please sign in to comment.