Skip to content

Android13 remove from accept list #863

@morkovkin

Description

@morkovkin

Hello everyone, I found a problem in my application.
My application is android launcher. When i startup

device.establishConnection(false).flatMapSingle { connection ->
                connection.readCharacteristic(BATTERY_SERVICE_CHARACTERISTIC).map {
                    it.getOrNull(0)?.toInt() ?: -1
                }
            }

For receiving a battery percent.

My question is about reconnection device after reboot. Using case like:

  1. Connect device (start use)
  2. Reboot android
  3. Wait 30-40 seconds after launcher start (on this moment i run code (for battery percent), i think android understand, that device is unavailable and close connection). Press any button in BLE device (for reconnection)
  4. Device doesn't reconnect (but i see it in bounded list)

i try to find solution in aosp but i don't sure (may be i need to wait device by autoConnect flag)
in aosp 7/9/11 it's work correctly.

I kindly ask you to help me with searching solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions