OSDN Git Service

Progress towards FBE and adoptable storage.
authorJeff Sharkey <jsharkey@android.com>
Wed, 21 Jun 2017 19:45:11 +0000 (13:45 -0600)
committerJeff Sharkey <jsharkey@android.com>
Fri, 23 Jun 2017 22:35:15 +0000 (16:35 -0600)
commita65e6491e4aa90611045ecf696db4bf3328d09bc
treeba0a1694d037d52945cf5ba552e2a22f90a112ce
parent6a869a9c15008fbdfc62d25d0aeb76ec2d65533e
Progress towards FBE and adoptable storage.

Offer to adopt storage devices on FBE devices, but keep it guarded
behind a system property for now, since we still need to work out key
storage details.

Verify that all users are unlocked before moving apps or shared
storage.  We only need them to be unlocked; we don't need them to
be actually running.

Have PackageManager dump the set of volumes that it's finished
scanning and loading, since otherwise CTS can get excited and race
too far ahead of it.  Add a specific error code to communicate
that users are locked.

Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 37436961299230552586175530230655
Change-Id: I749dc3d8148e1a95d8bc4be56665253ef826d3fe
core/java/android/app/ContextImpl.java
core/java/android/content/pm/PackageManager.java
core/java/android/os/storage/StorageManager.java
services/core/java/com/android/server/StorageManagerService.java
services/core/java/com/android/server/pm/PackageManagerService.java
services/core/java/com/android/server/trust/TrustManagerService.java