OSDN Git Service
android-build-team Robot [Mon, 8 Jul 2019 23:37:32 +0000 (23:37 +0000)]
Snap for
5622519 from
fef57bda2a3cf2dca83848db5b8e789cb32dac1d to pi-platform-release
Change-Id: I6e3b65c572808128485a96f58ce863a1619544fc
android-build-team Robot [Mon, 8 Jul 2019 18:26:18 +0000 (18:26 +0000)]
Snap for
5600800 from
2d3cdf31bb8d8452380a3398e57e87f88318a274 to pi-platform-release
Change-Id: I022653b900c4996c7d78dde1b5b4c66beb729b95
android-build-team Robot [Wed, 5 Jun 2019 01:45:50 +0000 (01:45 +0000)]
Snap for
5524043 from
d0b9f6155d878426fa948b28b51b4b4c5989201e to pi-platform-release
Change-Id: Id0f4c260caf8b1b91cca9955c2a57e5c194574ba
android-build-team Robot [Wed, 15 May 2019 05:36:41 +0000 (05:36 +0000)]
Merge cherrypicks of [
7513497,
7518418,
7517880,
7517881,
7517882,
7517883,
7517884,
7517885,
7517886,
7517956,
7517957,
7518438,
7518102,
7517887,
7518141,
7518142,
7518143,
7518144,
7517888,
7517889,
7517890,
7517891,
7518439,
7518440,
7518441,
7518442,
7518443,
7518029,
7518104,
7517892,
7517893,
7518061,
7518444,
7517894,
7517895,
7518030,
7518031,
7518445,
7517896,
7517969,
7517897,
7518105,
7518145,
7518146,
7518446] into pi-qpr3-b-release
Change-Id: I6b5f00c3025a5ece557b79b29090c0d21d173262
Ted Wang [Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)]
Fix potential OOB read in sdpu_get_len_from_type
Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.
Bug:
117105007
Test: Manul
Merged-In: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
(cherry picked from commit
1243f8da338dadfe2a3c281a08297b431402d41c)
(cherry picked from commit
4d8e1d63e1a2116c47702d38d858f5a742e8292f)
Martin Brabham [Thu, 4 Apr 2019 21:57:41 +0000 (14:57 -0700)]
DO NOT MERGE: osi: Offload mutex pointer to local scope
Create a shared_ptr for the callback_mutex in the alarm struct.
When performing the callback, make a local shared_ptr reference.
lock_guard on the local shared_ptr reference.
Bug:
117997080
Test: atest net_test_bluetooth
Change-Id: Iab800f720f4ccc4735e4d494e0d458eb97b40a4a
(cherry picked from commit
947c58718f93629f2fba6e16d5163b6da07d0056)
android-build-team Robot [Tue, 14 May 2019 04:59:20 +0000 (04:59 +0000)]
Merge cherrypicks of [
7496339,
7495273,
7495624,
7496340,
7496341,
7496342,
7496343,
7495658,
7494789,
7494790,
7494791,
7496344,
7496345,
7496346,
7496347,
7496574,
7496348,
7496575,
7496576,
7496260,
7496349,
7496350,
7496440,
7496577,
7496578,
7496261,
7495625,
7496442,
7496351] into pi-qpr3-release
Change-Id: I7f080180cff0ec6fff34b8da8827cb3095b948b5
Ted Wang [Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)]
Fix potential OOB read in sdpu_get_len_from_type
Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.
Bug:
117105007
Test: Manul
Merged-In: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
(cherry picked from commit
1243f8da338dadfe2a3c281a08297b431402d41c)
(cherry picked from commit
4d8e1d63e1a2116c47702d38d858f5a742e8292f)
Martin Brabham [Thu, 4 Apr 2019 21:57:41 +0000 (14:57 -0700)]
DO NOT MERGE: osi: Offload mutex pointer to local scope
Create a shared_ptr for the callback_mutex in the alarm struct.
When performing the callback, make a local shared_ptr reference.
lock_guard on the local shared_ptr reference.
Bug:
117997080
Test: atest net_test_bluetooth
Change-Id: Iab800f720f4ccc4735e4d494e0d458eb97b40a4a
(cherry picked from commit
947c58718f93629f2fba6e16d5163b6da07d0056)
android-build-team Robot [Tue, 7 May 2019 21:45:22 +0000 (21:45 +0000)]
Snap for
5450365 from
f8a5ce9945240777b0d5cd2ba68fdda48e1484a8 to pi-platform-release
Change-Id: I93c7dd9dc1084fbe5f2f3cd8075b92fd05013d7e
android-build-team Robot [Fri, 3 May 2019 10:27:33 +0000 (10:27 +0000)]
Merge cherrypicks of [
7316389,
7315812,
7315813,
7316457,
7316055,
7315736,
7316390,
7316458,
7316459,
7316460,
7316561,
7316562,
7316563,
7316564,
7316565,
7316566,
7316567,
7316391,
7315814,
7316548] into pi-qpr3-b-release
Change-Id: Ic16b94afa3a1df9e88bf96354cd8f44bebbb6c59
Martin Brabham [Thu, 2 May 2019 16:47:33 +0000 (09:47 -0700)]
Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore."
This reverts commit
e0f1e9a32ce5d013aea911eabfc574093e40a7c0.
Change-Id: I730529ccaccb102871a57dcef2f2f381a3f145b1
(cherry picked from commit
2ed6438c23aebf6d5694a713f67bc3260544a6f1)
Martin Brabham [Thu, 2 May 2019 16:44:39 +0000 (09:44 -0700)]
Revert "[DO NOT MERGE] btif: Lighter weight file existence check"
This reverts commit
169ddca90e8bb6b6d286444a81b8eb1fbdb6c812.
(cherry picked from commit
ad8a136116051ca0f43491ec7493baf985d7d7f1)
Change-Id: I737d11b75079a683241eeee5b5f84a49ee42358f
Martin Brabham [Thu, 2 May 2019 16:44:24 +0000 (09:44 -0700)]
Revert "[DO NOT MERGE] btif: Avoid a couple string copies"
This reverts commit
f7e12c2ea6ff710acdeeaf8d238140cf746b79f6.
(cherry picked from commit
4e2d849a6049204921e4f00b9eee3bbebc88fa39)
Change-Id: I8fd4f917befb06d4cdc59a1f004b84dbc4c3e46c
Martin Brabham [Thu, 2 May 2019 16:44:13 +0000 (09:44 -0700)]
Revert "[DO NOT MERGE] btif: Avoid resource leak in error case"
This reverts commit
1c981598b8a9ad35555b55843123751886a180bf.
(cherry picked from commit
f6833ec3e953a8ff8ebd275899aecdda172eaa0f)
Change-Id: Id085386129497cf437172a71fc078ab6beaa73fa
Martin Brabham [Thu, 2 May 2019 16:43:27 +0000 (09:43 -0700)]
Revert "[DO NOT MERGE] Handle edge cases where input or hash/data could be null."
This reverts commit
8fce4bca61aaf8d0b364daf9108c7a06789e556c.
Change-Id: I67f0195660598f1939654a79ceb406e3ecfa0bcc
(cherry picked from commit
1400157615a4873176590800aa86d59390f52cff)
Martin Brabham [Thu, 2 May 2019 16:39:25 +0000 (09:39 -0700)]
Revert "[DO NOT MERGE] btif/osi: move I/O to OSI layer. disable for multi-user."
This reverts commit
e689266be5f841e601a614bfc13daaa31f9c0ce2.
(cherry picked from commit
9afb1b02f957d731ae4edd03809803425b687e99)
Change-Id: I169f929afb171092595593cff010fc9bd156f383
Myles Watson [Wed, 1 May 2019 18:32:19 +0000 (18:32 +0000)]
DO NOT MERGE Revert "DO NOT MERGE Separate SDP procedure from bonding state (1/2)"
This reverts commit
dc14eb8ba01ee20dc44bcba7b3c0a17550e756fa.
Bug:
79703832
Bug:
130553855
Reason for revert: Regression with cross-key pairing
Change-Id: I2c8bf4f6c41f87bd6b7b217486260da4a084e4bd
(cherry picked from commit
6d9d811e1ad6f89275a3202f295028e920af5bb0)
android-build-team Robot [Thu, 2 May 2019 06:21:40 +0000 (06:21 +0000)]
Merge cherrypicks of [
7293852,
7293854,
7292377,
7293923] into pi-qpr3-release
Change-Id: I0ac98c944c5d4834f7a362b6855ce09a1455299f
Myles Watson [Wed, 1 May 2019 18:32:19 +0000 (18:32 +0000)]
DO NOT MERGE Revert "DO NOT MERGE Separate SDP procedure from bonding state (1/2)"
This reverts commit
dc14eb8ba01ee20dc44bcba7b3c0a17550e756fa.
Bug:
79703832
Bug:
130553855
Reason for revert: Regression with cross-key pairing
Change-Id: I2c8bf4f6c41f87bd6b7b217486260da4a084e4bd
(cherry picked from commit
6d9d811e1ad6f89275a3202f295028e920af5bb0)
android-build-team Robot [Tue, 16 Apr 2019 22:42:24 +0000 (22:42 +0000)]
Merge cherrypicks of [
7077329,
7077440,
7077330,
7077468,
7076852,
7077469,
7077580,
7077581,
7077582,
7074025,
7077706,
7077707,
7077708,
7077388,
7077583,
7077584,
7077585,
7077726,
7077727,
7077331,
7077332,
7077459,
7077709,
7077710,
7077711,
7077712,
7077460,
7077461,
7077333,
7077334,
7077696] into pi-qpr3-release
Change-Id: I2136d4f180dc2e9efb6030ea13539c51fb1adc61
Jack He [Thu, 21 Mar 2019 00:51:09 +0000 (17:51 -0700)]
DO NOT MERGE Log encryption key size
MERGE CONFLCIT RESOLUTION TO PI-QPR3-RELEASE
* Log result from HCI_READ_ENCR_KEY_SIZE command
Bug:
124301137
Test: test drive with statsd
Change-Id: I776a3c357fcd75623fba241f150d1afb58aa23fb
(cherry picked from commit
81d1e248aca4cf0b7348909e450e083bd2a8f815)
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK
Test: compilation, manual testing
Bug:
128843052
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111
(cherry picked from commit
250529d6f1110c5b6117508dc8f200eaaeedaae5)
Jakub Pawlowski [Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)]
DO NOT MERGE Drop Bluetooth connection with weak encryption key
This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.
Bug:
124301137
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
(cherry picked from commit
398473b74ebab9a47bf6f0615460f3c44ca09269)
android-build-team Robot [Tue, 9 Apr 2019 00:40:58 +0000 (00:40 +0000)]
Snap for
5447620 from
6c931823ceab77b3698be3a0eafe4f70cdc03e09 to pi-qpr3-b-release
Change-Id: I13cbf260504f15c616803ad1e13cb30a0bfae7fa
android-build-team Robot [Mon, 8 Apr 2019 18:10:47 +0000 (18:10 +0000)]
Snap for
5310204 from
817facf4bc2a956fafa8a38c15ab5963f2d0bc0e to pi-platform-release
Change-Id: I704240f3f6bd8da8e23865ff7a6eb85b2233bcb1
Jakub Pawlowski [Mon, 8 Apr 2019 13:03:09 +0000 (06:03 -0700)]
[automerger skipped] DO NOT MERGE Don't persist bonds using sample LTK am:
292fcf8612 -s ours am:
e8dea68f6a -s ours
am:
dc17388efd -s ours
am skip reason: subject contains skip directive
Change-Id: I368bf6dcf1599b50fce99a9c55fb25bc896996cb
Jakub Pawlowski [Mon, 8 Apr 2019 13:00:22 +0000 (06:00 -0700)]
[automerger skipped] DO NOT MERGE Don't persist bonds using sample LTK am:
292fcf8612 -s ours
am:
e8dea68f6a -s ours
am skip reason: change_id I52fd484d42bf87e96dbc9e6456090f231ed48111 with SHA1
c0fb2a25f9 is in history
Change-Id: If68cf83db0a7388146f4e28a8433f8bd4c402e72
Jakub Pawlowski [Mon, 8 Apr 2019 12:55:18 +0000 (05:55 -0700)]
[automerger skipped] DO NOT MERGE Don't persist bonds using sample LTK
am:
292fcf8612 -s ours
am skip reason: change_id I52fd484d42bf87e96dbc9e6456090f231ed48111 with SHA1
c0fb2a25f9 is in history
Change-Id: I923523630e1e8530f23f3720611582353ffecff4
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK
Test: compilation, manual testing
Bug:
128843052
Merged-In: I52fd484d42bf87e96dbc9e6456090f231ed48111
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111
android-build-team Robot [Sun, 7 Apr 2019 21:10:06 +0000 (21:10 +0000)]
Snap for
5443865 from
a07ff2d7ded1ed282e8577105e8eb386ddfecda4 to pi-qpr3-b-release
Change-Id: I50ba91f7eaaa308402e18cfdc7b4f0288d8db6f0
Jakub Pawlowski [Fri, 5 Apr 2019 23:25:51 +0000 (16:25 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d am:
1dec8a9f3e skipped:
05e4e07328 am:
c07f304de8 am:
fc58eb3c8d
am:
97e9e1540a -s ours
am skip reason: subject contains skip directive
Change-Id: Ib1c23383e61d4faca8970cad71fa8f24dd2e354c
Jakub Pawlowski [Fri, 5 Apr 2019 23:23:05 +0000 (16:23 -0700)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d am:
1dec8a9f3e skipped:
05e4e07328 am:
c07f304de8
am:
fc58eb3c8d
Change-Id: I346917706000054f0aee3bc3084f60e15b7a4f57
Jakub Pawlowski [Fri, 5 Apr 2019 23:03:40 +0000 (16:03 -0700)]
[automerger skipped] DO NOT MERGE Don't persist bonds using sample LTK
am:
054dcec1c9 -s ours
am skip reason: subject contains skip directive
Change-Id: Ib7be32bd6046f7fce608fc0bef9d812ab6341b2a
Jakub Pawlowski [Fri, 5 Apr 2019 21:27:01 +0000 (14:27 -0700)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d am:
1dec8a9f3e skipped:
05e4e07328
am:
c07f304de8
Change-Id: I20eed1aeb29a3df15251033d02fd7d5d241a28dd
Android Build Merger (Role) [Mon, 1 Apr 2019 18:14:30 +0000 (18:14 +0000)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d am:
1dec8a9f3e skipped:
05e4e07328
Change-Id: Ia5e85f456ba202b1562b8f6fc2f3481f7a999691
Android Build Merger (Role) [Mon, 1 Apr 2019 18:14:23 +0000 (18:14 +0000)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d am:
1dec8a9f3e
Change-Id: I6d433ec513e6f04b8e117a08a9ce5bebdd42d8d4
Android Build Merger (Role) [Mon, 1 Apr 2019 18:14:19 +0000 (18:14 +0000)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68 am:
0fd5b5de7d
Change-Id: Idf19ab0fdf1da993701a6b24d47fccc982f3e2ff
Android Build Merger (Role) [Mon, 1 Apr 2019 18:14:16 +0000 (18:14 +0000)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9 am:
c544656a68
Change-Id: I21c8af012049cbf87adc90f1e3e46f47baddbca5
Android Build Merger (Role) [Mon, 1 Apr 2019 18:14:13 +0000 (18:14 +0000)]
[automerger] DO NOT MERGE Don't persist bonds using sample LTK am:
c0fb2a25f9
Change-Id: I2a44d852ccb88db0bf360ae094d240ca64e50a94
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK
Test: compilation, manual testing
Bug:
128843052
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK
Test: compilation, manual testing
Bug:
128843052
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK
Test: compilation, manual testing
Bug:
128843052
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111
android-build-team Robot [Sun, 31 Mar 2019 21:08:39 +0000 (21:08 +0000)]
Snap for
5422807 from
9515d91c6f4433bbe91e52668721a0fd539a3261 to pi-qpr3-b-release
Change-Id: I3497a1fab98c2d2e511f3cccc7793a61341674d3
TreeHugger Robot [Wed, 27 Mar 2019 05:09:25 +0000 (05:09 +0000)]
Merge "DO NOT MERGE Log encryption key size" into pi-dev
Jakub Pawlowski [Tue, 26 Mar 2019 23:20:56 +0000 (16:20 -0700)]
[automerger skipped] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
049bf4ec4e -s ours am:
5237f6add3 -s ours
am:
6caf0b031f -s ours
am skip reason: subject contains skip directive
Change-Id: I2a7fe904c4d72a88fa0db1f3d9e55753f8f5aa01
Jakub Pawlowski [Tue, 26 Mar 2019 23:14:53 +0000 (16:14 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e am:
a46c2b03a2 skipped:
f0213c3937 am:
1ecc29885a am:
262bb16a7e
am:
633bf7e310 -s ours
am skip reason: subject contains skip directive
Change-Id: I4cf14b1e4d53a53e553dfa31afc0a11b2e31dee1
Jakub Pawlowski [Tue, 26 Mar 2019 23:14:42 +0000 (16:14 -0700)]
[automerger skipped] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
049bf4ec4e -s ours
am:
5237f6add3 -s ours
am skip reason: change_id Id4b6b4e765628397a79e6806f45c2cd27acebd5b with SHA1
027532b367 is in history
Change-Id: I56780086be9ba71ee573956d0991824db7ebba0f
Jakub Pawlowski [Tue, 26 Mar 2019 23:14:08 +0000 (16:14 -0700)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e am:
a46c2b03a2 skipped:
f0213c3937 am:
1ecc29885a
am:
262bb16a7e
Change-Id: Iebb2f610252f8cec64ea7003fd1955d30b7fcf79
Jakub Pawlowski [Tue, 26 Mar 2019 23:02:58 +0000 (16:02 -0700)]
[automerger skipped] DO NOT MERGE Drop Bluetooth connection with weak encryption key
am:
049bf4ec4e -s ours
am skip reason: change_id Id4b6b4e765628397a79e6806f45c2cd27acebd5b with SHA1
027532b367 is in history
Change-Id: I9f7f56c8620a99ce5f2a4bf0e33eb94cdac829a5
Jakub Pawlowski [Tue, 26 Mar 2019 22:26:23 +0000 (15:26 -0700)]
[automerger skipped] DO NOT MERGE Drop Bluetooth connection with weak encryption key
am:
e32d4aa7a4 -s ours
am skip reason: subject contains skip directive
Change-Id: Ica0e4d762e9b9e50847c0403a1fd70724f9be020
Jakub Pawlowski [Tue, 26 Mar 2019 22:10:24 +0000 (15:10 -0700)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e am:
a46c2b03a2 skipped:
f0213c3937
am:
1ecc29885a
Change-Id: I43f7d01e376f8260e1120d3a403c41f45eca5950
Jakub Pawlowski [Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)]
DO NOT MERGE Drop Bluetooth connection with weak encryption key
This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.
Bug:
124301137
Merged-In: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
Jack He [Thu, 21 Mar 2019 00:51:09 +0000 (17:51 -0700)]
DO NOT MERGE Log encryption key size
* Log result from HCI_READ_ENCR_KEY_SIZE command
Bug:
124301137
Test: test drive with statsd
Change-Id: I776a3c357fcd75623fba241f150d1afb58aa23fb
Android Build Merger (Role) [Fri, 22 Mar 2019 18:30:05 +0000 (18:30 +0000)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e am:
a46c2b03a2 skipped:
f0213c3937
Change-Id: I028d493ce2aae117a28422b68df67dd424b28148
Android Build Merger (Role) [Fri, 22 Mar 2019 18:30:03 +0000 (18:30 +0000)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e am:
a46c2b03a2
Change-Id: I203993fecd15608d036b79ae9f1bcf1e6e5536b1
Android Build Merger (Role) [Fri, 22 Mar 2019 18:30:01 +0000 (18:30 +0000)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86 am:
b788f8394e
Change-Id: Iebe131904b01492285eaaeaf6408b76037b2643e
Android Build Merger (Role) [Fri, 22 Mar 2019 18:29:58 +0000 (18:29 +0000)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367 am:
5f48bc8a86
Change-Id: Ia0fb7cb6c331f4f30b4a2320fa52b66be425c74f
Android Build Merger (Role) [Fri, 22 Mar 2019 18:29:56 +0000 (18:29 +0000)]
[automerger] DO NOT MERGE Drop Bluetooth connection with weak encryption key am:
027532b367
Change-Id: I4fb660ac5ca288993e6f0643929eb1b1def1040c
Jakub Pawlowski [Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)]
DO NOT MERGE Drop Bluetooth connection with weak encryption key
This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.
Bug:
124301137
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
Jakub Pawlowski [Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)]
DO NOT MERGE Drop Bluetooth connection with weak encryption key
This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.
Bug:
124301137
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
Jakub Pawlowski [Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)]
DO NOT MERGE Drop Bluetooth connection with weak encryption key
This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.
Bug:
124301137
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
android-build-team Robot [Wed, 13 Mar 2019 18:04:25 +0000 (18:04 +0000)]
Merge cherrypicks of [
6716922,
6716923,
6716413,
6717023,
6717024,
6716716,
6715859,
6717160,
6717161,
6717162,
6717163,
6716295,
6717141,
6717181,
6717183,
6717184,
6717185,
6714937,
6717028,
6716717,
6716927,
6717200,
6717029,
6717030,
6717031,
6717032,
6717033,
6716928,
6717034,
6717035,
6716929,
6717201,
6716930,
6712377,
6712378,
6716643,
6717164,
6712379] into pi-qpr3-release
Change-Id: Ida0fb2e062df664494ba6be312ae6131018fe536
Ajay Panicker [Fri, 14 Dec 2018 22:55:02 +0000 (14:55 -0800)]
DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices.
If a device disconnects right before a update message gets queued, the
device becomes null and there is a crash when the callback for the
update executes on the disconnected device. This patch switches the
device reference from being Unretained to using a weak pointer so that
the callback just doesn't execute if the device is disconnected.
Bug:
120431125
Bug:
120445479
Test: Use the same test as b/
120477414 as that bug causes a disconnect
at the same time as a media update.
Change-Id: I1dcc08e5c9866106e7ec0dad52505e34b42da600
(cherry picked from commit
f083d1e076ea97e6feaa363f03dab3656bd03ee0)
android-build-team Robot [Tue, 12 Mar 2019 21:03:51 +0000 (21:03 +0000)]
Snap for
5369966 from
e689266be5f841e601a614bfc13daaa31f9c0ce2 to pi-qpr3-b-release
Change-Id: Ie69d983ca990b16efc8aa1f57f3c954fecb2115b
Martin Brabham [Mon, 25 Feb 2019 22:40:33 +0000 (14:40 -0800)]
[DO NOT MERGE] btif/osi: move I/O to OSI layer. disable for multi-user.
Two issues here.
One, read/write/modify/remove access to the checksum by the secondary user.
Two, Fail to access keystore with secondary user stack running (stack doesn't run as UID 1002)
Bug:
117993149
Test: atest net_test_btif net_test_bluetooth net_test_osi
Change-Id: I7af452e00a4f342f1c49006e86488b59195b70ce
Merged-In: I7af452e00a4f342f1c49006e86488b59195b70ce
Martin Brabham [Tue, 12 Feb 2019 19:23:39 +0000 (11:23 -0800)]
[DO NOT MERGE] Handle edge cases where input or hash/data could be null.
Bug: b/
117993149
Test: Manual; atest net_test_btif net_test_bluetooth
Change-Id: Ia91ea822ee2147b2a2d14bea250a708e8c10bae4
Merged-In: Ia91ea822ee2147b2a2d14bea250a708e8c10bae4
Greg Kaiser [Thu, 7 Feb 2019 16:40:11 +0000 (08:40 -0800)]
[DO NOT MERGE] btif: Avoid resource leak in error case
If our memory allocation fails, we make sure we close our file
before returning.
Bug: b/
117993149
Test: TreeHugger
Change-Id: I43b43d8b3d96e51a73bc8187ef614d02bbd31781
Merged-In: I43b43d8b3d96e51a73bc8187ef614d02bbd31781
Greg Kaiser [Thu, 7 Feb 2019 16:48:20 +0000 (08:48 -0800)]
[DO NOT MERGE] btif: Avoid a couple string copies
We pass a couple string arguments by const reference instead of
by copy.
Bug: b/
117993149
Test: TreeHugger
Change-Id: I01e476edf1f5e8c7b6fc88e0eb87ed3bbfca7a00
Merged-In: I01e476edf1f5e8c7b6fc88e0eb87ed3bbfca7a00
Greg Kaiser [Thu, 7 Feb 2019 16:54:01 +0000 (08:54 -0800)]
[DO NOT MERGE] btif: Lighter weight file existence check
We switch from the heavier weight fopen() to using access() to
check for file existence and readability. This avoids some of
the file opening overhead we don't need here.
Bug: b/
117993149
Test: TreeHugger
Change-Id: Ib47b24e9d96803b7822535f9f566aa7818b38953
Merged-In: Ib47b24e9d96803b7822535f9f566aa7818b38953
Martin Brabham [Fri, 1 Feb 2019 21:42:58 +0000 (13:42 -0800)]
[DO NOT MERGE] Implement key attestation using AndroidKeystore.
Store SHA256 hash of the config file in an encrypted file that has been encrypted using the Android Keystore API.
Bug: b/
117993149
Test: Manual
Change-Id: I26de9ea05f515d6643a83d11628490fb49e10743
Merged-In: I26de9ea05f515d6643a83d11628490fb49e10743
android-build-team Robot [Sun, 10 Mar 2019 21:01:32 +0000 (21:01 +0000)]
Snap for
5363709 from
cac66ef6599582224bf17780c669bdbc912660a6 to pi-qpr3-b-release
Change-Id: I32fa1b41df1140ed6855ce534c40fad06e843eef
TreeHugger Robot [Sat, 9 Mar 2019 03:09:41 +0000 (03:09 +0000)]
Merge "DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices." into pi-dev
Ajay Panicker [Fri, 14 Dec 2018 22:55:02 +0000 (14:55 -0800)]
DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices.
If a device disconnects right before a update message gets queued, the
device becomes null and there is a crash when the callback for the
update executes on the disconnected device. This patch switches the
device reference from being Unretained to using a weak pointer so that
the callback just doesn't execute if the device is disconnected.
Bug:
120431125
Bug:
120445479
Test: Use the same test as b/
120477414 as that bug causes a disconnect
at the same time as a media update.
Change-Id: I1dcc08e5c9866106e7ec0dad52505e34b42da600
android-build-team Robot [Fri, 8 Mar 2019 18:50:37 +0000 (18:50 +0000)]
Snap for
5240760 from
b9dd3863033facdd8608904e4dd59ff3cc52871b to pi-platform-release
Change-Id: I8098c6f610e684be5b84a984b163088d255420b8
Hansong Zhang [Fri, 8 Mar 2019 00:39:34 +0000 (16:39 -0800)]
[automerger skipped] [automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c am:
a2661852ce skipped:
3c413e34d2 am:
ec1eca1dfb am:
294210a1a2
am:
aa03b49791 -s ours
am skip reason: subject contains skip directive
Change-Id: I640047c7412d16eb5e48e15027eec92aeea13f5e
Hansong Zhang [Fri, 8 Mar 2019 00:09:35 +0000 (16:09 -0800)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c am:
a2661852ce skipped:
3c413e34d2 am:
ec1eca1dfb
am:
294210a1a2
Change-Id: I770c49c0620e4267d2134abbecc8b55193149227
Hansong Zhang [Thu, 7 Mar 2019 23:22:20 +0000 (15:22 -0800)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c am:
a2661852ce skipped:
3c413e34d2
am:
ec1eca1dfb
Change-Id: I8d891af970d9eea45384eff2967544adb6ffafc7
TreeHugger Robot [Thu, 7 Mar 2019 23:04:58 +0000 (23:04 +0000)]
Merge "DO NOT MERGE Fix length for L2CAP config type EXT FLOW" into nyc-dev
Jakub Pawlowski [Tue, 5 Mar 2019 11:10:02 +0000 (12:10 +0100)]
Clear the link key when releasing security records
Test: compilation
Bug:
127479372
Change-Id: Ia571a2048fa5ca85c45b03b39d398e480aadb55a
Merged-In: Ia571a2048fa5ca85c45b03b39d398e480aadb55a
(cherry picked from commit
acb0a7eb17ec327b46071bc482c8b9687b730fdc)
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:47 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c am:
a2661852ce skipped:
3c413e34d2
Change-Id: I5f0ad541fa702233322b96e5dd5c9d53233dea94
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:45 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c am:
a2661852ce
Change-Id: I6e56a6c02e5d7a3e23832c8e24550ae626a4dc6a
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:43 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178 am:
c97a452b7c
Change-Id: I747585195e3cf9137449dc777b64174a4a93c1f3
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:42 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe am:
066e401178
Change-Id: Ie35b3f093063898bc9d8cab84d221194f1ca007b
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:38 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am:
1fa0f29dbe
Change-Id: I24f0d31be7582e28ba9b96d836cd85bcf7f3ef4c
Hansong Zhang [Thu, 7 Mar 2019 18:50:04 +0000 (10:50 -0800)]
DO NOT MERGE Fix length for L2CAP config type EXT FLOW
Bug:
119870451
Test: POC
Change-Id: I11041dd03caad5569e930ff36b50fc9c2719c57f
android-build-team Robot [Wed, 27 Feb 2019 04:02:33 +0000 (04:02 +0000)]
Snap for
5339334 from
2a1ee659eaa5eb6a03d963f2b8e3ded860a1cc52 to pi-qpr3-release
Change-Id: I420f5037d8f471edb35b369a0cad6bc5a5728d0c
android-build-team Robot [Tue, 26 Feb 2019 06:01:06 +0000 (06:01 +0000)]
Snap for
5335558 from
2a1ee659eaa5eb6a03d963f2b8e3ded860a1cc52 to pi-qpr3-b-release
Change-Id: Iafb2b5a6059f9a71df0ac043275d9d827e0cfa97
TreeHugger Robot [Sat, 23 Feb 2019 07:30:06 +0000 (07:30 +0000)]
Merge "Fix mtu assignment with correct value" into pi-dev
TreeHugger Robot [Fri, 22 Feb 2019 05:04:53 +0000 (05:04 +0000)]
Merge "Do not close dump file descriptor" into pi-dev
TreeHugger Robot [Thu, 21 Feb 2019 23:44:19 +0000 (23:44 +0000)]
Merge "Fix for Bluetooth device name is resetting to default name after reboot" into pi-dev
android-build-team Robot [Thu, 14 Feb 2019 16:25:58 +0000 (16:25 +0000)]
Merge cherrypicks of [
6391991,
6392011,
6391992,
6391993,
6392031,
6392051,
6392052,
6392091,
6392111,
6392032,
6391994,
6391995,
6391996,
6391997,
6391998,
6391999,
6392000,
6392001,
6392002,
6392003,
6392004,
6392005,
6392006,
6392112,
6392113,
6392151,
6392152] into pi-qpr2-release
Change-Id: I98c59a6fe53618bd936cba434639cb53b6a897f2
Hansong Zhang [Thu, 10 Jan 2019 02:18:17 +0000 (18:18 -0800)]
btm_proc_smp_cback: Don't access p_dev_rec if freed
In btm_proc_smp_cback(), return after p_dev_rec is freed in the middle
to prevent use after free
Bug:
120612744
Test: Use ASAN build; connect to a LE device and wait for timeout
Change-Id: Ic9d0eaeb62a1a1b24884146ca82f4104fabc5bac
(cherry picked from commit
953dd279502980b1d8d30656eb78c6445a6e31f7)
Ugo Yu [Tue, 16 Oct 2018 06:53:35 +0000 (14:53 +0800)]
DO NOT MERGE Separate SDP procedure from bonding state (1/2)
- Do not stay in bonding state if the device is paried but still
discovering service.
- Report BOND_BONDED to Java after authentication is completed.
- Report empty UUID to Java if a classic Bluetooth device SDP
failed while pairing.
- Hold BOND_BONDED intent util SDP is findished.
- Only accept profile connection for the device is at bonded
state. Any attempt to connect while bonding would potentially
lead to an unauthorized connection.
Bug:
79703832
Test: runtest bluetooth, regression test
Change-Id: I023713e07308bfc0e5bb8d67f386bcc50f6a0f85
(cherry picked from commit
122e115b87fe98ca5e5e65b9765c146f9e52b65e)
(cherry picked from commit
dc14eb8ba01ee20dc44bcba7b3c0a17550e756fa)
Hansong Zhang [Sat, 2 Feb 2019 01:45:30 +0000 (17:45 -0800)]
resolve merge conflicts of
ec78d74706c3e81f91eee53e3d9f959f66e5d77f to pi-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id658b3485fdc0025bc44850be9f23bb2d2146d9b
(cherry picked from commit
6c0f22f324ed0bdf9dea3e803e5ee6176d03fdb4)
Hansong Zhang [Wed, 16 Jan 2019 20:33:26 +0000 (12:33 -0800)]
btm_ble_multi_adv: Check data length in HCI interface
For BleAdvertiserVscHciInterfaceImpl and
BleAdvertiserLegacyHciInterfaceImpl, the maximum size of scan response
and advertising packet data length should be BTM_BLE_AD_DATA_LEN (31).
Bug:
121145627
Test: POC
Change-Id: I7653a6c186b7313ef2b1547bca120b9d41c90140
(cherry picked from commit
a99fe8a175a6d209e741871544ae3f857c8a7cbb)
android-build-team Robot [Wed, 13 Feb 2019 04:03:33 +0000 (04:03 +0000)]
Snap for
5304822 from
5980eefcfb684c4f2006be9a767d90fce99973c0 to pi-qpr3-release
Change-Id: I2c43d4e8ced654fa07d6a197ec7bc9d5a828e561
android-build-team Robot [Sat, 9 Feb 2019 02:19:28 +0000 (02:19 +0000)]
Snap for
5180536 from
6f2759c64311b505b1ddc73e2bfc9f0330845780 to pi-platform-release
Change-Id: Ia9fad0673602c58b504e41515cfe515e751fa848
Ugo Yu [Fri, 8 Feb 2019 20:42:30 +0000 (12:42 -0800)]
[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state (1/2)" into oc-dev am:
99495df519 -s ours am:
8d550cccd6 -s ours
am:
8500500386 -s ours
am skip reason: subject contains skip directive
Change-Id: I4f30022298edd7521c895bdceb743662e915b229
Ugo Yu [Fri, 8 Feb 2019 20:41:07 +0000 (12:41 -0800)]
[automerger skipped] DO NOT MERGE Separate SDP procedure from bonding state (1/2) am:
0989441858 -s ours am:
a6d6406255 -s ours
am:
feeb53795a -s ours
am skip reason: subject contains skip directive
Change-Id: Ie86e28c3ee0c779e9f4df6a1279750e67765eec9