Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flightmode not set correctly #318

Open
Bre281 opened this issue Jan 20, 2020 · 5 comments
Open

Flightmode not set correctly #318

Bre281 opened this issue Jan 20, 2020 · 5 comments
Labels
bug General label for all bugs (i.e. things not working as intended) more-info-needed Needs more input to pin down or solve the issue restricted-by-android RFC / Discussion Wanted Request For Comment

Comments

@Bre281
Copy link

Bre281 commented Jan 20, 2020

I try to write a script to deactivate flightmode every 30 minutes for 3 minutes. But Easer doesn't seem to set flightmode correctly.

screen

As you can see flightmode is activated, but there is still data connection.
I'm using LineageOS 16.0 with microG on a LG-D802 and Easer 0.7.9.1

@Bre281
Copy link
Author

Bre281 commented Jan 20, 2020

Forgot to mention: It doesn't happen all the time. Only sometimes :-(

@renyuneyun renyuneyun added bug General label for all bugs (i.e. things not working as intended) more-info-needed Needs more input to pin down or solve the issue RFC / Discussion Wanted Request For Comment labels Jan 26, 2020
@renyuneyun
Copy link
Owner

Hi there,
Thanks for reporting. But unfortunately I don't think there is a direct way to solve this, because basically Android doesn't allow an app to change flight mode. The current way it works is actually a workaround and does not guarantee to work on all devices.

However, the behaviour on your case is quite interesting/strange. I thought it should either work or not work.
Do you identify any other related information (e.g. does the "not changing flight mode" only happen on enabling but not on disabling)?

@Bre281
Copy link
Author

Bre281 commented Jan 27, 2020

It does happen on enabling and disabling. But when it happens seem to be random. Sometimes flight mode doesn't change for two or three "loops" of the script, then it works a while again.

Too bad that it can't be fixed easily. I helped myself now by switching mobile data on and off instead of flight mode. Should be a standard Android feature in my opinion, because not being online all the time saves lots of battery power.

BTW: What's the difference between exact and inexact timers? How more exact is the exact timer and is the battery drain much higher?

@renyuneyun
Copy link
Owner

Yes, that's very unconvinent but it's reasonable for the Android team to decide not allowing changing airplane mode (and mobile data actually) from a user app, in order to stop abuse.

Exact should be perfectly exact, according to Android documentation; inexact is adjusted (aligned) by Android system and even the developers (i.e. me) have no idea how inexact it will be (but hopefully within 10 minutes?).
The battery will drain faster to use exact, although the precise different differs from device to device, possibly (from my understanding) because of different installed apps to be woken up and the system (ROM) overhead.

@renyuneyun
Copy link
Owner

By the way, you can have a look at #261 if you want some more information about how airplane mode is currently being handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug General label for all bugs (i.e. things not working as intended) more-info-needed Needs more input to pin down or solve the issue restricted-by-android RFC / Discussion Wanted Request For Comment
Projects
None yet
Development

No branches or pull requests

2 participants