yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] fredbull:
Hi,

Sorry for my beginner question. It s a bit hard with 163 pages of topic.

I'm just discoverting this app and it helps me a lot. I just would like to know how work the counter in the notification ? For what it is ? How clear this one etc... ?

Thanks :)
[Android Apps and Games] Flyview:
Hmm I think I might know what's going on. Are you pre-Lollipop?

No problem, welcome. The counter is a counter of time spent with disabled connections since the last 100% charge.
[Android Apps and Games] fredbull:
Ok thanks ! I understand now :)
[Android Apps and Games] ratbags:
Yes, I'm on kit Kat!
[Android Apps and Games] Flyview:
Interesssssting. You see, previously on KitKat I wouldn't check for selinux status, assuming that any device pre-Lollipop is SELinux permissive. SELinux enforcing really only became a thing in Lollipop (at least on Nexus devices). If you run the command "getenforce" in a terminal off the phone, what's the output?
[Android Apps and Games] ratbags:
It says disabled.
[Android Apps and Games] Flyview:
Aha! I didn't know about the third output option. Looks like it can be enforcing, permissive, or disabled. I'll have an update out shortly to allow any root solution with SELinux disabled.
[Android Apps and Games] Flyview:
Give this apk a shot. I've already published it but it will take some time to get distributed.
[Android Apps and Games] ratbags:
OK seems to work fine.
[Android Apps and Games] GilX:
[MENTION=2584205]Flyview[/MENTION]. Has there some issues reported with marshmallow? Mine doesn't seem to disable wifi/data like it used to with LP. When the screen comes on, wifi signal and data icons instantly enable whereas with LP they come on after a slight delay. I also didn't notice battery savings as before. Leandroid still shows permission granted by SU though.

Thanks
[Android Apps and Games] Flyview:
No it should still be working with Marshmallow. Post up screenshots of your settings.

What usually gets in the way are other battery optimization apps that freeze or kill LD.
[Android Apps and Games] quincho54:
Yes, I had the same experience. As long the internal battery saving program is running, LD wasn't as effective as I new it from KK. In LP, I turned internal battery saving off, so LD had full controll, and battery saving was a lot better again. I guess in MM it's the same.
[Android Apps and Games] GilX:
Checked greenify and boot manager, LD is not set on both. LG G3 battery saving was set to on and wifi was set to on with screen off. I changed both settings as they may be the culprit. Will see. Thanks for the quick reply.
[Android Apps and Games] Darke5tShad0w:
Successfully working on marshmallow here with leandroid set as marshmallows default "optimise battery use".

As in i have never changed the setting.
[Android Apps and Games] rolandvrielink:
Hi,

I have installed leandroid and settings are so that after screen off the data and WiFi network is turned off and will be activated again when I turn screen on.

I receive notifications at screen off from whatsapp normally.

I'm using now Telegram but what I try I get no notifications when the screen is off.

Sorry for my bad English.

Has someone an answer for me??
[Android Apps and Games] TNSMANI:
Have you set LeanDroid to periodically connect to wifi even when screen is off? Have you listed Telegram under 'not optimized for battery' in device settings?

I think both are required for notifications to come through.
[Android Apps and Games] Flyview:
If LD is turning off the internet you won't get any notifications until it reenables internet (periodically while screen off or when screen comes back on). For periodic reenabling to work in getting your notifications to you requires the app in question to have good push notifications since internet is only briefly reenabled.

Sent from my Nexus 5
[Android Apps and Games] rolandvrielink:
No, leandroid is set to connect to WiFi only when screen is turned on.

I have the screenshots of the leandroid settings and under these settings WhatsApp will give me notifications and telegram don't

Where can I find this setting exactly:

listed Telegram under 'not optimized for battery' in device settings?
[Android Apps and Games] Flyview:
Don't set the exception in LD unless you want LD not to disable anything when Telegram is running. It makes no sense that WhatsApp gives you notifications with the screen off because it's simply impossible without internet.

Sent from my Nexus 5
[Android Apps and Games] rolandvrielink:
Why do I get still whatsapp notifications under this conditions an no messages from telegram??
[Android Apps and Games] TNSMANI:
As per my understanding, both the apps require internet for notifications. I am not able to understand how push notifications work for Whatsapp but not for Telegram. Did you check the settings of Telegram to see how it is different from the settings of Whatsapp? Also enable 'Restore periodically after screen off' in LeanDroid and see whether that solves your problem.

The option 'not optimized for battery' is available in DEVICE>SETTINGS>Apps and then clicking the gear at top right. In the next screen you will get 'battery optimisation' as one of the options. Clicking it will list the apps and then you can choose apps to be optimized or not. Ofcourse this is available only in MM.
[Android Apps and Games] ratbags:
I have an idea I don't think is implemented but kind of complements the Wi-Fi whitelist feature: if Wi-Fi doesn't connect to whitelist ssid within x seconds switch it off until next screen on event. This would prevent needless Wi-Fi scanning whilst on data. Also, switch off data off when Wi-Fi connected this might solve the fabled cell standby bug in lollipop. Or probably not.
[Android Apps and Games] Flyview:
People suggest this all the time. LD is already complex enough, I don't want to make it even more so. Right now it's designed around doing things while the screen is off and you're likely not using the phone. I wouldn't like LD turning off WiFi on me if I'm pulling it out and need to connect quick at a new location.
[Android Apps and Games] Antaroo:
This app doesn't work at all. Im running Android Lollipop 5.1.1 on Xiaomi Redmi Note 3 PRO.

I chosed to turn off wifi and turn ON on screen on.

But when exactly this app will turn the wifi off ? It doesnt say.

Right now wifi is active and when i put screen dark (off) the wifi should go off too, right ? It does not. Same goes to data(lte)

And every 10 or so seconds it says that it has root permissions granted. Fine, i granted them in SuperSU, but why it popups all the time that information ?
[Android Apps and Games] Flyview:
Connections turn off based on the time after screen off you select. It's one of the options. Please post a screenshot of your settings.
[Android Apps and Games] fatspirit:
It's SuperSU's popups, not LD's. Have you been waiting for LD's switch off time? LD doesn't switch things off immediately after screen off by design. And it's YOU who say LD when to turn off what you've allowed it to.
[Android Apps and Games] Antaroo:
Here is the screenshot

You're right about the SuperSu poping up all the time. But LD still doesnt turn wifi/data off, even after i waited 1min+

BEsides its kinda crazy to wait that long ? Why it cant turn things on/off immediately ? This is what im interested in
[Android Apps and Games] Flyview:
Thanks. It's not crazy to wait that long, you don't want the connections constantly turning on and off every time you check your phone, do you? It would work fine if it was instantaneous, but it takes time for the connections to re-establish. If you still want it to turn off right away, simply enter 0, they will turn off after 5s. As for why it's not working, I can only assume some sort of task killer app is killing LeanDroid. Do you use CleanMaster or Greenify?
[Android Apps and Games] Antaroo:
Yes, i would like to kill connectikon right away, after i turn off the screen. I put 0 as you said

Yes, i use Greenify, but i havent added LD into any task killer
[Android Apps and Games] Flyview:
Did you make sure LD isn't being greenified? You don't usually add apps to task killers, you usually set exceptions. Greenify is unusual in that you tell it what to Greenify. Anyway try with 0 and see if it works.

Sent from my Nexus 5
[Android Apps and Games] Antaroo:
So here is the problem. Maybe its fixable somehow but i dont have a clue how. Its Greenify fault. After i turned off auto-hibernation, LD works like it should. After 5 sec it shuts down data transmission, and after i wake the screen up, it connects. What can be done to have greenify auto hibernation active as well as LD working properly ? Is it even possible ?
[Android Apps and Games] Flyview:
Of course it's possible, just take LD off of the Greenify list of apps to hibernate. Did you confirm it also works with 1min now? Usually setting it to 0 is quick enough to disable connections before a task killer can act on it.

Sent from my Nexus 5
[Android Apps and Games] ratbags:
Setting to zero can actually harm battery life if you regularly check or use your phone I've found. On certain versions of Android it can also cause issues particularly with Wi-Fi if you toggle connections on and off immediately or in quick succession.
[Android Apps and Games] BatDroid:
That's an amazing app..

But sadly, I have to b satisfied with free version as I dont have a credit card.

Coz,I m a kid and cant buy it.

[size=+2]

It deserves a 5star

[/size]
[Android Apps and Games] fatspirit:
Please make this yellow thing smaller (:
[Android Apps and Games] Flyview:
I just published an update to the beta channels and now available on Play and XDA Labs. Test it out please!

3.2.0 - beta 1

-Fixed network mode not switching back to original on some devices

-Updated look

-Added "About" dialog

-Added menu options to Exceptions page
[Android Apps and Games] StuPot01:
Thanks.

It works great on Samsung Galaxy Alpha g850f.
[Android Apps and Games] quincho54:
There is no update on playstore yet. On playstore beta tester site as well. It informs about 3.2.0 beta 1 but informs me, that is already installed. The same on xda apps. Can you check out, what's wrong please. Thank you.
[Android Apps and Games] Flyview:
Post a screenshot of what you see when you visit Google Play listing in the Play app. If you're part of beta testers it should show 3.2.0 -beta 1. If it says you already have it installed, that's strange as you clearly have build 138 installed and the beta is 139. Try re-installing?
[Android Apps and Games] quincho54:
Update just came through. But the information is for the older one. Thanks a lot for your work.
[Android Apps and Games] Flyview:
I just published 3.2.0 beta 2! Added a new feature requested by a customer :)

3.2.0 - Beta 2

-Added Bluetooth device whitelist exception

-Fixed network mode not switching back to original on some devices

-Updated look

-Added "About" dialog

-Added menu options to Exceptions page
[Android Apps and Games] TNSMANI:
While clicking the BT, the popup dialogue reads "Wifi network exceptions" instead of BT and no connection names are shown. It is blank. See screenshot.

The 'About' dialogue is a neat touch and looks really clean and nice.
[Android Apps and Games] phoberus:
Any differences how it changes the mobile network to the App Intelli3G? I use Intelli3G only for this function and I wonder if this app is better
[Android Apps and Games] Flyview:
Yes I forgot to change the title. It's blank because you probably have no paired (not connected) BT devices. Do you? I will add something to say no paired Bluetooth devices.

Sent from my Nexus 5
[Android Apps and Games] Flyview:
I'm not sure how Intelli3G does it.

Sent from my Nexus 5
[Android Apps and Games] TNSMANI:
Yes, you are right. At that moment, I had no paired connections.
[Android Apps and Games] Gynoid:
In 3.2.0-beta 2, when I want to set an exception to Bluetooth disabling, when I tap on CHOOSE, the window that pops up is titled "Wi-Fi network exceptions" instead of mentioning Bluetooth.

Other than that, it's a fantastic product.
[Android Apps and Games] Darke5tShad0w:
Yes he said acouple of posts ago he forgot to rename it, Should still function correctly and should be fixed in the next update.
[Android Apps and Games] Flyview:
Yes, and I'm fixing a few other bugs as well.

I've been thinking of changing which features are paid but I need some feedback.

Do you feel like the free version is currently limited? Certain connections can't be disabled, almost all exceptions are also not available.

What if the only paid feature was being able to change how long after screen off to disable connections?

Other ideas?
[Android Apps and Games] Flyview:
New beta is up!

3.2.0 - Beta 3

-Added Bluetooth device whitelist exception

-Fixed network mode not switching back to original on some devices

-Fixed detection of running app in foreground sometimes not working

-Updated look

-Updated layout of exceptions page

-Added "About" dialog

-Added menu options to Exceptions page
[Android Apps and Games] ratbags:
If you set switching 10 mins after screen off as a limitation you'd still get sales because most people clamour for immediate switching let alone x minutes.
[Android Apps and Games] Flyview:
Thanks for the feedback. BTW whoever wants to be a translator will get a free promo code for a premium upgrade.

I currently need translations for some language I used to have translators for that have abandoned it, but anything helps!

Spanish+ (es)

French (fr)

Ukrainian (uk)

Dutch (nl)

Arabic (ar)

Russian (ru)

Slovak (sk)

Indoneisan (in)

Vietnamese (vi)

Simplified Chinese (zh)

Turkish (tr)
[Android Apps and Games] liver20:
I can do spanish translation.

We can talk by pm

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] Flyview:
Just published 3.2.0 to the beta channel. Let me know how things go!

3.2.0 (May 27, 2016)

-Most options are now free!

-Turn off interval time and sync interval time are now the only premium options

-Added Bluetooth device whitelist exception

-Fixed network mode not switching back to original on some devices

-Fixed detection of running app in foreground sometimes not working

-Updated look

-Added "About" dialog

-Added menu options to Exceptions page
[Android Apps and Games] mele80:
Do you need translator for Finnish?
[Android Apps and Games] Flyview:
Definitely, please email or PM.
[Android Apps and Games] liver20:
Still waiting for spanish translation, i Sent email a few weeks ago

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] Flyview:
PM me your email I can't find it.
[Android Apps and Games] mrdddcharlie:
Wanting to get this app, but can't access the play store.

It would be great if you could please mirror this app on AFH or something!:)
[Android Apps and Games] Flyview:
It's on XDA labs app!

Sent from my Nexus 5
[Android Apps and Games] mrdddcharlie:
Oohh, didn't know that, thanks so much!!
[Android Apps and Games] Flyview:
New beta out, and prices have been reduced in some countries.

3.2.1 - Beta 1

-Stop using AndAllowWhileIdle in order to match sync window with Doze active window

-Do not take "except if active" into account during periodic restore (sync window)

-Prevent turn-off alarm being set with screen off if already canceled for upcoming sync

-Prevent sync alarm scheduling turn-off alarm during disable exception time

-Updated German translations

-Updated Slovak translations

-Updated French translations
[Android Apps and Games] Flyview:
New update is out!

3.2.1 (June 20, 2016)

-Better match LD's sync window with Doze active window

-Do not take "except if active" into account during sync window

-Prevent turn-off alarm being set with screen off if already canceled for upcoming sync

-Prevent sync alarm scheduling turn-off alarm during disable exception time

-Added start/stop intents for Tasker

-Updated German translations

-Updated Slovak translations

-Updated French translations
[Android Apps and Games] fatspirit:
What are they exactly? Just start/stop LD itself or more specific cotrol of LD?
[Android Apps and Games] Flyview:
Just start and stop. They're listed in the description on the first page.

Sent from my Nexus 5
[Android Apps and Games] fatspirit:
Just to be clear: not only Tasker can do that. Or it's just because Tasker is well known? (:
[Android Apps and Games] Flyview:
Correct, anything that can send out intents should work.
[Android Apps and Games] Hawtpants:
Can Leandroid set to auto switch to 2g while screen off, instead of turning off data completely?
[Android Apps and Games] fatspirit:
Uncheck Cellular data in Disable section and set 2G in switch section.
[Android Apps and Games] tron98:
Problem with 3.2.1 & BT

Been using this program v 3.1.1 with in app purchase fine on a Samsung S3 mini rooted 4.1 Jelly Bean for Bluetooth switch off (if not connected after 10 min) which has been great.

Just upgraded to an Samsung S5 mini on lollipop 5.1.1 with the new version 3.2.1 and it seems to be not working fully. This phone is not rooted but with BT it should not matter. And with greenify and the build in Samsung opt app disabled for this program the background service seems to be still shut down after some time. With testing as you would expect when the service is running it works fine but if left for a while (seems longer than 1 hour at a guess as I have done tests every 15-20min or so with it still working ) the service gets killed and BT stays on. I have the same installed apps on this phone as the last phone.

I have tried uninstalling and re installing , clearing data and cache, rebooting and nothing has helped. I was starting to think it might be the phone or the android version. But I installed the older 3.1.1 version and this is now working as expected with the same settings as before .

So I think there must be a problem with 3.2.1
[Android Apps and Games] Flyview:
Welcome to Samsung! How do you know the service is being killed?

Are you sure it's working fine with 3.1.1? I would urge you to try 3.2.1 again just to confirm. If you do notice the service being killed, try enabling the notification from the menu options.

Sent from my Nexus 5
[Android Apps and Games] tron98:
Well so far with 3.11 over the last 2 days it seems to be working fine (its set up to sync with car so if it does

not

sync without me first turning screen on or using the phone 10 min before) I know its working correctly.

I used 3.2.1 over a week and it connected 95% of the time (without turning screen on) So BT stayed on.

Well I don't know for sure it is being killed, or it just stops, but every time BT is not turned off I check in greenify and it no longer tells me leandroid has a service running. Where when working correctly it warns me about the service running in the background. I also have checked this service is running or not in system tuner app.

So for some reason the background service stops with 3.2.1

Not tried the notification as I don't want that running all the time , and it was not needed before
[Android Apps and Games] Flyview:
Ok. Try 3.2.1 once more so that if it is a problem I can fix it. Are you using the except if connected to a specific device option? It's possible that when you see it connected, it already connected during a sync cycle (periodic restore), if a bluetooth device you've paired with was present during that period. So you don't necessarily need to be using the phone beforehand for it to become connected. When you have a feeling the service is not working, please check the stock Android "Running Services" screen and see if you see LD there and how many process and services. Try and get screenshots.
[Android Apps and Games] tron98:
Ok, thanks for info, I will give 3.2.1 another go soon.

Just for information the only parts on LD I use on this phone are, BT ticked , 10min after screen off except, if connected ticked (no specific connected selected) Restore after screen on ticked and

no

periodic restore selected.

I choose to let the phone connect with car manually or its still in the 10min wait time from last screen on use and it connects itself, Been using it like that for many months and it has worked well as expected.
[Android Apps and Games] tron98:
Well it looks like I spoke too soon I'm getting the same problem with 3.1.1 now. Not sure why it is now decided to stop working. I looked in android services and LD was not in there at all running. I then opened and closed LD and checked again in services and it was back running in the background as normal. Not got a clue why it just stops. What ever causes this problem never seems to kills any other app I have running in the background like greenify or wakelock detector lite. Hope you can help me get the bottom of the problem.
[Android Apps and Games] Flyview:
If you can get a logcat, see if there are any errors when you filter for "LeanData". But for now I suggest turning on the notification to see if that fixes the issue. If it does, it's a system problem overly aggressive at killing background processes, which LD is actually built to cope with, but not if it isn't allowed to restart.

Sent from my Nexus 5
[Android Apps and Games] tron98:
Right without having the notification setting turned on, for testing purposes. I have done a logcat when the event happened. left LD to shut down BT for over 10 min (least 30 min) without it near any BT devices then took phone to the car around 09.45 ish and phone synced with car without turning screen on.

Then moved the phone away from car and not near BT devices until 10.22.

Noticed it says in logs about leandata crash which is interesting

If you need more info please ask

*Update * Just added another logcat(2) if needed from when I checked again 12.02. it talks about killing leandata and leandata crash.

Tks
[Android Apps and Games] Flyview:
I checked your logcats. It's just as I feared, Samsung's terrible process killing software. There are no crashes (even though it says scheduling restart of crashed service, this is normal). The system is killing LeanDroid. From your first log I see that once this happened the service didn't actually restart for another 40min or so. In the second log the process is killed, is restarted a second later, but then is killed again a minute later. I pasted this part of your logcat below.

Turn on the notification, it will likely keep the process alive as it wil run as a foreground service. I may even make this the default in the next version. Too many people own these crappy Samsung powered phones.
[Android Apps and Games] tron98:
Thanks for looking at the logs and the advice. I have now activated LD notification (which I would prefer not to have showing all the time but its a workaround) and so far it seems to be working as expected every time I have tired.

Its strange how Samsung does not kill the greenify background process also running all the time since the phone last booted (24 days) (without a notification set).

So maybe greenify have a way of avoiding being killed?
[Android Apps and Games] Flyview:
I'm not sure, perhaps it's because Greenify is actually active while the screen is on.
[Android Apps and Games] Zaragosa:
(Lollipop+ and with root)

(root only on Lollipop+)

(Lollipop+ and with root)

A bit confused by the meaning of the above, I am running 4.4.2 rooted. Which will work and which will not?

Thanks in advance...
[Android Apps and Games] Flyview:
If you're rooted everything will work.
[Android Apps and Games] Flyview:
Someone wrote in to me saying they don't see LD in the list of apps with usage access. When you want to use the "Except if apps running" option, you first have to enable LD usage access, but LD isn't showing up in the list of apps requesting it. This is on Android 6.0.1. Anyone else seeing this issue?

New update out yesterday!

3.2.2 (August 2, 2016)

-Fixed getting default data subscription id on Android Nougat

-Show notification by default (prevents some Android OS versions killing process)

-Built for Android Nougat

-Translated to Lithuanian (Thanks Andrius!)