History log of /frameworks/base/core/java/android/bluetooth/BluetoothSap.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0146463d70355592da85c3605aaaef4cf0b7335e 17-Aug-2017 Jack He <siyuanh@google.com> Bluetooth: Thread-safe binder invocation

* Binder object may become null between null check and actual invocation
if using a instance private variable assignable by service connection
callbacks
* The solution to this problem without locking is to assign existing
binder variable to a local final variable before the null check
* Any further invocation to a disconnected binder object will result in
RemoteException that is caught by the try-catch block
* Read and write to volatile variable is always atomic and hence thread-safe
* Removed unnecessary synchronization in BluetoothAdapter constructor
* Private mConnection objects should be final
* Simplfied several return statements where booleans can be returned
directly
* Removed unnecessary catches for NPE since there won't be any

Bug: 64724692
Test: make, pair and use devices, no functional change
Change-Id: Ifc9d6337c0d451a01484b61243230725d5314f8e
(cherry picked from commit 16eeac356c68f3674677169b618774718ec982b2)
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java
0a17db1cc5942ea000ca87bb72853de57a15ec64 04-Nov-2016 Jeff Sharkey <jsharkey@android.com> Detect non-oneway calls leaving system_server.

To protect system stability, any Binder calls leaving the
system_server must carefully be performed using FLAG_ONEWAY (or
the 'oneway' verb in AIDL) which prevents the call from blocking
indefinitely on the remote process.

In this CL, the system_server uses the new Binder.setWarnOnBlocking()
method to enable detection by default for all remote Binder
interfaces. It can also use Binder.allowBlocking() to allow
blocking calls on certain remote interfaces that have been
determined to be safe.

This CL adds the 'oneway' verb to several interfaces and methods
where it should have been added, and marks a handful of system
ContentProviders as being safe to call into. Also, we assume that
any services obtained from ServiceManager are part of the core
OS, and are okay to make blocking calls to.

Test: builds, boots, runs with minimal logs triggered
Bug: 32715088
Change-Id: Ide476e120cb40436a94b7faf7615c943d691f4c0
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java
f308ab01dc9e7431b117cf034415495ad45621db 30-May-2016 ugo_yu <ugo_yu@htc.com> Correct typo in BluetoothSap binder

This patch fixed IBluetoothSap typo as IBluetoothMap in doBind.

Fixes: 29025598
Change-Id: Ieab3d1583839db0a33b1cfa4d2de1f27c9cb3fe4
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java
ab2581398c812917145088590bd18eb83f3a2ea6 04-May-2015 Andre Eisenbach <eisenbach@google.com> BluetoothSap class should not be public

Bug: 20823932
Change-Id: I87dfa10b994f7a14c123bb384925c08b34bfbe67
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java
6a3083555153bff7a65f86c16248cf0a063919aa 15-Apr-2015 Yorke Lee <yorkelee@google.com> Fix make update-api

Change-Id: Iaee002c64096fbd6ba05d6484cc50840146a4af0
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java
2a5f608e7a5765db3b91165dac5b6280b26da26c 19-Mar-2015 Casper Bonde <c.bonde@samsung.com> Add support for Bluetooth Sim Access Profile (2/4)

Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
/frameworks/base/core/java/android/bluetooth/BluetoothSap.java