Resolve Linking error and make compilation based on used stack

Updated linking to corresponding Java Libs in Bluetooth APK
to get rid of linking error found during compiling JB BT apk
in Bluez environment and make compilation based on stack being used.

Change-Id: I72a101c05ab5dd14b66dce3058852767ec386d35

Conflicts:
	Android.mk
Bluetooth: Added the Bluetooth uid

It will give the permission to share
information/data with other apps and processes.

Change-Id: I720f6ba14fdadb44e0dcc76fd28dbd7628c5d4b0
MAP: include size attribute in message listing even if its value is zero

CRs-Fixed: 439976

Change-Id: I1b29706e5c74f005a467bb4893c212aa7268f803
OPP: null check for optional header length in put request

Change-Id: I92b43832d61e44c46958a10cfa7bf43cfddc6df3
CRs-Fixed: 436931

Conflicts:
	src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java
Use proper masking to retrieve Read MMS and Email messages

Use mask 0x02 instead of 0x10 on FilterReadStatus to build the database query
to fetch the appropriate read MMS and Email messages from database and share
the same with MCE.

CRs-Fixed: 424578

Change-Id: Icba3b88a31e0608ae72b16d59681cd5f18887d73
Bluetooth: MAP: Fix Cursor leak

Change-Id: I34046b3861b8d5582c550ead4d0c49599605b85e
CRs-fixed: 426033
Bluetooth: MAP: Filter by MMS types shown to user

Change-Id: I40fe65b719388329c6f3c3491b7836a730e6ccf5
CRs-fixed: 427720
Bluetooth: MAP: Support missing Filter options for MMS

Support Filter MMS by originator for Inbox and Filter MMS
by repcipient for sent folder

Change-Id: Ibac10ae4e519f291a96e8930d9cb0fbc82355f67
CRs-fixed: 427716
Bluetooth: MAP: null check for senderName

Change-Id: I14ba42e1fe43213210c419dac83a769bcf10591a
CRs-fixed: 425813
Use right intent for Email push from MAP

Change the intent being used for triggering Email push
from MAP code

CRs-Fixed: 434781

Change-Id: I4b29c6731d3c94c7cb10225b8d8b7cb42116a695
Clean up file when file transfer is aborted by remote/local device

Delete File when the transfer is terminated due to
Remote's BT is turned off, remote being taken out of reach or
remote is turned off properly. Also delete the file on the next
reboot while the previous inbound transfer was interrupted by
local device power off.

Change-Id: I0891acabb11eb9fa3f376f4f8aa73715e087768a
CRs-Fixed: 422871

Conflicts:
	src/com/android/bluetooth/opp/BluetoothOppService.java
Bluetooth: Close cursor object to fix the leak

CRs-Fixed: 422871
Change-Id: I789eb6238d23170d47a91f85022690bfbd38411f
Reject Email getmessage request with charset as native

MSE shall reject getmessage request with value native for Email

Change-Id: Ie9e68d763057180dcba3e6f7c94d1ef7656f9b07
CRs-Fixed: 432603
Send date string to BMW in US locale.

Change-Id: I695952aca359cd0357dd905222dbdb4883566e8b
CRs-Fixed: 427385
Modify code to parse BEGIN:MSG and END:MSG in MMS body once

MMS body pushed from MCE needs to be parsed as Email
like content. Hence the extra processing of removing
BEGIN:MSG and END:MSG is removed to make sure the parsing
is proper.

CRs-Fixed: 425908

Change-Id: I0ee24653a0dacb70dcc6e48bfd1edbab328f937b
Bluetooth: Process OPP Tx request from downloads app

Downloads app doesn't have permission to send a file to Bluetooth app.
Hence the file transfer was failing. Now the permission is provided
in Bluetooth menifest file to process OPP Tx request.

CRs-Fixed: 440034

Change-Id: I0da83e9d9113c17fef8c1a6d901d3c496e9bfcaa

Conflicts:
	AndroidManifest.xml
Bluetooth: OPP: Handle Try Again exception to retry write

When the write to socket is faster than BT maximum throughput
socket buffer gets full and it returns EAGAIN, writing application
has to retry in this case. This return value is thrown as exception
from JNI layer and has to be handled properly to retry the write
operation.

CRs-fixed: 449121
Change-Id: Ie27423744e0c0974cf75352b69a66c4cd7116914

Conflicts:
	src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
MAP: Handle MMS fetch for MMS having multiple recipient names

While Fetching the MMS recipients from MMS DB if multiple
recipient names are found then concatenate the addresses
to form a single address and use ; as delimiter so that
the same can be tokenized and processed as individual
addresses later during processing.

CRs-Fixed: 418201

Change-Id: I56c6390d14789610feb5bc677058bea9b476907f
Change for updating BT recipients prompt information

   This patch adds changes for getting the updated name of the BT recipient
during OPP in case the device name is getting changed in between the two
consecutive transfers.

CRs-fixed: 424475

Change-Id: Id0e8ba2a093125bded8613e8459b27fc659718b3
MAP: support native sms push.

Change logic so that When SMS is tried to be pushed using
charset as native DUT should allow the same.

CRs-Fixed: 419302

Change-Id: I8a716a8280a497ab23f2a018dd82583482397389