21189 Commits

Author SHA1 Message Date
RoboErik
82df2c0839 Ensure metadata bundles are unparceled before making them available
Bundles can't be read from multiple threads safely. This adds locking
around a read that had been previously overlooked and ensures that
unparcel is called on the metadata before it is even available to
other threads.

bug:17894033
Change-Id: I9a4b86a0d0af05b1dcba28a52df2e7a87c685704
2014-10-08 10:41:12 -07:00
Dianne Hackborn
955d8d69ea Put in real "code" (aka marketing) name.
Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
2014-10-07 20:17:19 -07:00
Svetoslav
ad870c3d9c Restored widget provider id not properly updated.
During restore first the provider records and then the applications
are restored. Therefore, we keep the restored provider records in a
zombie state and once we get the package install broadcasts from the
package manager we update the zombie providers to be real ones. The
bug was that while doing this we were not updating the provider id
from one with an undefined UID to the one with the UID under which
its package now runs.

bug:17869323

Change-Id: I20b7cbfd2f90e2f5bf3a6b858d8da99cc1c82841
2014-10-08 03:13:06 +00:00
Jinsuk Kim
229c422c7b CEC: Prevents HdmiControlService from turning on TV on wakeup
The feature causes Fugu to turn on TV for unexpected cases.
Disables the feature until we figure out a better way to find
right wake up events.

Bug: 17875468
Change-Id: Icfb04f40e5b13f751b7466ea9789ba8eadcddea6
2014-10-08 10:33:08 +09:00
keunyoung
e3bbf149b2 am d76f80bd: Merge "ignore null TaskStack and continue layout for PRIVATE_PRESENTATION window" into lmp-dev
* commit 'd76f80bd3a38e11d27935cbe461c3a9d4243dd76':
  ignore null TaskStack and continue layout for PRIVATE_PRESENTATION window
2014-10-07 23:07:18 +00:00
keunyoung
d76f80bd3a Merge "ignore null TaskStack and continue layout for PRIVATE_PRESENTATION window" into lmp-dev 2014-10-07 22:58:48 +00:00
dcashman
c3e45cab20 am 90f46eca: Merge "Add mProperSigningKeySet to PackageKeySetData constructor." into lmp-dev
* commit '90f46eca86df268d8df276fb68dac2e731f35479':
  Add mProperSigningKeySet to PackageKeySetData constructor.
2014-10-07 22:40:41 +00:00
dcashman
90f46eca86 Merge "Add mProperSigningKeySet to PackageKeySetData constructor." into lmp-dev 2014-10-07 22:37:21 +00:00
keunyoung
030a93feb8 ignore null TaskStack and continue layout for PRIVATE_PRESENTATION window
bug: 17677973
Change-Id: I2666a1c1cf8956e60d7261912da34d1999131eba
2014-10-07 14:46:24 -07:00
dcashman
d876a1d368 Add mProperSigningKeySet to PackageKeySetData constructor.
Bug: 17847565
Change-Id: Iafa9650140e82d244d2336a07232bd40bf3c5eb8
2014-10-07 14:16:35 -07:00
Adam Lesinski
5959304e58 am 1a98dd5c: Merge "Load shared library dependencies for AppWidgets" into lmp-dev
* commit '1a98dd5cc7ea89793208b51983198bfbeade5ccc':
  Load shared library dependencies for AppWidgets
2014-10-07 20:47:19 +00:00
Adam Lesinski
1a98dd5cc7 Merge "Load shared library dependencies for AppWidgets" into lmp-dev 2014-10-07 19:51:17 +00:00
Adam Lesinski
d00bb5edcf Load shared library dependencies for AppWidgets
PackageManager and AppWidgetHostServiceImpl should
be loading the resources of any shared libraries being
used by the app, as they have references in their Widgets
or application icons/labels, etc.

Bug:17668152
Change-Id: I359662334edb125d7570089916727df4eeba02bb
2014-10-07 12:14:45 -07:00
Amith Yamasani
53322b9f7b am 41bb3455: Merge "Set the default user restrictions to disallow calling and sms" into lmp-dev
* commit '41bb3455e44dc8fde4569bbfd56fa20c6da8a27d':
  Set the default user restrictions to disallow calling and sms
2014-10-07 18:27:10 +00:00
Amith Yamasani
41bb3455e4 Merge "Set the default user restrictions to disallow calling and sms" into lmp-dev 2014-10-07 17:11:34 +00:00
Amith Yamasani
aa6634eaca Set the default user restrictions to disallow calling and sms
When creating a user via the UI, disallow phone calls and SMS by
default. Primary user must explicitly enable it via Settings.

Bug: 17832802
Change-Id: I18cad4be8493ddc8890b5d90da2df256cb3f1ec9
2014-10-06 18:24:32 -07:00
Jeff Sharkey
5ca7ef1d8e am 99586dc0: Merge "Reduce PackageInstaller I/O pressure." into lmp-dev
* commit '99586dc0108d0f4311c8af4d06ed113bbf40a6ee':
  Reduce PackageInstaller I/O pressure.
2014-10-06 23:56:41 +00:00
Jeff Sharkey
99586dc010 Merge "Reduce PackageInstaller I/O pressure." into lmp-dev 2014-10-06 23:51:56 +00:00
Jeff Sharkey
02bd78490d Reduce PackageInstaller I/O pressure.
When performing a restore during initial device setup, we could be
installing hundreds of packages.  Currently, we're writing all
metadata (including heavy icons) for every session mutation!  Because
we're holding the mSessions lock while writing all this heavy data,
we end up causing ANRs when apps call other PackageInstaller APIs.

This patch mitigates by moving the heavy icon data into separate
per-session PNG files, which we only persist when changed.

Bug: 17881962, 17567794
Change-Id: I4dee15d4a65a8eb65c381e6bb7477728b6cc30d2
2014-10-06 16:38:15 -07:00
Christopher Tate
6b5eba585e am bbebe423: Merge "adb backup/restore fixes" into lmp-dev
* commit 'bbebe42309a7012e0474b916f5209027889e8d57':
  adb backup/restore fixes
2014-10-06 19:15:53 +00:00
Christopher Tate
bbebe42309 Merge "adb backup/restore fixes" into lmp-dev 2014-10-06 19:09:13 +00:00
Dianne Hackborn
2131b18542 am 7f7d240b: Merge "Fix issue #17752399: Multiple apps broken by GET_TASKS permission change" into lmp-dev
* commit '7f7d240b13b96b617e298c6178af0425308f5ef9':
  Fix issue #17752399: Multiple apps broken by GET_TASKS permission change
2014-10-06 18:58:57 +00:00
Dianne Hackborn
7f7d240b13 Merge "Fix issue #17752399: Multiple apps broken by GET_TASKS permission change" into lmp-dev 2014-10-06 18:48:34 +00:00
Yuncheol Heo
bcf95d55d6 am 71c4578d: Merge "CEC: Reset active source status on routing control" into lmp-dev
* commit '71c4578def00a5a4b9e159fd1ab88e616bc7e159':
  CEC: Reset active source status on routing control
2014-10-06 16:21:30 +00:00
Yuncheol Heo
71c4578def Merge "CEC: Reset active source status on routing control" into lmp-dev 2014-10-06 16:16:47 +00:00
Jinsuk Kim
995fcfc591 CEC: Reset active source status on routing control
Set active source status to false when broadcast routing control
commands indicate other device is about to be the new active source.

Bug: 17840270
Change-Id: I176e21ec8789624e29421b912ba641a21f0f5f21
2014-10-06 14:53:07 +09:00
Jeff Sharkey
aee292bda5 am 4c880877: Merge "Recover from missing upgrade to system package." into lmp-dev
* commit '4c88087776305f54bec0aae59b8e63bc803c1401':
  Recover from missing upgrade to system package.
2014-10-06 04:08:51 +00:00
Jeff Sharkey
4c88087776 Merge "Recover from missing upgrade to system package." into lmp-dev 2014-10-06 04:01:34 +00:00
Jeff Sharkey
1c13310577 Recover from missing upgrade to system package.
When a system app has been upgraded, we mark the built-in version as
disabled, and skip it when parsing built-in apps, since we expect
the userdata version to be scanned a few moments later.

However, in very rare cases we can end up missing the expected
userdata version, and we'd end up dropping the package entirely, even
though we have a built-in version to fall back to.  This change
handles that case by rescanning and enabling the built-in version when
the userdata version never materializes.

Also include critical log messages in check-in dumpsys to help track
down how we ended up in this state.

Bug: 17805839
Change-Id: I9971f882f9bb8ab7934c20b04e0b72366c4d04d0
2014-10-05 14:12:45 -07:00
Jeff Sharkey
303156809b am 3438bc1b: Merge "Correctly rollback failed system app installs." into lmp-dev
* commit '3438bc1bfd363e1ee656b33ebc8d0e6744470aec':
  Correctly rollback failed system app installs.
2014-10-05 01:22:22 +00:00
Jeff Sharkey
3438bc1bfd Merge "Correctly rollback failed system app installs." into lmp-dev 2014-10-05 01:06:28 +00:00
Christopher Tate
ecae211616 adb backup/restore fixes
Bug 17811327 : teach adb restore about the new widget metadata entries

Bug 14165872 : -nosystem should not act like -onlysystem

Change-Id: I39da0ba80df7c5309a78ec1fa38016cebd80aa5f
2014-10-03 18:26:29 -07:00
Robert Greenwalt
8c9f83f826 am f393e491: Merge "Switch the NetworkInfo.mIsAvailable default" into lmp-dev
* commit 'f393e4910b42b2c9fd4dd6f970455649e00902e5':
  Switch the NetworkInfo.mIsAvailable default
2014-10-03 23:57:34 +00:00
Svetoslav
356a4c16d6 am 8ff6d70d: Merge "Clear identity before calling into the mount service." into lmp-dev
* commit '8ff6d70d44626cd515f517962378d89ab3954979':
  Clear identity before calling into the mount service.
2014-10-03 23:57:30 +00:00
Svetoslav
b027dde669 am 88676e0b: Merge "TouchExploer computes incorrectly the click location." into lmp-dev
* commit '88676e0bb1b31cafca83a6bcf5ef20cc23f163ec':
  TouchExploer computes incorrectly the click location.
2014-10-03 23:57:26 +00:00
Jeff Sharkey
ab47e4c06e am 900e3b5f: Merge "More durable logging around system app upgrades." into lmp-dev
* commit '900e3b5fc5bb4bf4947f63c0fed0757dfb7effa6':
  More durable logging around system app upgrades.
2014-10-03 23:57:17 +00:00
Jeff Sharkey
914bd793b3 Correctly rollback failed system app installs.
Fix bug where we disabled system app, but never turned it back on
when the scanPackageLI() failed.

Bug: 17805839
Change-Id: I73999263aee703af187afd980fa0d0ce8451cf0c
2014-10-03 16:48:11 -07:00
Robert Greenwalt
f393e4910b Merge "Switch the NetworkInfo.mIsAvailable default" into lmp-dev 2014-10-03 23:41:55 +00:00
Svetoslav
8ff6d70d44 Merge "Clear identity before calling into the mount service." into lmp-dev 2014-10-03 23:36:17 +00:00
Svetoslav
9f70a4cc6d Clear identity before calling into the mount service.
bug:17787265

Change-Id: I4b9268d101e9ccfc30876fbf54bf28bb41fb4be6
2014-10-03 16:32:26 -07:00
Dianne Hackborn
2d7576b082 Fix issue #17752399: Multiple apps broken by GET_TASKS permission change
Keep around GET_TASKS as a permission available to apps, so apps still
think they have it and don't get all uppity because they don't.

Add a new REAL_GET_TASKS that is the actual permission now.

Plus some temporary compatibility code until everyone can transition
fromn GET_TASKS to REAL_GET_TASKS.

Change-Id: I12c1102eed24844685dcbd2fa3b612811603958f
2014-10-03 16:26:04 -07:00
Svetoslav
47b9c1524f TouchExploer computes incorrectly the click location.
If there is accessibilty focus and the user touch explores
location that does not change accessibility focus that is
not in the app window, e.g. system bar, double tap does not
click on the system UI affordance.

bug:17588024

Change-Id: I6c8c0f65b208ae1d3f31d7f06b0721dc223ec19f
2014-10-03 16:17:26 -07:00
Robert Greenwalt
483d1fb3a6 Switch the NetworkInfo.mIsAvailable default
The placeholder for disconnected networks was setting it to false, but
this technically means that we know an attempt to connect to that
network will fail (which we don't really now).  Some applications use
this an decide not to bother trying - an MMS app for example would
never send an MMS because it thinks the network is never available.

This is a L regression.

bug:17669247
Change-Id: Id6041f226da069c267c56418d42c55978c36c66f
2014-10-03 16:05:36 -07:00
Jeff Sharkey
900e3b5fc5 Merge "More durable logging around system app upgrades." into lmp-dev 2014-10-03 22:35:19 +00:00
Jeff Sharkey
3933a5dc8c More durable logging around system app upgrades.
We've been seeing some really funky behavior when upgrading or
downgrading system apps around OTA time.  Put more of these one-time
logs into durable storage to help investigate.

Bug: 17805839
Change-Id: If898d7df229c1f71e598b0d965325c272060e5e7
2014-10-03 15:21:49 -07:00
Svetoslav Ganov
366cafa2be am 76716c5a: Revert "TouchExplorer computes incorrectly the click location."
* commit '76716c5a180aa471c6973ca7aa03c7f2da677823':
  Revert "TouchExplorer computes incorrectly the click location."
2014-10-03 21:03:03 +00:00
Christopher Tate
2194a796bf am b88ba912: Merge "Fix alarm delivery-order sorting" into lmp-dev
* commit 'b88ba912f6bb2fd0ae16794470cce38ee308b6ea':
  Fix alarm delivery-order sorting
2014-10-03 21:02:46 +00:00
Svetoslav Ganov
76716c5a18 Revert "TouchExplorer computes incorrectly the click location."
This reverts commit 851a5059a47cbf76e530c9d050a677cb6e3f8657 as
it creates a regression. Let us revert this and correctly fix the
issue the original change was trying to address.

bug:17789608

Change-Id: I8abb1a61d5310430e839e4ef60e7ca5cc0cbdd80
2014-10-03 20:37:10 +00:00
Christopher Tate
b88ba912f6 Merge "Fix alarm delivery-order sorting" into lmp-dev 2014-10-03 19:56:36 +00:00
Christopher Tate
1590f1ee7b Fix alarm delivery-order sorting
We also refine the order of delivery within any given package.  Now,
we identify which apps have wakeup alarms being delivered in the
current pass, and deliver all of that app's alarms before moving
on to alarm delivery to apps who are only receiving non-wakeup alarms
in the current delivery pass.  The TIME_TICK alarm is also hoisted to
the start of the current delivery pass if present.

Bug 17778686

Change-Id: I6306a00fe657787a77d0254c0807ac51e810fdcf
2014-10-03 12:33:35 -07:00