8a372a0a280127743ce9a7ce4b6198c7a02d2a4f |
|
16-Mar-2016 |
Jeff Sharkey <jsharkey@android.com> |
Refactoring FBE APIs based on council feedback. Mostly consists of removing the word "encryption" from most APIs, since we can't actually make promises about the data being encrypted. Bug: 27531029 Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
2a9e3f8e6813716ab88ca54fd04ae047dc9aaaeb |
|
18-Dec-2015 |
Jeff Sharkey <jsharkey@android.com> |
Better named encryption flags, start triaging. Create distinct flags for encryption aware, unaware, and both, and name them like the other MATCH_ flags. Start adding logic to help triage all system internal callers to verify that they've done their homework and thought about how to handle apps while locked. Call sites in the system should either ask for explicit matching behavior, or explicitly use the DEFAULT match flag to indicate that they've been triaged to use the default state-based matching. Bug: 26250295 Change-Id: I86214e5c4f71a6dc72f06930800388713aecd107
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
9d8a1048bb666c68402dce031bebfa07c92a42db |
|
04-Dec-2015 |
Jeff Sharkey <jsharkey@android.com> |
Handle non-encryption-aware accounts and sync. The system can now boot in a "locked" state where only encryption aware (EA) components can be safely started. When in this state, PackageManager already filters away non-EA components, but system services like AccountManager and SyncManager need to carefully handle these temporarily "missing" components. As a guiding principle, all known Accounts are still present when the device is locked, but communication with underlying non-EA authenticators is blocked. To keep things simple for now, all SyncManager requests are kept dormant until the user enters the unlocked state. The core of this logic is that RegisteredServicesCache now works with all components regardless of EA status, which prevents us from accidentally thinking a service was removed when the user is locked. Bug: 25945136 Change-Id: I8714121f6236b00821769023c4df7de1c8a99944
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
98404fdc0b73e6563c19b863aa5ab605e092de29 |
|
18-Aug-2015 |
Xiaohui Chen <xiaohuic@google.com> |
Clean up USER_OWNER reference. Bug: 19913735 Change-Id: I441672b360fa0fff5453f72c88f9577b5cc8eecf
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
37a40c24deb02bca3868a8085069afae112f22e4 |
|
17-Jun-2015 |
Amith Yamasani <yamasani@google.com> |
App Standby : Association between content providers and their sync adapter Set sync adapters to active if the associated content providers are used at foreground process state. Minimize how frequently published content providers are reported by keeping track of last reported time. Also cache sync adapters associated with an authority in SyncManager. Bug: 21785111 Change-Id: Ic2c8cb6a27f005d1a1d0aad21d36b1510160753a
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
9e9e2e73c6ec7bece20268196dc89ad0c8bafad4 |
|
08-May-2015 |
Wojciech Staszkiewicz <staszkiewicz@google.com> |
Pass charset to XmlPullParser.setInput instead of null Passing null to XmlPullParser.setInput forces it to do additional work, which can be easily avoided if we know the charset beforehand. bug: b/20849543 Change-Id: Iaff97be9df2d0f99d7af8f19f65934439c9658e2
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
259e76153255e4d7c6d6c14af77936fe060e7038 |
|
11-Feb-2015 |
Fyodor Kupolov <fkupolov@google.com> |
RegisteredServicesCache now saves files to a user-specific dir Previously, its state was saved in a single xml file inside /data/system/registered_services. Services are now stored in separate files stored in a user-specific dir. A one-off migration step was added, which runs, when the system discovers a file in the old format. Bug:19321135 Change-Id: Ie92be01047f4855d01352b6a304820b37344ae2c
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
9e0d81e8439089845b7ddee21676f3f427a34cca |
|
10-Feb-2015 |
Fyodor Kupolov <fkupolov@google.com> |
Added unit test for RegisteredServicesCache Minor refactoring of RegisteredServicesCache for testability. Added RegisteredServicesCacheTest which uses a mock version of RegisteredServicesCache. Bug:19321135 Change-Id: If18b794b28f03b4bf4bbdfbba9e9a57e808aaebf
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
460a7b461902d55d20e99f6c19e131947384d04a |
|
06-Feb-2015 |
Amith Yamasani <yamasani@google.com> |
Limit cache update to packages that have changed When updating the RegisteredServicesCache, don't remove any packages that are not in the list of modified packages. Bug: 19228972 Change-Id: Id4f264403b7ceca9005854dfbbc25abfd7b54889
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
0598d7075ed739c9fcf115b4f3a417483ee32f84 |
|
12-Mar-2014 |
Christopher Tate <ctate@google.com> |
Make RegisteredServicesCache understand ASEC-based updates Specifically, when the ASEC container has been unmounted as part of updating the app we mustn't immediately conclude that any services hosted there have become invalid until after we see the matching remount result and have a chance to re-evaluate in the proper new state. Bug 12422464 Change-Id: I27794c6e4348f6a72d64bd2f44b4da7938cc567b
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
f4bf0ae2a7c2d9d92c5c8abdb82baa53b4c9ccda |
|
21-May-2013 |
Dianne Hackborn <hackbod@google.com> |
New ArrayMap class. This is a new kind of key/value mapping that stores its data as an array, so it doesn't need to create an extra Entry object for every mapping placed in to it. It is also optimized to reduce memory overhead in other ways, by keeping the base object small, being fairly aggressive about keeping the array data structures small, etc. There are some unit and performance tests dropped in to some random places; they will need to be put somewhere else once I decided what we are going to do with this for the next release (for example if we make it public the unit tests should go in to CTS). Switch IntentResolver to using ArrayMap instead of HashMap. Also get rid of a bunch of duplicate implementations of binarySearch, and add an optimization to the various sparse arrays where you can supply an explicit 0 capacity to prevent it from doing an initial array allocation; use this new optimization in a few places where it makes sense. Change-Id: I01ef2764680f8ae49938e2a2ed40dc01606a056b
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
293ad6c6749044d97ea2a5f3fbd5c6ad58124584 |
|
11-Mar-2013 |
Jeff Sharkey <jsharkey@android.com> |
Handle corrupt RegisteredServicesCache XML. Avoid getting stuck in infinite loop. Bug: 8360183 Change-Id: I81728dcfbc35b456c9166cf5c5175d0a376df56f
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
40e9f2922cae76ffcbc521481e5be8e80e8744ef |
|
28-Nov-2012 |
Dianne Hackborn <hackbod@google.com> |
Quiet down a lot of logging. Also fix a little problem where the USER_STARTED broadcasts were not being sent as ordered broadcasts(!). Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
8b2c3a14603d163d7564e6f60286995079687690 |
|
12-Nov-2012 |
Jeff Sharkey <jsharkey@android.com> |
Useful annotations for code documentation. Bug: 6537978 Change-Id: I806c3c09e3255f8789455f13bf37c1dde2a93f1f
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
a706e2fd0059b1bb86c487722dbc9fc0fda9c980 |
|
16-Oct-2012 |
Jeff Sharkey <jsharkey@android.com> |
Lock SyncQueue when user starting, copy RSC list. Document SyncQueue locking policy and protect in onUserStarting() and clearAllBackoffs(). Return copy of ServiceInfo list from RegisteredServicesCache instead of exposing locking externally. Bug: 7357776, 7352537 Change-Id: I6a32ca98a355b639d4207a88bde572179beae359
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
6ab72d74b86e5f4ec3c3909366fd46c225a66bd7 |
|
09-Oct-2012 |
Jeff Sharkey <jsharkey@android.com> |
Make RegisteredServicesCache multi-user aware. RegisteredServicesCache is used to track account authenticators and sync adapters, which can vary based on user. This change requires that callers now provide a userId when making cache requests. It continues persisting into a single file for now, which is keyed based on UID. It now watches for package broadcasts from all users, and scans packages on-demand. It changes cache callers to provide a relevant userId, and evicts cache entries when users are stopped. Changes SyncManager to only work with accounts from running users, only kicking off pending syncs once a user is started. Bug: 7276595, 7316150 Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
4428e17c5e05c0dad76da8f1c28ccba62a66cd91 |
|
25-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Some clean up of app install and user management. UserManagerService is now closely tied to PackageManagerService, sharing the same locks. There is no longer direct access of Installer by UserManagerService, instead the package manager is back to solely owning it. Creating a new user now correctly only installs system apps for that user. Fixed some misc bugs, where we were getting nulls when querying content providers and instrumentation in uninstalled users, incorrect locking, etc. Change-Id: Ife69b6e373d0cf7c5cfc03fc588e36b43ad5d8b0
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
40e5df95ff9468cec0624ca7fb14e51c13e4b047 |
|
01-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Merge "Make AtomicFile a public API. It's about time!" into jb-mr1-dev
|
39606a007a5b1309dd000234f2b8cf156c49fd0f |
|
01-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Make AtomicFile a public API. It's about time! Change-Id: Ib34e294747405b7ab709cb0bbb2d9a0cc80ce86a
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
26ff6626fc4ee0ae46f01ad309b366921da589fe |
|
30-Jul-2012 |
Kenny Root <kroot@google.com> |
Delay AccountManagerService initialization Since applications can have Account providers, they need to be delayed until after PackageManagerService says everything is mounted. Otherwise the accounts associated with that provider will be removed immediately when startup happens. Bug: 6820670 Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
56285a60e83138bb4b4f2d3bdec91b2f3ca11aa2 |
|
02-Dec-2010 |
Fred Quintana <fredq@google.com> |
add caching to the AccountManagerService - cache the accounts, userdata and authtokens - make the AccountManagerServiceTest work again - add a log statement for every binder call http://b/issue?id=3188457 Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
3fa51e3430e3bf902ae4f2d72dfb956103b6bd2d |
|
11-Nov-2010 |
Alon Albert <aalbert@google.com> |
Improve logging Change-Id: Ia855b1a45a3abbc1a87233462f19b330b72d30b9
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
20cb56e26e91df91bd64d4251222e0d421cdbe47 |
|
04-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix some bugs. Bug #2376231: Apps lose window focus (and back key causes ANR) if the lock screen is dismissed while the phone is in landscape mode This is another case where we weren't recomputing the focused window after changing the visibility policy. bug #2479958: Investigate source of "Resources don't contain package for resource number 0x7f0a0000" Um, okay, so it turns out there were bugs all over the place where we would load an XML resource from a another application, but not use the Resources for that application to retrieve its resources...! I think the only reason any of this stuff was working at all was because it typically only cared about retrieving the resource identifiers of the items (it would look up the values later). Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService Add some null checks.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
2269d1572e5fcfb725ea55f5764d8c3280d69f6d |
|
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Re-arrange android-common so framework no longer links with it. This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
b56ae20b22fd7283df32072a431ab6d4965f3c1b |
|
05-Feb-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Rename media resource broadcasts Add checks for fwdlocked and updated system apps add more tests remove duplicate adds
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
08675a3376819a82aa5ab344bc3e7b1635c30b05 |
|
28-Jan-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Apps on sdcard: Add new broadcasts Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by PackageManagerService when sdcard gets mounted/unmounted by MountService so that packages on sdcard get recognized by various system services as being installed/available or removed/unavailable by the system. The broadcasts are sent before the actual package cleanup which includes mounting/unmounting the packages and we force a gc right after so that any lingering file references to resources on sdcard get released.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 |
|
21-Dec-2009 |
Tom Taylor <tomtaylor@google.com> |
Update imports to android-common Several files were moved to android-common. Update all the references to import those files from the new location.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 |
|
10-Nov-2009 |
Fred Quintana <fredq@google.com> |
Make the RegisteredSErvices Cache not allow the registered service for a type to change without first uninstalling the previous service for that type, unless the newly installed service is in the system image. Notify the listener when a service is added or removed. Make the AccountManagerService remove the accounts for an authenticator when the registered authenticator changes from one uid to another. Make the AbstractSyncableContentProvider force a sync when the database is first created.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 |
|
17-Sep-2009 |
Fred Quintana <fredq@google.com> |
- Make the AccountManagerService delete accounts that have no Authenticator, both when the package is removed and when the phone is booted. - add the ability to register with the RegisteredServicesCache to be notified when the set of Authenticators changes.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
c42c0dd1c4e2f7a4abaac1b2c9a6344448f9db7a |
|
03-Sep-2009 |
Jeff Hamilton <jham@android.com> |
Fix the registration of the package changes broadcast receiver. Change-Id: Ib0b49153a0ec1af7c5a92753860df0f46064a7df
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
d4a1d2e14297a3387fdb5761090961e714370492 |
|
17-Jul-2009 |
Fred Quintana <fredq@google.com> |
add account manager permission checking
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
9788976b1465ce982b5ae7c741345edd0ecd9322 |
|
15-Jun-2009 |
Fred Quintana <fredq@google.com> |
add icon and label to the authenticator description
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
718d8a2d7ff3e864a73879eb646f46c14ab74d07 |
|
30-Apr-2009 |
Fred Quintana <fredq@google.com> |
decouple SyncAdapter from ContentProvider
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|