Commit Graph

250831 Commits

Author SHA1 Message Date
TreeHugger Robot
0f7fe17983 Merge "Only sync adapters with access can see an account - framework" into nyc-mr1-dev 2016-08-23 23:26:51 +00:00
TreeHugger Robot
621dcdf9cd Merge "Added error handling to settings suggestions list" into nyc-mr1-dev 2016-08-23 22:52:33 +00:00
TreeHugger Robot
891411aaa5 Merge "Update light mode when battery saver changes" into nyc-mr1-dev 2016-08-23 22:20:40 +00:00
Svetoslav Ganov
5cb2973495 Only sync adapters with access can see an account - framework
It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
 - it is signed as the authenticator for this account
 - has the GET_ACCOUNTS permission
 - has an auth token for the account
 - it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
2016-08-23 21:43:27 +00:00
Amith Yamasani
50ff32c17f Merge "Don't complain about sender of MASTER_CLEAR" into nyc-mr1-dev 2016-08-23 21:19:05 +00:00
Makoto Onuki
85c10342c1 Merge "Do not scan system apps unless after OTA" into nyc-mr1-dev 2016-08-23 20:52:43 +00:00
Jorim Jaggi
244a43ee6f Update light mode when battery saver changes
Change-Id: I56b309222782d823d80a66c87d30eefed2ce5dc7
Fixes: 30150232
2016-08-23 13:28:04 -07:00
Adam Seaton
2c7e4d2345 Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held." into nyc-dr1-dev
am: 09c77dd2b1  -s ours

Change-Id: I97b120256a68cc2038b72fc13d14ca01729f3199
2016-08-23 20:16:34 +00:00
Tyler Gunn
9ea9bc0213 DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held.
am: d697c5dc9b  -s ours

Change-Id: Id959d48b4c4fa5af883c42cc6fbe052cca10f367
2016-08-23 20:16:29 +00:00
Adrian Roos
a9b9b42e85 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev
am: e1f32de996

Change-Id: If4171cbb2247cb8bc8f0e4e92f94724bf9ba238e
2016-08-23 20:16:23 +00:00
Adrian Roos
7de22aa782 Ambient: Pulse for every noisy notification exactly once
am: 97de2b2666

Change-Id: I4ae78e6f4ec4d3652f7f6eefc0cd72d3e881ea89
2016-08-23 20:16:17 +00:00
Adam Seaton
09c77dd2b1 Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held." into nyc-dr1-dev 2016-08-23 20:07:28 +00:00
TreeHugger Robot
e1f32de996 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev 2016-08-23 20:07:12 +00:00
Sudheer Shanka
0b3cf692f6 Merge "Add installer app check in PM.deletePackage." into nyc-mr1-dev 2016-08-23 19:40:00 +00:00
Robert Carr
4cd7a8c63e Only allow focused window to select seamless rotation.
am: 066d94f6df

Change-Id: I22360bd2d0182276c68ed3e300073edf390ffcfa
2016-08-23 19:31:27 +00:00
Amith Yamasani
d8a55f6dd8 Don't complain about sender of MASTER_CLEAR
Make an exception for MASTER_CLEAR broadcast when checking for
non-protected broadcasts being sent by system uid; Settings app in
this case.

Change-Id: I296404faf2be03601f8f937b96d3e2f70c0e816d
Fixes: 30891377
2016-08-23 12:26:25 -07:00
Tyler Gunn
d697c5dc9b DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held.
Note: This is different than the existing EVENT_ON_HOLD_TONE_START
and EVENT_ON_HOLD_TONE_END events, which trigger playing a hold tone for
remotely held calls.  Those events also take into account whether the call
is foreground/background; it is left as a future exercise to clean that
up.

Bug: 30349182
Change-Id: I919365d243ae3b9fe56454c7a2b9d5805b2c03a2
(cherry picked from commit b5ed860de7)
2016-08-23 19:16:13 +00:00
TreeHugger Robot
c6c45d225c Merge "Made background updater more robust to state changes" into nyc-mr1-dev 2016-08-23 18:55:48 +00:00
TreeHugger Robot
c55457b146 Merge "Avoid weird expand animation when a notification is updated" into nyc-mr1-dev 2016-08-23 18:53:21 +00:00
Todd Kennedy
e0736b4fb0 No need to check package name
am: ef8d8ea24a

Change-Id: Idd8b189070e3e5920cd1b9d12a8ba282de44d11a
2016-08-23 17:39:01 +00:00
Robert Carr
066d94f6df Only allow focused window to select seamless rotation.
We require apps to opt in to seamless rotation. If a dialog or some such
has popped up above them, the dialog may not be prepared to rotate
seamlessly and we should just fall back to the old behavior for now.

Bug: 30968345
Change-Id: Ib9a7352ed84d41076bdd162bf38d151b053a307e
(cherry picked from commit 828ec3dc51)
2016-08-23 17:32:13 +00:00
Julius D'souza
8b271611f0 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours am: d5bf4039a9 -s ours am: b2507eb7b7 -s ours
am: 027f685296  -s ours

Change-Id: Ibc3e2a639ecc8a9b49d899ae6298761dabbd2032
2016-08-23 17:11:39 +00:00
Sailesh Nepal
fa4f3b25e4 Merge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev
am: 74de00a62c

Change-Id: Ibf1283af6133ccd43f75f361fe9a821e87668773
2016-08-23 17:11:35 +00:00
Ta-wei Yen
16394b84d9 Add carrier regex config values for VisualVoicemailSmsFilter
am: 9a107a2df0

Change-Id: Ie71269986f671ee8d773665107e5504f905da769
2016-08-23 17:11:27 +00:00
Todd Kennedy
ef8d8ea24a No need to check package name
Change-Id: I8c403ca2bc38f2c7191b6e9a709286ac7e450ac4
Fixes: 30958291
(cherry picked from commit afb5269ad6)
2016-08-23 17:09:52 +00:00
Julius D'souza
027f685296 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours am: d5bf4039a9 -s ours
am: b2507eb7b7  -s ours

Change-Id: I73d049d6855b9cd9420a194bda7079adc2283bb0
2016-08-23 17:08:33 +00:00
Sailesh Nepal
74de00a62c Merge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev 2016-08-23 17:00:33 +00:00
Julius D'souza
b2507eb7b7 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours
am: d5bf4039a9  -s ours

Change-Id: I4f1a0acabe5d5385af086791b906ff6f45424e59
2016-08-23 16:52:24 +00:00
Julius D'souza
d5bf4039a9 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
am: 3275a3a5a5  -s ours

Change-Id: Iaae7763a4d744ad8a63538750c5ed3efe38161d5
2016-08-23 16:45:41 +00:00
TreeHugger Robot
374f9a690b Merge "AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set" into nyc-mr1-dev 2016-08-23 16:39:45 +00:00
TreeHugger Robot
bd43552975 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-mr1-dev 2016-08-23 16:38:19 +00:00
Scott Main
0ea21992e7 Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev am: 77917a835f
am: f8a0cb2964

Change-Id: Ifff17568fd5ac67443fa7cfbbb0526f0b16b3c34
2016-08-23 15:56:15 +00:00
smain@google.com
da2802d1f9 add workaround for annotations dependency conflict with espresso am: eee3518d11
am: 349edcf169

Change-Id: I178c7bc7c2639559e8b4848f1a2af0bcdffcc849
2016-08-23 15:56:14 +00:00
Adrian Roos
97de2b2666 Ambient: Pulse for every noisy notification exactly once
Also increases the pulse duration and switches timing to
elapsed realtime instead of wall time for robustness. Also
remove triggering for notification light for simplifying code.
Only noisy notifications are able to trigger the light anyway and
noisy notifications already trigger ambient on their own.

Change-Id: I4efbe530bb1a60cabaa46c2b04bcd5e12cdef680
Fixes: 31004875
2016-08-23 15:49:04 +00:00
Scott Main
f8a0cb2964 Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev
am: 77917a835f

Change-Id: Ibc54a5b58aad47a49bf5cb5a69ae3ddf461ccd15
2016-08-23 15:47:18 +00:00
smain@google.com
349edcf169 add workaround for annotations dependency conflict with espresso
am: eee3518d11

Change-Id: I05f1b9063433e060427f627c46aab64972fe45cf
2016-08-23 15:47:15 +00:00
Ta-wei Yen
9a107a2df0 Add carrier regex config values for VisualVoicemailSmsFilter
Verizon requires all SMS that starts with "//VZWVVM" to be treated
as a VVM SMS.

EXTRA_VOICEMAIL_SMS_MESSAGE_BODY is also added to VociemailContract
to send the message body of a SMS that matches the carrier regex but
is not parsable.

Bug: 30954955
Change-Id: Ib5449164a5290b132648cc28b1e1d3d9ddd5fea0
(cherry picked from commit ad31603b80)
2016-08-23 15:42:31 +00:00
Scott Main
77917a835f Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev 2016-08-23 15:42:03 +00:00
TreeHugger Robot
a1e4149cfd Merge "Documentation warning against short-lived Contexts" into nyc-mr1-dev 2016-08-23 14:07:13 +00:00
Rubin Xu
6acd5e7361 Merge "Handle null packageName in PendingIntentRecord" into nyc-mr1-dev 2016-08-23 13:00:35 +00:00
Rubin Xu
a96e906e80 Merge "Not longer need MANAGE_DEVICE_ADMINS permission." into nyc-mr1-dev 2016-08-23 12:59:19 +00:00
TreeHugger Robot
cabc4f5945 Merge "Force application context for KeyChain bindings" into nyc-mr1-dev 2016-08-23 12:49:59 +00:00
Robin Lee
da23618043 Documentation warning against short-lived Contexts
It's better to use an Application Context rather than hoping the
activity won't be destroyed in another thread (because it will).

Change-Id: I9bf842d0d7dbedcc509a4a314d23a9a6cfca4d48
Fix: 29873669
2016-08-23 12:47:54 +00:00
Adrian Roos
6a7e08920c AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set
Change-Id: Ie6013013ff4e23e51e471e97d15e113cc759657e
Fixes: 30929056
2016-08-23 14:26:47 +02:00
Adrian Roos
d13602f1e7 Ambient: Pulse for every noisy notification exactly once
Also increases the pulse duration and switches timing to
elapsed realtime instead of wall time for robustness. Also
remove triggering for notification light for simplifying code.
Only noisy notifications are able to trigger the light anyway and
noisy notifications already trigger ambient on their own.

Change-Id: I4efbe530bb1a60cabaa46c2b04bcd5e12cdef680
Fixes: 31004875
2016-08-23 13:58:31 +02:00
Adrian Roos
ee99f0ae46 Merge "HIC: Improve AccelerationClassifier" into nyc-dr1-dev
am: 06165f534f

Change-Id: I9bf58eefc326cd4ce67f38b8467d49e17be409d2
2016-08-23 10:30:19 +00:00
Adrian Roos
4a0f6aeb08 HIC: Improve AccelerationClassifier
am: 4dc14b231e

Change-Id: I8bec656ec5cea3ec94b0bb0baada236162106df5
2016-08-23 10:30:18 +00:00
Adrian Roos
06165f534f Merge "HIC: Improve AccelerationClassifier" into nyc-dr1-dev 2016-08-23 10:22:25 +00:00
Lorenzo Colitti
a6dcb89e6d Refactor NetworkNotificationManager.
am: 0b59906768

Change-Id: I0084400264ccfc352f50e58acda9b8e056dbf766
2016-08-23 09:37:52 +00:00
Lorenzo Colitti
622b5fbbf5 Move notification code out of ConnectivityService.
am: f3ae2eeae4

Change-Id: I06cf2f70bc466c7cf03db246ec49f728b6881300
2016-08-23 09:37:12 +00:00