diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-09-15 14:57:28 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-28 13:30:34 -0700 |
commit | 6615d36cf0fa7daef6a55373996beb65950a2885 (patch) | |
tree | 63e4f01768a69d1d64ae8b9f1475daab7182bef6 /core/java/android/content | |
parent | a8ee5c9a1f7524b7434e9dcf6f406a5142cae5a8 (diff) | |
download | frameworks_base-6615d36cf0fa7daef6a55373996beb65950a2885.zip frameworks_base-6615d36cf0fa7daef6a55373996beb65950a2885.tar.gz frameworks_base-6615d36cf0fa7daef6a55373996beb65950a2885.tar.bz2 |
prebundled: Handle prebundled packages per-user.
Also add migration step for reading old file to go towards
per-user system file structure
TICKET: CYNGNOS-1006
Change-Id: I743e8efaa074c9b84291fdc8d3d15763cc39e79d
pm: Create per-mcc prebundled install filter.
If packages are region locked, avoid installing them
for the SKU, otherwise if a package is specified for
a mobile country code, allow it to be installed.
TICKET: CYNGNOS-912
Change-Id: I69c5be62dff771fc7d3117e9edf65d8ea4150f28
pm: Update PackageManagerSettingsTests.
Change-Id: Ib3a23514055935f68f3f3bb4fd2b2d4d495c1132
PackageManager : Extend prebundled logic
Instead of specifying which packages to explicitly install,
Only install packages if :
a) Its in the current mcc's config_region_locked_packages
b) Its not region locked by checking config_restrict_to_region_locked_devices
Change-Id: I74c13763ef367e16e5e79290a569f3a720b85adc
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/pm/PackageManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 0fa5f51..3dddefe 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -870,6 +870,14 @@ public abstract class PackageManager { public static final int INSTALL_FAILED_UNINSTALLED_PREBUNDLE = -403; /** + * Used for prebundles + * Installation failed for a prebundled app because it wasn't needed in the default + * mobile country exported by the hardware + * @hide + */ + public static final int INSTALL_FAILED_REGION_LOCKED_PREBUNDLE = -404; //bloat not found + + /** * Flag parameter for {@link #deletePackage} to indicate that you don't want to delete the * package's data directory. * |