OPP: Handle Security Exception.
Use Case: 1. Pair remote with DUT. 2. Now go to G photos application to share images. 3. Select any image and try share. 4) Cancel operation (Decline Server side) 5) And try share again. Failure: "Unfortunately, Bluetooth share has stopped" error comes. Root Cause: For security reasons, the permissions are temporary, so once the client app.s task stack is finished, the file is no longer accessible or some content providers don't support the read permission. Fix: When tap the "try again" button on the send failed dialog, the method "BluetoothOppSendFileInfo::generateFileInfo()" will be call, there catching Security Exception and sending empty BluetoohSendFileInfo. Change-Id: I4520a91622c0532d7d0f8aeeb7ff76e9a3abe7a1
Loading
Please register or sign in to comment