Commit Graph

2746 Commits

Author SHA1 Message Date
Jeff Sharkey
1cb2d0d4bb Persist install sessions, more lifecycle.
To resume install sessions across device boots, persist session
details and read at boot.  Drop sessions older than 3 days, since
they're probably buggy installers.

Add session callback lifecycle around open/close to give home apps
details about active installs.  Also give them a well-known intent
to show session details.

Extend Session to list staged APKs and open them read-only, giving
installers a mechanism to verify delivered bits, for example using
MessageDigest, before committing.

Switch to generating random session IDs instead of sequential.

Defensively resize app icons if too large.  Reject runaway
installers when they have too many active sessions.

Bug: 16514389
Change-Id: I66c2266cb82fc72b1eb980a615566773f4290498
2014-07-31 15:17:03 -07:00
Alexandra Gherghina
a709314537 Use the appropriate default icon
ComponentInfo subclasses and ApplicationInfo have different ways to retrieving
the default icon. Previously, in CL I2db300a69a08030eacc245ee91556f0443ba5878
we defaulted everything to the green Android. This makes sure that they get the
right default.

Bug: 16630068
Change-Id: Ifa499eac6f1543523d6ecf0831175bfd6b772edb
2014-07-31 15:43:11 +00:00
Jose Lima
73915cf2ca Added LEANBACK_SETTINGS Intent category
- Added new Intent category (as a hidden/system API) to be
     used to identify Leanback settings activities that should
     be listed in the Leanback launcher.

Change-Id: Ia31244fb87a66f63ddad562e02e577111573d728
2014-07-30 18:56:25 +00:00
Kenny Guy
b42c89bfb0 Add optional handler to LauncherApps callback
Allow caller to pass in handler to LauncherApps
when adding a callback.
Stop apps adding callbacks twice.

Bug: 16401733
Change-Id: I2e192091c1b79acb905d899e96d6dacd45e561da
2014-07-30 11:21:01 +00:00
Jae Seo
783645e99f TIF: Merge TvParentalControlManager into TvInputManager
This change addresses the following API council feedback.

TvParentalControlManager:
-- Replace the listener interface with a broadcast Intent with well-known
   action, something like ACTION_BLOCKED_RATINGS_CHANGED.
-- TvParentalControlManager goes away, and two remaining methods move to
   TvInputManager.

== Implementation changes ==
-- The user-selected rating preferences should be stored in an XML file, and
   loaded at boot by your internal system service.  It should _not_ be stored in
   a Secure/Global setting.

Bug: 16542165
Change-Id: I278df963576652ec9163a66c1ef99419fcdb36c2
2014-07-30 15:39:39 +09:00
Amith Yamasani
ad97b8b905 Potential fix for apps disappearing in launcher on system server crash
Throw RuntimeException to launcher if there was a RemoteException
from LauncherAppsService. This matches the behavior of previous
calls that were made to PackageManager that could have resulted
in a RemoteException if the system server was dying/dead.

Bug: 15687732
Change-Id: Ifda3fda209141b361a286fc033217acfa0ec196e
2014-07-29 16:25:17 -07:00
Alan Viverette
60727e07c6 Clean up TimePicker and DatePicker styling
Removes the time and date picker specific themes and defaults their
theme attributes to use the alert dialog theme attribute's value.

BUG: 14973897
Change-Id: Id5cc74ea0c1a379fc1ee76b354a1bb5ba329585a
2014-07-29 12:49:50 -07:00
Alan Viverette
500c56089f Partial revert "Add better errors for unresolved attributes, remove unused code"
This reverts commit 0e42f4b98752b6457b04887e2a557fa007da73d7.

Change-Id: Ic3f0cb709c7aaa0a9892d728311886714ba73f22
2014-07-29 11:30:35 -07:00
Alan Viverette
216d3e6d81 Add better errors for unresolved attributes, remove unused code
Change-Id: Icf81a81b9ce97b5a5edff85569e6e3da93149436
2014-07-29 10:35:42 -07:00
Alexandra Gherghina
a71e3903e5 Return a default icon from the package manager directly
Bug: 16369104
Change-Id: I2db300a69a08030eacc245ee91556f0443ba5878
2014-07-28 17:30:56 +00:00
Jorim Jaggi
8a9068573c Merge "Fix status icon reappearing for legacy activities" into lmp-dev 2014-07-24 15:35:58 +00:00
Jeff Sharkey
e12a125972 am cf85d14e: am bf9964cb: am e52581f6: Offer force-dex-opt when running as root.
* commit 'cf85d14e12824bb51631b2a8d8cd79ff0d0e26fb':
  Offer force-dex-opt when running as root.
2014-07-25 21:26:42 +00:00
Jeff Sharkey
20e0c50f60 Offer force-dex-opt when running as root.
Recently we removed the PackageManager inotify triggers, meaning the
only supported ways of installing apps were:

-- adb install -r Foo.apk
-- adb shell stop && adb sync && adb shell start

Iterating on most system apps (like Settings) can use the first
approach, but it doesn't work for "persistent" processes like
SystemUI.  (ActivityManager is very particular about how it deals
with persistent apps, and it always sticks with the first
ApplicationInfo found at boot.)

So to enable rapid iteration on persistent apps, we now offer the
one missing piece of forcing a dexopt with a new pm force-dex-opt
command only available to -eng or -userdebug builds.  Typical use
for iterating on persistent apps now looks like this:

$ mmm frameworks/base/packages/SystemUI/ && adb sync &&
    adb shell pm force-dex-opt com.android.systemui &&
    adb shell kill `pid systemui`

Yay!

Change-Id: I0ae2467f1d7cda56c70ba20953cd25fa8ee766ff
2014-07-25 21:11:47 +00:00
Jeff Sharkey
b64fd1957f am 891d3aa9: am a475ef57: am 4d700a9c: Merge "PackageInstaller changes based on feedback." into lmp-dev
* commit '891d3aa977653fb79f544f69fab2d214e58cd2b3':
  PackageInstaller changes based on feedback.
2014-07-25 19:25:10 +00:00
Jeff Sharkey
16c8e3f494 PackageInstaller changes based on feedback.
Mostly cosmetic changes from API council feedback.

Bug: 16543552
Change-Id: Ic926829b3f77c31f50a899c59b779353daf00d59
2014-07-25 11:59:48 -07:00
Kenny Guy
b7aa6b22b2 am 5984703a: am 2afedc82: am 0f151df6: Add method to launch settings app details page.
* commit '5984703aed48789a7aaa6dd0d1dd55a288f7529a':
  Add method to launch settings app details page.
2014-07-25 16:11:16 +00:00
Kenny Guy
466d203c4f 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
2014-07-25 15:59:51 +00:00
Nicolas Prevot
73b941f761 am c5435cdd: am e7469eca: am c50bbc02: Merge "Migrate extras to ClipData for image/video capture intents." into lmp-dev
* commit 'c5435cdd91f6778d753f99ee6ee8c5132e0ae962':
  Migrate extras to ClipData for image/video capture intents.
2014-07-25 12:38:32 +00:00
Adam Lesinski
ec1fb4184e am eebc0d09: am 1038bf1d: am 94499248: Merge "Add <feature-group> tag and change aapt badging" into lmp-dev
* commit 'eebc0d090d36f8d00b841faea1bb75444963272a':
  Add <feature-group> tag and change aapt badging
2014-07-24 23:49:51 +00:00
Adam Lesinski
d4bd75be4f Merge "Add <feature-group> tag and change aapt badging" into lmp-dev 2014-07-24 15:36:09 +00:00
Nicolas Prevot
d1c99b1fe8 Migrate extras to ClipData for image/video capture intents.
The intents ACTION_IMAGE_CAPTURE, ACTION_IMAGE_CAPTURE_SECURE and ACTION_VIDEO_CAPTURE are now handled in a way
similar to ACTION_SEND and ACTION_SEND_MULTIPLE.
Migrate the uri in the EXTRA_OUTPUT extra to clipData, and add the flag GRANT_WRITE_URI_PERMISSION.

The userIds are now added to extra uris in the process receiving the intent, (not in the system process), because the
system process may not be able to parcel/unparcel the extras.

BUG: 15534203

Change-Id: I8f79666b726bc6d7745bf777ad3c7518945c5cc3
2014-07-25 10:22:19 +01:00
Nicolas Prevot
3f7777fa4f Storing the app who sets a CrossProfileIntentFilter.
When we add a CrossProfileIntentFilter, we store the package and userId of the calling app
inside the CrossProfileIntentFilter.
When an app calls clearCrossProfileIntentFilters, we only remove the filters that the calling app
has set itself.

BUG: 16537557

Change-Id: I6e7bc859383ea66553d9f4230365df8ba27525f3
2014-07-28 10:47:12 +01:00
Jay Civelli
cdd5fe98b6 Revert "Add new intent to prompt user for their device credential. DO NOT MERGE"
Breaks the JavaDoc generation.

This reverts commit c82a11573810ed4d1f40568d19afc27f726829af.

Change-Id: I9e38a0d6ba0935d4967b50023030c99727bfc839
2014-07-25 23:42:07 +00:00
Jay Civelli
3087e49667 Add new intent to prompt user for their device credential. DO NOT MERGE
Bug: 16242766
cherry-pick from master 2e7beadedeb7d41d8c2d1cc62956bdd9f5081d26

Change-Id: I76efb3bef888eb1e94c4e5455934816fb4acc5bc
2014-07-25 22:04:19 +00:00
Nicolas Prevot
b593e79436 am 498694c6: am 1b4a211d: am 4fe8fe2b: Merge "Making the clipboard work across users." into lmp-dev
* commit '498694c67112923f85f3572c4b7ad093283d1f68':
  Making the clipboard work across users.
2014-07-24 19:59:48 +00:00
Alan Viverette
f6a5fd39a0 am 8ec7d394: am 014089cd: am 82b83fb5: Merge "Use activity for brightness dialog" into lmp-dev
* commit '8ec7d394252ee801ded0bde940c8f7358cbc9099':
  Use activity for brightness dialog
2014-07-23 22:00:07 +00:00
Adam Lesinski
2c72b6822d Add <feature-group> tag and change aapt badging
A <feature-group> represents a set of features required
for an app to be compatible with a device. Multiple
<feature-group> elements represent a logical 'or'
of required features.

Features defined in the old way with <uses-feature> tags
under the <manifest> tag are automatically added to each
feature-group defined.

Defining a <feature-group> means that any default
features are not included (such as android.hardware.touchscreen)
and declared permissions do not imply any features.

Change-Id: I45626f0fdc546e47bcf2aead7ef05ebcca12b023
2014-07-23 14:11:46 -07:00
Nicolas Prevot
f1939901d2 Making the clipboard work across users.
When copying from the parent: the ClipData can be pasted in the managed profile.
When copying from a managed profile: it can be pasted in the parent,
unless the policies says it's disabled. In which case, the clipboard of the parent becomes empty.
Supporting content uris.

BUG: 15186236

Change-Id: I522564a7c07ff21df137adcda980bb52e5739964
2014-07-24 10:25:57 +00:00
Alan Viverette
f84bc66b21 Merge "Use activity for brightness dialog" into lmp-dev 2014-07-23 18:50:38 +00:00
Jeff Davidson
d73aa15516 am a98f35ba: am dfe72ae3: am 69c976c6: Merge "Expose NETWORK_SCORE_SERVICE as @SystemApi." into lmp-dev
* commit 'a98f35ba7e61f75123a8829a7e2368e6bc138a03':
  Expose NETWORK_SCORE_SERVICE as @SystemApi.
2014-07-23 17:02:44 +00:00
Jeff Davidson
5ad20790a1 Expose NETWORK_SCORE_SERVICE as @SystemApi.
Bug: 15833200
Change-Id: Ide17bf0065ca7f5ab13e913dd6078b6c62741243
2014-07-23 09:41:40 -07:00
Narayan Kamath
4c6ce23816 Remove copy of Locale.adjustLanguageCode.
(cherry picked from commit 1d31a5f824)

Change-Id: I7b30a153a44dc1f99a9ddfe256b770d7305a74b7
2014-07-23 11:09:26 +01:00
Alexandra Gherghina
0e9ac20d7e Do Not Merge Per-user API for master sync
Change-Id: I6a8088eb3bfddae4c8e38904dd26baf3c7c09c9e
(cherry picked from commit 222aea8bd997807784dc99ca53f63280d384fdf0)
2014-07-22 20:15:45 +00:00
Alexandra Gherghina
d6babbb6ce Merge "Per-user API for master sync" 2014-07-17 19:51:18 +00:00
Narayan Kamath
fbc5b48568 am acd4f7cf: am b5c714fc: am e242111c: Merge "Remove copy of Locale.adjustLanguageCode."
* commit 'acd4f7cf37487c55c6b15aa40f2da57b542dcebb':
  Remove copy of Locale.adjustLanguageCode.
2014-07-22 13:53:12 +00:00
Dianne Hackborn
4944bc0c40 am 4db59328: am d8b0edbf: am 8f5105c6: Merge "Add permissions associated with app ops." into lmp-dev
* commit '4db593286f561ad5af1c32f9dbd12ebd8ca0d242':
  Add permissions associated with app ops.
2014-07-22 13:53:04 +00:00
Narayan Kamath
b0490cdefe am b5c714fc: am e242111c: Merge "Remove copy of Locale.adjustLanguageCode."
* commit 'b5c714fca79028116db0b00157dc09616efeaa95':
  Remove copy of Locale.adjustLanguageCode.
2014-07-22 13:49:36 +00:00
Amith Yamasani
91963bf51c am 4fc62368: am ff053445: am f6feac69: API Review: Improvements to RestrictionsManager API
* commit '4fc623682a039650d86c4ccb87da66191573e2e3':
  API Review: Improvements to RestrictionsManager API
2014-07-22 00:17:18 +00:00
Amith Yamasani
9c44933958 API Review: Improvements to RestrictionsManager API
Use an activity intent for local approval instead of a type.
Use PeristableBundle instead of Bundle.
Pass requestId as an explicit argument in cases where it's required.

Bug: 16400892
Change-Id: Id882033f17c39aa9cd63a7eeb73bb7b51f98cf5b
2014-07-22 00:03:39 +00:00
Amith Yamasani
d84e59c70f am 5d5fa324: am b0cae189: am f8b67f1f: Rename setApplicationBlocked to setApplicationHidden
* commit '5d5fa324871437c3bd240ae231adae9bbea6b0ba':
  Rename setApplicationBlocked to setApplicationHidden
2014-07-21 22:37:09 +00:00
Amith Yamasani
e5bcff624f Rename setApplicationBlocked to setApplicationHidden
This corrects the expected behavior of the app state. Hidden apps
can be installed by the store to be brought out of hidden state.

Bug: 16191518
Change-Id: Id128ce971ceee99ba1dea14ba07ce03bd8d77335
2014-07-21 22:18:40 +00:00
Craig Mautner
ee4c9ffb10 am ca30ccb5: am 28d5d4df: am 52cf4df1: Merge "Rename flag and attribute per API council" into lmp-dev
* commit 'ca30ccb556f6814c5ac4352adb95c7eb22652d6b':
  Rename flag and attribute per API council
2014-07-21 19:23:51 +00:00
Jesse Hall
67877b6634 am c7777484: am c623c94c: am 65c75169: Merge "Add FEATURE_OPENGLES_EXTENSION_PACK_ES31A" into lmp-dev
* commit 'c7777484547894a7817ac4428e5890dcf817262c':
  Add FEATURE_OPENGLES_EXTENSION_PACK_ES31A
2014-07-21 19:20:28 +00:00
Dianne Hackborn
526e843499 am 65f62f23: am 39285ff1: am 1648dbb4: Merge "Fix issue #16400873: Apps that show ads as new tasks stay in recents..." into lmp-dev
* commit '65f62f236395b44a0c168f1ec72855197927a885':
  Fix issue #16400873: Apps that show ads as new tasks stay in recents...
2014-07-21 19:19:18 +00:00
Adam Powell
91d67f9c7d am bd90f0ce: am 186802ac: am d0cb5fd8: Merge "Add EXTRA_REPLACEMENT_EXTRAS for ACTION_CHOOSER" into lmp-dev
* commit 'bd90f0ce2d052d2e0d753e0cc7b10a1f658b496e':
  Add EXTRA_REPLACEMENT_EXTRAS for ACTION_CHOOSER
2014-07-21 18:22:48 +00:00
Craig Mautner
1716baa6d3 Merge "Rename flag and attribute per API council" into lmp-dev 2014-07-21 15:42:19 +00:00
Craig Mautner
7f72f53704 Rename flag and attribute per API council
ActivityInfo.DO_NOT_PERSIST => PERSIST_NEVER.
android:persistableMode="doNotPersist" => "persistNever".

Fixes bug 16400594.

Change-Id: I94d25f7d2e3dc453b1251c89bce8c210a65dc331
2014-07-21 10:07:12 -07:00
Jesse Hall
19eb5cb80e Merge "Add FEATURE_OPENGLES_EXTENSION_PACK_ES31A" into lmp-dev 2014-07-20 04:41:30 +00:00
Dianne Hackborn
33f5ddd1be Add permissions associated with app ops.
Change-Id: I575ad7a3ceea59486ca601f69760b14f6269511d
2014-07-21 20:15:59 -07:00
Jesse Hall
7f51706265 Add FEATURE_OPENGLES_EXTENSION_PACK_ES31A
Bug: 15593761
Change-Id: Id1865cbf27c98a611cc6414fe47ee979c1d7cee2
2014-07-18 14:24:36 -07:00