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

Android Nougat


1 Answer 1


/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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .