OSDN Git Service

Fix devices with primary physical storage.
authorJeff Sharkey <jsharkey@android.com>
Sun, 10 May 2015 21:53:34 +0000 (14:53 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sun, 10 May 2015 21:53:37 +0000 (14:53 -0700)
commitfced534dec1088bdd7da1495d76b73996dc8a1a1
treed4e1456e1811affe05ec7a2e2a0182e25aa380ce
parenta2e26b49539af04ea9d13eb3178f710b496e88bc
Fix devices with primary physical storage.

Always assume the factory-reset default primary storage before parsing
storage settings.  Without this, we'd always default to picking
internal emulated storage during first boot or upgrade.

Bump version code to re-evaluate this for devices that default to
physical storage as primary.

Also restrict available move targets when storage is physical, since
we can't really translate between multi-user and non-multi-user aware
storage.

Bug: 20836019
Change-Id: I186ded1aa3dd9cea67497a4f53b0973031174ccd
core/java/android/app/ApplicationPackageManager.java
services/core/java/com/android/server/MountService.java