9c850012cacf0af4a392294566a8c7c897dc8771 |
|
27-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Prevent shortcut access when user is locked Also add some test utility methods that'll be used by CTS. Bug 30406401 Change-Id: I9396acebbdb3cbe64f6e85877ee62a2131cd6e61
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.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/ShortcutParser.java
|
6771d73703d35f2b28b8602dcbbed88fdffb9a0b |
|
14-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Don't accept resource references in string fields Detect it when a developer accidentally uses @string/... in string fields and log an error rather than publishing shortcuts with wrong values. Bug 30140672 Change-Id: I98a60afd7f52282019a94a7a8c30a85ea4c7806b
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
ee6b6e4a1861336f8db52d8c93dbf32ee9615cfa |
|
30-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Make sure persisted default launcher still exists. - Also make sure to ignore unexported activities. (e.g. unexported activities shouldn't have shortcuts.) - Also add unit tests for package manager related operations. - Also remove stale TODOs (per-activity shortcut count check is implemented already.) Bug 29699769 Bug 29516954 Change-Id: Ia18301baf6bec1ad71ae195d9ae3d10bd8386fc4
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
b08790c3b2f3bdb0c2e2f7ff46e4584fb1127769 |
|
23-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Shortcut: Only "main" activities can have shortcuts. - Don't publish shortcuts when their target activities are not main. - Only scan manifest shortcuts for main activities. - When an app is updated, remove shortcuts that no longer belong to valid main activities. - Also re-publish manifest shortcuts after 'clear data' - Also listen to PACKAGE_CHANGED and disable/re-publish shortcuts properly. Bug 29355786 Bug 29582255 Bug 29601844 Change-Id: I6c701ce669cf30a227bc2af4aa01de467ef73e3a
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
df6da040e00cba255cad64d2d231aae62928607a |
|
16-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Update manifest shortcut XML schema Use the standard <intent> tag instead of custom tags. - Also fix setDynamicShortcuts(), which was broken in the previous CL. - Also tolerate runtime exceptions while parsing XMLs - Also fix b/29422018 while I'm at it Bug 29390156 Bug 29077932 Bug 29422018 Change-Id: I2756c9d66c6d7b2962a982d9e57a7d84a5755b28
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
9e1f5595bd7ffe3af6ca35b3235dfca0ecd07978 |
|
08-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManger: Auto-adjust ranks. Spec: go/shortcutmanager-spec-ranks Bug 28984376 Bug 28536066 Change-Id: Ibffb92233c62792af06eeadc5a9a6379d0506a3c
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
157b1628fd84dc3ef0355fddd8d281618f94d33e |
|
03-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: deal with changing resource IDs on app update - When an app is upgraded, all the resource IDs may change. So if a shortcut is previously published with an icon for res ID 100 and the publisher is upgraded, resource #100 may refer to something different. - So now the service also remembers resource names for icon resources, as wells as string resources. When an app is updated, the service fetch the updated resource IDs by name. - Also extract all string resources when a shortcut is published and persist them, so that even when the original string resources are removed from the app, the launcher can still show the extracted strings. - When the system locale changes, re-extract all string resources. - Also really hide the constants in ShortcutInfo that were accidentally made public. Change-Id: I23c29b45c1de5d76175229190a1533c9c62c5960
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
7001a6154088c87a31d56641762ff0c2a48f1d57 |
|
27-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Implement max # of shortcuts - Each activity (launcher icon) can have at most 5 dynamic + manifest shortcuts. Bug 28536066 Change-Id: Id34371d51c4a1c5e3df7debe3b71b535eb157b6c
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
eddbfecb8dd751161339a9ed16d07ce2e108a575 |
|
01-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: API rename The words "title" and "text" implies that "text" is a secondary label that's shown with the title, but it turned out the launcher would show only one of those depending on how much space it has. So now we change them to "shortLabel" and "longLabel" Note we're only changing the API surface -- in order to mimimize the impact to the code, internally we'll keep using the old names. - Also remove "shortcutRank" while I'm here -- it should be implied from the order of the XML elements. Bug 29057378 Change-Id: I3203f63b0318c7462c1c61fef43cf9755fa8c008
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|
22fcc68e6be0edaa98f3dacf79d580a5e5d50005 |
|
17-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Support manifest shortcuts - Now apps can publish shortcuts via AndroidManifest.xml (Sample: I5b127150) - Rename some APIs per API council feedback - Publishers can now "disable" shortcuts. (https://docs.google.com/presentation/d/1raUn1QBURDb1yrd6mSmVxII9ezNh3MWukODdtufJ29U/edit#slide=id.g13ef592464_7_39) Bug 28785283 Bug 28536066 Change-Id: I4a126841e43e40139bb4baa6d0f98ad7b3a75ac1
/frameworks/base/services/core/java/com/android/server/pm/ShortcutParser.java
|