Ask / Submit
1

[Sailfish X] Android battery optimisation (Fixed) [answered]

asked 2019-06-28 18:55:58 +0300

brnz gravatar image

updated 2019-06-29 05:49:40 +0300

Hi,

I am currently using Sailfish X on my Xperia XA2. I installed an android app which needs no battery optimisation to work perfectly. However, I cannot desactivate android battery optimisation for this app because the android menu does not respond when it pops.

Is there a command line workaround which will be able to desactivate the android battery optimisation for this app?

PS: this is an android vpn app.

Many thanks

Fixed thanks to Aliendalvik control app installed.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Sakke
close date 2019-06-29 09:14:02.229767

1 Answer

Sort by » oldest newest most voted
4

answered 2019-06-28 19:21:25 +0300

Sakke gravatar image

updated 2019-06-28 19:22:10 +0300

Open Android settings (for example use Coderus' Aliendalvik control from openrepos.net) and navigate to something like "Apps and notifications" > pick one app and open > navigate to the battery section and click it > battery optimisation > show all apps (from up) > find the app that you want to disable the optimisation on.

Hope it helps and is clear enough :D

edit flag offensive delete publish link more

Comments

Hi, thanks for your answer, your solution worked perfectly! Now, I do have another problem though: my vpn app is saying that the vpn API is not supported on this ROM version!

brnz ( 2019-06-28 19:42:28 +0300 )edit
1

@brnz, That's unfortunate. Give a try to the native built on VPN support? Nevertheless, mark the answer as accepted and close your question if the answer satisfies your needs for now

Sakke ( 2019-06-28 20:01:11 +0300 )edit

Yeah you're probably not gonna get a VPN app to work in android. If you're using OpenVPN, you can just ass the config files to Sailfish OS directly (since if finally has some VPN support). If you're hoping for wireguard, there's nothing that actually works as of yet I am afraid :(

mynameisnotimportant ( 2019-06-28 22:21:02 +0300 )edit

Unfortunately OpenVPN does not work hence my need to use a dedicated vpn app!

brnz ( 2019-06-29 05:50:47 +0300 )edit

Usually, the VPN which tend to ask you to install a dedicated app, tend to use OpenConnect. (e.g.: some universities that require you to go through some webportal that then installs some Java-based pluggin - Cisco AnyConnect is a popular one)

Sailfish does have an openconnect plugin. BUT currently it only works with direct certificate based log-in. It's not supporting connecting with log-in on a web-portal.

DrYak ( 2019-06-29 21:24:32 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2019-06-28 18:55:58 +0300

Seen: 399 times

Last updated: Jun 29