I send and receive files via Bluetooth with names that end with zip and txt, but not apk or dmp.
Android Nougat
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityI 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:
"image/*",
"video/*",
"audio/*",
"text/x-vcard",
"text/x-vcalendar",
"text/calendar",
"text/plain",
"text/html",
"text/xml",
"application/zip",
"application/vnd.ms-excel",
"application/msword",
"application/vnd.ms-powerpoint",
"application/pdf",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/x-hwp",
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.