I send and receive files via Bluetooth with names that end with zip and txt, but not apk or dmp.

Android Nougat


/src/com/android/bluetooth/opp/Constants.java has the following whitelist of mime types:


All other types are rejected.

Update: after looking into the sources more. There is a witelist of devices (with 15 sec timeout) with the following comment: "A list of devices that may send files over OPP to this device without user confirmation. Used for connection handover from forex NFC". It looks like these devices can send other mime types. Do not know in which conditions these devices can be added to this whitelist.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.