You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I just bought the Xiaomi Mi Body Composition Scale 2, which i intended to use with openScale. Now i opened openScale for the first time (downloaded it a few days ago), to pair the scale with openScale. But when i try to open the Bluethooth tab i get the error, to be seen in Debug log. The error seems to say "i want your location", but that doesn't make any sense in my mind, cause why on earth should an app ask for my location when using bluethooth.
Btw. enabling the location "fixed" the issue, but i still don't understand why that is even necessary.
So my Question is:
Why does the app need my location to find a bluethooth device.
Build version: 2.4.6
Build date: 1981-01-01 01:01:02
Current date: 2022-10-11 21:57:10
Device: Xiaomi Redmi Note 7
OS version: Android 10 (SDK 29)
Stack trace:
java.lang.SecurityException: app does not have ACCESS_FINE_LOCATION permission, cannot start scan
at com.welie.blessed.BluetoothCentralManager.permissionsGranted(BluetoothCentralManager.java:878)
at com.welie.blessed.BluetoothCentralManager.bleNotReady(BluetoothCentralManager.java:838)
at com.welie.blessed.BluetoothCentralManager.startScan(BluetoothCentralManager.java:405)
at com.welie.blessed.BluetoothCentralManager.scanForPeripherals(BluetoothCentralManager.java:515)
at com.health.openscale.gui.preferences.BluetoothSettingsFragment.startBluetoothDiscovery(BluetoothSettingsFragment.java:142)
at com.health.openscale.gui.preferences.BluetoothSettingsFragment.onResume(BluetoothSettingsFragment.java:103)
at androidx.fragment.app.Fragment.performResume(Fragment.java:3071)
at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:605)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:285)
at androidx.fragment.app.SpecialEffectsController$FragmentStateManagerOperation.complete(SpecialEffectsController.java:771)
at androidx.fragment.app.SpecialEffectsController$Operation.completeSpecialEffect(SpecialEffectsController.java:690)
at androidx.fragment.app.DefaultSpecialEffectsController$SpecialEffectsInfo.completeSpecialEffect(DefaultSpecialEffectsController.java:855)
at androidx.fragment.app.DefaultSpecialEffectsController.startAnimations(DefaultSpecialEffectsController.java:154)
at androidx.fragment.app.DefaultSpecialEffectsController.executeOperations(DefaultSpecialEffectsController.java:123)
at androidx.fragment.app.SpecialEffectsController.executePendingOperations(SpecialEffectsController.java:306)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1853)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1764)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1701)
at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:488)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
The text was updated successfully, but these errors were encountered:
chibbi
changed the title
Xiaomi Mi Body Composition Scale 2
Can't use Bluethooth tab on Xiaomi Note 7
Oct 11, 2022
chibbi
changed the title
Can't use Bluethooth tab on Xiaomi Note 7
[question] can only use Bluethooth tab on Xiaomi Note 7 with location enabled
Oct 11, 2022
Describe the bug
I just bought the Xiaomi Mi Body Composition Scale 2, which i intended to use with openScale. Now i opened openScale for the first time (downloaded it a few days ago), to pair the scale with openScale. But when i try to open the Bluethooth tab i get the error, to be seen in Debug log. The error seems to say "i want your location", but that doesn't make any sense in my mind, cause why on earth should an app ask for my location when using bluethooth.
Btw. enabling the location "fixed" the issue, but i still don't understand why that is even necessary.
So my Question is:
Why does the app need my location to find a bluethooth device.
Reproduced with latest dev version: latest f-droid build
Debug log
The text was updated successfully, but these errors were encountered: