summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/PackageManagerService.java
Commit message (Collapse)AuthorAgeFilesLines
* Add platform infrastructure for features.Dianne Hackborn2009-08-271-11/+98
| | | | | | | | | | | | | | This introduces a new mechanism to define features associated with a platform, query the current device for the available features, and enforce that apps requiring features that aren't available can't be installed. Also now allows uses-library to specify that a library is optional, so the lack of such a library will not prevent the app from being installed (but if it does exist it will be correctly linked into the app). Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
* Include the list of registered providers the package manager dumpsys output.Jeff Hamilton2009-08-181-0/+9
|
* Add new API to compare certs of two UIDs.Dianne Hackborn2009-08-121-11/+44
|
* am 8b2cdcd1: Merge change 20037 into donutAndroid (Google) Code Review2009-08-051-8/+17
|\ | | | | | | | | | | | | Merge commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050' * commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050': fix issue with gids not being added for packages with shared user id
| * fix issue with gids not being added for packages with shared user idSuchi Amalapurapu2009-08-051-8/+17
| | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 2bc4c29dab22d8a541dfca0a20320b307ba64cfb Author: Suchi Amalapurapu <asuchitra@google.com> Date: Tue Aug 4 16:24:55 2009 -0700 fix issue with gids not being added for packages with shared user id
* | am 73139aea: Merge change 9075 into donutAndroid (Google) Code Review2009-07-301-5/+18
|\ \ | |/ | | | | | | | | | | Merge commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1' * commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1': Change the resource path for fwd locked apps when scanning the fwd locked install
| * Change the resource path for fwd locked apps when scanning the fwd locked ↵Suchi Amalapurapu2009-07-291-5/+18
| | | | | | | | | | | | install directory
* | am 1dd6936a: Merge change 8728 into donutAndroid (Google) Code Review2009-07-281-31/+93
|\ \ | |/ | | | | | | | | | | Merge commit '1dd6936a862be97efca02e4b7582a9fca1fcc269' * commit '1dd6936a862be97efca02e4b7582a9fca1fcc269': Fix resource code and version attributes
| * Fix resource code and version attributesSuchi Amalapurapu2009-07-281-31/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new package setting object for updated system apps rather than moving around the same setting. This updates the resource, code and version correctly. For updating system packages, disable the package first which removes the entry from internal structures, create a new package setting, add it to list of user id's then rest of installation steps, kill the process if needed via ActivityManager then add this setting if everything was successful. This also fixes issues with updating values prematurely. When a new version of system package is available via OTA, just physically remove entries for pkg. Note that the component and other info will be eventually updated later on when scanning the package. Also move certificate verification slightly ahead before scanning packages. Some null checks New api's in ActivityManager to kill an application pkg before finishing installation
* | am 11b822d2: Simplify density compatibility to a boolean.Dianne Hackborn2009-07-221-7/+21
|\ \ | |/ | | | | | | | | | | Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864' * commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864': Simplify density compatibility to a boolean.
| * Simplify density compatibility to a boolean.Dianne Hackborn2009-07-221-7/+21
| | | | | | | | | | | | Instead of a list, we now just have a single boolean indicating whether an application is density aware, and this set set to true by default as of Donut.
* | am 9fc20b0e: Merge change 8126 into donutAndroid (Google) Code Review2009-07-211-0/+4
|\ \ | |/ | | | | | | | | | | Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf' * commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf': First pass at reworking screen density/size APIs.
| * First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-211-0/+4
| | | | | | | | | | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
* | am 2c25fac2: Merge change 8036 into donutAndroid (Google) Code Review2009-07-211-10/+6
|\ \ | |/ | | | | | | | | | | Merge commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1' * commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1': * Disable compatibility mode for all cases.
| * * Disable compatibility mode for all cases.Mitsuru Oshima2009-07-211-10/+6
| |
* | am 841f13c8: * Reverted the change in PackageParser that I checked by ↵Mitsuru Oshima2009-07-191-0/+16
|\ \ | |/ | | | | | | | | | | | | | | accident * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works, Merge commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff' * commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff': * Reverted the change in PackageParser that I checked by accident
| * * Reverted the change in PackageParser that I checked by accidentMitsuru Oshima2009-07-191-0/+16
| | | | | | | | | | | | | | | | * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works, and this was not necessary. * Added compatibility related info to package dumpsys
* | am ea5c0444: When apps switch between system and data partition the code and ↵Suchi Amalapurapu2009-07-131-9/+17
|\ \ | |/ | | | | | | | | | | | | | | resource paths should also be updated based on which version is being picked up. update the code and resource paths when a path change is detected Merge commit 'ea5c044412f6853d686e93b8bef07f4729b6ad26' * commit 'ea5c044412f6853d686e93b8bef07f4729b6ad26': When apps switch between system and data partition the code and
| * When apps switch between system and data partition the code andSuchi Amalapurapu2009-07-131-9/+17
| | | | | | | | | | | | resource paths should also be updated based on which version is being picked up. update the code and resource paths when a path change is detected
* | resolved conflicts for merge of 889c2d37 to masterDianne Hackborn2009-07-101-2/+16
|\ \ | |/
| * Fix bug #1873249i: Apps can DoS/brick deviceDianne Hackborn2009-07-091-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the problem where various things are listening for broadcasts (such as battery status, PIN/PUK/Network) that an application can send to cause harm to the system. Solving this is tricky because many of these broadcasts are sticky, and I have never figured out how to do permissions with sticky broadcasts in a sane way. So instead, I am going to punt on the general problem and just brute force it: There is new a way for system components to declare specific broadcast actions to be protected, which means that only the system and the phone can send them. This is good enough for now. None of it is exposed in the public API so we can make something a little less stupid in the future if we ever need to.
* | am 7e8cbfc2: Merge change 6143 into donutAndroid (Google) Code Review2009-07-061-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '7e8cbfc2bc3ea2334c38db7fd2b6a1e17eefcac6' * commit '7e8cbfc2bc3ea2334c38db7fd2b6a1e17eefcac6': Fix the simulator.
| * Fix the simulator.Marco Nelissen2009-07-021-1/+1
| |
* | am 9701b3d5: Merge change 5979 into donutAndroid (Google) Code Review2009-07-061-14/+5
|\ \ | |/ | | | | | | | | | | Merge commit '9701b3d594868bd6750d5887af560c6295ea091b' * commit '9701b3d594868bd6750d5887af560c6295ea091b': Remove the constraint to assign new uid when code path changes for system packages
| * Remove the constraint to assign new uid when code path changes for system ↵Suchi Amalapurapu2009-07-011-14/+5
| | | | | | | | packages
* | am 6e1647a2: Merge change 5829 into donutAndroid (Google) Code Review2009-07-011-0/+1
|\ \ | |/ | | | | | | | | | | Merge commit '6e1647a212317f4ee8bcc23948b6621a59172954' * commit '6e1647a212317f4ee8bcc23948b6621a59172954': Fix issue #1673793: Theme styles don't apply.
| * Fix issue #1673793: Theme styles don't apply.Dianne Hackborn2009-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out this was not a problem in the resource code at all. Rather, the system process has a cache of pre-loaded attributes it uses to avoid continually reloading things as it needs them. Well it turns out this cache wasn't flushed after a package was uninstalled or a configuration changed, so you could re-install an app where you change its style resources so its theme now points to one that is inconsistent in the cache. This is mostly a problem for developers, where they continually install new versions of an app where resources have changed. This could possibly show up when updating an app on a normal phone, although the problem would eventually correct itself since this cache uses weak references. Anyway, the cache is now reworked to be flushed appropriately. This change also includes an update to aapt to be able to dump the contents of bags in resources.
* | am 7941e903: Merge change 5091 into donutAndroid (Google) Code Review2009-06-241-29/+1
|\ \ | |/ | | | | | | | | | | Merge commit '7941e903c973af66075bbd4fa4bcadf021a61ccc' * commit '7941e903c973af66075bbd4fa4bcadf021a61ccc': * new screen resolution support impl.
| * * new screen resolution support impl.Mitsuru Oshima2009-06-231-29/+1
| | | | | | | | | | | | | | | | | | | | * use full window for activities, and shift & clip the content * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations. * removed a workaround to handle an activity with configChagne=rotation in old implementation. * I'll fix background issue on rotation in next CL. * removed unnecessary scaling code in SurfaceView, which I forgot to remove when I changed SurfaceView not to scale the content.
* | am 6bf1208c: Merge change 4827 into donutAndroid (Google) Code Review2009-06-221-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '6bf1208c58ab2c39f95c733a22df882c7a59f4fc' * commit '6bf1208c58ab2c39f95c733a22df882c7a59f4fc': Fix issue with shared user permissions.
| * Fix issue with shared user permissions.Suchi Amalapurapu2009-06-191-1/+1
| | | | | | | | just look in the requested permissions of packages within shared user setting rather than the granted permissions
* | am bc806f65: Remove deprecated api. Aptly rename freeStorageWithIntent to ↵Suchi Amalapurapu2009-06-191-29/+1
|\ \ | |/ | | | | | | | | | | | | | | freeStorage. Merge commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90' * commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90': Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
| * Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.Suchi Amalapurapu2009-06-191-29/+1
| |
* | am 63e7155c: Merge change 4696 into donutAndroid (Google) Code Review2009-06-181-24/+68
|\ \ | |/ | | | | | | | | | | Merge commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d' * commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d': Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
| * Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ↵Dianne Hackborn2009-06-181-24/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ApplicationInfo. - Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid. Also make sure to fail if minSdkVersion is for a code name. Really stupid. - Change the API for resize compatibility mode to be a bit in the flags field, instead of a separate boolean. - Implement delayed dexopting, to avoid the looong full dexopt during boot. This is only enabled for "eng" builds. When in this mode, the activity manager will make sure that a dexopt has been done before loading an .apk into a process, and will try to avoid displaying ANRs if they are due to the dexopt causing some operation to take longer than it normally would (though I make no guarantees about this totally working). - Add API to Context to get the ApplicationInfo for its package, for easy access to things like targetSdkVersion.
* | am c14b9ccd: Extend Intent/Uri conversion for use by BrowserDianne Hackborn2009-06-171-27/+66
|\ \ | |/ | | | | | | | | | | Merge commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b' * commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b': Extend Intent/Uri conversion for use by Browser
| * Extend Intent/Uri conversion for use by BrowserDianne Hackborn2009-06-171-27/+66
| | | | | | | | | | | | | | | | | | | | | | | | This introduces a new Uri form of Intent with an "intent:" scheme, and a corresponding update to the parser to handle these, so that the browser can use this generic facility for starting activities based on the links that are clicked and allow for web pages to link to arbitrary intents. There is also a new "package" field on Intent which allows you to limit the components it finds to a given package. This replaces the new method that was added to PackageManger for doing this when resolving activities, and implements it for all Intent queries against the package manager.
* | Merge commit '0781df94' into manualmergeSuchi Amalapurapu2009-06-171-0/+30
|\ \ | |/ | | | | | | | | Conflicts: Android.mk api/current.xml
| * Remove circular dependency in PackageManager. api freeStorage uses ↵Suchi Amalapurapu2009-06-171-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | PendingIntent from android.app Create a new public IntentSender class that can be used by PackageManager instead. This new class uses IIntentSender internally and can only be created by PendingIntent for now. Provide a new getIntentSender api in PendingIntent to create an instance of this class. Move IIntentSender and IIntentReceiver from android.app to android.content Change imports of IIntentSender and IIntentReceiver to reflect the new package name The PackageManager api has been named as freeStorageWithIntent and will be renamed as freeStorage once the older api(which has been deprecated) will be removed shortly.
* | am e5fb3288: resolution support fix/improvement * adding compatibility ↵Mitsuru Oshima2009-06-101-5/+45
|\ \ | |/ | | | | | | | | | | | | | | menu * backup gravity * set expanable=true if the screen size is hvga * density. * added "supports any density" mode. I\'ll add sdk check later. * disallow to catch orientation c Merge commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715' * commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715': resolution support fix/improvement
| * resolution support fix/improvementMitsuru Oshima2009-06-101-5/+45
| | | | | | | | | | | | | | | | | | | | | | * adding compatibility menu * backup gravity * set expanable=true if the screen size is hvga * density. * added "supports any density" mode. I'll add sdk check later. * disallow to catch orientation change event if the app is not expandable. This was causing layout problem under non-expandable mode. I discussed this with Mike C and we agreed to do this approach for now. We'll revisit if this causes problem to a lot of applications.
* | am 9654cba8: Merge change 3094 into donutAndroid (Google) Code Review2009-06-031-0/+1
|\ \ | |/ | | | | | | | | | | Merge commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf' * commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf': Grant permissions to older package when deleting an updated system application.
| * Grant permissions to older package when deleting an updated system application.Suchi Amalapurapu2009-06-031-0/+1
| | | | | | | | | | | | | | When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition) gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails. This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might fall back to older versions of system apps.
* | am 8dbe612d: Adding internal method replacePreferredActivity.Satish Sampath2009-06-031-0/+37
|\ \ | |/ | | | | | | | | | | Merge commit '8dbe612dc60526d635e57257b58627b33a099678' * commit '8dbe612dc60526d635e57257b58627b33a099678': Adding internal method replacePreferredActivity.
| * Adding internal method replacePreferredActivity.Satish Sampath2009-06-031-0/+37
| | | | | | | | | | | | | | | | | | | | This was required because we need a way to set the preferred activity for a particular intent filter based on user selection (in our case the ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from the list of available search engines providers). The current addPreferredActivity call was not sufficient since it leaves the existing preferred activities in the list and does not remove them, which this call does.
* | am 162c9d0e: Merge change 2805 into donutAndroid (Google) Code Review2009-06-011-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '162c9d0e90eaa71adc8c7d1456d1a9a95e638c47' * commit '162c9d0e90eaa71adc8c7d1456d1a9a95e638c47': base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGE
| * base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGESan Mehat2009-06-011-1/+1
| | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | am b181118b: Define TARGET_CPU_ABI for finding native code in .apksDianne Hackborn2009-05-221-20/+27
|\ \ | |/ | | | | | | | | | | Merge commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a' * commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a': Define TARGET_CPU_ABI for finding native code in .apks
| * Define TARGET_CPU_ABI for finding native code in .apksDianne Hackborn2009-05-221-20/+27
| |
* | am c3320dbe: Minor performance improvement when filtering intents by package.Mihai Preda2009-05-191-1/+6
|\ \ | |/ | | | | | | | | | | Merge commit 'c3320dbe1c7acf040a3ec895129d8aae09c570ea' * commit 'c3320dbe1c7acf040a3ec895129d8aae09c570ea': Minor performance improvement when filtering intents by package.