Skip to content

Android Client doesn't always report correctly The reason why it is suspended #6476

@hucker75

Description

@hucker75

Describe the bug

My android phone is set to suspend boinc when it is on batteries, also when it's plugged in but the charge is less than 90%, also if I have the screen on. It correctly suspends for all of these but the report I'm receiving for the reason of its suspending is incorrect (I monitor this using BOINC tasks on a windows PC as obviously I can't look at the phone to see Boinc's status because of the observer effect). what had me confused today and I thought something had gone wrong Was it continued to say suspended user active when I had turned the screen off, But the real reason was the battery charge was less than 90%, the reason for this appears to be it originally suspended because of me using it, but then when I plugged it into the charger and then switched off the screen it remained as the reason being user active when I knew I wasn't so I thought the detection had gone wrong.

Steps to reproduce

  1. set boinc to pause if the screen is on, or if the battery is less than 90%, or the phone is running on battery.
  2. have the phone fully charged, plugged in, with the screen off and running boinc
  3. switch on the screen and start using the phone and then unplug it and then use the phone until you've gone below 90% battery.
  4. plug it into the charger
  5. switch off the screen
  6. observe the status still says user active

Expected behavior

the status should change to say the battery is under 90%

Screenshots

No response

System information

Phone: Moto G31
OS: Android 12
Boinc: 8.2.1 for aarch64-android-linux-gnu

Additional context

I have a feeling there isn't a status for under 90%, so it keeps the last one displayed. Is it true you only have the statuses "on battery" and "user active"?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions