Here: Get the path of → ASD (app-specific dir) & → private data dir (internal storage)
or: Get the API Level of the device
The permission (BLUETOOTH_SCAN) does not exist on Android < 12. So you will see an error ("Error 908") after requesting it on Android < 12.
How about doing it exactly as I showed?