History log of /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8f8733bb1557f6296ab9b108bd3b96b3884dddd 13-May-2016 Nicolas Prevot <nprevot@google.com> Use the file path provided by the DownloadManager in ManagedProvisioning.

In ManagedProvisioning, we specify a path where the download manager should
save the downloaded file. But the download manager may store the file
somewhere else, for example because the downloaded file already exists.

So use the file path returned by the download manager instead of the
initially specified one.

BUG:25764804

Change-Id: Id6c6b9140c688b1e15a7137248c354f7aaa26710
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
77bac595693aa1aa6e4832f278d5b3b35a3ffd53 15-Mar-2016 Steven Ng <stevenckng@google.com> Handle null cases for wifiInfo and deviceAdminDownloadInfo from ProvisioningParms

+ Add null check when using wifiInfo and deviceAdminDownloadInfo from
ProvisioningParms.
+ Ensure SSID is not empty when constructs WifiInfo.
+ Ensure download location is not empty when construts PackageDownloadInfo.

Bug: 27639246
Bug: 27628070
Bug: 27495682
Change-Id: Ie984275acac747b8e7b3e93be7562970d93504e9
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
d1784bd4d917bb36125e6faf125a2425c343838b 09-Mar-2016 Steven Ng <stevenckng@google.com> Make ProvisioningParams mostly immutable

+ Make WifiInfo and PackageDownloadInfo immutable and truely Parcelable.
+ Make ProvisioningParams mostly immutable except the PersistentBundle
field for admin extras.
+ Implement equals for WifiInfo, PackageDownloadInfo and
ProvisioningParams.
+ Validates the ProvisioningParams fields upon construction.

Bug: 26847422
Change-Id: I8873524ab3ada6c23717aa4549bc112f8c45b4dc
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
ea821b26fc845efa8058c883b0210432e9619f77 16-Feb-2016 Benjamin Franz <bfranz@google.com> Refactor PreProvisioningActivities

Major refactor of the Device and ProfileOwnerPreProvisioningActivity
into one PreProvisioningActivity moving the business logic into a
controller module for testability.

Behaviour changes in this CL:
- FRP is now enforced independently of the provisioning mode, whenever
DEVICE_PROVISIONED is not yet set
- The intent extra to skip encryption is now also supported for managed
profile provisioning
- Fixed a bug in message parser where certain extras are not re-read
after encryption

Bug: 26130692
Bug: 27240677
Bug: 21015046
Change-Id: I76a49a69bad18cfbf8d1a927962715aa55281821
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
72023ca7b7a818fa33e0303baf6f5baef05b5f1b 16-Feb-2016 Benjamin Franz <bfranz@google.com> Make Utils non-static for better injection

Make all functions in Utils non-static to be able to inject it where
necessary. Also make IllegalProvisioningArgumentException and
MdmPackageInfo top-level classes.

Bug: 27161424
Change-Id: I71981166578e537034762ecdd6e33af009ec1584
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
8b1d272d9842f2dcfedabc233474981c34925fc1 11-Nov-2015 Nicolas Prévot <nprevot@google.com> Merge "Check if there's a handler to the wifi pick intent."
1a07fd24af1babe5c569920a83493d73c6136bfd 10-Nov-2015 Nicolas Prevot <nprevot@google.com> Check if there's a handler to the wifi pick intent.

In ManagedProvisioning, don't fire this intent if there's
no handler.

BUG:25613007
Change-Id: Id4c811f8d34dfa67877ae37e02c8292a0b4290b0
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
03d796b6041d22a330f455f813f3e9a4f1268215 06-Nov-2015 Nicolas Prevot <nprevot@google.com> Specify a download location in ManagedProvisioning.

When downloading the device owner apk in ManagedProvisioning:
Specify the file where we're going to download it.

Outside of user 0, using the default location of the download
manager fails.

BUG:25491360
Change-Id: I3bd4aa2dc73e86bd360448bdded31e842cbf9727
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
572b8eb2b12f2ad031d70ac5917e73cb7fa2f6bf 18-May-2015 Rubin Xu <rubinxu@google.com> Deprecate SHA-1 in ManagedProvisioning

Use SHA-256 by default. Still supports SHA-1 if the device owner is provisioned
by an old Nfc programmer.

Bug: 20633794
Change-Id: I7049bc20b150fe6555be879d191a941f7790f4c4
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
b6409e2e1420a93e8147d68f8657d35a91b04e2e 02-Jun-2015 Rubin Xu <rubinxu@google.com> Change references to APK Certificate to Signature

The fact that currently apk signature is certificates is just
implementation details.

Bug: 20820366

Change-Id: Ie1d489a3a096a4dfa5c01c0ec530b03e5107ef6d
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
ea0981189414159234fc66e29524cbd08273675f 06-May-2015 Rubin Xu <rubinxu@google.com> Do no log URL and cookie when ManagedProvisioning is downloading

Bug: 20843112
Change-Id: I4e13729774afa06f74f15769fe7bf0f2736f3641
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
3efa83ac5074f40be2e1f275d492cf4175e7eb4b 14-Apr-2015 Sander Alewijnse <salewijnse@google.com> Use checksum of a certificate hash to verify downloaded apk.

Bug:19984678
Change-Id: Ief4c76b3495ea605b330d72c6b54c5386d52e4ae
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
74d6c14da5117ffd3458602f9f6946c531143436 13-Apr-2015 Sander Alewijnse <salewijnse@google.com> Refactoring the Device Owner provisioning flow.

To allow for future extension work.

Bug:19984678
Change-Id: I7dda7ad4fc2d937474e5ccb93eea5b2acc33b787
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
f3a5b3b6577bad13cf2543663ac76fb000e0de98 20-Mar-2015 Julia Reynolds <juliacr@google.com> Check package version codes before downloading packages.

Bug: 19859261
Change-Id: Idcd5d55dfbba8727e2c29888ceda76a5cbd5d3ef
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
c8ff7b01b193529376b722f633382797004f824b 18-Mar-2015 Julia Reynolds <juliacr@google.com> Add null checks for the initializer component in download/install tasks.

Bug: 19819830
Change-Id: I7b0215cd3ee32d57ae10728d588de3f648bd8d8c
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
3f4eb372a5faaa319c47df55cc880bee5ea759c9 11-Feb-2015 Julia Reynolds <juliacr@google.com> Support launching a device initialization agent during provisioning.

Optionally download, install, temporarily give elevated permissions
to, and launch a device initialization agent.

Bug: 19230954
Change-Id: I3f16f9976a9e868dbba34754cbc5e83de096169a
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
ccd60165065172486fff32b581a0fb4d724b2991 17-Feb-2015 Julia Reynolds <juliacr@google.com> Remove branching logic from DO task callbacks.

Every task will run, but not every task will perform actions.
Bug: 19406433

Change-Id: Id7a6020b15a8ac32e03aba47f726472e582201e6
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
d8dcb1f2cf3f537a6199671179470828f74236ad 24-Jul-2014 Sander Alewijnse <salewijnse@google.com> Add cookie when downloading the .apk.

Change-Id: Ia7389ba6be41ad239d9398354a2fc2fc62cfd167
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
ca587c32bc879e27b09c0e9c93072b93b58eb566 07-Jul-2014 Sander Alewijnse <salewijnse@google.com> Merge "Change encoding .apk hash from hexString to base64 websafe."
48fdbe03c7cc39accada396a96acff09bdecb3b2 03-Jul-2014 Sander Alewijnse <salewijnse@google.com> Change encoding .apk hash from hexString to base64 websafe.

To comply with the output format of the play service for
android work.

Change-Id: I1fa0854f1874d374ad3ff25d7dc4c5e7dcca3a44
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
8c664076cc8e08985c58e9da8d85ab162c9533ef 04-Jul-2014 Sander Alewijnse <salewijnse@google.com> Fix mdm installation bug.

InstallPackage function in packageManager changed its requirements
regarding the input url. Changed our code to conform to them.
Also cleaned up a small issue in the cleanup code.

Change-Id: I77e839b7bacd0cc5b763cca4d5cb7c740ba27f14
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
d70438542632a1c8df15bdd9d91bfee52bf2b655 17-Jun-2014 Sander Alewijnse <salewijnse@google.com> Add proper error handling to the device owner provisioning.

Also added some cleanup code and handle the backbutton.

Change-Id: I3eba40407de6d6c6c8755327e23893932ec98582
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
28bffd6424a3d9f2dbefe6c7d6144f3a4edee3bc 05-Jun-2014 Sander Alewijnse <salewijnse@google.com> Ensure device is encrypted before device owner provisioning.

Simplify setting of callbacks: set them in the constructors
instead of dynamically.

Change-Id: Ie0172ffd0111b8044e7b1249c221be9fd2a5a6b2
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
4c4badfbd6a9271297c12a7db495ca2e7bd7734d 20-Mar-2014 Sander Alewijnse <salewijnse@google.com> Added install package task.

Installs the device owner from a provided .apk file. Before
installation it checks whether a given package and adminReceiver
are present in the .apk.

Change-Id: I28b93e8a5d4a330b8f788db356e5fef3cb25cde6
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java
af8413ea41cba9a29fda7eef0c2e8ecafb454dbf 19-Mar-2014 Sander Alewijnse <salewijnse@google.com> Add download device owner package task.

Downloads a device owner .apk from a given url, and checks whether its hash
equals the hash provided by the programmer device.

Change-Id: Ibf27329666b9ea24cb0e3841a228bc511de59e06
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/DownloadPackageTask.java