Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e30ab114 authored by Rubin Xu's avatar Rubin Xu
Browse files

Fix doc for package checksum in DevicePolicyManager.

The checksum should be in the URL-safe base64 encoded form.

Bug: 19895519
Change-Id: I84523b796b980fb0ab8825c1ab9245489039564a
parent ecad2e2c
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -351,10 +351,10 @@ public class DevicePolicyManager {
        = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_COOKIE_HEADER";

    /**
     * A String extra holding the SHA-1 checksum of the file at download location specified in
     * {@link #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION}. If this doesn't match
     * the file at the download location an error will be shown to the user and the user will be
     * asked to factory reset the device.
     * A String extra holding the URL-safe base64 encoded SHA-1 checksum of the file at download
     * location specified in {@link #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION}. If
     * this doesn't match the file at the download location an error will be shown to the user and
     * the user will be asked to factory reset the device.
     *
     * <p>Use in an NFC record with {@link #MIME_TYPE_PROVISIONING_NFC} that starts device owner
     * provisioning via an NFC bump.
@@ -421,7 +421,8 @@ public class DevicePolicyManager {
        = "android.app.extra.PROVISIONING_DEVICE_INITIALIZER_PACKAGE_DOWNLOAD_COOKIE_HEADER";

    /**
     * A String extra holding the SHA-1 checksum of the file at download location specified in
     * A String extra holding the URL-safe base64 encoded SHA-1 checksum of the file at download
     * location specified in
     * {@link #EXTRA_PROVISIONING_DEVICE_INITIALIZER_PACKAGE_DOWNLOAD_LOCATION}. If this doesn't
     * match the file at the download location an error will be shown to the user and the user will
     * be asked to factory reset the device.