119fced54e5c091239407ede0ff1172102d3ffce |
|
18-Apr-2017 |
Jack He <siyuanh@google.com> |
Merge "OPP: Initialize OPP FileProvider after user unlock" am: cc7b936289 am: 4320d1f811 am: e47d33e556 Change-Id: Ie0a8de6bed994bf6de10d31bffcc35428d61725d
|
9408636a7db7ad35359b3c80d77dce0ae92459fa |
|
15-Apr-2017 |
Jack He <siyuanh@google.com> |
OPP: Initialize OPP FileProvider after user unlock * The FileProvider used by Bluetooth OPP profile used to be initialized before user unlock, resulting in file system access errors since credential encrypted volumes are not mounted and unlocked yet * Incomplete initialization also leads to NPE when getUriForFile is called * This change adds BluetoothOppProvider that only initializes after user unlocks the device Bug: 36274847 Test: make, Opp regression test Change-Id: I323b9084de1ff72922c4dd9866c36dd172696a8f
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
24bc6f18757cec2d0e71829164c8616e697d442f |
|
11-Apr-2017 |
Ajay Panicker <apanicke@google.com> |
Prevent OPP from opening files that aren't sent over Bluetooth Before this patch an app could send an open intent to BluetoothOppTransferService using a fake content provider to gain external read and write access. We fix this by checking the Uri of the file before opening it to see if it originated from the Bluetooth Share content provider. We also stop graning write access to apps that we use to view the file. Bug: 35385327 Test: PoC found in bug Change-Id: Iad85490a0306b3e70767285393b204be22b11511
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
fe1c54e3fcbb75af7e49aecbd27ab7327a631c64 |
|
13-Mar-2017 |
Jack He <siyuanh@google.com> |
OPP: Restrict file based URI access to external storage * Allow only external storage paths in file based URI in BluetoothOppSendFileInfo when the file send request comes from an external source * Fix a potential NPE when using Uri.getPath() Bug: 35310991 Test: Make, test various cases of Bluetooth file share Change-Id: I8ff00d63d3c880667302f8d7ff8eaa0c0b533921 (cherry picked from commit 3edd7f0a8aadf2f44bc62ea5b567c74d39a534c8)
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
89f5b9c3a45457aa5416bacf5bd7fafe4be428fd |
|
04-Aug-2016 |
Ajay Panicker <apanicke@google.com> |
Protect against SecurityException generated by query am: 3b00f32c41 am: 0cd2912836 Change-Id: I8b1a11ee66b122f8ce8313be68eccadd4f61dbe3
|
3b00f32c411a7c5d352a6c427cf56a0429114b0c |
|
03-Aug-2016 |
Ajay Panicker <apanicke@google.com> |
Protect against SecurityException generated by query Bug: 30444661 Change-Id: I1d93645f1d4475cf603cda8bb28df0b960ccb445
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
4a7ba7568de2b00b8d9cdb92137604643fe5d34d |
|
08-Jun-2016 |
Marie Janssen <jamuraa@google.com> |
resolve merge conflicts of 39957c0 to nyc-dev-plus-aosp Change-Id: Ifa06a51ac390cc2b2f7401b65fb6428313a1f6fd
|
eb7b90f5b93db1230a5b64caa3d8d05a642e33a6 |
|
10-May-2016 |
Marie Janssen <jamuraa@google.com> |
Cleanup unused requires in java files Change-Id: I7b055c1d3d3f6a69e9f49c077853ab45fcad7106
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
ae215fe26af65257d3fd0adb345402c4b91d1b34 |
|
05-May-2016 |
Hua Song <shcalm@gmail.com> |
Merge "OPP: Use addFlags() instead of setFlags() when adding flags to the ACTION_VIEW intent" am: 5df2915a97 am: 01bdd183c2 * commit '01bdd183c2b0bda4814399e94fc967cb1cfe8794': OPP: Use addFlags() instead of setFlags() when adding flags to the ACTION_VIEW intent Change-Id: Ib4a753745884510afa83705c9adc281dd6846b51
|
25f4b74d90ee2100fd09e08c1095b5d0abffedd7 |
|
05-May-2016 |
Hua Song <shcalm@gmail.com> |
OPP: Use addFlags() instead of setFlags() when adding flags to the ACTION_VIEW intent Signed-off-by: Hua Song <shcalm@gmail.com> Change-Id: Ie370b1fc599dbb1d8effca409de28e11f0e2b370
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
601d924b0055dff62d42f5529f3ab2209700c506 |
|
21-Oct-2015 |
Ajay Panicker <apanicke@google.com> |
Fix file permissions for Bluetooth share am: 66d643091e am: 33e7f11a36 am: 3a7bd34e60 am: ec664957c6 * commit 'ec664957c66d277270de163a42f83ff04ffb316b': Fix file permissions for Bluetooth share
|
66d643091edba75b4524483ea640273344533378 |
|
14-Oct-2015 |
Ajay Panicker <apanicke@google.com> |
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
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
f6ae67403c20cec20bc8f906411fce4c9ea769f0 |
|
28-Aug-2015 |
Sunny Goyal <sunnygoyal@google.com> |
Updating incoming file notification > Notificaiton shows the file name, sender and file size > Quick action to accept or decline > Shows as heads-up, removed toast Bug: 23490378 Change-Id: I6a1b4110fbf0c0198a31f91b818df00914fa2da3
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
fdb62835992e82681d2166dbf5716e26ab57d964 |
|
08-Aug-2015 |
Pavlin Radoslavov <pavlin@google.com> |
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
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
3aecf54308d60eea10fe10a5c18e4dff455aef66 |
|
05-Jun-2015 |
Pradeep Panigrahi <pradeepp@codeaurora.org> |
Use long as file size instead of int while using OPP. 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
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
86449ac4bc7a8f4b2afeab4da420ae4f980c850a |
|
13-Dec-2013 |
Hemant Gupta <hemantg@codeaurora.org> |
Bluetooth-OPP: Enable support to send same file multiple times Change will add support to send same file multiple times. Otherwise, if same file is selected to send multiple times after first transfer succeeds queued instances of the same file got removed and it fails to be sent. Change-Id: Ic5b3706644a417cae2491d1df9588a22344f1711
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
f60d96d6bf4c3dce367ce48436f383897c7f9719 |
|
15-Apr-2013 |
Priti Aghera <paghera@broadcom.com> |
Fixed a NPE Bluetooth share was crashing due to NPE. Included a check for Inputstream in BluetoothOppSendFileInfo. bug #7924487 Change-Id: Iccceb607a46962f84538e912d62f407ad5ee2f21
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
3911cfeb7c5e2242dcce91e3b66d9449dec0bd05 |
|
11-Oct-2012 |
Zhihai Xu <zhihaixu@google.com> |
Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity bug 5842045 Change-Id: I00a80fc7dc6c6031ab35113539ff6cdf4cf230a6
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
ee52ddf33a0ce2cf89cc028136f60ae600c45de5 |
|
27-Jul-2012 |
Jake Hamby <jhamby@google.com> |
Enable Bluetooth sharing of downloaded files. Change BT OPP to open the InputStreams of files to share in the BluetoothOppLauncherActivity (or BluetoothOppHandoverReceiver for NFC shares), while the process has grantUriPermission() on the URI's to share. InputStreams are saved inside the existing BluetoothOppSendFileInfo objects, which no longer include the mDestination field because this isn't known at the time the SendFileInfo object is now created (before the user has chosen the destination BT device). These objects are stored in a static ConcurrentHashMap in BluetoothOppUtility and are removed when the file is closed (on success or failure). If the user tries to share thousands of files in one batch, we may not be able to open InputStreams for all of the files in the batch. In this case, the open should fail gracefully. Bug: 6808783 Change-Id: I3f3f86d2dc1a78a837aeb6a888f90b26434ba499
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
8099f5e7bfa7227ba674b5f0076f331e737bafd7 |
|
06-Apr-2012 |
Martijn Coenen <maco@google.com> |
Additional changes to support Bluetooth Beam. - Added a whitelist permission, to ensure only system services (such as NFC) can whitelist MAC addresses. - Added HANDOVER_STATUS permission, to ensure handover transfer status can only be received by eligible services (such as NFC). - Added new confirmation type HANDOVER_CONFIRMED; this indicates the transfer was initiated by a handover, and doesn't need to be confirmed. This type is also reused to send broadcasts to the NFC service, so the NFC service can show notifications and deal with the received data. - Added 15 second timeout to whitelist. - Modify notication code to not show any notifications for handover transfers; instead, send broadcasts to indicate handover status. - Modify "transfer complete" code to sendbroasts to indicate handover status. Change-Id: I00c08e09eaf44f0bd4bd837cb6b0c37b802742bc
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
1d2222642c372e5635a906b6d6620ac35a304cf9 |
|
16-Apr-2010 |
Lixin Yue <L.X.YUE@motorola.com> |
Fix the %1 bug in UI when sdcard full
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
1f0fc26568c1babf0c66d2c75812b72e894eb0de |
|
16-Dec-2009 |
Lixin Yue <L.X.YUE@motorola.com> |
Fix non-existing received file still appearing in live folder issue After receiving a file by OPP from Bluetooth remote device, user can delete this file from Gallery or 3rd party application. In Opp live folder, user could still open this file, but with dialog "file not exist" displayed, and there is no way to make this file disappear from liver folder. Current solution is to delete the BT OPP DB record after openning an invalid uri associated with the file in folder, as an easy method without syncing.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
3a88b20fcd71e42451e402d27374b19eeb2ff0da |
|
08-Oct-2009 |
Nick Pelly <npelly@google.com> |
Update application code for BluetoothAdapter.getDefaultAdapter(). Change-Id: I7baafb909b74783da4e51d48f2465e7aacf07eb5 DrNo: eastham Bug: 2158765 Joke: What goes 99-thump, 99-thump? A centipede with a wooden leg.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
888485a3f5fe991116c5536bb6d6903d47b63a70 |
|
31-Aug-2009 |
Tao Liejun <L.J.Tao@motorola.com> |
Cleanup Opp debug code Stop Rfcomm polling Delete a few unused functions
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
ce4d93666275df294cb073fe41de5b85932570a8 |
|
28-Aug-2009 |
Nick Pelly <npelly@google.com> |
Clean up Logging. Use the pattern if (V) Log.v(...); for logging. The Android style prefers curly braces, but for log lines it is ok to use a one-liner to keep the code manageable. Remove spaces from some log tags, and rename TAG BluetoothShareProvider to BluetoothOpp. Rename LOGVV to V, and LOGV to D. Just before ship we will change Constants.DEBUG and Constants.VERBOSE to false to compile out all the logging code.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
41ef8d494511c040451f2f887cb31c3100746b61 |
|
07-Aug-2009 |
Nick Pelly <npelly@google.com> |
Bluetooth: Update Bluetooth.apk to match BT API change. Split BluetoothDevice into BluetoothDevice and BluetoothAdapter. BluetoothAdapter: Represents the local BT adapter. Operations on the local adapter (start a scan, etc). BluetoothDevice: Represents a remote BT device. Operations on remote devices (pair, connect, etc).
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
6769b59d715ea98bd72eafcfea9acd2714a887da |
|
15-Jul-2009 |
Tao Liejun <L.J.Tao@motorola.com> |
Make opp compile Modify to make opp application compliable in new git -change package name -change manifest -modify a few comments
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|
09e9cba205af60b3f42e7a4d891a7d1392e1f2a5 |
|
11-Jul-2009 |
Nick Pelly <npelly@google.com> |
Initial drop of Motorola Bluetooth OPP code. Minor changes from Moto code: - Added Motorola BSD license - Moved com.motorola.bluetoothshare to com.android.bluetooth.opp - Updated com.motorola.obex to javax.obex - Moved Android.mk to Android.mk.hide: does not yet compile due to changes in Obex library.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppUtility.java
|