@jsulm
Thank you for your answer!
In the AndroidManifest.xml file located in the android-build folder, there are permission-related contents. However, when the program runs on the phone, the dialog box for obtaining location permissions does not appear, which causes the Bluetooth initialization to fail.
For now, I can only temporarily obtain location permissions in the code through QLocationPermission.
Previously, with Qt 5.14.2, the dialog box for obtaining location permissions would pop up the first time the program was launched. After switching to Qt 6.8, I don’t know why it no longer appears. Do I need to add QLocationPermission to make the dialog box for obtaining location permissions appear?