I am working on a project about intercepting Bluetooth Low Energy (BLE) traffic. Bluetooth offers different kinds of pairing mechanisms like "Just Works" and "Passkey Entry". Furthermore, a Bluetooth connection can be encrypted on the link layer.
In order to test these different situations I had the idea to write an Android app that implements the different security mechanisms. So my question is:
Is it possible to specify the pairing mechanism and switch link layer encryption on and off in an Android app?
I had a look at the Android Documentation but couldn't find an answer there.