3

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

Android Nougat

CC BY-SA 4.0
1

1 Answer 1

2

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

CC BY-SA 4.0

You must log in to answer this question.

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