Commit Graph

309172 Commits

Author SHA1 Message Date
Chen Xu
038bea5dd1 Merge "Initial change on carrier signal filtering" am: bfdce89f36 am: 1507930691
am: 923046251b

Change-Id: I0762a7787c4136de027f8ee5def592bc85be25b6
2017-01-20 04:13:03 +00:00
TreeHugger Robot
a9da39cb64 Merge "Add wide color gamut and HDR resource qualifiers" 2017-01-20 04:10:04 +00:00
Erik Kline
2e88b5e674 BroadcastReceiver refactoring
All registerReceiver() calls now specify to be run on the tethering
master state machine's handler. Eventually, some of the locking might
be removed (requires careful review, later).

Also: slightly refactor StateReceiver for readability

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - vanilla tethering from WiFi to mobile works
Bug: 32163131
Change-Id: I39844f6e1608179ebeb41668a6db8a4e44d30ecf
2017-01-20 13:06:03 +09:00
TreeHugger Robot
fb764b7035 Merge "2D Recents: round task thumbnails properly." into nyc-mr2-dev 2017-01-20 04:05:31 +00:00
Colin Cross
f552a6f90d Merge "Revert "Update layoutlib following Change Id10ca97f on FontFamily"" 2017-01-20 04:04:31 +00:00
Chen Xu
923046251b Merge "Initial change on carrier signal filtering" am: bfdce89f36
am: 1507930691

Change-Id: I2edbdbd65fd90215b39e1b5f4a888c9df119b841
2017-01-20 03:54:22 +00:00
Jeff Sharkey
619a511d4f StrictMode to detect untagged network traffic.
Network usage is tracked by the kernel at the UID level, which is
granular enough for normal apps, but large components (such as the
system server) are impossible to debug without adding additional
socket tagging to help identify subsystems within a UID.

To help ensure that system components tag all their network traffic,
this change offers a new StrictMode option to detect and report
untagged sockets.

Test: builds, boots, all common traffic tagged
Bug: 30943431, 30414041
Change-Id: I825c7941076054732264690247de2863342638e2
2017-01-19 20:52:05 -07:00
sj.cha
2f73d55149 Infinite reboot when OS upgrade from M to N with set Always-on VPN
Symptom : Infinite reboot

Reproduce step :
1. Set the Always-on VPN in M OS
2. OS upgrade from M to N

Reproduce frequency : 100%

Reason of issue :
https://android.googlesource.com/platform/frameworks/base/+/9a5f485
As you know, in M OS, Always-on VPN information is stored in keystore with encryted.
However, in N OS, there is no encryption when it put in keystore.
So, You deleted keystore check(locked/unlock) logic on ConnectivityService.
By this reason, when device upgrade to N OS(set Always-on VPN), it goes infinite boot.
(Cannot read old always-on vpn information untill device unlock.)

Solution :
I founded exception handling when this case as follows:
If getting Credentials.LOCKDOWN_VPN information has null value(catch the exception),
updateLockdownVpn returns false value.

Signed-off-by: SangJin Cha <sj.cha@lge.com>
Change-Id: I6fd980152440bb5248aab45e2f8fda448d3f6c7b
2017-01-20 12:40:15 +09:00
Chen Xu
1507930691 Merge "Initial change on carrier signal filtering"
am: bfdce89f36

Change-Id: I8746998d2554d6161766ca29779dc7efabc5b802
2017-01-20 03:39:15 +00:00
Jeff Sharkey
063c454b07 Disable kernel UID updates until update lands.
Current prebuilt kernel can result in the framework banging its head
against the wall writing the first duplicate update; it does this by
returning 0 for write().

We can revert this or flip the flag once an updated kernel lands.

Test: builds, boots
Bug: 33755020
Change-Id: Idb3e5ad40e2e6681848b47ce2b29dff9db3d4f6f
2017-01-19 20:25:06 -07:00
Chen Xu
bfdce89f36 Merge "Initial change on carrier signal filtering" 2017-01-20 03:16:52 +00:00
TreeHugger Robot
4c0659f531 Merge "Enable background restrictions" 2017-01-20 02:55:30 +00:00
Siyamed Sinir
cc3c55afdc Revert "Update layoutlib following Change Id10ca97f on FontFamily"
Reason: The changes that this CL depends on, had to be reverted.

This reverts commit 7a1cab2c96.

Bug: 34378805
Change-Id: I6bd05082060199c1907743b9f72d4c2438371aa6
2017-01-20 02:51:36 +00:00
Jean-Michel Trivi
9aeed0cd6f Notification player: do not use stream types
Don't go through stream types for the attributes of the
  notification to play when requesting focus

Test: play notification with usage USAGE_NOTIFICATION_EVENT, verify
  that usage is communicated to MediaFocusControl
Bug 30258418

Change-Id: Ieaab969d84728b04a6f34aa8a02cf18ba22d1aca
2017-01-19 18:47:35 -08:00
Romain Guy
c9ba559021 Add wide color gamut and HDR resource qualifiers
Bug: 32984164
Test: Config_test, AaptConfig_test and aapt2_tests
Change-Id: Ie9c82bfe2d36b1d6180ee223250ab5bb2ce90dd4
2017-01-19 18:44:00 -08:00
Jeremy Joslin
596915de30 Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." am: b5b00857eb am: 0af25e62c9 am: 5418f151cc
am: 3465cd9e30  -s ours

Change-Id: I29104b3a3747d85f4a3ed52b35c06db8bb4bf8d5
2017-01-20 02:43:52 +00:00
Jeremy Joslin
3465cd9e30 Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." am: b5b00857eb am: 0af25e62c9
am: 5418f151cc

Change-Id: I74ce97c93e640a601e811b571f37fe1fed114391
2017-01-20 02:35:50 +00:00
Chen Xu
86663d3c26 Merge "Initial change on carrier signal filtering" 2017-01-20 02:26:52 +00:00
Ta-wei Yen
f48d5ce630 Add voicemail backup/restore columns
BACKED_UP and RESTORED are required for dialer voicemail backup/restore
feature for N MR2. As there are no API bump the fields will be hidden
in NMR2. These fields will be made public in O.

ARCHIVED and IS_OMTP_VOICEMAIL is not used for NMR2, but added in
advance to avoid multiple database upgrades.

IS_OMTP_VOICEMAIL will be used in O to dedupe multiple apps implementing
VisualVoicemailService. All voicemail inserted by the service should
set this field to 1. The UI should only display voicemails with this
field set to 1 when the source_package is also the current active
VisualVoicemailService, as other sources represents the same source of
truth(the carrier) but is outdated.

For example, the query should be
WHERE (is_omtp_voicemail == 0) OR 
(is_omtp_voicemail == 1 AND source_package = "current.vvm.package")

Test: VoicemailProviderTest
Bug: 34463609
Change-Id: I0f3e58fabff2102adf5bc29d81dac46c7e71d410
2017-01-20 02:26:04 +00:00
Jeremy Joslin
5213670bb1 Merge "Pass more data through the recommendation request." am: 00514f1dc0 am: ddfbe07e96 am: ec630d0bf0
am: 261b5c4c49  -s ours

Change-Id: I4941966e10de8a9c812f5933c27b22ba9657c9bc
2017-01-20 02:24:31 +00:00
Jeremy Joslin
5418f151cc Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." am: b5b00857eb
am: 0af25e62c9

Change-Id: Ied883055a0b85a1df53491a88f6bd7eac594c5f5
2017-01-20 02:21:00 +00:00
TreeHugger Robot
54ffe6a411 Merge "2D Recents: round task thumbnails properly." 2017-01-20 02:19:50 +00:00
wonyoung.lee
17e1d9844d unbindBackupAgent and initialize inFullBackup
the package has full backup failed (transport rejected) and broadcast discarded by app.inFullBackup

Test: example package : com.lge.clock
      1) push txt file over 25Mb size to data/data/com.lge.clock/shared_prefs/
      2) adb shell bmgr fullbackup com.lge.clock
      3) fullbackup failed by quota_exceeded and not happened alarm receive.

Change-Id: Ic475abb0fe779757dc3d7949cf52977ab8760a04
2017-01-20 02:18:27 +00:00
TreeHugger Robot
df82cbca06 Merge "Simplify FileUtils.stringToFile()." 2017-01-20 02:15:56 +00:00
Jeremy Joslin
0af25e62c9 Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED."
am: b5b00857eb

Change-Id: I54a69f11284efb07ee6be58650d7a246540010dc
2017-01-20 02:11:47 +00:00
TreeHugger Robot
42115d25ae Merge "Insert badged icons into the WifiSettings picker." 2017-01-20 02:09:27 +00:00
Jeremy Joslin
261b5c4c49 Merge "Pass more data through the recommendation request." am: 00514f1dc0 am: ddfbe07e96
am: ec630d0bf0

Change-Id: I20ce25072262a7aef36b9fdaa317210283ca495f
2017-01-20 02:07:53 +00:00
Winson Chung
c2baac059c Updating picture-in-picture API.
- Consolidating to enterPictureInPictureMode(), the new method will
  attempt to put the activity into picture-in-picture mode if the
  activity is visible or pausing in a state that would allow us to
  pip it.  Also consolidate the setting of the PiP aspect ratio and
  actions into setPictureInPictureArgs().
- Fixing issue with onPause not completing when moving the
  paused activity between stacks while dispatching onPause

Bug: 33692987
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I3af2365f31a9b95de4a92eae46b77108947b2a49
2017-01-19 18:07:46 -08:00
TreeHugger Robot
b8e3643066 Merge "Add rankingScores and badges to WifiPicker." 2017-01-20 02:03:33 +00:00
Jeremy Joslin
ec630d0bf0 Merge "Pass more data through the recommendation request." am: 00514f1dc0
am: ddfbe07e96

Change-Id: Ib831f420dd6ca976f9ce72476028b18ea61e2211
2017-01-20 02:02:03 +00:00
Siyamed Sinir
c0d685b87a Revert "Follow minikin::FontFamily constructor signature change."
This reverts commit a0a4828614.

Bug: 34378805
Change-Id: Icbdbfbde2efe8eaebbe4334a679e3b3247057388
2017-01-20 02:01:25 +00:00
Treehugger Robot
b5b00857eb Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." 2017-01-20 02:00:42 +00:00
Amin Shaikh
d47e6e9067 Add additional fields to RecommendationRequest.
- Add networkId and timestamp for the last user selected network

Bug: 34467596
Test: runtest --path core/tests/coretests/src/android/net/RecommendationRequestTest.java
Change-Id: Ic81c1beede1a643cd428b6e5c57ed430a6b1ccc0
2017-01-19 18:00:37 -08:00
Android Build Merger (Role)
fdf9a1b720 Merge changes from topic 'am-e50edd437cbb475fa514e750559a7e14'
* changes:
  Merge "Use separate switch ops for runtime permissions am: e710a6fc66 am: a2bbc26979" into nyc-mr2-dev-plus-aosp am: 583d798e41
  Use separate switch ops for runtime permissions am: e710a6fc66 am: a2bbc26979 am: 49dc9048fd
2017-01-20 02:00:12 +00:00
Siyamed Sinir
24fac986ec Merge "Revert "Introduce set/getFontVariationSettings."" 2017-01-20 01:59:52 +00:00
TreeHugger Robot
5bb4c96d43 Merge "ActivityThread: Only update code paths that have been added" 2017-01-20 01:59:18 +00:00
Svet Ganov
412636aa62 Merge "Use separate switch ops for runtime permissions am: e710a6fc66 am: a2bbc26979" into nyc-mr2-dev-plus-aosp
am: 583d798e41

Change-Id: Icd7e22dadb81e58514cef920fd9ed7cb9207433b
2017-01-20 01:58:55 +00:00
Svet Ganov
729863e1b7 Use separate switch ops for runtime permissions am: e710a6fc66 am: a2bbc26979
am: 49dc9048fd

Change-Id: I37a87f67e0ca1cf2d4bb0ebe5bfe5ac68a2a13b6
2017-01-20 01:58:26 +00:00
Svet Ganov
17671ff0bf Use separate switch ops for runtime permissions am: e710a6fc66 am: 7751660b2a
am: c6107e1834

Change-Id: I7ddec832ff602026d28ea6f7ab649e72bde48d24
2017-01-20 01:56:57 +00:00
Jeremy Joslin
ddfbe07e96 Merge "Pass more data through the recommendation request."
am: 00514f1dc0

Change-Id: I97e11e876bcb7ccdb55a333b31f9970ae5edd001
2017-01-20 01:52:38 +00:00
Amin Shaikh
0027121964 Add Setting for curating saved open networks.
Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
2017-01-19 17:51:22 -08:00
Android Build Merger (Role)
583d798e41 Merge "Use separate switch ops for runtime permissions am: e710a6fc66 am: a2bbc26979" into nyc-mr2-dev-plus-aosp 2017-01-20 01:48:16 +00:00
Svet Ganov
c6107e1834 Use separate switch ops for runtime permissions am: e710a6fc66
am: 7751660b2a

Change-Id: Ib85eea6690b89cd4e5d8817fbea0845d9cdd0f45
2017-01-20 01:47:17 +00:00
Svet Ganov
49dc9048fd Use separate switch ops for runtime permissions am: e710a6fc66
am: a2bbc26979

Change-Id: I490613902b0c068fd95d3d9d8a4695769ca1e582
2017-01-20 01:47:14 +00:00
Treehugger Robot
00514f1dc0 Merge "Pass more data through the recommendation request." 2017-01-20 01:44:20 +00:00
Svet Ganov
7751660b2a Use separate switch ops for runtime permissions
am: e710a6fc66

Change-Id: Iac7d5e7f80ddbcafea3b1d26860e3cb0b46b6bd5
2017-01-20 01:41:20 +00:00
Svet Ganov
a2bbc26979 Use separate switch ops for runtime permissions
am: e710a6fc66

Change-Id: I86cd237bffdde972de69b91fa086ac5f5ec349e8
2017-01-20 01:41:11 +00:00
Jiaquan He
9cea684079 2D Recents: handle keyboard config changes. am: 44db90262e
am: a925230cbc

Change-Id: Iae7e4908f1fe7aec921cb2bc03ba433aebb4e929
2017-01-20 01:33:30 +00:00
TreeHugger Robot
4c7555c28a Merge "Tron metric for force stop app" 2017-01-20 01:31:11 +00:00
Jiaquan He
a925230cbc 2D Recents: handle keyboard config changes.
am: 44db90262e

Change-Id: I3b2594016b11c01671fd0f9e45ec3f0c673709fd
2017-01-20 01:25:14 +00:00