4288 Commits

Author SHA1 Message Date
Wink Saville
2d1ee98227 Revert "Additional changes to SubscriptionManager API as per API council."
This reverts commit baf21da1e17ef358632c078128d381b3be218a08.

Change-Id: I73cbdfadf07ca3cf20b042781b62aafcc72b17d6
2014-11-20 20:29:51 +00:00
Wink Saville
baf21da1e1 Additional changes to SubscriptionManager API as per API council.
bug: 17575308
Change-Id: I7773965094510999bfce8fc6b2b31ba6ce496653
2014-11-19 16:03:09 -08:00
Andres Morales
6722598ef3 Merge "Add a checksum to FRP partition" into lmp-mr1-dev 2014-11-19 18:09:53 +00:00
Jinsuk Kim
9899b663f4 Merge "CEC: Use thread-safe version for avr info" into lmp-mr1-dev 2014-11-19 00:25:43 +00:00
Jinsuk Kim
86a1e5a16e CEC: Use thread-safe version for avr info
getSystemAudioMode() should have used the thread-safe method
to get the information of the connected AVR.

Bug: 18426137

Change-Id: Ib3edff97337b5960160dd39d551fbfbbfdfce93b
2014-11-19 09:12:21 +09:00
Jeff Sharkey
d6447bbc88 Merge "Speed up GrantUri.hashCode()." into lmp-mr1-dev 2014-11-19 00:09:51 +00:00
Christopher Tate
04eb368d03 Merge "Prevent some alarm pathologies" into lmp-mr1-dev 2014-11-18 23:49:54 +00:00
Andres Morales
2830130770 Add a checksum to FRP partition
It will be hard to mandate the contents
of the FRP partition out of factory. Further, for upgrading
units, it would require that OEMs format the partition and then store
a bit saying that they've done so. This adds another attack vector.
Now defeating FRP means either compromising the FRP partition
OR wherever the OEMs decide to store that bit.

This patch adds a checksum to the FRP partition. If the checksum
is not valid, the partition is wiped - disabling OEM unlock.

This ensures that no matter what data comes on the partition, we will 
always disable OEM unlock by default. It also allows OEMs to not have to
worry about initializing the partition, as it happens automatically. 

Bug: 18322021
Change-Id: Ib30782baa771591c30ea95054d3b83f36fc08cc2
2014-11-18 22:52:58 +00:00
Marco Nelissen
6104fb2862 Merge "Use stream type if set by user" into lmp-mr1-dev 2014-11-18 22:20:05 +00:00
Jeff Sharkey
3597b55d12 Speed up GrantUri.hashCode().
It's used as a key for all outstanding permission grants, so let's
keep it fast.

Bug: 18381401
Change-Id: I4db8dba13302b98f33aacfa3e9acd9a394541cd0
2014-11-18 14:04:18 -08:00
Christopher Tate
498c6cbd78 Prevent some alarm pathologies
* Sanity-check the recurrence interval.  Some buggy apps pass seconds
  where the API expects milliseconds, with the result that the device
  pins the CPU at 100% trying to deliver alarm broadcasts every 60 ms
  or what have you.  The minimum recurrence is now 1 minute.

* Sanity-check alarms being scheduled for the immediate future.  As
  with the above this will catch people trying to schedule alarms
  in a spammy way that keeps the device from entering low-power state.
  The minimum futurity of a new alarm is now 5 seconds.

Bug 17495168

Change-Id: If8ff7d88da48960532ac21a0ba20094af9912603
2014-11-18 12:00:58 -08:00
Marco Nelissen
1c066306c6 Use stream type if set by user
Bug: 18426086
Change-Id: I0df390ddb850f8e2a02e24296f2a0d39f5718839
2014-11-18 11:28:28 -08:00
Alan Viverette
d0c73f49b7 Don't ignore accessibility overlays during visibility computation
Just don't use then to compute unaccounted space. This is a partial
revert of commit 9538eea5ff6f8e2183ced81b5b8eac60b0e774ea.

Change-Id: Ie2e29c8934da8ef707d20db1333abd4e240cd213
2014-11-18 10:25:04 -08:00
Wonsik Kim
b683e6e4c7 TIF: fix NPE for TvInputHardwareManager
Bug: 18365836
Change-Id: I270fac7c73ad8e7225b523a8ec517157310509dc
2014-11-18 12:00:54 +09:00
Lorenzo Colitti
e9f7e65c40 Merge "Populate 464xlat LinkProperties only when the interface comes up." into lmp-mr1-dev 2014-11-18 00:25:53 +00:00
xinhe
a8e6d6fd99 Merge "air plane mode only send to the owner through the quick setting" into lmp-mr1-dev 2014-11-17 22:18:11 +00:00
Jeff Davidson
9a1da68bf7 Expose a SystemApi method to prepare a VPN without consent.
This is NOT designed to be called normally. Most apps (even
system-privileged ones) should request user consent before launching a
VPN. However, it is needed to support flows where consent can be
obtained through other means external to the VPN flow itself.

The API requires a system-privileged permission, CONTROL_VPN.

Bug: 18327583
Change-Id: I1bcdcf0fb5707faeb861ec4535e7ccffea369ae7
2014-11-17 21:03:10 +00:00
Jeff Davidson
e0cb56b02e Merge "Enforce VPN control "permission" with an actual permission." into lmp-mr1-dev 2014-11-17 21:02:10 +00:00
xinhe
98e25fc377 air plane mode only send to the owner through the quick setting
It should send to all the uesers as it behaves in setting

Bug:18353278
Change-Id: Ib46a97e30bfba73dd78fab0c8139d6ccb7ad210f
2014-11-17 11:35:01 -08:00
Wale Ogunwale
465e996776 Merge "Consolidated processing of package boardcasts in AM service." into lmp-mr1-dev 2014-11-17 19:27:08 +00:00
Jorim Jaggi
da5a28635a Merge "Always set correct policy visibility" into lmp-mr1-dev 2014-11-17 19:20:13 +00:00
Dianne Hackborn
76919595f4 Merge "Issue #17551667: Voice interaction service should be disabled..." into lmp-mr1-dev 2014-11-17 18:33:10 +00:00
Jorim Jaggi
235607589c Always set correct policy visibility
Windows without a surface didn't get the correct policy visibility
applied after dismissing lockscreen. Thus, when launching something
from lockscreen, home activity was hidden but never set to visible
again. Before executing the transition to home, we didn't consider
home as a wallpaper target because it was still invisible, and thus
we picked the wrong transition.

Always applying policy visibility when lockscreen changes fixes this
outdated state.

Bug: 18369599
Change-Id: I2933eaf0ab55fe31cb382c46c411033e33a756e0
2014-11-17 19:15:22 +01:00
Jeff Sharkey
9c76a7b3e8 Merge changes Id7f9fb53,I897d7ee8 into lmp-mr1-dev
* changes:
  Prevent user ID reuse until after reboot.
  Warn user when build fingerprints differ.
2014-11-17 17:28:54 +00:00
Prashant Malani
4d269ba320 am fb26a2c8: Merge "Don\'t animate screen brightness if there is a pending off transition" into lmp-sprout-dev
* commit 'fb26a2c80b988118983251caf36492f2ae39559c':
  Don't animate screen brightness if there is a pending off transition
2014-11-15 09:56:57 +00:00
Prashant Malani
fb26a2c80b Merge "Don't animate screen brightness if there is a pending off transition" into lmp-sprout-dev 2014-11-15 09:46:33 +00:00
Chong Zhang
1c814b5c61 Merge "implement HDMI-like demo mode for remote display" into lmp-mr1-dev 2014-11-15 02:25:33 +00:00
Chong Zhang
ae6119ffce implement HDMI-like demo mode for remote display
adding the following two system properties to control remote
display rotation and device orientation lock:

"persist.demo.rotationlock"=true|false
"persist.demo.remoterotation"=landscape|portrait

Bug: 18317603
Change-Id: Id5fe115f895c6a0e72563036b9a98ff3b5037763
2014-11-14 16:39:15 -08:00
Jeff Sharkey
6eb093909c Prevent user ID reuse until after reboot.
We're still seeing rare cases where a device struggles to create a
new user, probably because of a subtle bug in the FUSE daemon.  To
work around this, only allow user IDs reuse after reboot.

Bug: 8302014
Change-Id: Id7f9fb539c6d6d1ff3d47d941af1d9e6b93eca03
2014-11-14 15:58:01 -08:00
Winson Chung
1c903b4e11 Merge "Fixing regression in screen pinning button visibility. (Bug 18390050)" into lmp-mr1-dev 2014-11-14 23:30:37 +00:00
Jinsuk Kim
553aeed9c9 Merge "CEC: Buffer messages coming from unknown device" into lmp-mr1-dev 2014-11-14 22:52:57 +00:00
Jeff Sharkey
2cffc7dafd Warn user when build fingerprints differ.
We're now shipping devices with several partitions which may end up
mismatched, causing subtle runtime issues.  To help manufacturers and
users catch this case, show wanring when we detected mismatched
fingerprints.

Bug: 18357469
Change-Id: I897d7ee8cbf3b8042d3d7d282afab277d242ed3f
2014-11-14 14:28:06 -08:00
Wale Ogunwale
0a41a57802 Consolidated processing of package boardcasts in AM service.
Bug: 18230409
Change-Id: Idc048eb6cfece792b1cdc651146fba965f874430
2014-11-14 13:35:10 -08:00
Jeff Sharkey
84998e2858 Merge "Reduce spammy PackageManager critical logs." into lmp-mr1-dev 2014-11-14 21:06:47 +00:00
Jeff Sharkey
17fe99ac01 Merge "Fix NPE in DropBoxManagerService.dump()" into lmp-mr1-dev 2014-11-14 21:06:22 +00:00
Jeff Sharkey
aea5c6e33d Reduce spammy PackageManager critical logs.
Bug: 18390552
Change-Id: I66e34e6ebf3f644f8585056b9701b7f4582d777e
2014-11-14 11:41:18 -08:00
Winson Chung
86677c9a51 Fixing regression in screen pinning button visibility. (Bug 18390050) 2014-11-14 11:30:53 -08:00
Dianne Hackborn
c0e4aaad1e Issue #17551667: Voice interaction service should be disabled...
...by default on Svelte devices

Also make sure the voice_recognizers feature is not enabled on
low-ram devices, with a new facility for platform feature
declarations to say they should be ignored on low ram devices.

Change-Id: I833c04b12e0e566dd682ed20adb0985c677a696f
2014-11-14 11:05:08 -08:00
Ye Wen
8b69c28b7d Merge "Delay connecting to MmsService until APIs are called for imms" into lmp-mr1-dev 2014-11-14 17:22:12 +00:00
Craig Mautner
135ae6dc3b am 33d92c56: Use package name as custom resolver process name
* commit '33d92c56781f6058c9e682737a06c41f3a2d2f3a':
  Use package name as custom resolver process name
2014-11-14 16:31:20 +00:00
Craig Mautner
33d92c5678 Use package name as custom resolver process name
The process name was being assigned null. This meant that after the
process attached we weren't matching the name in
ActivityStackSupervisor.attachApplicationLocked(). That meant missing
the call to realStartActivityLocked() and then the resolver didn't
start until window manager timed out and resumeTopActivity was
called five seconds later.

Fixes bug 18301267.

Change-Id: If3721caeebb309c6054150b2f707e3d6e38a74d2
2014-11-14 15:09:54 +00:00
Esteban Talavera
22dc3b7ba1 New AccountManager method to copy accounts between users.
Adding the copyAccountToUser method which copies an account
along with its credentials to a different user.

Also an extra in the public api to identify the account to migrate
during provisioning.

Bug: 17716971
Change-Id: I2f29f1765ba0d360a3894b13ef86253b7c7d3284
2014-11-14 11:09:27 +00:00
Alan Viverette
42b2591447 Merge "Ignore accessibility overlays during visible window computation" into lmp-mr1-dev 2014-11-14 01:52:25 +00:00
Prashant Malani
33538249f2 Don't animate screen brightness if there is a pending off transition
When the DisplayPowerRequest policy is POLICY_OFF, a screen state
transition animation to DISPLAY_OFF is intiated. However, in
updatePowerState() the screen brightness setting, based on the current
display state, is set to normal brightness and an animation is
triggered. This causes a transient flash on some devices, which are
transitioning from a dimmed screen to screen off.

This change checks for a pending screen off transition before
triggering a screen brightness animation, to prevent the flashes.

Bug: 18136235
Change-Id: I37f9fb28b3ec8a4fdbb45920c40d25ebd50c220b
2014-11-13 15:23:27 -08:00
Alan Viverette
9538eea5ff Ignore accessibility overlays during visible window computation
Previously, the conditional for checking the layer type before
accounting for the window bounds was incorrectly inverted, but
we can simplify by just skipping accessibility overlay windows
completely.

BUG: 18358878
BUG: 18359820
BUG: 18359788
Change-Id: I9ba1e43a0fef4fa40693bd8c7e883c2ef45b4c4d
2014-11-13 23:07:05 +00:00
Jeff Brown
cb906677fc am 24c1d664: Merge "Remove an unnecessary condition from previous change." into lmp-sprout-dev
* commit '24c1d664c4f95a8c997bfc4683844e05b788c3db':
  Remove an unnecessary condition from previous change.
2014-11-13 20:58:19 +00:00
Jeff Brown
72f1e3b9c9 am 1cbff0e3: Merge "Improve screen brightness boost behavior." into lmp-sprout-dev
* commit '1cbff0e310b0fba6b25ca1c1e14eaefeabdee0d9':
  Improve screen brightness boost behavior.
2014-11-13 20:58:15 +00:00
Jeff Sharkey
22510ef274 Fix NPE in DropBoxManagerService.dump()
Bug: 18374803
Change-Id: Id1f66a0887d1584f97b127e837a4fad31f7d9d57
2014-11-13 12:28:46 -08:00
John Spurlock
338bc5a418 Merge "Zen: Update condition text for current condition." into lmp-mr1-dev 2014-11-13 20:20:25 +00:00
Jeff Sharkey
51151dcc94 Merge "Make package verifier broadcasts foreground." into lmp-mr1-dev 2014-11-13 20:17:32 +00:00