Commit Graph

4098 Commits

Author SHA1 Message Date
Adam Powell
c72c505b23 Merge "Chooser filtering and caller direct share targets" into nyc-dev am: fe5e1a7
am: a1be176

* commit 'a1be176a42db8dad7dcebca8842b95bbf6cc6bf9':
  Chooser filtering and caller direct share targets

Change-Id: I17d733ef5f6d2381dea3050f666436fbfe185982
2016-04-09 05:50:11 +00:00
Adam Powell
52c39215db Chooser filtering and caller direct share targets
Let apps invoking the system chooser specify components to filter out
such as themselves; this will prevent duplicate nonsensical UX where
it doesn't make sense for an app to share to itself.

Similarly, let apps provide their own Direct Share targets for when
they do want to let users share via their own internal services in the
same UI. These options can be used together.

Also fix a bug where a lingering binder reference from a remote
ChooserTargetService that hasn't been GC'd in the remote process could
keep an active reference to a ChooserActivity instance.

Bug 28073484

Change-Id: Ib613b1153b49dfedf79574b1af7c45379eceec24
2016-04-08 08:40:38 -07:00
Vladislav Kaznacheev
b526b42509 Merge "Hide unnecessary extra name constants in ClipDescription" into nyc-dev am: e1efbce
am: ee03cdf

* commit 'ee03cdf9a71c67edd56f3dfef3c4258aa36800dc':
  Hide unnecessary extra name constants in ClipDescription

Change-Id: I425e34fa44893b1e745e387a8393df52bd275136
2016-04-07 22:32:01 +00:00
Vladislav Kaznacheev
e1efbceeb7 Merge "Hide unnecessary extra name constants in ClipDescription" into nyc-dev 2016-04-07 22:21:45 +00:00
Jeff Sharkey
a4ab470ad1 Merge "Clarify version docs." into nyc-dev am: cff1025
am: ea32701

* commit 'ea327017a90636083176e66bc7b597d718eab932':
  Clarify version docs.

Change-Id: Ib58f9be60c06011c544fe4fb991ee339f88894bc
2016-04-07 20:19:25 +00:00
Jeff Sharkey
cff102508c Merge "Clarify version docs." into nyc-dev 2016-04-07 20:08:18 +00:00
Jeff Sharkey
e721615f43 Clarify version docs.
Change-Id: I64cc9e5e51f12d33e770e73734efd89df20c8504
2016-04-07 14:07:10 -06:00
Todd Kennedy
956759a9e5 Merge "Only parse an APK once" into nyc-dev am: 9d8da4c
am: 40ec11a

* commit '40ec11a392c275f8914e8f663f1beeb6b6f6678b':
  Only parse an APK once

Change-Id: I7ad181116e896209257d9414b4ca85ca4727630b
2016-04-07 17:01:44 +00:00
Todd Kennedy
d9d438ac4e Only parse an APK once
During package installation, we were parsing the APK twice; once
in the context of the PackageInstaller and once in the context
of the PackageManager. Instead, the installer should just pass
the certificates to be used further in the process.

If the PackageManager doesn't receive certificates [or, if there's
an error using them], it will fallback to re-parsing the APK.

Bug: 27502465
Change-Id: I94ce551af54eaa9916228e933134debe50867d21
2016-04-06 15:16:43 -07:00
Dianne Hackborn
fd84a7af4f Merge "More work on issue #26390151: Add new JobScheduler API..." into nyc-dev am: d273f0d
am: cfb4721

* commit 'cfb472112dfac835950b4c53fdf921c569388114':
  More work on issue #26390151: Add new JobScheduler API...

Change-Id: Idd203c9daba08a3498c8184028554d5136101085
2016-04-06 19:45:48 +00:00
Todd Kennedy
1f713a4d77 Merge "Adjust javadoc for filter priority" into nyc-dev am: c2b2f6e
am: cccd0f5

* commit 'cccd0f59d0c4a15d63c3231b4373868e45faefd6':
  Adjust javadoc for filter priority

Change-Id: I3d320870f32a757cbfe16407a6837abd0e30c278
2016-04-06 19:39:10 +00:00
Dianne Hackborn
d273f0d659 Merge "More work on issue #26390151: Add new JobScheduler API..." into nyc-dev 2016-04-06 19:38:50 +00:00
Todd Kennedy
c2b2f6eeff Merge "Adjust javadoc for filter priority" into nyc-dev 2016-04-06 19:20:41 +00:00
Todd Kennedy
2c4078611a Adjust javadoc for filter priority
This clarifies the usage of setPriority() for receiver filters.
Should also adjust the XML description of android:priority to
better describe the new behaviour for activity filters

Bug: 26417683
Change-Id: I96b2d90d71640041e232c401cf6e6838dbdbfeab
2016-04-06 10:57:51 -07:00
Todd Kennedy
478d2b92b4 Merge "Move cert tracing to PackageParser" into nyc-dev am: 4bb8030
am: 87a30ba

* commit '87a30bae4036729c0bcfdef7c878fba8bfc985c2':
  Move cert tracing to PackageParser

Change-Id: Ic932ef86cf38564477da3cb7d571f0b246f057b1
2016-04-06 17:40:26 +00:00
Todd Kennedy
0f4bc2b800 Move cert tracing to PackageParser
Tracing for cert collection in PackageManagerService was only
catching one of a couple usages. Move tracing lower in the
call stack to ensure tracing exists for all calls.

Also added a new tag to differentiate between verifying v1 & v2
signatures.

Bug: 27502465
Change-Id: Ie29f326e44f32cdbea1572714689c82f07ca12ba
2016-04-06 10:25:24 -07:00
Vladislav Kaznacheev
5d196673b8 Hide unnecessary extra name constants in ClipDescription
Bug: 27530944
Change-Id: I6989a55ea4f5d16d7cfd2ba3ab9342f0be34113c
2016-04-05 17:12:25 -07:00
Dianne Hackborn
141f11c82a More work on issue #26390151: Add new JobScheduler API...
...for monitoring content providers

- Improve media provider change reporting so that observers can
  avoid spurious reports of the top-level content directory changing.
- Fix a bug where collected content changes while a job was running
  were not being properly propagated to the next job.

Change-Id: I29e3c2960e6fec75b16ee3ee6588d47342bf8c75
2016-04-05 15:58:42 -07:00
Rubin Xu
284e8a441a Merge "Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two." into nyc-dev am: 63d1ee4
am: 586da02

* commit '586da02e83084174519aead33c1329e76a73b479':
  Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two.

Change-Id: I18ec427abd07e39cfdc90d31be420c988ef1ec60
2016-04-05 15:00:04 +00:00
Rubin Xu
63d1ee45ee Merge "Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two." into nyc-dev 2016-04-05 14:52:02 +00:00
Alan Viverette
9fbf66ac37 Merge "Fix bad workaround docs in Resources.getDrawable()" into nyc-dev am: 16aaa3e
am: 1323b45

* commit '1323b45ff5bd4c0f4b28562b8ef8e3c6cee33fae':
  Fix bad workaround docs in Resources.getDrawable()

Change-Id: I014d58922ffe4c8376ac437bea5c99b99ea08396
2016-04-05 14:26:47 +00:00
Alan Viverette
952802e2d1 Fix bad workaround docs in Resources.getDrawable()
The real solution is to use ContextCompat, but we can't reference support
library from framework. C'est la vie.

Bug: 27727320
Change-Id: Ib9bcd5f2bdce1996f02fd44877df9ba202b26edc
2016-04-04 15:33:41 -04:00
Rubin Xu
e95057ade1 Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two.
Add more comment to EXTRA_QUIET_MODE

Bug: 27532254
Change-Id: I68a217561afca8b87f523c62393cdad097d5b75d
2016-04-04 16:08:47 +01:00
Todd Kennedy
b7a142063c Merge "Fix intent filter priorities" into nyc-dev am: 6dffdf8
am: c8647f9

* commit 'c8647f9ea47b8081cce54c96e745f091e0590b38':
  Fix intent filter priorities

Change-Id: I4ec37ac340ed083d346bb782146588d65e376a1b
2016-04-04 14:31:55 +00:00
Todd Kennedy
5585dd971e Fix intent filter priorities
There are now three rules that guard intent filter priorities:
1) Only privileged applications will be granted a >0 priority
   filter [previously, _all_ system applications could do this]
2) There are certain actions that are considered protected [eg
   ACTION_VIEW, ACTION_SEND, ...] and even privileged applications
   will NOT be granted a >0 priority filter. There is one, and
   only one, exception for the SetupWizard.
3) Updates will NOT be granted a priority greater than the priority
   defined on the system image.

Bug: 27450489
Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
2016-04-01 12:48:51 -07:00
Russell Brenner
ad85c7be86 Merge "Add new protection level for setup wizard" into nyc-dev am: 3ccb354
am: 395db24

* commit '395db247fb8e1273fcc9d15e7821033477ca4e6c':
  Add new protection level for setup wizard

Change-Id: Ic6287b5bdaa66ffd4cfdc094329557ba12afd6a3
2016-04-01 16:36:31 +00:00
Russell Brenner
3ccb35421d Merge "Add new protection level for setup wizard" into nyc-dev 2016-04-01 16:22:49 +00:00
Todd Kennedy
34010044ea Merge "Allow retrieving info /system components" into nyc-dev am: 0242467
am: 320e7ef

* commit '320e7ef2b2468a3e00ebda557f3756cc94e713d6':
  Allow retrieving info /system components

Change-Id: I7640bdf4734a8a859c55aac78fe2655a3eae4a3c
2016-04-01 14:33:16 +00:00
Todd Kennedy
02424676c6 Merge "Allow retrieving info /system components" into nyc-dev 2016-04-01 14:21:21 +00:00
Russell Brenner
b23346639b Add new protection level for setup wizard
Adds PROTECTION_LEVEL_SETUP, a privileged permission for use only by
the setup wizard.

Bug: 20016740

Change-Id: Ib95e349c54d5d12465bf43162975dfb628ef2434
2016-03-31 17:32:07 -07:00
Todd Kennedy
d6ee0ba579 Allow retrieving info /system components
Generally we return info for the latest installed package; which could
either be a built-in [i.e. on the /system partition] package or a user
updated package. In certain circumstances, we want to be able to get
the version on the /system partition regardless of whether or not the
user has updated it. We do this by passing MATCH_FACTORY_ONLY to
getPackageInfo().

Bug: 27469181
Change-Id: I8dd1d110e2d72e5c6f024812d0b5d15d8b217347
2016-03-31 15:53:45 -07:00
Sunny Goyal
c93e9f5b8a Merge "Chaning LauncherActivityInfo to return a density specific non-badged icon" into nyc-dev am: 56d3dd8
am: 80d57ef

* commit '80d57efd94b7c394a39f78a2425d82aed5c75485':
  Chaning LauncherActivityInfo to return a density specific non-badged icon

Change-Id: Idda2dec39ecb821578ba213b4046e5210a6bfe63
2016-03-31 17:54:51 +00:00
Sunny Goyal
56d3dd8af7 Merge "Chaning LauncherActivityInfo to return a density specific non-badged icon" into nyc-dev 2016-03-31 16:56:31 +00:00
Jeff Sharkey
562ac8b9bb Merge changes Ifecff4f1,Ia302de46 into nyc-dev am: 2c0ae91
am: 4d5806d

* commit '4d5806d0e662e0163ad174f61779a4d4ddf48b81':
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.

Change-Id: I7aa9858905cc241343da5a1fb3479bf3f74b8ba8
2016-03-31 07:00:10 +00:00
Jeff Sharkey
2c0ae91f2d Merge changes Ifecff4f1,Ia302de46 into nyc-dev
* changes:
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.
2016-03-31 06:48:55 +00:00
Jeff Sharkey
70168dde6e Make Parcelable classes final, API cleanup.
Remove some Context methods that leaked through.  Add lint rule to
recommend using List<? extends Parcelable> instead of Parcelable[].

Bug: 27932224, 27930145, 27932911
Change-Id: Ia302de46cdb0c5101fa175a09316df91aeefcf0d
2016-03-30 23:31:39 -06:00
Sunny Goyal
bc48d8c6a8 Chaning LauncherActivityInfo to return a density specific non-badged icon
Bug: 27877821
Change-Id: I57c39c197b2480d9620a1719ace076cc6c936652
2016-03-30 15:56:34 -07:00
Makoto Onuki
24208cf7af Merge "Clean up javadoc." into nyc-dev am: 04a5473
am: 458e843

* commit '458e8436f93cb0e1ca2d2c49bd9e55f5fc11441e':
  Clean up javadoc.

Change-Id: I1193510ae71e49eb5a9bb634b97627cfbf02d5be
2016-03-30 19:21:47 +00:00
Makoto Onuki
0e65d36607 Clean up javadoc.
Bug 27548047

Change-Id: I10410c969136db634bb98687710d011d159bca07
2016-03-30 10:15:55 -07:00
Makoto Onuki
4f1f7b0167 Merge "ShortcutManager: Support secondary text field." into nyc-dev am: ca0ee28
am: a3d8cdc

* commit 'a3d8cdca997e0577bcb1d9091880a0267e2d3f38':
  ShortcutManager: Support secondary text field.

Change-Id: I5262a756c5fe50e498192aea8e247f46d5742edc
2016-03-30 16:17:36 +00:00
David Brazdil
dac7ce8efb Merge "Move OTA package update before fstrim, hide "Optimizing apps" dialog" into nyc-dev am: b67b5b9
am: 72ecc75

* commit '72ecc752ce1cb3683a6671e2de25123bead2df83':
  Move OTA package update before fstrim, hide "Optimizing apps" dialog

Change-Id: Ic4d927f18f741bf81ad64882e5acc1665f13809e
2016-03-30 16:16:09 +00:00
Makoto Onuki
ca0ee285bb Merge "ShortcutManager: Support secondary text field." into nyc-dev 2016-03-30 15:30:17 +00:00
David Brazdil
f5c444ffd4 Move OTA package update before fstrim, hide "Optimizing apps" dialog
This patch moves the updating of packages before performing fstrim,
which runs asynchronously anyway, and stops showing the UI dialog.

Bug: 27350503
Change-Id: I6fceda10d7696f9badb97978fb9dc7927d698a4b
2016-03-30 13:39:14 +01:00
Makoto Onuki
8fff90ca7c Merge "ShortcutManager: proper work profile support" into nyc-dev am: d5b745a
am: 4fc3441

* commit '4fc34416fb8d389557934f3000dab7b6fbafb97c':
  ShortcutManager: proper work profile support

Change-Id: I1a708988b7e9c505370e2399572dca6caa9d5cef
2016-03-30 00:29:13 +00:00
Makoto Onuki
e3ae7ec14a ShortcutManager: Support secondary text field.
Bug 27548047

Change-Id: I2d184bab2c26e351b7326945fa0cacf826f16d1e
2016-03-29 16:42:12 -07:00
Makoto Onuki
d5b745a9e6 Merge "ShortcutManager: proper work profile support" into nyc-dev 2016-03-29 22:45:03 +00:00
Suprabh Shukla
273472810b Merge "Removing unused intent extra" into nyc-dev am: 7a3bff1
am: 13638e2

* commit '13638e29df8a031c787e809ca9c62f303a7013b6':
  Removing unused intent extra

Change-Id: Ic61e004a36124515eb7d0cb4e24b85d9d5370116
2016-03-29 22:01:49 +00:00
Suprabh Shukla
7a3bff1847 Merge "Removing unused intent extra" into nyc-dev 2016-03-29 21:48:37 +00:00
Makoto Onuki
9da23fc6ac ShortcutManager: proper work profile support
Bug 27548047

Change-Id: I8acea3355f8974a551f53814624dec30732f7b2f
2016-03-29 14:42:02 -07:00
Michal Karpinski
7959416308 Merge "Moving app process logging from AMS to PMS" into nyc-dev am: 5393784
am: acc9468

* commit 'acc9468e3324046f6d7ce06de9a3d19e16849ba1':
  Moving app process logging from AMS to PMS

Change-Id: I9dcd57ee35a3102b9e13bde64f24f56991dd2620
2016-03-29 20:46:29 +00:00