OSDN Git Service

android-x86/packages-apps-Bluetooth.git
7 years agoMerge tag 'android-6.0.1_r79' into marshmallow-x86 marshmallow-x86 android-x86-6.0-r3
Chih-Wei Huang [Thu, 23 Mar 2017 15:05:28 +0000 (23:05 +0800)]
Merge tag 'android-6.0.1_r79' into marshmallow-x86

Android 6.0.1 release 79

7 years agoRemove MANAGE_DOCUMENTS permission as it isn't needed
Ajay Panicker [Thu, 17 Nov 2016 23:50:36 +0000 (15:50 -0800)]
Remove MANAGE_DOCUMENTS permission as it isn't needed

Bug: 32612586
Change-Id: Iebe7dc9b198ce99d5921f5a349ba9d5d4424d156
(cherry picked from commit 3b99f4c14fd052de886c77e7d40e401905e792fa)

7 years agoMerge tag 'android-6.0.1_r74' into marshmallow-x86 android-x86-6.0-r2
Chih-Wei Huang [Tue, 10 Jan 2017 14:13:57 +0000 (22:13 +0800)]
Merge tag 'android-6.0.1_r74' into marshmallow-x86

Android 6.0.1 release 74

7 years agoFix setPairingConfirmation permissions issue (1/2)
Ajay Panicker [Thu, 8 Sep 2016 17:55:51 +0000 (10:55 -0700)]
Fix setPairingConfirmation permissions issue (1/2)

setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iae8e31b25795989446265fdcc5eb27e6ffaf29aa
(cherry picked from commit df3304a333d8c385f9d5cb0e691fb72d940ec273)

7 years agoMerge tag 'android-6.0.1_r52' into marshmallow-x86 android-x86-6.0-r1
Chih-Wei Huang [Fri, 8 Jul 2016 11:14:27 +0000 (19:14 +0800)]
Merge tag 'android-6.0.1_r52' into marshmallow-x86

Android 6.0.1 Release 52 (MOB30R)

7 years agoMerge tag 'android-6.0.1_r46' into marshmallow-x86
Chih-Wei Huang [Tue, 7 Jun 2016 00:17:36 +0000 (08:17 +0800)]
Merge tag 'android-6.0.1_r46' into marshmallow-x86

Android 6.0.1 release 46

7 years agoAdd guest mode functionality (3/3)
Ajay Panicker [Fri, 18 Mar 2016 00:12:08 +0000 (17:12 -0700)]
Add guest mode functionality (3/3)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: If4a8855faf362d7f6de509d7ddc7197d1ac75cee

7 years agoRevert "Fix build: Build Bluetooth as a 32 bit app."
Chih-Wei Huang [Wed, 26 Aug 2015 17:31:32 +0000 (01:31 +0800)]
Revert "Fix build: Build Bluetooth as a 32 bit app."

The Bluez is compatible with 64-bit targets.

This reverts commit 05a3b3562d1f114c5b9875ddfea5d913575ecaf0.

7 years agoHFP: Fix not handling Audio Disconnected event in Connected state
Szymon Janc [Tue, 17 Feb 2015 14:52:31 +0000 (15:52 +0100)]
HFP: Fix not handling Audio Disconnected event in Connected state

It is possible that remote will reject SCO connection. In such case
Audio Connecting -> Audio Disconnected intent should be sent.

Change-Id: I882308f8cc1cb4848deec6f809a5a0bdc1adfe26

7 years agoHealthService: Fix not adding channel to channel list
Szymon Janc [Fri, 4 Jul 2014 12:24:10 +0000 (14:24 +0200)]
HealthService: Fix not adding channel to channel list

Channel is not added to channel list on success of connect channel
request. Upon connection status (connecting) callback it searches
for channel id but id does not exists and treating it as incoming
connection.

Change-Id: Id1b2bcbbf9b5eaf958d391055dd0ffeaf9aa0a64

7 years agoGATT: Fix parameters order for gattClientGetIncludedServiceNative
Szymon Janc [Mon, 30 Jun 2014 15:51:55 +0000 (17:51 +0200)]
GATT: Fix parameters order for gattClientGetIncludedServiceNative

inclSrvcInstId and inclSrvcType were in reverse order.

Change-Id: I28c1f464344af2893c1a63f72cae8d49eb7bb990

8 years ago"DO NOT MERGE" Add write SMS protection
Seven Shen [Wed, 6 Apr 2016 19:25:17 +0000 (12:25 -0700)]
"DO NOT MERGE" Add write SMS protection

Bug: 25138326
Change-Id: I9f418370b8725d49e3734406b6f435107bcff021

8 years agoDO NOT MERGE Enhance AVRCP Absolute Volume control implementation
Liejun Tao [Fri, 18 Dec 2015 20:59:01 +0000 (14:59 -0600)]
DO NOT MERGE Enhance AVRCP Absolute Volume control implementation

1. Remember the current local volume level, current remote volume level.
When user adjusts the volume, compare the returned remote volume
level with desired volume level, if they don't match, do retry.

2.Learn and remember the volume mapping between phone volume level and
remote volume level as the user adjusts volume. When user adjusts to one
remembered volume level, use the mapping directly. Otherwise calculate
the remote volume level and try with method described in step one.

3. Blacklist device if remote device does not tell its initial volume.

4. Define optional threshold for initial volume level to avoid headset
being too loud upon re-connection.

Signed-off-by: Liejun Tao <baibai@motorola.com>
Change-Id: I78112f5f401666f5a680561473a5c7f914071fbe

8 years agoDO NOT MERGE Read Bluetooth interop database entries from settings (2/2)
Andre Eisenbach [Thu, 14 Jan 2016 10:06:23 +0000 (02:06 -0800)]
DO NOT MERGE Read Bluetooth interop database entries from settings (2/2)

Interop database entries are stored in the system settings entry
"BluetoothInteropDatabase". The format is a list of entries separated by
";". An entry consists of a BDA fragment, followed by a comma and an
integer representing a feature from interop.h.

Example:
To disable LE secure connections for devices starting with BDA 11:22:33,
use "11:22:33,0".

Bug: 26548845
Change-Id: I5903930178b70d1eb52d64b1c6051ce8ee346da4

8 years agoFix memory leak in Bluetooth AVRCP JNI
Casper Bonde [Mon, 4 Jan 2016 15:13:13 +0000 (16:13 +0100)]
Fix memory leak in Bluetooth AVRCP JNI

When rebasing change-id I3941793f9843abf4afa5ffbee40d1d01c118b29b
later change bbb4110b455b3aa29106d5b4f0a37e1be8e09475 in AOSP,
a memory leak fix was removed by accident. This patch re-enables
the memory leak fix.

Bug: 26383160
Change-Id: I70fd2ea00f6135803f92aad3adda9ce38f47cc32
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
(cherry picked from commit 3a4b8693ee49932247a96099942fa1cecb4670bc)

8 years ago[DO NOT MERGE ANYWHERE] Null terminate MAP instance information
Ajay Panicker [Fri, 8 Jan 2016 00:05:11 +0000 (16:05 -0800)]
[DO NOT MERGE ANYWHERE] Null terminate MAP instance information

Bug: 26437927
Change-Id: I673de7f7c68b9a02b234bb99c6f89c7fc36f90c9

8 years agoDO NOT MERGE Fix SMS delivered successfully but stuck SENDING issue
Ashwini Munigala [Mon, 7 Sep 2015 16:08:09 +0000 (21:38 +0530)]
DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issue

Receive and handle ACTION_MESSAGE_SENT intent for SMS type
message to move it to SENT folder when pushMessage request
from MCE  is processed and SMS delivered successfully.

Bug: 22343270
CRs-Fixed: 903561
Change-Id: I9dafffc737a34233ede2d10e22cd969f520a12cf

8 years agoRemove Vcard filter for call-logs
Ajay Panicker [Thu, 22 Oct 2015 19:00:25 +0000 (12:00 -0700)]
Remove Vcard filter for call-logs

Timestamps were being incorrectly filtered out of Vcards when sending
call-logs.

Bug: 25084927
Change-Id: Ied8912e7d2fdbcc6e6980c3773c4ec5a449842ec

8 years agoFix file permissions for Bluetooth share
Ajay Panicker [Tue, 13 Oct 2015 22:31:47 +0000 (15:31 -0700)]
Fix file permissions for Bluetooth share

Used a file provider to serve up URIs to allow
applications to access files in the external
Bluetooth directory.

Bug: 23367919
Change-Id: Iadcdcafb235f3eeb50a0e147f3ef982fc9ee38b3

8 years agoFix foreground scans for pre-M apps when location is disabled
Fyodor Kupolov [Fri, 18 Sep 2015 22:55:21 +0000 (15:55 -0700)]
Fix foreground scans for pre-M apps when location is disabled

Foreground scans were still broken even for L-or-earlier apps when the
location was disabled.

Bug: 24203266
Change-Id: Iaad8d7828a4b383b6cc0a033e94c7d2cd8c9328b

8 years agoSAP: Fix missing connect response when call ongoing at connect
Hemant Gupta [Tue, 29 Sep 2015 18:35:40 +0000 (20:35 +0200)]
SAP: Fix missing connect response when call ongoing at connect

The CALL_ONGOING_STATE was set twice, causing the connect
response not to be sent to the peer device when there was an
ongoing call on DUT. This was violating the SAP Spec.

Bug: 24520367
Change-Id: I290d924870381a82a4abd8b6c42a6d0ebf55652f

8 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 25 Sep 2015 02:17:21 +0000 (19:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: I65c7851b505747cca3d79e899ac168f07520fa0a
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 18 Sep 2015 17:04:53 +0000 (10:04 -0700)]
Import translations. DO NOT MERGE

Change-Id: I1ebce88cb2ffc43352d10ab0a81874f87e4f2d48
Auto-generated-cl: translation import

8 years agoAllow senderAddressing on default filter for message Listing
Ajay Panicker [Thu, 10 Sep 2015 23:31:04 +0000 (16:31 -0700)]
Allow senderAddressing on default filter for message Listing

Adjusted the PARAMETER_MASK_DEFAULT constant for when a
message listing request is recieved and a message filter isnt
provided. This new filter value causes the sender_address field
to be sent along with all the other default information.

Bug: 22163529
Change-Id: I49444cfb341d2e6cc72bdab55aa441d712b03f14

8 years agoMove SMS message to proper folder after sending
Ajay Panicker [Wed, 9 Sep 2015 19:11:51 +0000 (12:11 -0700)]
Move SMS message to proper folder after sending

Move a SMS message to the correct folder upon receiving an intent
detailing if the message was succesfully sent or not. If sent
successfully, move to the SENT folder, otherwise move it to
the FAILED folder.

Bug: 22992865
Change-Id: Ifdcfb7bb613844f507ef27460ead520c6573b89d

8 years agoAdd NREC setting routine even after SCO connected
Sungmin Choi [Fri, 4 Sep 2015 22:01:26 +0000 (15:01 -0700)]
Add NREC setting routine even after SCO connected

Bug: 23471393
Change-Id: I46264238e4810a7f280e656220bc68e76eb0cb37
Signed-off-by: koh.changseok <koh.changseok@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
8 years agoSAP: Fix missing attribute in disconnect_ind
Casper Bonde [Fri, 28 Aug 2015 10:48:53 +0000 (12:48 +0200)]
SAP: Fix missing attribute in disconnect_ind

The internal TEST flag was removing too much code.
To make it easier to run test, and avoid future issues
with removing needed code, the TEST flag is no longer used
to remove code.

This bug was noticed when running the PTS testcases without the
PTS_TEST flag set. It is assumed that this fix will make
TC_SERVER_DCN_BV_02_I work without the PTS flag, but unless PTS
have updated their test case to accept both a gracefull disconnect
and a forced disconnect, TC_SERVER_DCN_BV_03_I will still fail in
a production build. The SAP spec suggest to use a gracefull disconnect
when initiating a disconnect from a server, hence it is not a good
idea to expose a force disconnect option to the used without first
having tried a gracefull disconnect. Hence the PTS test case
implementation is in conflict with the intented use specified in
the SAP specification.

Without this fix a build with PTS_TEST=false will not work as
intented.

PTS_TEST replaced with system property bt.sap.pts. Set it to true
to enable the force disconnect button.

Bug: 23614694
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Change-Id: I776a53d6e786c21000ef62094f9a9948ee5880b8

8 years agoSAP: Fix logic to skip padding bytes for requests received
Casper Bonde [Fri, 28 Aug 2015 14:28:03 +0000 (16:28 +0200)]
SAP: Fix logic to skip padding bytes for requests received

As per SAP spec, padding bytes can be 0-3 bytes, but the current code
has incorrect logic, that would lead to calculation of padding bytes
as 4 in case the APDU length was multiple of 4, which would lead to
incorrect parsing logic in SAP Server and can lead to issues of no
response for APDU request from SAP Server as it keeps waiting for
reading more bytes from rfcomm which are not present.

Also check added in code not to send msg to RIL if socket is null to
prevent crash in BT Sap module.

Bug: 23024598
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Change-Id: I24e4a6b850709c9c32b7e0992626a0219dacef03

8 years agoam bf37a029: Fix column ID for PBAP name lookup
Andre Eisenbach [Tue, 1 Sep 2015 01:32:55 +0000 (01:32 +0000)]
am bf37a029: Fix column ID for PBAP name lookup

* commit 'bf37a0295d110b77b635ca2986172bbdd59331bb':
  Fix column ID for PBAP name lookup

8 years agoFix column ID for PBAP name lookup
Andre Eisenbach [Tue, 1 Sep 2015 00:17:42 +0000 (17:17 -0700)]
Fix column ID for PBAP name lookup

When a phonebook lookup is performed to resolve a phone number into a
name, the wrong column ID is used to retrieve the value from the cursor,
causing an un-caught exception and a failed lookup.

Bug: 22953958
Change-Id: I1f826412916012382903fdf30d43d5cb3516432c

8 years agoam 9135d866: HFP/A2DP: Remove pending auto-connect messages when connected
Ajay Panicker [Thu, 27 Aug 2015 19:33:32 +0000 (19:33 +0000)]
am 9135d866: HFP/A2DP: Remove pending auto-connect messages when connected

* commit '9135d866b12ff019a4eae37e7a8c0df56a4383f2':
  HFP/A2DP: Remove pending auto-connect messages when connected

8 years agoHFP/A2DP: Remove pending auto-connect messages when connected
Ajay Panicker [Wed, 26 Aug 2015 20:58:38 +0000 (13:58 -0700)]
HFP/A2DP: Remove pending auto-connect messages when connected

Fixes a bug in which being paired with multiple headsets causes
previously connected headsets to disconnect. This fix removes
pending connect attemps once one device is successfully connected.

Bug: 23111466
Change-Id: Id471189d92643b9626e63197c00e76defd0a72bf

8 years agoam 72ecb4ca: Make location enabled check configurable when returning scan results.
Sharvil Nanavati [Thu, 20 Aug 2015 18:39:47 +0000 (18:39 +0000)]
am 72ecb4ca: Make location enabled check configurable when returning scan results.

* commit '72ecb4caa630b63f66505ccb202a807b1af4e294':
  Make location enabled check configurable when returning scan results.

8 years agoMake location enabled check configurable when returning scan results.
Sharvil Nanavati [Wed, 19 Aug 2015 18:17:31 +0000 (11:17 -0700)]
Make location enabled check configurable when returning scan results.

Some device classes (e.g. Wear) don't allow location to be enabled but
would still like to allow LE scanning to take place. This patch allows
the location enabled check to be bypassed if the platform is so configured.
Even if the location check is disabled, the calling app must still have
one of the location permissions.

Bug: 21852542
Change-Id: I206366ce262776d4668c0c42e066f0e20f5fdfeb

8 years agoMerge "SAP: Do not send padding when packet size is mutiple of 4" into mnc-dr-dev
Vineeta Srivastava [Fri, 14 Aug 2015 06:45:17 +0000 (06:45 +0000)]
Merge "SAP: Do not send padding when packet size is mutiple of 4" into mnc-dr-dev

8 years agoam 312e10ad: Block results if location is disabled in Settings
Fyodor Kupolov [Fri, 14 Aug 2015 00:20:37 +0000 (00:20 +0000)]
am 312e10ad: Block results if location is disabled in Settings

* commit '312e10ad5bcbb1e3d021c4798d55c40f99c7a6ef':
  Block results if location is disabled in Settings

8 years agoBlock results if location is disabled in Settings
Fyodor Kupolov [Fri, 10 Jul 2015 01:40:51 +0000 (18:40 -0700)]
Block results if location is disabled in Settings

Apps holding PEERS_MAC_ADDRESS permission can still access scan results.

Bug: 21852542
Change-Id: I75fc289e8965df64efb7ff84fe5a4204904724ab

8 years agoam fdb62835: Revert "Bluetooth-OPP: Enable support to send same file multiple times"
Pavlin Radoslavov [Sat, 8 Aug 2015 02:51:19 +0000 (02:51 +0000)]
am fdb62835: Revert "Bluetooth-OPP: Enable support to send same file multiple times"

* commit 'fdb62835992e82681d2166dbf5716e26ab57d964':
  Revert "Bluetooth-OPP: Enable support to send same file multiple times"

8 years agoRevert "Bluetooth-OPP: Enable support to send same file multiple times"
Pavlin Radoslavov [Sat, 8 Aug 2015 01:13:07 +0000 (18:13 -0700)]
Revert "Bluetooth-OPP: Enable support to send same file multiple times"

This reverts commit 86449ac4bc7a8f4b2afeab4da420ae4f980c850a.

The revert is needed to address an issue that crashes Bluetooth.

Bug: 22836458
Change-Id: I8c8b51544637dd1c2250eb91e86cb2ca1bbc9fe7

8 years agoam 2f70ddb7: am 38b70dd3: (-s ours) am 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105...
Miao Chou [Sat, 8 Aug 2015 01:12:29 +0000 (01:12 +0000)]
am 2f70ddb7: am 38b70dd3: (-s ours) am 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '2f70ddb75a02ac0390822356d718e41017d6e8c6':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 38b70dd3: (-s ours) am 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a...
Miao Chou [Sat, 8 Aug 2015 01:02:32 +0000 (01:02 +0000)]
am 38b70dd3: (-s ours) am 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '38b70dd36255415c1a9fa638122ad4689846f393':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774...
Miao Chou [Sat, 8 Aug 2015 00:56:14 +0000 (00:56 +0000)]
am 89cdf16b: am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '89cdf16b01a296857ea57801476f642cf0b4f1ec':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5...
Miao Chou [Sat, 8 Aug 2015 00:51:39 +0000 (00:51 +0000)]
am 2816b2cb: am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '2816b2cba06edb93b353b42087aec7f689035e6e':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam f29687ed: am 2c7ffe6b: (-s ours) am 1267abe1: am b117219a: am 46f1dd6d: am 19004c7...
Miao Chou [Sat, 8 Aug 2015 00:50:11 +0000 (00:50 +0000)]
am f29687ed: am 2c7ffe6b: (-s ours) am 1267abe1: am b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit 'f29687ed0e0ff7c90bd43f89190ca0568f6135ae':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT...
Miao Chou [Sat, 8 Aug 2015 00:44:53 +0000 (00:44 +0000)]
am 0a268209: am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '0a268209aec6f988b1ef2a60c1e7a2c0130c7ee0':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 2c7ffe6b: (-s ours) am 1267abe1: am b117219a: am 46f1dd6d: am 19004c75: DO NOT...
Miao Chou [Sat, 8 Aug 2015 00:41:30 +0000 (00:41 +0000)]
am 2c7ffe6b: (-s ours) am 1267abe1: am b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '2c7ffe6b2dd6dbc9fb53c548401da46a9068bef1':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix securi...
Miao Chou [Sat, 8 Aug 2015 00:36:53 +0000 (00:36 +0000)]
am 6b58105c: am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '6b58105c04abdfb2e8aa0f198b41c4c5a9f35d20':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 1267abe1: am b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnera...
Miao Chou [Sat, 8 Aug 2015 00:35:40 +0000 (00:35 +0000)]
am 1267abe1: am b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '1267abe1e7b71de43625087d4e28e2101268000e':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities...
Miao Chou [Sat, 8 Aug 2015 00:29:05 +0000 (00:29 +0000)]
am b117219a: am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit 'b117219a842d3aacaf0ee4e790a01417aaf05213':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabil...
Miao Chou [Sat, 8 Aug 2015 00:27:52 +0000 (00:27 +0000)]
am 75d042a4: (-s ours) am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '75d042a4c53c09f82b4a95cf82ded21ffbcb017f':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission...
Miao Chou [Sat, 8 Aug 2015 00:23:30 +0000 (00:23 +0000)]
am ef9b774c: am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit 'ef9b774c992cbff61502a3eb6c680862db26a468':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission...
Miao Chou [Sat, 8 Aug 2015 00:23:15 +0000 (00:23 +0000)]
am 46f1dd6d: am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '46f1dd6d20d4108a44f06137a176d6548c6a0ac6':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting...
Miao Chou [Sat, 8 Aug 2015 00:17:47 +0000 (00:17 +0000)]
am 0f6aaa5a: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '0f6aaa5a945345b273bce16429c5ac56f3d1e7a9':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoam 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting...
Miao Chou [Sat, 8 Aug 2015 00:16:42 +0000 (00:16 +0000)]
am 19004c75: DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

* commit '19004c751f36aa2b01d3e03d4f761d8897542bd2':
  DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoDO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS
Miao Chou [Mon, 20 Jul 2015 19:14:25 +0000 (12:14 -0700)]
DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

This CL adds permission check to avoid unauthorized deletion of any MMS/SMS
messages in BluetoothMapContentObserver.actionMessageSentDisconnected
function.

Bug: 22343270
Change-Id: I30254036309733be4d54db17a8ef17a571cd1c5a

8 years agoDO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS
Miao Chou [Mon, 20 Jul 2015 19:14:25 +0000 (12:14 -0700)]
DO NOT MERGE Fix security vulnerabilities in permission of deleting MMS/SMS

This CL adds permission check to avoid unauthorized deletion of any MMS/SMS
messages in BluetoothMapContentObserver.actionMessageSentDisconnected
function.

Bug: 22343270
Change-Id: I30254036309733be4d54db17a8ef17a571cd1c5a

8 years agoam 6eb32d5f: Implement Bluetooth settings factory reset (1/5)
Ajay Panicker [Wed, 5 Aug 2015 18:01:12 +0000 (18:01 +0000)]
am 6eb32d5f: Implement Bluetooth settings factory reset (1/5)

* commit '6eb32d5f7c30f04da45c3da0974bbb63725a0978':
  Implement Bluetooth settings factory reset (1/5)

8 years agoImplement Bluetooth settings factory reset (1/5)
Ajay Panicker [Tue, 28 Jul 2015 23:47:54 +0000 (16:47 -0700)]
Implement Bluetooth settings factory reset (1/5)

Implemented the factory reset function to be used to reset all bluetooth
settings on device to factory default

Bug: 16161518

8 years agoSAP: Do not send padding when packet size is mutiple of 4
koh.changseok [Wed, 22 Jul 2015 08:34:53 +0000 (17:34 +0900)]
SAP: Do not send padding when packet size is mutiple of 4

Bug: 22943799
Change-Id: I48d411f4e3a79a891360a9a855c4680bea19d748

8 years agoam 1dd20863: Merge "Change MNC codename to just M." into mnc-dev
Dianne Hackborn [Fri, 31 Jul 2015 19:42:16 +0000 (19:42 +0000)]
am 1dd20863: Merge "Change MNC codename to just M." into mnc-dev

* commit '1dd20863cde3b61cea48d2e06d1814f5f9651691':
  Change MNC codename to just M.

8 years agoMerge "Change MNC codename to just M." into mnc-dev
Dianne Hackborn [Fri, 31 Jul 2015 17:12:00 +0000 (17:12 +0000)]
Merge "Change MNC codename to just M." into mnc-dev

8 years agoChange MNC codename to just M.
Dianne Hackborn [Wed, 29 Jul 2015 22:22:43 +0000 (15:22 -0700)]
Change MNC codename to just M.

Change-Id: I1e5989dbc73f89bd292465142560952bc8e44f59

8 years agoam 1b1433ad: Legacy foreground apps should continue getting scan results
Fyodor Kupolov [Wed, 29 Jul 2015 22:08:07 +0000 (22:08 +0000)]
am 1b1433ad: Legacy foreground apps should continue getting scan results

* commit '1b1433ad9b4d769a1f9e37284c5d80fb021d31d7':
  Legacy foreground apps should continue getting scan results

8 years agoLegacy foreground apps should continue getting scan results
Fyodor Kupolov [Wed, 29 Jul 2015 21:32:54 +0000 (14:32 -0700)]
Legacy foreground apps should continue getting scan results

Pre-M apps running in the foreground now get scan results. For legacy apps
running in the background, no results are returned and the error is logged.

Bug: 21852542
Change-Id: Ic7a91f34c6718c26f0dae30dade6a436fe1061af

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 29 Jul 2015 12:28:27 +0000 (05:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: I31cda5f4892ecf86a9c9119562f73932f163b8f1
Auto-generated-cl: translation import

8 years agoam edb6da17: Fix security vulnerabilities in permission of deleting MMS/SMS
Miao Chou [Fri, 24 Jul 2015 20:45:09 +0000 (20:45 +0000)]
am edb6da17: Fix security vulnerabilities in permission of deleting MMS/SMS

* commit 'edb6da171b8b7a6f9d4aa5a773d734a464f1ec66':
  Fix security vulnerabilities in permission of deleting MMS/SMS

8 years agoFix security vulnerabilities in permission of deleting MMS/SMS
Miao Chou [Mon, 20 Jul 2015 19:14:25 +0000 (12:14 -0700)]
Fix security vulnerabilities in permission of deleting MMS/SMS

This CL adds permission and PID checks to avoid unauthorized deletion of any
MMS/SMS messages in BluetoothMapContentObserver.actionMessageSentDisconnected
function.

Bug: 22343270
Change-Id: I30254036309733be4d54db17a8ef17a571cd1c5a

8 years agoam 27b5d6cb: Add ACCESS_COARSE_LOCATION to Bluetooth.
tturney [Fri, 24 Jul 2015 19:37:42 +0000 (19:37 +0000)]
am 27b5d6cb: Add ACCESS_COARSE_LOCATION to Bluetooth.

* commit '27b5d6cb0c044860cadccaeecf1300dad3887b21':
  Add ACCESS_COARSE_LOCATION to Bluetooth.

8 years agoAdd ACCESS_COARSE_LOCATION to Bluetooth.
tturney [Thu, 23 Jul 2015 19:50:32 +0000 (12:50 -0700)]
Add ACCESS_COARSE_LOCATION to Bluetooth.

Bug: 22713866
Change-Id: Idb53b0e9e877221cea3e4af3c8c7c4db51616105

8 years agoam e8e870c2: Return no track selected if no track is currently selected.
beryl hou [Fri, 24 Jul 2015 18:03:13 +0000 (18:03 +0000)]
am e8e870c2: Return no track selected if no track is currently selected.

* commit 'e8e870c24930f9b687572dbb80614e5aad6fbdfa':
  Return no track selected if no track is currently selected.

8 years agoReturn no track selected if no track is currently selected.
beryl hou [Fri, 3 Jul 2015 11:39:29 +0000 (19:39 +0800)]
Return no track selected if no track is currently selected.

Fix to satisfy AVRCP 1.4 spec.
In EVENT_TRACK_CHANGED response request,
if a track is selected , then return 0x0 in the response.
if no track currently selected,then return 0xFFFFFFFFFFFFFFFF in the INTERIN response.

Bug: 22519285

Change-Id: Iaaae1d4acf918049d99c27d9ad98bde15242ade1

8 years agoam ca8db073: Merge "Enforce location permission for apps targeting M" into mnc-dev
Fyodor Kupolov [Thu, 23 Jul 2015 19:20:57 +0000 (19:20 +0000)]
am ca8db073: Merge "Enforce location permission for apps targeting M" into mnc-dev

* commit 'ca8db07314e44453d807e6afeb8eb4eef303ee85':
  Enforce location permission for apps targeting M

8 years agoam 976a53f0: PBAP: Fixes for proper working of filter functionality.
Hemant Gupta [Thu, 23 Jul 2015 19:20:55 +0000 (19:20 +0000)]
am 976a53f0: PBAP: Fixes for proper working of filter functionality.

* commit '976a53f0f946e589aa2b5204ce3262abcf2afc55':
  PBAP: Fixes for proper working of filter functionality.

8 years agoMerge "Enforce location permission for apps targeting M" into mnc-dev
Fyodor Kupolov [Thu, 23 Jul 2015 17:22:30 +0000 (17:22 +0000)]
Merge "Enforce location permission for apps targeting M" into mnc-dev

8 years agoPBAP: Fixes for proper working of filter functionality.
Hemant Gupta [Wed, 24 Jun 2015 14:55:27 +0000 (20:25 +0530)]
PBAP: Fixes for proper working of filter functionality.

The change consists of fixes required for the filter to work properly.

Without this change the API isFilteredOut() was basically removing those
attributes which are set in the filter while the expected behaviour is other
way round, so renamed the API to isFilteredIn().
This patch also adds provision for filtering call log date and time when
it is not been asked as per the filter since it is not a mandatory attribute
as per the PBAP specification.
This patch also renames "NOTES" to "NOTE" which was incorrect property for
vcards.

Bug: 20077258
Change-Id: Ifbe57706b86031cbb9656556843da1bab700ef5d

8 years agoEnforce location permission for apps targeting M
Fyodor Kupolov [Wed, 22 Jul 2015 01:41:45 +0000 (18:41 -0700)]
Enforce location permission for apps targeting M

Enforce location permission for apps targeting M, for legacy apps, log an
error.

Bug: 21852542
Change-Id: Ic406df1727eb0939531a22b76c2df9b13f03ec81

8 years agoam 51b7ab3d: Merge "Remove extra logging with privacy info" into mnc-dev
Chenjie Luo [Wed, 15 Jul 2015 21:43:17 +0000 (21:43 +0000)]
am 51b7ab3d: Merge "Remove extra logging with privacy info" into mnc-dev

* commit '51b7ab3d2d9a166e1fac22ff442ad3221a838c91':
  Remove extra logging with privacy info

8 years agoMerge "Remove extra logging with privacy info" into mnc-dev
Chenjie Luo [Wed, 15 Jul 2015 17:16:03 +0000 (17:16 +0000)]
Merge "Remove extra logging with privacy info" into mnc-dev

8 years agoam 273303e7: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 16:25:23 +0000 (16:25 +0000)]
am 273303e7: (-s ours) Import translations. DO NOT MERGE

* commit '273303e7c0a0d1fe0493ed327070aeb8fb80c808':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 16:13:32 +0000 (09:13 -0700)]
Import translations. DO NOT MERGE

Change-Id: I88014ec98dbf4bde9445536af89fe148617a3b55
Auto-generated-cl: translation import

8 years agoam ea823170: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 14:40:17 +0000 (14:40 +0000)]
am ea823170: (-s ours) Import translations. DO NOT MERGE

* commit 'ea823170b8e5755e2542bfa4a242e9bfc15d8cf4':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 14:25:01 +0000 (07:25 -0700)]
Import translations. DO NOT MERGE

Change-Id: I07844963f015fa6086c69b1251030b02e5abeb2b
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 14:24:31 +0000 (07:24 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9edf401971f0d22103afd16054344412d9f69e07
Auto-generated-cl: translation import

8 years agoam e451efd4: Merge "Fix String alignment in BT Settings in Hebrew locale." into mnc-dev
Sanket Padawe [Wed, 15 Jul 2015 02:14:07 +0000 (02:14 +0000)]
am e451efd4: Merge "Fix String alignment in BT Settings in Hebrew locale." into mnc-dev

* commit 'e451efd492dba5cb252faeff8f7fe6e1b5ba0fdc':
  Fix String alignment in BT Settings in Hebrew locale.

8 years agoMerge "Fix String alignment in BT Settings in Hebrew locale." into mnc-dev
Sanket Padawe [Wed, 15 Jul 2015 02:01:48 +0000 (02:01 +0000)]
Merge "Fix String alignment in BT Settings in Hebrew locale." into mnc-dev

8 years agoam 3d7dd623: Merge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into...
Fyodor Kupolov [Wed, 15 Jul 2015 01:43:03 +0000 (01:43 +0000)]
am 3d7dd623: Merge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into mnc-dev

* commit '3d7dd623a385d678f2f5397500be92709aef5d1a':
  Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast

8 years agoMerge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into mnc-dev
Fyodor Kupolov [Wed, 15 Jul 2015 01:34:37 +0000 (01:34 +0000)]
Merge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into mnc-dev

8 years agoRequire ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast
Fyodor Kupolov [Tue, 14 Jul 2015 18:31:28 +0000 (11:31 -0700)]
Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast

Receivers of ACTION_FOUND intent are now required to have
ACCESS_COARSE_LOCATION permission.

Bug: 21852542
Change-Id: Ia3bca7e9cd117536a3eb4f4d1fe405604b2ff40f

8 years agoRemove extra logging with privacy info
Chenjie Luo [Tue, 14 Jul 2015 23:51:19 +0000 (16:51 -0700)]
Remove extra logging with privacy info

Bug: 22075764
Change-Id: Id2f1c0d1660abd0c18de46c64596fc1a17b974ce

8 years agoFix String alignment in BT Settings in Hebrew locale.
Sanket Padawe [Tue, 14 Jul 2015 21:16:41 +0000 (14:16 -0700)]
Fix String alignment in BT Settings in Hebrew locale.

Bug: 22213885
Change-Id: I3ce35487fff306fad2554e5f9980dfde509eeb84

8 years agoam a83cb18c: Merge "Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is...
Amit Mahajan [Mon, 13 Jul 2015 23:03:35 +0000 (23:03 +0000)]
am a83cb18c: Merge "Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used" into mnc-dev

* commit 'a83cb18c70bf159cd03bfdc20c54f299309520c6':
  Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used

8 years agoam 2e311eab: Disable SAP profile by default
Andre Eisenbach [Mon, 13 Jul 2015 23:01:58 +0000 (23:01 +0000)]
am 2e311eab: Disable SAP profile by default

* commit '2e311eabf558760b5ee04f50e5ad2adee9d68ff9':
  Disable SAP profile by default

8 years agoam 7100f0cb: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Mon, 13 Jul 2015 23:00:40 +0000 (23:00 +0000)]
am 7100f0cb: (-s ours) Import translations. DO NOT MERGE

* commit '7100f0cb8965dd364f8f11732ff4d644f476a1b4':
  Import translations. DO NOT MERGE

8 years agoMerge "Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used"...
Amit Mahajan [Mon, 13 Jul 2015 22:06:03 +0000 (22:06 +0000)]
Merge "Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used" into mnc-dev

8 years agoDisable SAP profile by default
Andre Eisenbach [Mon, 13 Jul 2015 15:42:02 +0000 (08:42 -0700)]
Disable SAP profile by default

Enable profile support in platform specific overlays.

Bug: 22436494
Change-Id: I09ce4460043da9746e45d384abe11d8d5eed4a2f

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Sat, 11 Jul 2015 16:49:05 +0000 (09:49 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie45db97cdab7a4b61a4c244de279c9c3be33b921
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Sat, 11 Jul 2015 14:05:57 +0000 (07:05 -0700)]
Import translations. DO NOT MERGE

Change-Id: I97edd1d88109a65ad3f7a80d2ed275ab6947e0a8
Auto-generated-cl: translation import

8 years agoRemoving READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used
Amit Mahajan [Sat, 11 Jul 2015 00:17:51 +0000 (17:17 -0700)]
Removing READ_PHONE_STATE perm since PRIVILEGED_PHONE_STATE is also used

Bug: 22376654
Change-Id: I437f9bf324950cb70bae5be76699824da5897a6f

8 years agoPBAP: New Missed calls parameter not set correctly
kschulz [Wed, 19 Feb 2014 07:39:51 +0000 (08:39 +0100)]
PBAP: New Missed calls parameter not set correctly

When a PCE pull the missed-calls-phonebook (mch.vcf) from the PSE, a parameter
stating the number of _new_ missed calls must be included in the reply.
Currently the parameter is included but it is always set to zero, which is
incorrect.
This fix corrects the variable used for new missed calls

Bug: 13022843
Change-Id: I6094c50a76711cfff9347596d70ac2300cfbb543

8 years agoMerge "Do not return devices when caller has no location permission" into mnc-dev
Fyodor Kupolov [Thu, 9 Jul 2015 21:43:01 +0000 (21:43 +0000)]
Merge "Do not return devices when caller has no location permission" into mnc-dev