Clone this repo:
  1. 57470dc Merge Android 14 QPR3 to AOSP main by Xin Li · 7 days ago main master
  2. eafe69f Merge 2024-06 Release (ab/AP2A.240605.024) to aosp-main-future by Xin Li · 3 weeks ago tmp_amf_24Q2
  3. 2857ba3 Merge Android 24Q2 Release (ab/11526283) to aosp-main-future by Xin Li · 6 weeks ago
  4. df6a949 RESTRICT AUTOMERGE am: 66c6c6f680 by Oriol Prieto Gasco · 7 weeks ago
  5. 66c6c6f RESTRICT AUTOMERGE Set the container field of aconfig flags by Oriol Prieto Gasco · 7 weeks ago

Managed Provisioning

Bundled app responsible for provisioning an enterprise device

Flows

QR

{
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME": "com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver",
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION": "https://testdpc-latest-apk.appspot.com/preview",
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM": "gJD2YwtOiWJHkSMkkIfLRlj-quNqG1fb6v100QmzM9w="
}

Code

AS Setup

aidegen -n -i=s -p=/opt/android-studio-with-blaze-canary \
    packages/apps/ManagedProvisioning \
    frameworks/base \
    cts \
    vendor/xts \
    packages/apps/Settings \
    vendor/unbundled_google/packages/SettingsGoogle \
    external/connectedappssdk \
    packages/services/Car/packages/CarManagedProvisioning \
    vendor/google/apps/SetupWizardOverlay/PixelSetupWizard

References