3766 Commits

Author SHA1 Message Date
Jeff Sharkey
1d5ef81e29 am 99586dc0: Merge "Reduce PackageInstaller I/O pressure." into lmp-dev
* commit '99586dc0108d0f4311c8af4d06ed113bbf40a6ee':
  Reduce PackageInstaller I/O pressure.
2014-10-06 23:59:43 +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
Dianne Hackborn
90d557b7a6 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 19:17:10 +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
4cb8455fba 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:22:17 +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
b03b9759d3 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:57 +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
c5418198cc am 3438bc1b: Merge "Correctly rollback failed system app installs." into lmp-dev
* commit '3438bc1bfd363e1ee656b33ebc8d0e6744470aec':
  Correctly rollback failed system app installs.
2014-10-05 02:31:05 +00:00
Jeff Sharkey
3438bc1bfd Merge "Correctly rollback failed system app installs." into lmp-dev 2014-10-05 01:06:28 +00:00
Robert Greenwalt
26b7ff9126 am f393e491: Merge "Switch the NetworkInfo.mIsAvailable default" into lmp-dev
* commit 'f393e4910b42b2c9fd4dd6f970455649e00902e5':
  Switch the NetworkInfo.mIsAvailable default
2014-10-03 23:53:29 +00:00
Jeff Sharkey
4453d58590 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:53:12 +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
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
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
Christopher Tate
b5c55da5ab am b88ba912: Merge "Fix alarm delivery-order sorting" into lmp-dev
* commit 'b88ba912f6bb2fd0ae16794470cce38ee308b6ea':
  Fix alarm delivery-order sorting
2014-10-03 21:02:32 +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
Robert Greenwalt
3515ab8092 am 24861eab: Merge "Send callbacks for Net property changes" into lmp-dev
* commit '24861eabe641d5a147f127c8e7f98fab949224ab':
  Send callbacks for Net property changes
2014-10-03 15:41:04 +00:00
Robert Greenwalt
24861eabe6 Merge "Send callbacks for Net property changes" into lmp-dev 2014-10-03 15:36:39 +00:00
John Spurlock
e1cddd34eb am a23867c4: Merge "Disable notification effects during phone calls." into lmp-dev
* commit 'a23867c4e8efb4cd9e86c70bff1a595da6679a82':
  Disable notification effects during phone calls.
2014-10-03 13:53:48 +00:00
John Spurlock
a23867c4e8 Merge "Disable notification effects during phone calls." into lmp-dev 2014-10-03 13:49:43 +00:00
Robert Greenwalt
a848c1cc0a Send callbacks for Net property changes
LinkProperties and NetworkCapabilities changes were not calling app callbacks.

bug:17681483
Change-Id: I67dac3c4dc1284f5c4bfb24de239da4ec776336f
2014-10-02 21:05:44 -07:00
Paul Jensen
367eb2bb07 am a11b5e34: Merge "Send updated NetworkAgent score to NetworkFactories when validated." into lmp-dev
* commit 'a11b5e34f50899a48531bb84ba3f6d796a64985e':
  Send updated NetworkAgent score to NetworkFactories when validated.
2014-10-03 02:22:25 +00:00
Paul Jensen
6e1bf91103 am 6eead851: Merge "Allow any unvalidated Network to satisfy NetworkRequests." into lmp-dev
* commit '6eead851d2ea56c3e7319587d4066b1828d54699':
  Allow any unvalidated Network to satisfy NetworkRequests.
2014-10-03 02:22:21 +00:00
Paul Jensen
a11b5e34f5 Merge "Send updated NetworkAgent score to NetworkFactories when validated." into lmp-dev 2014-10-03 02:18:12 +00:00
Paul Jensen
6eead851d2 Merge "Allow any unvalidated Network to satisfy NetworkRequests." into lmp-dev 2014-10-03 02:16:44 +00:00
John Spurlock
32fe4c6e64 Disable notification effects during phone calls.
Listen for phone call state changes in NoMan, and disable
incoming non-call notification effects when non-idle.

Bug:17658454
Change-Id: I6f7d66413970fbff6822ab29a12f91cbed068261
2014-10-02 21:05:06 -04:00
Dianne Hackborn
9ecc07c057 am b591da94: Merge "Maybe fix issue #17449495: Nakasi is pretty laggy/slow to do anything" into lmp-dev
* commit 'b591da942e159588c70687dfe3e792feedc8f3b4':
  Maybe fix issue #17449495: Nakasi is pretty laggy/slow to do anything
2014-10-03 00:47:04 +00:00
Dianne Hackborn
b591da942e Merge "Maybe fix issue #17449495: Nakasi is pretty laggy/slow to do anything" into lmp-dev 2014-10-03 00:40:26 +00:00
Dianne Hackborn
3f16dd49e8 Maybe fix issue #17449495: Nakasi is pretty laggy/slow to do anything
Tweak the oom tuning to raise everything by 50%.  This is the same
increase we did for Volantis; I am thinking that most of the issue
there was not it being 64 bit, but it being tighter on RAM.  From
my testing, it looks like in user switching there was some paging
going on with Nakasi, and with this change things seem to be better.

We should probably revisit this for future work on RAM.  It seems
likely that a 64 bit device will need more RAM, so probably the value
I am picking here is larger than we actually need for other devices.
I think this is the safest change at this point though -- it leaves
Volantis the same, where we already had tweaked it to address paging
issues, raises it on Nakasi (to the same value as Volantis) where we
seem to have paging issues, and on our other devices also raises it
but those are generally not under memory pressure so this shouldn't
really make a difference.

Change-Id: Ib19394068734d322a015ed07370d9d4961877e4b
2014-10-02 17:21:27 -07:00
Jason Monk
d212662a19 am 51900639: Merge "Synchronize on all sendProxyBroadcast calls" into lmp-dev
* commit '519006395204ba3eab77ae420d20eb70ebb78af5':
  Synchronize on all sendProxyBroadcast calls
2014-10-02 22:42:58 +00:00
Jason Monk
5190063952 Merge "Synchronize on all sendProxyBroadcast calls" into lmp-dev 2014-10-02 22:36:47 +00:00
Baligh Uddin
c744d1deaa am 9cdde5f8: Merge "Fix a bug with screen brightness during screen off animation." into lmp-dev
* commit '9cdde5f8348ddd03e1d6eb2c741fb3e761ab66e9':
  Fix a bug with screen brightness during screen off animation.
2014-10-02 21:42:22 +00:00
Baligh Uddin
9cdde5f834 Merge "Fix a bug with screen brightness during screen off animation." into lmp-dev 2014-10-02 21:38:25 +00:00
Matthew Williams
ff7c67f224 am 5c6756fe: Revert "Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager"
* commit '5c6756fefb6db0fe468b9d747960a6da344880ad':
  Revert "Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager"
2014-10-02 20:53:29 +00:00
Matthew Williams
5c6756fefb Revert "Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager"
This reverts commit cf2bd348e73e880fe5bfc7a025732d4ec606ff1f.

Reverted because for account removal the AccountManagerService
delegates the sending of LOGIN_ACCOUNTS_CHANGED to the authenticator.
See b/17511110.

Change-Id: Ic03016af98070b4add5f7a5ec1fdff32ba63298e
2014-10-02 20:47:59 +00:00
Jing Ji
5468f545ff am d5941978: Allow system app to take ownership of built-in permissions
* commit 'd594197868c4a51bb8f8bd62479999debc72bf2a':
  Allow system app to take ownership of built-in permissions
2014-10-02 20:45:08 +00:00
Jing Ji
d594197868 Allow system app to take ownership of built-in permissions
Previous commit bfed9f34c makes the preloaded system app take
precedence over third-party apps when defining permissions, but
it also makes it be able to override android built-in permissions.

Now allow preloaded system app to take the ownership of built-in
permissions instead of overriding it.

Change-Id: I10d588d0284e4316ea4be552fd6191f33e3c725b
2014-10-02 20:40:21 +00:00
Craig Mautner
17eefabd44 am 9dfad8c7: Merge "Remove misleading error log." into lmp-dev
* commit '9dfad8c7f01e8a69989d1c44deb8a621216a0d9f':
  Remove misleading error log.
2014-10-02 20:18:05 +00:00
Craig Mautner
9dfad8c7f0 Merge "Remove misleading error log." into lmp-dev 2014-10-02 20:13:55 +00:00
Jeff Brown
bf4e414cf0 Fix a bug with screen brightness during screen off animation.
Due to a recent change there was a regression that caused the
screen brightness to be animated down to 0 while the screen
off animation was running.  When the brightness was low this
would cause the screen off animation to be cut short.

This change ensures that we take into account the actual screen
state instead of the desired screen state when making screen
brightness decisions in case we are in the middle of a transition.

The darkness came early.  The pixel fairies trembled.

Bug: 17718416
Change-Id: Ib4b55d61b359abbc70920e324f08a5db07bdd035
2014-10-02 13:11:02 -07:00
Jason Monk
cf0f97a3aa Synchronize on all sendProxyBroadcast calls
To avoid race conditions.  Also make mDefaultProxy volatile for
safety.

Bug: 17697364
Change-Id: I8f0abb1a6e1c816f3addc11a69ff794ad767f2cf
2014-10-02 15:39:38 -04:00
Craig Mautner
333c2ec883 Remove misleading error log.
It's perfectly ok for a secondary display to not have a home stack.
There is no reason to report it.

Related to b/17677973.

Change-Id: Ia9d52cabb601760d32d2b847dfa0ca4f304e4e2a
2014-10-02 12:24:02 -07:00