History log of /frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7bdb9ce97811782864d3b54616f233c041590c7e 15-Sep-2016 Makoto Onuki <omakoto@google.com> Fix system crash due to mismatching begin/finishBroadcast()

Bug 31449363

Change-Id: I514196355a2566c5e4f7f3af91fbf3c57cb67a48
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
02f338e23d06499790c6948709afb1587416eb40 29-Jul-2016 Makoto Onuki <omakoto@google.com> LauncherApps should also throw when user is locked

otherwise it'd be racy.

Bug 30406401

Change-Id: I953eb6ae58e029d254d9fdbd5d05a0090b8d2391
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
7e5c3e85420a255bd79242dd97b90340c6e3a4df 22-Jul-2016 Makoto Onuki <omakoto@google.com> Fix intent flags

Bug 30307198

Change-Id: If127001320dcabdc53ee73860dbb9983cb25b611
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
0eed441c0cf3bd03b8ac780e62fbeae5d7fcac4b 21-Jul-2016 Makoto Onuki <omakoto@google.com> Follow-up to multiple intents support

- More unit tests
- LauncherApps.startShortcut() now supports sourceBounds
(again)
- Updated the javadoc.

Bug 30218829

Change-Id: Iae208ffd4911d149246ccfd0c4380544c2aafffc
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
440a1ea8e2204ecb171e0187318beb2f08f6012c 20-Jul-2016 Makoto Onuki <omakoto@google.com> Support multiple intents in ShortcutInfo

Also fix b/30230996.

TODO: Support the sourceBounds argument to LauncherApps.
startShortcut().

Bug 30218829
Bug 30230996

Change-Id: Ibb6c59d5b7c0a320c21d09436d016d0eac94644f
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
347a6bd82059bc7581b1dcd229228f622c5cfca1 19-Jul-2016 Makoto Onuki <omakoto@google.com> Stop adding FLAG_ACTIVITY_RESET_TASK_IF_NEEDED when...

starting a shortcut.

- Also add API surface to support launching multiple intents

- Also add SM.isRateLimitingActive() which was supposed to be
added but was not due to a bad rebase.

Bug 30218829

Change-Id: I82d60ec0df1e2b889538705f9f8870ee727dd55d
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
83f6d2da372de339dc563d6a7786be3facc52e76 11-Jul-2016 Makoto Onuki <omakoto@google.com> Throw ActivityNotFoundException when failed to launch shortcut

Originally the code used IIntentSender, but I had to switch to calling
startActivitiesInPackage() directly, because sendIntentSender() does
not support returning errors.

Bug 30035853

Change-Id: I5d7669c96a2f1805373c71aebf45b97ac1d01ff6
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
ea11db15bd0cfe6ecbc44dd80a988ddf0e8c1ce7 25-Jun-2016 Makoto Onuki <omakoto@google.com> Start shortcuts as if publisher apps did using PendingIntent

Bug 29639471

Change-Id: I2aad115669b431cbea785ba92040b1958117ab47
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
bede3bfb1e7182bdab6433a0860d8428ebe4cd15 21-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added explicit cast so it compiles on Eclipse." into nyc-mr1-dev
4d6b87ffdf06df3303239130ced685bc1a3fae50 17-Jun-2016 Makoto Onuki <omakoto@google.com> Launcher shortcut callback should deliver manifest shortcuts too

- Also include "activity" in the key fields, as this is now an
important field.

- Also optimize ShortcutInfo parceling for the "key field only" case.

Bug 29394043
Bug 29451629

Change-Id: I61b2bc2f61ad6ebdcbaf6d02f1bd88777c45a7f0
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
f93ce176dec4691165c78bf25fe36fbf3a93a096 13-Jun-2016 Felipe Leme <felipeal@google.com> Added explicit cast so it compiles on Eclipse.

BUG: 29399275

Change-Id: Id9f49ca85b2b7ab89340e27527ff652047e059ae
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
1fe7dfa66aaf37045c62094438ab3db2ee5403c5 12-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Changing LauncherApps to resolve activity by component name" into nyc-dev
45d3e977487da262a58bbfc5650c99a2d94aba9f 31-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Changing LauncherApps to resolve activity by component name

This makes the behavior of resolveActivity similar to isActivityEnabled.
Not that starting this activity may still fail due to other reasons.

Bug: 27549770
Change-Id: I924d7aa2305c64fd319ca1e38058f9f956c0c256
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
5ba0d3e3a3035b67d2ce3a59975145b1e0061ef4 11-Apr-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: First cut of CTS

Bug 27548047

Change-Id: Idd7a768ea4fee44c2cf6e3bd473cea9e67f5f7cd
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
abe8442951ff88aa01ed882adb54fb1b3472ca3e 07-Apr-2016 Makoto Onuki <omakoto@google.com> Add UserHandle to ShortcutInfo, and simplify LauncherApps APIs.

- Also fixes the bitmap recycle bug in the service.

Fixes 28053541

Change-Id: I2b244feda0f85c60e2c15af427fcad95ad5e6da5
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
e23283a6fa0ec8cf8448eb0e04db163ec919066f 05-Apr-2016 Makoto Onuki <omakoto@google.com> Do not enable binder exception logging.

Bug 28005618

Change-Id: Ie13fd5b6d1fcbf27ad480501e30b5cb1774e8b48
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
ac21497f174504472e92b99500709518b8ab2d71 04-Apr-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: More command for CTS, more tests..

and fix flakey tests.

Bug 27548047

Change-Id: Ia5f189278f6111850277ca16aa747469f48c5f14
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
d99c6f04bbb68f8be78f2c3ca625a3a8d5645275 28-Mar-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: Fix work profile

- Pinned shortcuts need to know not only which package
has pinned them, but also on which user's, due to work profile.

- Launcher can always launch shortcuts that it has pinned.

Bug 27548047

Change-Id: I23b4e7dfbb6ecc42099d31008bcfd61d44e2c7fb
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
c5475d42a45ba48477257879e7a5b2af54a23f98 25-Mar-2016 Makoto Onuki <omakoto@google.com> Fix potential crash loop

Bug 27548047

Change-Id: I10648ccb2fd17464e18308846b910efa129ce126
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
45c1827c37ba9d8ed3c644aee89e993e4e5288b1 18-Mar-2016 Makoto Onuki <omakoto@google.com> Merge "Improve ShortcutSrvice" into nyc-dev
aa8b94aa79df94d77d0f7698ce532ac98f197a99 17-Mar-2016 Makoto Onuki <omakoto@google.com> Improve ShortcutSrvice

- Delayed save
- Reset logic update

Bug 27548047

Change-Id: Ibd52f90a7986991974301b7ff1f1d8520f9ef0d9
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
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/services/core/java/com/android/server/pm/LauncherAppsService.java
4dbe0ded4ae9faaef580be80184fca0749e27198 15-Mar-2016 Makoto Onuki <omakoto@google.com> Fix launcher side callback

- Fix crash in work profile case
- Calculate shortcuts for each caller
- Add tests

Bug 27548047

Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
2d5b465fa9235e66ec176f6d6ffaaa0c18143e41 12-Mar-2016 Makoto Onuki <omakoto@google.com> Implement the launcher side permission.

Only the default launcher can call the LauncherApps shortcut APIs.

Bug 27548047

Change-Id: I6d597fcad80c5201a2f93b8cbecd567fc79926d8
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
d51b363c0dff6bad46093db474ae314db33d0157 11-Mar-2016 Makoto Onuki <omakoto@google.com> Merge "Fix caller validation on secondary user." into nyc-dev
7a6a05f0ccc8c57496d0a1e2b0882ab7de3175e5 11-Mar-2016 Makoto Onuki <omakoto@google.com> Test for ShortcutManager.updateShortcuts(), also

... fix bugs

Bug 27548047

Change-Id: Ia55d35521912dcba2fb1bb9c20588a83d1a2d004
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
3ee7f71d5f1dc018fdafee9d890290909ad299df 11-Mar-2016 Makoto Onuki <omakoto@google.com> Fix caller validation on secondary user.

Bug 27548047

Change-Id: Ibf01bc0f9d3dc76cc23403bf076e2faa7d033234
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
5504622fb01ab9774b5e73d05f86ee03a8b68ab7 08-Mar-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: add remaining APIs.

- Icons are now persisted. (under /data/system_ce, as PNGs)
- the "load icon" APIs in LauncherApps are supported.
- Implement updateShortcuts()

- Addressed all the comments on the previous CL
- @hide the newly added constructor for PersistableBundle

- Enhance incoming shortcut validation
- A lot of internal clean-up.

Bug 27548047

Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
43204b8357d781f284037fb8b7b7050ed04a2103 09-Mar-2016 Makoto Onuki <omakoto@google.com> Implement LauncherApps.startShortcut().

Bug 27548047

Change-Id: I357732e22be0959fb573fd6cdaee7c6b439ef7c4
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
6f7362d92573e4ae693bc513dca586d6a4eb087b 04-Mar-2016 Makoto Onuki <omakoto@google.com> Introducing ShortcutManager

What's supported:
- Most APIs are implemented, except for SM.updateShortcuts(),
the icon APIs in LA, and LA.startShortcut().
- Persisting information, except for icons
- Throttling

In addition, now PersistableBundle has a public copy
constructor from a Bundle. (Do we want to @hide it?)

TODOs:
- Add icon support
- Implement missing APIs
- Listen to PACKAGE_* broadcasts and do clean-up
- Support multi-launcher apps (pinned shortcuts per launcher)
- Dev option to reset throttling
- Load throttling config from Settings
- Backup & restore
- Figure out LauncherApps permissions (BIND_APPWIDGETS??)
- Other minor TODOs in the code
- Better javadoc

Note: This requires Idf2f9ae816e1f3d822a6286a4cf738c14e29a45e

Bug 27325877

Change-Id: Ia5aa555a4759df5f79a859338f1dc5e624cd0e35
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
369aad0e23a1ca1417018c540730915760fe2ed3 17-Feb-2016 Winson <winsonc@google.com> Don't exclude app info from recents.

Bug: 27216373
Change-Id: Idc419f8922664c618ac6ddc8287b57c89084a2a3
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
b1b302660cf5b1b1c5b342cc90eca93b8f66890c 09-Feb-2016 Kenny Guy <kennyguy@google.com> Support FBE for managed profiles.

Allow launcher to see and attempt to launch non-crypto
aware application when profile is locked.
Hide unlock notification until parent user is unlocked.
Have unlock notitication use confirm credentials to unlock
the profile.
Updated notification strings as per suggestions in mocks
to make it clearer between users and profiles.

Bug: 27038260

Change-Id: If2d2c8148670d814544f4edd44193d15da32a289
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
772427555f2624b38124ab8e586ac0ccc451eb53 15-Jan-2016 Kenny Guy <kennyguy@google.com> Update PackageMonitor and LauncherApps for suspended apps.

Allow launchers to read ApplicationInfo from LauncherApps
to support suspended flag.
Provide callback to launchers via LauncherApps for suspend
/unsuspend broadcasts.

Change-Id: I772a121c45f60f926e8343bb6f181bef4e8929d3
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
cd65448ccd13c4c2d0fe9e9623fec3a898ab9372 09-Jan-2016 Jeff Sharkey <jsharkey@android.com> Even more PackageManager caller triage.

Finish moving all UID/GID callers to single AIDL method that requires
callers to provide flags.

Triage AppWidgets and PrintServices, which currently can only live on
internal storage; we should revisit that later.

Fix two bugs where we'd drop pending install sessions and persisted
Uri grants for apps installed on external storage.

Bug: 26471205
Change-Id: I66fdfc737fda0042050d81ff8839de55c2b4effd
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
6cbc2fec91c8eae62b0ed578523af4f9765f9c17 24-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Using ParceledListSlice to get the list of activities in LauncherApps

Bug: 25430879
Change-Id: I3a93bb1abcbcc54bc467e57c51f592b5946850cf
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
b6830197450d5a2befaf0dc4f7e73850f4c55846 26-Jun-2015 Nicolas Prevot <nprevot@google.com> Add flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in LauncherAppsService.

Without this fix:
When starting an activity that was an activity-alias, in the work profile:
If this activity was already running, it caused the activity to be
created a second time instead of restarting the first one.

BUG:21411331

Change-Id: Ieb323885c589caed2675765cd5eed8c311535b92
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
dcf21d15456e5aca28d063aea73139e30842e6d1 01-Oct-2014 Winson Chung <winsonc@google.com> Fixing invalid check to get component enabled state. (Bug 17679693)

Change-Id: I225d59bf766122d667d990d7e5b1971c6e8af2aa
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
c788487ae5b28bb6f84410fcdb101f0bdfcd467e 09-Sep-2014 Alexandra Gherghina <alexgherghina@google.com> Removing the NO_CROSS_PROFILE flag for intent forwarding

Bug: 17435289
Change-Id: Iffbecd3cf9338a8633bfcc5bc47247bfc50e7546
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
466d203c4ff032477d9a6bdb077ce3cd9b4fe070 23-Jul-2014 Kenny Guy <kennyguy@google.com> Add method to launch settings app details page.

Add a method to LauncherApps to allow launchers to
show application details for an app in a managed profile.

Bug: 16371359
Change-Id: I23acb4365c09e4a7b9fa742ae6fc7e04434f45aa
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
2df1892f411de6fa93ba487e3c4d23a079b74fcb 17-Jul-2014 Kenny Guy <kennyguy@google.com> Check for exported and category before starting activity.

Make LauncherAppService check that component passed to
startActivityAsUser is exported and has the category
Intent.CATEGORY_LAUNCHER before starting it.

Bug: 15989072
Change-Id: I29d03fae49ff0ca8d7f7524f5e71895d62ff3cae
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
fa4533f3a07ebed479d2a0e7af7d6e03d4417d41 24-Jun-2014 Alexandra Gherghina <alexgherghina@google.com> Skip forwarding launcher intents

If we forward intents when looking up launcher icons, we end up
having an icon for a disambig activity instead of the apps for that user.

Bug: 15769854
Change-Id: Ia57525466dba57b6669b2b5cedf98f202d08f586
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
df7db074b5e6a19c8a33c2cc6be88f85eb5ee47c 01-Jun-2014 Amith Yamasani <yamasani@google.com> Derive LauncherAppsService from SystemService

And encapsulate the aidl interface implementation.

Change-Id: Id9a2544b411648e2596de18682079a64e95b0710
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
cea2978737146485b88f06b24b5df5656f9586e1 06-May-2014 Alexandra Gherghina <alexgherghina@google.com> Ensure only enabled profile apps can be launched

Change-Id: I396e99eb6b8a957d994962300eeffeec61d7c46a
Bug: 13691041
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
2871654830e94445842d6a67d775d7c317a7f2c0 07-May-2014 Kenny Guy <kennyguy@google.com> Limit package launcher apps callback to enabled users.

Change-Id: I8e42756647025677203a7dfb1dd2d040ac6e32db
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
932249db930d78131c4314ff46ec5fca76cb46cd 01-May-2014 Amith Yamasani <yamasani@google.com> Deliver package broadcasts only to related profiles.

Store the listener's userhandle in a cookie and compare profile
relationships before delivering package broadcasts to a listener.

Basically, don't leave TODOs around, they'll result in bugs :)

Bug: 14436558
Change-Id: I57a21719caab6cf54b78de7be2eca3e398dc6288
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
53fa4ec7f466e70fe3e33d15c4abfc9bb557eb10 29-Apr-2014 Kenny Guy <kennyguy@google.com> Extend LauncherApps service to expose enabled state.

Provide methods for checking if a package or activity
is enabled for a given profile.

Change-Id: If9cb15dc9398a709e60e7b689b664c24c49fcc16
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
1a4e0b998030bb86196559947f417ee6fe117644 23-Apr-2014 Kenny Guy <kennyguy@google.com> Fix bug with getLauncherActivities ignoring packageName.

Change-Id: Ica5817378a24cb4b68e2c99e37cd214d3fde8ba4
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java
4f58263d02f296430a9653126d28501e95c7bb6c 19-Feb-2014 Amith Yamasani <yamasani@google.com> Launcher APIs and broadcasts for managed profiles

UserManager
- Corp badging
- Querying list of managed profiles

Launcher API
- LauncherApps and Service to proxy changes in managed profile
to the launcher in the primary profile
- Querying and launching launchable apps across profiles

Change-Id: Id8f7b4201afdfb5f414d04156d7b81300119289e
/frameworks/base/services/core/java/com/android/server/pm/LauncherAppsService.java