dont-kill-my-app icon indicating copy to clipboard operation
dont-kill-my-app copied to clipboard

OxygenOS discussion

Open Xalaxis opened this issue 6 years ago • 23 comments

Hi all,

As an Urbandroid, Sleep as Android (I also have a Sleep phaser 🙂) and OnePlus user I'd like to note that I've never had any problems with Sleep as Android function, at least since the OnePlus 6. I believe the problems with OxygenOS's battery interference came from three things:

  1. Problems with OxygenOS's 'Deep Optimization' function being turned on by default in the past, which turns normal battery optimization into super crazy block everything 'optimization'. This feature has gone by the names Enhanced optimization and Advanced optimisation in the past. I think this feature is now disabled by default
  2. Problems with OyxgenOS moving apps back to 'Battery Optimized' automatically without warning (bug?)
  3. The 'App Auto-Launch' problem previously mentioned.

As far as I'm aware, all these problems are fixed/resolved on the latest OnePlus firmware. At the very least I've had no problem with any of the OxygenOS firmware versions on the OnePlus 6. I'd greatly appreciate other OnePlus users feedback on whether number 1. was actually causing their problems with OnePlus battery optimization.

Xalaxis avatar Jan 15 '19 00:01 Xalaxis

Essentially I'm wondering if the reason OnePlus made number 2 on the list are historical (their position needs adjusting), or whether there are some confirmed still-active problems on older devices that might lack recent OxygenOS revisions or have different patch trees.

A third scenario is of course that my device is somehow unique, in which case hopefully Urbandroid can point me towards any useful system information to identify why I've had no issues with sleeping behavior.

Xalaxis avatar Jan 15 '19 00:01 Xalaxis

For reference, I'm running a OnePlus 6, OxygenOS 9.0.3 (Android 9).

Xalaxis avatar Jan 15 '19 00:01 Xalaxis

Users discussing how these battery issues seem not to be a problem with OnePlus 6 devices.

http://disq.us/p/1yznlqu

image

Xalaxis avatar Jan 22 '19 14:01 Xalaxis

I'm on 9.0.3 no battery optimizations on the app, and no deep battery optimizations, use the latest sleep beta - 201190123. oxygenOS closes the app every night, currently no solution/wordaround.

Eli

elich11 avatar Jan 24 '19 13:01 elich11

@elich11 What device are you using?

Xalaxis avatar Jan 24 '19 13:01 Xalaxis

@elich11 What device are you using?

@Xalaxis OP6

elich11 avatar Jan 24 '19 15:01 elich11

@elich11 We are running exactly the same config (device, OxygenOS version) except for the fact that I haven't excluded Sleep from battery optimizations and I'm running version 20181212 (the latest stable(?)).

Are you sure that version number is correct, it seems very strange.

Xalaxis avatar Jan 24 '19 15:01 Xalaxis

@Xalaxis Yep, its a typo, my version is 20190123. I will add it to the optimized list and check it (although the optimized list means its more likely to be removed from the background).

Thanks for the info, Eli

elich11 avatar Jan 24 '19 16:01 elich11

@elich11 Yeah, if it turns out that apps excluded from optimization are being killed but those included aren't, then that's a pretty big bug.

Xalaxis avatar Jan 24 '19 16:01 Xalaxis

@Xalaxis after one night test, this workaround works perfectly. The app doesn't get killed! Good work.

Eli

elich11 avatar Jan 25 '19 05:01 elich11

@elich11 Great!

@Artaud, Can you try to reproduce or forward on to the correct person at Urbandroid?

Xalaxis avatar Jan 25 '19 11:01 Xalaxis

@Xalaxis after more tests, I think that what fixed it is the device is plugged in to the charger all night.

Eli

elich11 avatar Jan 29 '19 06:01 elich11

@elich11 Hmm, so perhaps this is somehow a (device) sleep related issue. I don't think I've seen that problem myself, but I can't risk testing this until Wednesday night. I'll give it a test then (not having the device plugged in).

Xalaxis avatar Jan 29 '19 19:01 Xalaxis

@Xalaxis second night it works (which is unpresedented for me), I think its a legit workaround.

Eli

elich11 avatar Jan 30 '19 09:01 elich11

@elich11 I've just tested with my phone, Sleep was not killed during the night (when on battery). Sorry for the delay in getting back to you. Did you confirm whether the charger seemed to effect survival through the night, or whether it was the previously thought battery-optimization settings?

Xalaxis avatar Feb 13 '19 14:02 Xalaxis

@Xalaxis Yes, I'm using it without an issue with the charger connected for about 2 weeks now. I will run a test tonight without the charger to make sure the issue is reproduced.

elich11 avatar Feb 13 '19 16:02 elich11

@Xalaxis the issue reproduced without a charger, even when using the latest os version (9.0.4).

elich11 avatar Feb 22 '19 10:02 elich11

@elich11 Darn, I'm running the same version (9.0.4), no issues 🙁 (even when not on charge) . This is so puzzling.

Xalaxis avatar Feb 23 '19 17:02 Xalaxis

It's mid 2019 and I'm still looking for a reliable way to run my foreground location service on a Oneplus device. Any workaround? :(

adityadroid avatar Jun 19 '19 06:06 adityadroid

It's mid 2019 and I'm still looking for a reliable way to run my foreground location service on a Oneplus device. Any workaround? :(

Hi @eminemoholic , we've not been having any issues with foreground processes. What's the symptoms of your problem?

Xalaxis avatar Jun 19 '19 17:06 Xalaxis

It's mid 2019 and I'm still looking for a reliable way to run my foreground location service on a Oneplus device. Any workaround? :(

Hi @eminemoholic , we've not been having any issues with foreground processes. What's the >symptoms of your problem

@Xalaxis For me the notification attached with the foreground service disappears after sometime and thus the service gets killed, without triggering any of the lifecycle events.

adityadroid avatar Jul 03 '19 06:07 adityadroid

@eminemoholic Have you ruled out an extreme out-of-memory state?

Xalaxis avatar Jul 03 '19 11:07 Xalaxis

So now with the release of the Don't kill my app tester, I think we can empirically say that at least my OnePlus 6 seems to not encounter any of these issues. I'd like to once again raise the case for the OnePlus ranking to be reviewed.

App result

Screenshot_20210506-215722

Xalaxis avatar May 06 '21 20:05 Xalaxis