enterprise-samples icon indicating copy to clipboard operation
enterprise-samples copied to clipboard

Unable de download administration app

Open codingjeremy opened this issue 6 years ago • 1 comments

Issue by lduparc Tuesday May 03, 2016 at 06:46 GMT Originally opened as https://github.com/googlesamples/android-NfcProvisioning/issues/1


Using this sample app with the deviceOwner app installed on the master device, the child device is encrypted and started on Android for Work setup page but it is not able to download the administration app to the child device.

I'm using a Motorola X Style (XT1572) on Android 6.0 for my tests. Do I have to define a specific configuration in order to be able to download the admin app ?

Properties are the following :

DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME,
                "com.example.androidmdm");
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION,
                "https://drive.google.com/file/d/XXXXXXXXXXX/view?usp=sharing");
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM,
                "base64 and sha-256 EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION");

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by saddahussain Saturday Mar 30, 2019 at 07:53 GMT


You have to provide a downloadable url.

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by saddahussain Saturday Mar 30, 2019 at 07:53 GMT

You have to provide a downloadable url.

Can I use DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION and point to an APK stored on an external media (USB)?

sir-friedrich-nietzsche avatar Dec 29 '22 15:12 sir-friedrich-nietzsche