195684 Commits

Author SHA1 Message Date
oleksii stepanian
161bd9aae4 Fix race condition in PackageManager.
When Google Play installs 2 apps concurrently (e.g.
personal and work profile) PackageManager can hit a
race condition when connection to media container has
not yet been established but the MCS_BOUND event is
triggered from MCS_UNBIND.

Detailed step by step scenario:
   1. package1 comes in
   2. INIT_COPY (initiate bind, add pending install)
   3. onServiceConnected triggers (MSC_BOUND)
   4. MSC_BOUND, process pending package and schedule MSC_UNBIND
   5. MSC_UNBIND is triggered once the package is verified
   6. service is diconnected
   7. package2 comes in
   8. INIT_COPY (initiate bind, add pending install)
   9. MSC_UNBIND scheduled at step 4
   10. MSC_UNBIND sees that there is a pending package,
       schedules MSC_BIND
   11. MSC_BIND arrives before service is connected and we fail.

Solution: do not fail if we wait for connection.

Bug: 21849046
Change-Id: I39928e1efc81ba64e45c622cc08cb786801d6569
2015-06-19 15:32:41 -07:00
Hyunyoung Song
8a1533ed2e Change com.android.launcher.permission.INSTALL_SHORTCUT permission to normal level
https://docs.google.com/document/d/12H0b6R2tmyIoNoOs2t8PbyzlGFcbxT8OnGpRb6P6c6s/edit

b/21853008

Change-Id: If9c4e88fd2074de17814120d111546d6ecf58cf4
2015-06-19 15:27:42 -07:00
Svet Ganov
1e575a0f32 Merge "Only grant runtime permissions to special components." into mnc-dev 2015-06-19 22:26:32 +00:00
Alex Klyubin
53a33da9af Merge "Support more KeySpecs in Android Keystore KeyFactory." into mnc-dev 2015-06-19 22:23:12 +00:00
Svet Ganov
adc1cf4604 Only grant runtime permissions to special components.
Now runtime permissions are granted only to components that are
part of the system or perform special system operations. For
exmple, the shell UID gets its runtime permissions granted by
default and the default phone app gets the phone permissions
granted by default.

bug:21764803

Change-Id: If8b8cadbd1980ffe7a6fc15bbb5f54a425f6e8f9
2015-06-19 15:17:56 -07:00
Amith Yamasani
b94761d0a4 Merge "App Standby : Association between content providers and their sync adapter" into mnc-dev 2015-06-19 22:08:13 +00:00
Amith Yamasani
37a40c24de 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
2015-06-19 15:04:58 -07:00
Jae Seo
81c754a54a TIF: Add the columns for the app-linking to TvContract.Channels
The app-linking allows channel input sources to provide activity links
from their live channel programming to another activity. This enables
content providers to increase user engagement by offering the viewer
other content or actions.

Bug: 21884742
Change-Id: Iabeea57884c63ac31ee164c27c6e2fe1860f15f6
2015-06-19 15:04:28 -07:00
Luan Nguyen
a36de70ad4 am cadd531e: am 4fdaf938: docs: Design section fixes for new templates
* commit 'cadd531ecf740783ee77ed5de8481a8242e4e8c8':
  docs: Design section fixes for new templates
2015-06-19 22:03:03 +00:00
Luan Nguyen
cadd531ecf am 4fdaf938: docs: Design section fixes for new templates
* commit '4fdaf938ee28577324a3068b915c01deb61ade78':
  docs: Design section fixes for new templates
2015-06-19 21:49:59 +00:00
Wale Ogunwale
93297d2086 Merge "Apply the scale to surfaceinsets when computing crop region" into mnc-dev 2015-06-19 21:32:15 +00:00
Quddus Chong
17f9ea77ac docs: Add link from TV design page on DAC to Android TV spec on Google Design site.
bug: 21786976

Change-Id: I7bee3feaa60d5a1a35ce2c1d93b957de150e9b86
2015-06-19 14:30:44 -07:00
Miao Wang
df584d34b5 Merge "[RenderScript] Add documentation for IntrinsicBLAS, and @hide annotations." into mnc-dev 2015-06-19 21:19:56 +00:00
Luan Nguyen
4fdaf938ee docs: Design section fixes for new templates
- Fix a number of pages in the Wear design docs

bug: 21762391
Change-Id: I26c18130cdd925d1b40f525dd209329ca2b5cd15
2015-06-19 14:18:18 -07:00
Adam Lesinski
b6a092990c Merge "BatteryStats: Record doze wake locks" into mnc-dev 2015-06-19 21:13:43 +00:00
Adam Lesinski
9425fe21c9 BatteryStats: Record doze wake locks
Doze wake locks don't actually hold the CPU awake, so we should record them
separately from full wakelocks, which is what we did before.

Bug:21949905
Change-Id: Ib4db3399069e0ad11f1f0dc6925a87ad0ad21ff9
2015-06-19 14:12:01 -07:00
Joe Fernandez
a309f4a041 am a8b518d7: am 041e01bb: am 003f8567: Merge "updates: build-cmdline-update" into lmp-mr1-ub-docs
* commit 'a8b518d7c2ca006ad52d5900ebb3ca831490d373':
  updates: build-cmdline-update
2015-06-19 21:08:08 +00:00
Quddus Chong
a19933bc0a docs: Updated Recommending TV Content lesson to support card customization.
bug: 21787002

Change-Id: I3c94fbce2ac7efff1749b76af3da47506812972c
2015-06-19 14:03:20 -07:00
Joe Fernandez
a8b518d7c2 am 041e01bb: am 003f8567: Merge "updates: build-cmdline-update" into lmp-mr1-ub-docs
* commit '041e01bbdffa85b9b5ffba201d36bd566eaa2651':
  updates: build-cmdline-update
2015-06-19 20:59:03 +00:00
Shishir Agrawal
d4f2bcdab5 Adding hidden TM calls to scan/select cell networks.
TM.getCellNetworkScanResults: Performs a radio scan for networks and returns
a list of OperatorInfo.

Tm.setNetworkSelectionModeManual: Manually selects a network and returns the
status of the selection.

Bug: 21563489
Change-Id: If64f30d6f1ed373c1d90433688389307f3dfee8c
2015-06-19 13:53:12 -07:00
Yorke Lee
c723b8d742 Merge "Don't save cached contact info in call log when adding call" into mnc-dev 2015-06-19 20:47:08 +00:00
Joe Fernandez
041e01bbdf am 003f8567: Merge "updates: build-cmdline-update" into lmp-mr1-ub-docs
* commit '003f8567defcb88b2e07b3f85f0b43f74d29b322':
  updates: build-cmdline-update
2015-06-19 20:45:35 +00:00
Alan Viverette
ac21d5c36e Merge "Invalidate the cached ripple drawable mask if mask layer changes" into mnc-dev 2015-06-19 20:43:19 +00:00
Alan Viverette
690a16c350 Invalidate the cached ripple drawable mask if mask layer changes
Bug: 21955350
Change-Id: I2e610a5a0af39668b7e9447cfd7d48d35e11d299
2015-06-19 13:42:39 -07:00
Joe Fernandez
003f8567de Merge "updates: build-cmdline-update" into lmp-mr1-ub-docs 2015-06-19 20:32:34 +00:00
Junda Liu
5385f5a0b8 Merge "Add comments to carrierconfigmanager for required permission." into mnc-dev 2015-06-19 20:31:56 +00:00
Junda Liu
fbd740c3ca Add comments to carrierconfigmanager for required permission.
Bug: b/20826627
Change-Id: Ia8a42f4792429e56108a423f27c3f843f6b0f958
2015-06-19 13:27:58 -07:00
Jonathan Basseri
48fb9d15ec Merge "Migrate 'csp_enabled' to CarrierConfigManager." into mnc-dev 2015-06-19 20:27:36 +00:00
Chien-Yu Chen
be2e38e01c Merge "ImageReader: Fix format workarounds for legacy devices" into mnc-dev 2015-06-19 19:51:42 +00:00
Adam Powell
98b7f89430 Fix regression in viewing app info from ChooserActivity targets
Also add metrics logging to ChooserActivity

Bug 21953567
Bug 21953720

Change-Id: I6bba2cfe9b9e551e6fe6f2d4f92fc040eebf355c
2015-06-19 12:38:45 -07:00
Rubin Xu
1213487aa7 New internal permission to protect apps against rogue Nfc message.
Bug: 19838376
Change-Id: Id23f6d14ce8d93988e4382ea0d0dc5c586456bf7
2015-06-19 20:38:43 +01:00
Jonathan Basseri
019523a8a4 Migrate 'csp_enabled' to CarrierConfigManager.
This variable controls whether SIM cards are allowed to disable manual
carrier selection, so it makes more sense for it to be managed as
carrier config.

Currently the variable is only used in device overlays
for specific networks, but we are dropping the device-overlay so that
this simply applies to those networks.

Change-Id: Ia6ba6a89c94c0916c19bdf792e48a4feac87eded
2015-06-19 12:28:08 -07:00
Alan Viverette
f3e8dca84b Merge "Create ListPopupWindow handler against main looper" into mnc-dev 2015-06-19 19:21:11 +00:00
Yorke Lee
457df5ff7e Don't save cached contact info in call log when adding call
Bug: 20520236
Change-Id: I8ca051d4b93624b51de73640544ee5c6afbc0b7a
2015-06-19 12:01:05 -07:00
Selim Gurun
8d79e36c88 Merge "Clarify handling client certificates" into mnc-dev 2015-06-19 18:48:49 +00:00
Selim Gurun
36cf701e1e Clarify handling client certificates
Bug: 21910771

Clarify handling client certificates when using a webview. This is a
documentation change only.

Change-Id: Ifcd7c2c9fffc79c1dcc162d829dfbb175cddaa11
2015-06-19 11:46:29 -07:00
Adrian Roos
4f43dc042b Assist disclosure
Add an animation that discloses delivery
of contextual data to the assist component.

Also fixes a bug where contextual data was
delivered to legacy assist activities even
though the user explicitly disabled context.

Bug: 21568059
Change-Id: I27dfaa36e2f677b0d73acfa4730f0f4ea3486919
2015-06-19 11:33:05 -07:00
Jason Monk
cdca13c613 Merge "Fix intent tile to unlock on launching activities" into mnc-dev 2015-06-19 18:29:00 +00:00
Abodunrinwa Toki
6983752a10 Merge "Better FloatingToolbar positioning." into mnc-dev 2015-06-19 18:28:20 +00:00
David Srbecky
f32f7a3ffd Merge "Replace --include-cfi with --generate-debug-info." into mnc-dev 2015-06-19 18:26:42 +00:00
Jason Monk
ee43cdfa43 Fix intent tile to unlock on launching activities
Change-Id: Ibde6a21d5a36d4697101e2201d1d77e26d684753
2015-06-19 14:26:25 -04:00
Paul Jensen
ee3e2ce4ee Occasionally retest for captive portals once detected
Once a captive portal has been detected, retest for the presence of
the captive portal every 10 minutes.  Some WiFi routers present a
captive portal when the backhaul goes away; with this change if the
backhaul returns and the captive portal goes away, the device will
detect this after a period and remove the notification.

Bug: 21545788
Change-Id: Icabf0a3fff37bccc95f99eba52af13f7a2ddc2f3
2015-06-19 18:25:53 +00:00
Oleksiy Vyalov
71f9ec2708 Merge "Resolve canonical package path before writing it to packages.list." into mnc-dev 2015-06-19 18:25:12 +00:00
Alan Viverette
7c669f4547 Merge "Revert "Work around inconsistent views in RelativeLayout.onMeasure()"" into mnc-dev 2015-06-19 18:20:21 +00:00
Alan Viverette
9355533bf6 Revert "Work around inconsistent views in RelativeLayout.onMeasure()"
This reverts commit 3e2e064a1f989228f48e8faf588393a1a5ee1e31.

Change-Id: Ib3712076585cba507ef1666e3fb6abb2bedb016f
2015-06-19 18:19:56 +00:00
Christopher Tate
7ad40c5032 Merge "Debug logging for a certain class of binder transaction failures" into mnc-dev 2015-06-19 18:19:15 +00:00
Christopher Tate
8a2ce3c751 Debug logging for a certain class of binder transaction failures
Bug 21801759

Change-Id: I9973d4ffb9450e510a4e1c64e2eae1489ce93054
2015-06-19 11:17:24 -07:00
Abodunrinwa Toki
9ae95dff1d Better FloatingToolbar positioning.
-The toolbar is now rendered over the IME.
-The toolbar respects the presence of the IME and tries as much as
 possible not to obstruct it.
-The toolbar may obstruct the IME if there is limited space and we
 can't find a position that won't obstruct the IME.

*A side effect of the toolbar over the IME is that TextView handles
 will also always be rendered over the IME where necessary. This was
 the previous behavior before the regression.

Bug: 17510971
Change-Id: I26a49565bf025d7c007ba6bb80468c4988fcc051
2015-06-19 19:15:50 +01:00
Tony Mak
92dfab8d96 Merge "Clear granted permission when app is uninstalled by one of the multiple users" into mnc-dev 2015-06-19 16:57:41 +00:00
Tony Mak
8e33f63040 Clear granted permission when app is uninstalled by one of the multiple users
Bug: 21838358

Change-Id: Iccd46382c9468d0503da0bb49a49040ae712e2cc
2015-06-19 17:52:49 +01:00