Programmatically Obtain the Bluetooth MAC Address in Android Oreo Version

Hi community,

We connect the external scanners to the devices in SPP mode. We are doing tests with a terminal TC51 with Android Oreo (8.1) and I am not able to find how to obtain the MAC address of the Bluetooth, programmatically. With versions of Android before Oreo, we know how to do it, but this functionality has changed with Oreo, someone knows how to get it?

Thank you