summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE Read Bluetooth interop database entries from settings (2/2)Andre Eisenbach2016-02-241-0/+58
| | | | | | | | | | | | | | 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
* [DO NOT MERGE ANYWHERE] Null terminate MAP instance informationAjay Panicker2016-02-161-3/+4
| | | | | Bug: 26437927 Change-Id: I673de7f7c68b9a02b234bb99c6f89c7fc36f90c9
* DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issueAshwini Munigala2016-01-221-1/+80
| | | | | | | | | | 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
* Remove Vcard filter for call-logsAjay Panicker2015-10-221-4/+0
| | | | | | | | Timestamps were being incorrectly filtered out of Vcards when sending call-logs. Bug: 25084927 Change-Id: Ied8912e7d2fdbcc6e6980c3773c4ec5a449842ec
* Fix file permissions for Bluetooth shareAjay Panicker2015-10-201-1/+18
| | | | | | | | | Used a file provider to serve up URIs to allow applications to access files in the external Bluetooth directory. Bug: 23367919 Change-Id: Iadcdcafb235f3eeb50a0e147f3ef982fc9ee38b3
* Fix foreground scans for pre-M apps when location is disabledFyodor Kupolov2015-10-123-15/+25
| | | | | | | | Foreground scans were still broken even for L-or-earlier apps when the location was disabled. Bug: 24203266 Change-Id: Iaad8d7828a4b383b6cc0a033e94c7d2cd8c9328b
* SAP: Fix missing connect response when call ongoing at connectHemant Gupta2015-10-071-13/+22
| | | | | | | | | 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
* Allow senderAddressing on default filter for message ListingAjay Panicker2015-09-111-1/+1
| | | | | | | | | | 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
* Move SMS message to proper folder after sendingAjay Panicker2015-09-091-0/+3
| | | | | | | | | | 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
* Add NREC setting routine even after SCO connectedSungmin Choi2015-09-081-0/+5
| | | | | | | Bug: 23471393 Change-Id: I46264238e4810a7f280e656220bc68e76eb0cb37 Signed-off-by: koh.changseok <koh.changseok@lge.com> Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
* SAP: Fix missing attribute in disconnect_indCasper Bonde2015-09-073-97/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* SAP: Fix logic to skip padding bytes for requests receivedCasper Bonde2015-09-032-13/+21
| | | | | | | | | | | | | | | | 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
* am bf37a029: Fix column ID for PBAP name lookupAndre Eisenbach2015-09-011-4/+6
|\ | | | | | | | | * commit 'bf37a0295d110b77b635ca2986172bbdd59331bb': Fix column ID for PBAP name lookup
| * Fix column ID for PBAP name lookupAndre Eisenbach2015-08-311-4/+6
| | | | | | | | | | | | | | | | | | 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
* | am 9135d866: HFP/A2DP: Remove pending auto-connect messages when connectedAjay Panicker2015-08-272-4/+16
|\| | | | | | | | | * commit '9135d866b12ff019a4eae37e7a8c0df56a4383f2': HFP/A2DP: Remove pending auto-connect messages when connected
| * HFP/A2DP: Remove pending auto-connect messages when connectedAjay Panicker2015-08-262-4/+16
| | | | | | | | | | | | | | | | | | 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
* | am 72ecb4ca: Make location enabled check configurable when returning scan ↵Sharvil Nanavati2015-08-201-6/+14
|\| | | | | | | | | | | | | results. * commit '72ecb4caa630b63f66505ccb202a807b1af4e294': Make location enabled check configurable when returning scan results.
| * Make location enabled check configurable when returning scan results.Sharvil Nanavati2015-08-191-6/+14
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "SAP: Do not send padding when packet size is mutiple of 4" into ↵Vineeta Srivastava2015-08-141-2/+4
|\ \ | |/ |/| | | mnc-dr-dev
| * SAP: Do not send padding when packet size is mutiple of 4koh.changseok2015-08-041-2/+4
| | | | | | | | | | Bug: 22943799 Change-Id: I48d411f4e3a79a891360a9a855c4680bea19d748
* | Block results if location is disabled in SettingsFyodor Kupolov2015-08-123-1/+22
| | | | | | | | | | | | | | Apps holding PEERS_MAC_ADDRESS permission can still access scan results. Bug: 21852542 Change-Id: I75fc289e8965df64efb7ff84fe5a4204904724ab
* | Revert "Bluetooth-OPP: Enable support to send same file multiple times"Pavlin Radoslavov2015-08-083-46/+9
| | | | | | | | | | | | | | | | | | This reverts commit 86449ac4bc7a8f4b2afeab4da420ae4f980c850a. The revert is needed to address an issue that crashes Bluetooth. Bug: 22836458 Change-Id: I8c8b51544637dd1c2250eb91e86cb2ca1bbc9fe7
* | Implement Bluetooth settings factory reset (1/5)Ajay Panicker2015-08-051-0/+14
|/ | | | | | | Implemented the factory reset function to be used to reset all bluetooth settings on device to factory default Bug: 16161518
* Merge "Change MNC codename to just M." into mnc-devDianne Hackborn2015-07-311-2/+2
|\
| * Change MNC codename to just M.Dianne Hackborn2015-07-291-2/+2
| | | | | | | | Change-Id: I1e5989dbc73f89bd292465142560952bc8e44f59
* | Legacy foreground apps should continue getting scan resultsFyodor Kupolov2015-07-291-0/+16
|/ | | | | | | | 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
* Fix security vulnerabilities in permission of deleting MMS/SMSMiao Chou2015-07-241-85/+16
| | | | | | | | | 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
* Return no track selected if no track is currently selected.beryl hou2015-07-241-1/+10
| | | | | | | | | | | 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
* Merge "Enforce location permission for apps targeting M" into mnc-devFyodor Kupolov2015-07-231-2/+21
|\
| * Enforce location permission for apps targeting MFyodor Kupolov2015-07-211-2/+21
| | | | | | | | | | | | | | | | Enforce location permission for apps targeting M, for legacy apps, log an error. Bug: 21852542 Change-Id: Ic406df1727eb0939531a22b76c2df9b13f03ec81
* | PBAP: Fixes for proper working of filter functionality.Hemant Gupta2015-07-221-12/+18
|/ | | | | | | | | | | | | | | | 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
* Merge "Remove extra logging with privacy info" into mnc-devChenjie Luo2015-07-152-5/+0
|\
| * Remove extra logging with privacy infoChenjie Luo2015-07-152-5/+0
| | | | | | | | | | Bug: 22075764 Change-Id: Id2f1c0d1660abd0c18de46c64596fc1a17b974ce
* | Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcastFyodor Kupolov2015-07-141-2/+4
|/ | | | | | | | Receivers of ACTION_FOUND intent are now required to have ACCESS_COARSE_LOCATION permission. Bug: 21852542 Change-Id: Ia3bca7e9cd117536a3eb4f4d1fe405604b2ff40f
* PBAP: New Missed calls parameter not set correctlykschulz2015-07-101-12/+38
| | | | | | | | | | | 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
* Merge "Do not return devices when caller has no location permission" into ↵Fyodor Kupolov2015-07-093-5/+38
|\ | | | | | | mnc-dev
| * Do not return devices when caller has no location permissionFyodor Kupolov2015-07-063-5/+38
| | | | | | | | | | | | | | | | In onScanResult, skip a device if calling process has no location permission/appop Bug: 21852542 Change-Id: I4e3511b33d69d94c1df6e1bf2f9a351303a90685
* | Merge "Make string to plurals in BT inbound/outbound notification." into mnc-devSanket Padawe2015-07-091-4/+11
|\ \
| * | Make string to plurals in BT inbound/outbound notification.Sanket Padawe2015-07-091-4/+11
| | | | | | | | | | | | | | | Bug: 22215773 Change-Id: I21d06ec7839fdb4e1ba9b5a70c6ac7791788eb4f
* | | Set the Bluetooth state to OFF if there is disable timeout errorPavlin Radoslavov2015-07-091-2/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Previously, if there was "disable timeout" error during Bluetooth shutdown, the Bluetooth state was set back to ON. However, the internal Bluetooth stack runtime state was cleaned-up and practically unusable. The solution is not to re-enable Bluetooth if there is a "disable timeout" error. Bug: 21873347 Change-Id: I561683fa391f7bacbb1aa8f80d8f6583c7d3099c
* / Update UI properly in Connection race Conditions.Anubhav Gupta2015-07-071-6/+32
|/ | | | | | | | | | | Broadcast connection state of incoming device in pending state and update UI for disconnection of outgoing connection. This change in conjunction with bluedroid change handles race condition scenarios when incoming and outgoing A2dp connections collides. Bug: 22028876 Change-Id: Ibd80fc7010613887df74fb1903b16de73c77939a
* Send ACTION_ALIAS_CHANGED when remote device alias is changedAndre Eisenbach2015-06-242-2/+6
| | | | | Bug: 20341903 Change-Id: I6e9dbeb1d05bdcce56fab63ccdd701138c99f5a0
* Sends bond state change intent for unbonding a deviceSubramanian Srinivasan2015-06-231-0/+5
| | | | | | | | When remove bond API is called from the stack layer, the bond state change intent is not sent in the upper layers to unbond a device. Change-Id: I515bfaf3f1a575106b10e2f688b1e9de58770b87
* PBAP: Add support for PBAP 1.1.1 specificationHemant Gupta2015-06-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | This patch adds support for erratas to make the specification version compatible to PBAP 1.1.1 specification. Following errata needs to be supported to make the specification version compatible to PBAP 1.1.1 https://www.bluetooth.org/errata/errata_view.cfm?errata_id=1824 Proposed modification to the text of the spec: 5.3.3 Name This is the name of the folder to be retrieved. The value shall not include any path information, since the PullvCardListing function uses relative paths. An empty name header may be sent to retrieve the vCard Listing object of the current folder. However, it is illegal to issue a PullvCardListing request with an emtpy name header from the telecom/ folder. Any such request shall be responded to with a "Not Found" error message. Bug: 21896912 Change-Id: I0fb2c7d96b6e34d0bf83bb62901a8fd47c470fe6
* Fix compile errors due to OPP mergeAndre Eisenbach2015-06-232-2/+2
| | | | Change-Id: Ia07d99d58785c7e974b1fb32afaeb157ad337932
* Display proper file name while cancelling transferPradeep Panigrahi2015-06-231-0/+3
| | | | | | | | | | | | | | | | | | | | Use Case: 1) Send files in batch from remote to DUT 2) Cancel the transfer in between from either side. 3) Check name of the files in failed tranfer message. Failure: Name shown in the failure message is different than actual file name in batch Fix: Save names of all the selected files to be transferred even before starting of client thread so that names remain intact in the outbound information even when the batch is cancelled from initiator. Bug: 21896912 Change-Id: I42c98721365c4c8acb746d49ba9ceff5b0737b71
* Acquire the full wakelock only during user confirmation requestPradeep Panigrahi2015-06-231-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | Use Case: 1. Create obex connection from remote to DUT. 2. Dont transfer any file and wait for the screentimeout. 3. Check if device goes to suspend. Failure: Device does not go to suspend mode if OPP connection is present. Root Cause: Acquire the full wakelock when user confirmation is required and not during opp connection request. Fix: Obex server session will acquire the full wakelock only when user confirmation is required. Otherwise, if session acquires the full wakelock during connect request and did not receives the PUT request from remote full wakelock will not be released. In this scenario DUT will not go to suspend and cause battery drain. Bug: 21896912 Change-Id: I17b90b206016c2a34d724393ac3b17a41983722c
* Use long as file size instead of int while using OPP.Pradeep Panigrahi2015-06-238-22/+41
| | | | | | | | | | | | | | | | | | | | Use Case: 1. Pair and connect to Dongle 2. Send a 2GB file from Dongle to DUT. Failure: File transfer failed in between. Fix: This patch fixes issue of problems in sending/receiving files which cannot be accomodated in int type of Java. Instead of using int, long data type is used, which can hold 64 bits data size in JAVA which is suitable for storing file sizes in GB. Changes are done in how updates are sent to progress bar which supports only int by using the percentage of data transferred to update the progress. Bug: 21896912 Change-Id: I49f9bf8a4a0e3668e32058d582a2700b0e6057e8
* Mark proper file transfer status upon OBEX response timeoutPradeep Panigrahi2015-06-231-0/+7
| | | | | | | | | | | | | | | | Use Case: 1) Pair with remote dongle and send a file over OPP. 2) Reset dongle such that there is obex response timeout. Failure: File transfer status is not marked a failed and hence cannot be retried Fix: This patch will handle the scenario of obex timeout which occurs due to cancelling the transfer in between and trying sending again. Bug: 21896912 Change-Id: Ide1a64e5874bda2c5cf71531f5971bc8bebf5e9f
* Avoid sending TRANSFER_COMPLETED_ACTION intent multiple times.Pradeep Panigrahi2015-06-231-2/+0
| | | | | | | | | | | | | | | | | | | | Use Case: 1. Share a picture through Bluetooth, select partner devices. 2. The partner devices do not confirm to receive the file. 3. Check the transfer status on the DUT. Failure: Failure Notification pops up twice when the shared files not received by the partner phone Fix: This change ensure that TRANSFER_COMPLETED_ACTION intent will not sent to receiver if there is any exception occurred during OPP operation because this intent is already sent to receiver from message handler. Bug: 22028876 Change-Id: I3ad2f24be185c37355dff43009a5236bede0106a