yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Zaragosa:
What is the minimum "after screen off" time? 10 minutes for the non-paid version, for paid what is minimum amount (10-15 seconds would be what I would like to see)? Does the app turn off wi-fi if a data connection is established and no wi-fi network is found? When GPS is enabled/disabled what mode does it reenable to, i.e. none, GPS only, Power saving, or High accuracy?

Currently using Wanam's Smart Network under Xposed framework. Works good save for GPS seems to be polling every time screen is unlocked. Also does not have some of the exceptions you have included in LD.
[Android Apps and Games] Flyview:
Minimum is 0min, which is actually 5 seconds. It only turns off connections after screen off, so it wouldn't turn off WiFi while screen on if not connected. What if you're walking around scanning for one? It restores any radios as you had them before. So if your location mode was set to network + GPS (high accuracy) that's what it will restore.
[Android Apps and Games] Darke5tShad0w:
No problems here on 6.0.1.
[Android Apps and Games] fatspirit:
No problems with LD and usage access as well.
[Android Apps and Games] juliatan:
Sorry if asked before, but searching thread for mobile internet gives too many results.

Just bought this app and I am flabbergasted by this stupid thing that just can't be true I hope.

When this app disables wifi, the app (even without root) always enables mobile internet. I want this app to disable mobile internet when I forget to disable, but I absolutely never ever want this app to automaticly enable mobile internet. NEVER EVER. For data limit and battery drain reasons. Is this really not possible or am I missing a possible setting?

Hope it is possible. Or else I want a refund.
[Android Apps and Games] Flyview:
LeanDroid will not enable anything it did not also disable. If you want data off, just leave it off manually. Is this not what you're seeing?
[Android Apps and Games] juliatan:
Thanks. But another reboot seems to have fixed it.

Mobile internet was off. In Android settings and in Leandroid 'disable settings' mobile internet was not enabled. But mobile internet kept being enabled (with any setting) untill disabling Leandroid completely.

I'll keep an eye on it. Hopefully mobile internet now stays off when wifi goes off.
[Android Apps and Games] TheCoryGuy:
So it seems that no one has reported their experiences and performance recently. 172 pages of replies and the last 10 just talk about errors or functions. Does this work?
[Android Apps and Games] bigfrostgames:
Looks interesting! Going to try it!
[Android Apps and Games] Flyview:
This is a page where most people come for help, so it makes sense you're seeing that. It does work, but the best thing you can do is try it and let us know if it works for you.
[Android Apps and Games] Darke5tShad0w:
Working fine here on a 5x on marshmallow.

Used it since the start and had/have it on quite a few phones. Just in the last week put it on a new workphone (samsung j2)
[Android Apps and Games] TNSMANI:
The app is working well. I have it installed in both my devices.
[Android Apps and Games] TotallyAnxious:
Delete
[Android Apps and Games] rav101:
Hi all,

Can anyone help me with the feature to switch network connection. I am trying to get my phone to switch to either 2g or 2g/3g when the screen is off.

However when I select this option alone then nothing happens. The screen turns off but maintains a 4g signal after the other areas are disabled.

When I select to disable data and the switch network mode, the data will completely turn off. I'm not sure what I'm doing wrong?

I do have the exception for an active connection and have increased this to 50kbs. Not sure if there is generally an active connection larger than this that would be stopping the switch?
[Android Apps and Games] fatspirit:
How do you know that?

Because you've selected disable data.

It's a lower threshhold. Existing connections with lower speed will be dropped.
[Android Apps and Games] rav101:
I have my restore criteria set to when I unlock the device. Therefore after a period of time, I am able to turn the screen on but not unlock ly device. I can see I still have 4g connection but the GPS is turned off (ie leandroid has applied it's settings but not switched the connection).

I will try turning off the exception criteria and do some more testing. If that works I will then set the exception quite high at around 1mb and work down from there). Will report back either way :svetius:
[Android Apps and Games] Flyview:
The traffic exception applies to WiFi, data and network type. You shouldn't need anything that high unless you're downloading or streaming something. You're correct in that's how you check, before you unlock. To check if network type has switched you would need to uncheck disable data so that the little indicator in the status bar still shows the network type. Otherwise LD will disable data and you can't tell.
[Android Apps and Games] rav101:
So I think I have done all the right settings to test this (screenshots attached).

I used the above criteria, left the phone locked for about 10 minutes to ensure LeanDroid is doing its thing and when I turn on the screen (but don't unlock) I'm still on a 4g connection?

For reference, I'm using the latest beta (3.2.4) and I'm on the HTC 10. I use a custom stock based Tom with xposed though I don't have any modules that should be interfering with this?

Edit: the exception for apps running is for Download Manager with detect background services. I have nothing downloading and closed all recents for my test. Do we think this could be it? I'm going to turn this off and test again.
[Android Apps and Games] Flyview:
That could be it, but to confirm, do the same test while connected to WiFi. That way, if Wifi gets disconnected you know LD tried to do something. You can also set the time to 0s so you don't have to wait, although if that does work, test something longer too to make sure a task killer isn't interfering.
[Android Apps and Games] rav101:
Hey buddy,

I've tried your suggestion of keeping Wi-Fi on and turning down to zero for quick testing. I turned off the exception for apps running however still no joy. In this case, I can see that the Wi-Fi is switched off but it is going back to 4g rather than 3g or 2g?

Colour me confused. Anyway, still a great app and I'm going to keep using it. If there is any way I can help debug the issue (or if anyone else can confirm if it is an isolated or wider issue that would be helpful) and let me know.

Next time I do a clean install I will keep only root and not install xposed. That way I can also isolate that to see if that might be causing the issue.
[Android Apps and Games] Flyview:
Can you try having it switch to 2G only?
[Android Apps and Games] rav101:
Hey,

Just done it but again it maintains a 4g whilst I can see that the Wi-Fi is disconnected.
[Android Apps and Games] Flyview:
Ok, and you are on the newest version released yesterday? Send an email (you can do so through the in-app contact menu option) so I can send you a debugging version.
[Android Apps and Games] Flyview:
New update is now live on the Play store and on XDA Labs:

3.2.5 (September 29, 2016)

-Allow me.phh.superuser root module

-Fixed rare crash when picking running app exceptions
[Android Apps and Games] fatspirit:
What does it mean?
[Android Apps and Games] Flyview:
It's for people that have that instead of SuperSU. It's based on SuperSU, that's why it still works.
[Android Apps and Games] Klaipedaville:
Quote

Originally Posted by phanitej

One request, can we have an option to not turn off the radios if connected to charger?

Unquote

What about the other way around? I see it's all on now when plugged in..
[Android Apps and Games] Flyview:
There is an option for "except if charging" on the exceptions page.
[Android Apps and Games] Klaipedaville:
I assume this option is in your premium version only as I do not see it anywhere.

When charging was finished and I unplugged my phone LeanDroid went "off duty" and did neither enable nor disable anything at all. I couldn't manage to turn it back on and had to re-boot my entire phone to wake LD up. Is this "turn off" on un-plug set up anywhere in options as well?

I have a few other questions and would highly appreciate it if anyone could advise on it, please.

1. When connectivity is cut off on my screen off does it allow any traffic (if any) to finish or does it just cut it off anyway, let's say in the middle of receiving an email for example?

2. If a user turns WiFi and/or data connection off will LeanDroid turn it on anyway on screen on? How is this handled?

3. It says restore every 60 minutes after screen off. How long will it stay on after this? Let's say it was restored after 60 minutes had elapsed and?.. Will it stay now for good in this case and up till you "screen on" and "screen off" again? How is this part configured?

Many thanks!
[Android Apps and Games] fatspirit:
1. It's configurable. Look at the EXCEPT menu.

2. LD won't touch anything switched off by user.

3. It's configurable. Press number after Every [min].
[Android Apps and Games] Klaipedaville:
-My version is not premium as mentioned in my question so there is no EXCEPT menu. How is it handled in regular, no premium versions?

-OK. This is clear now, thanks.

-My version is not premium yet, I cannot press any numbers. The question was how is it handled in not premium versions? Thank you.
[Android Apps and Games] fatspirit:
As this post says that "Turn off interval time and sync interval time are now the only premium options". And still Except menu doesn't work? Anyway, I'll be able to check it in about 7 hours.
[Android Apps and Games] Klaipedaville:
Nope, that's wrong. I have just a few options and it's quite limited In my not premium version. Plus, LD never resumes back into operation after I un-plug my phone from the power source, it just freezes for good (LD) ... :( (that was also mentioned in my first post)
[Android Apps and Games] fatspirit:
What's your phone? Have you any taskkillers running?
[Android Apps and Games] Flyview:
The exceptions page has nothing to do with premium or not. Do you see the "EXCEPT ->" button after the turn off time? That's how you get to it. What happens when you press it? Please post a screenshot of your settings so we can see what it looks like for you. Maybe you're on some really old version?
[Android Apps and Games] Klaipedaville:
Samsung Galaxy Note GT N7000 running on Android 6.0.1 (Night Owl Rom). I do not use any task killers at all.
[Android Apps and Games] Klaipedaville:
Well, here is my screen shot attached. I see EXCEPT-> only for Switch part. Having done this screen shot and based on your above reply I started thinking that this EXCEPT-> applies to everything else as well including Switch, Disable, Restore and so on doesn't it?
[Android Apps and Games] Flyview:
That except button (like the after time) refers to everything above it. Click it and look for the options you require.
[Android Apps and Games] Klaipedaville:
Thank you for clarifying.

So it refers to everything above it, that is to Disable and Switch. What about Restore? Restore is below it. There are no options in EXCEPT-> for Restore are there? It looks like there are as far as I understand. For example "disable WiFi, Data, Network mode except if active: limit 3KB/S" refers to Restore after screen is off and there is still traffic... is that not right? But Restore is below this EXCEPT->, not above it... I am getting lost..
[Android Apps and Games] Flyview:
The except is for the Disable/Switch only. Restoring refers to restoring connections as they were after the screen is turned on/unlocked. The except if active option refers to not disabling anything WiFi/data if there is traffic detected.
[Android Apps and Games] Klaipedaville:
I really do appreciate your explanations. Thank you. The except is only for Disable/Switch. It's clear now. But it still keeps me wondering how do I get around my third question, please. It says in Restore "restore every 60 min after screen off". How long does connectivity stay on when this feature is triggered? I thought at first that it took its data from somewhere in except->, but Restore has nothing to do with your except button as you kindly clarified.

P.S. I cannot press at this "60 min" in Restore as there is this little key saying I am not on premium yet.
[Android Apps and Games] fatspirit:
I guess restore option by default has an one minute window.
[Android Apps and Games] Klaipedaville:
Are you sure or is it your best guess only? :confused:

Plus, when I un-plug my phone LD never turns either WiFi or data back on. Both of them (WiFi and data) are turned on before I plug my phone in. Is this configurable somewhere as well? Where? Thanks.
[Android Apps and Games] Flyview:
Yes, the default value is to periodically restore for 60s every 60min. Once you can change that value you can change the duration as well. Why would LD turn WiFi or data back on when you unplug your phone? It should be restoring your connections when you turn the screen back on or unlock (depending on the setting). The only charging related setting is whether it should still be disabling connection while charging, which you can find on the exceptions page. I can't remember the default value.
[Android Apps and Games] Klaipedaville:
I mean to say LD never turns my connectivity back on when the screen is on of course after I unplug my phone. It just never happens, neither every 60 minutes nor on screen on after charging is done. I have by now charged my phone for 4 times (regular cycle of normally running out of battery) and each time it's reproduced. Here is how I do it. WiFi and data is turned on. I plug my phone in. Charging is finished. I unplug my phone. Then I "screen on" to do something and discover that WiFi and Data are turned off. The screen stays on for a few minutes and I have now tested it by keeping the screen on for 15 minutes on purpose but neither WiFi nor data turn back on. I turn it on manually, check mail and let my screen go off. After 20 minutes I "screen on" again and I see that my WiFi and data are turned off again. I can wait for 2, 5, 10 or the longest I have waited for was 15 minutes with my screen on but neither WiFi nor data turn on. All in all it turns connectivity off "on screen off" but does not turn connectivity on "on screen on" after re-charging. I am on Samsung Galaxy Note GT-N7000 running Android 6.0.1 with Night Owl Rom and I do not use any task killers at all.

There is one more question for the experts, please.

1. LD disables WiFi and Data 10 minutes after screen off.

2. It restores data after waiting 10 seconds for WiFi to connect.

3. Now on screen on:

3.1. Within 10 seconds it disables Data to save on battery and restores/connects to WiFi only (if WiFi networks are in range and configured on your phone to connect to).

3.2. After 10 seconds it disables WiFi to save on battery and restores/connects to Data only (if Data networks are in range and configured on your phone to connect to).

OR

3.3 It keeps both WiFi and Data always enabled on screen on and always disables both WiFi and Data on screen off + on schedule (every 60 minutes for example) irrespectively of which one it is connected to either WiFi or Data and how in this case does it choose priority networks to connect to first, either WiFi or Data? Is it configurable?

Would highly appreciate it if somebody further clarified on those and advised on how LD really balances out WiFi and Data based on my "made up" examples above. Many thanks in advance! :)
[Android Apps and Games] Flyview:
Alright so the behavior you are seeing with the connections not being restored is definitely bad. I want you to check the running services screen after turning the screen on and seeing that connections are not restored. Do you see LD there showing "1 process and 1 service"?

3.3 is correct. It simply waits to restore data until WiFi is connected (waits a maximum of xx seconds). Keep in mind it won't restore connections that were never enabled before LD shut them off. Also keep in mind that when WiFi is connected Android itself automatically keeps data "disabled'.
[Android Apps and Games] Klaipedaville:
Thank you for responding. Appreciate your assistance. How do I check the running services?

Does Android also keep WiFi automatically disabled when data is connected?
[Android Apps and Games] fatspirit:
Settings -> Developer options -> Running services

No.
[Android Apps and Games] Klaipedaville:
Yes, I always see there showing "1 process and 1 service". However, this behavior is as stable as it can only be no matter what is set in settings. That is the phone runs out of battery. I plug it in (AC) with my WiFi and Data turned on. After I unplug the phone and "screen on" my WiFi and Data stay turned off for good unless I manually turn it back on myself.

There is another "never turn back on" stable feature that I discovered. It says "Restore... except 23:00 - 06:00". When this time span is triggered it never turns connectivity back on. I have my WiFi and my Data turned on. It disables it both at 23:00. Then I pick up my phone let's say at 07:00, "screen it on" and can wait forever, but nothing ever happens, that is my WiFi and my Data are both turned off. This is also as stable as you can only imagine. I have to turn it on manually all the time and every time.

Plus, there is another not so stable "feature". I have both my WiFi and my Data turned on. LD disables both my WiFi and my Data on screen off. Then it restores also both WiFi and Data at the same time on screen on. Now it grabs Data and keeps on using it despite the fact that I have WiFi turned on as well, in range and configured on my phone to connected to. It does not happen all the time though but sometimes it does. That's why I asked in my 3.3 question earlier how does LD determine the priority networks to connect to first (WiFi or Data) and keep on using it when it restores both WiFi and Data at the same time? Please, note that I tried it both with "only if Wi-Fi was connected when disabled" and without "only if Wi-Fi was connected when disabled" option ticked.
[Android Apps and Games] fatspirit:
[MENTION=4791788]Klaipedaville[/MENTION], maybe it's so weird because your custom ROM is too custom?
[Android Apps and Games] Klaipedaville:
Nah... I don't think so. My ROM is not THAT much customized. It's a pretty much regular / standard Cyanogen right out of the box.

Are you perhaps saying that LD is not supposed to work on CMs aren't you?
[Android Apps and Games] Flyview:
The time exception is not what you think. That only applies to the periodic background restore. It should still restore once you unlock the device.

It's not LDs fault if it takes your device so long to reconnect to Wi-Fi that your phone starts using data. All LD does is re-enable it, it's up to your device to reconnect.
[Android Apps and Games] fatspirit:
I don't know actually. Is your neighborhood crowded with wi-fi spots? Too many conflicts may slow down connection process conciderably.
[Android Apps and Games] Klaipedaville:
Thank you for your suggestions. This strange behavior started driving me crazy so I erased everything and did a "bare metal" totally new OS install without anything extra at all. It's been working OK. I have now added a few crucial apps including LD and it has been working OK for a couple of days now as well. Will go on with testing.

I have another question now though. It says, "Restore except 23:00 - 06:00". Now if I pick up my phone and "screen it on" at let's say 03:00 will my connectivity stay off in accordance with the rule (except from 23:00 till 06:00)? Is LD supposed to consider that a user is present during irregular hours and connect (to WiFi or Data whichever is available) or will LD keep it off from 23:00 till 06:00 anyway and no matter what, unless you turn WiFi/Data

manually

on?
[Android Apps and Games] Flyview:
No problem, I'm here to help. Since that time exception is a sub-option of the periodic restore, yes it will still restore on screen on/unlock within that time period.
[Android Apps and Games] Klaipedaville:
Thank you. It looks like I am still having issues. I just don't know what's going on. It's ran OK for 3 days only and has now flipped back into the same behavior... It grabs Data when there are both WiFi and Data turned on, configured to connect to, and in range. I have "to do" WiFi manually on each "screen on", otherwise it keeps on using Data just no matter what. I will keep on testing it though and I am running out of ideas as this is just a bare metal OS install, without any apps on it at all except for LD. Plus, I have upgraded to an unlocked / full / paid version now.

I have one further question, please. It says, "Restore Data waiting 10 sec for WiFi to connect. Only if WiFi was connected when disabled (option)". Now, if WiFi was not connected when disabled (this options is chosen) it will not restore Data will it? That means now if WiFi is not in range it will not restore any connectivity at all, neither Data nor WiFi? Is that right? Maybe that's where I am getting side-tracked somewhere... Thanks. Notification is also stuck unless it's some kind of feature I do not understand. It always shows this, "WiFi - Data 00h:38m" and this 00:38 never change and never show anything else.
[Android Apps and Games] fatspirit:
You're crazy (: If all options are checked, LD will wait xx sec for Wi-Fi if it was connected to it when disabled. If it wasn't connected, LD just won't wait for Wi-Fi and will restore data right away.
[Android Apps and Games] Klaipedaville:
No, I am not crazy because it was not clear :) This is what it says, "Restore data ONLY if WiFi was connected when disabled". So I simply followed your "if... then statement". Therefore the other way around which is pretty much the same becomes "if WiFi was not connected when disabled then it won't restore Data. That's why I asked to clarify.
[Android Apps and Games] Flyview:
The number in the notification is the amount of time LD has disabled connections since the last full charge. The fact that yours doesn't change is not a good sign.

You have to remember that this is a sub-option of "Restore data after waiting xxs for Wi-Fi to connect". The sub option is saying only do this if Wi-Fi was connected when disabled by LD. This is not where your problem is stemming from.

It sounds to me like some other app or the system is freezing/killing LeanDroid. Have you checked for LeanDroid in the Running Services screen after one of these times it fails to restore Wi-Fi? Is your Wi-Fi actually remaining disabled or is it just not connecting?
[Android Apps and Games] Klaipedaville:
Hey, thank you so much for trying to be of assistance, Flyview! Appreciate! I missed your message somehow.

Yes, I constantly keep on checking this Running Services thing and it always says "1 and 1". That is to say LeanDroid is up and running as far as I understand it, right?

The trouble is that it remains disabled. It's not that it's just not connecting. I would fix this "not connecting" in a jiffy as I own and run my own dedicated server where all my "online" comes from. The most unusual thing is that when I "enable" WiFi for a couple of times on "screen on" manually then LD picks it up and starts connecting by itself but only till the next phone's plug in cycle. Then it's gone again after unplugging and I am to enable WiFi for two or three times manually before LD starts doing it on its own... The other strange thing is that WiFi is disabled instantly on "screen off" and then my Data kicks in till the "disable (let's say) 10 mins after screen off" option initiates... Do you have any ideas which other apps could be conflicting like this with LeanDroid? Thanks. Although there are different scenarios all the time after each plug-in-un-plug cycle... :(
[Android Apps and Games] Flyview:
Hmm, check the stock Android advanced Wi-Fi settings. There is an option "Keep Wi-Fi on during sleep", make sure it's set to always.
[Android Apps and Games] Klaipedaville:
Thank you. I have just checked. It is set to " always". Has always been...