yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Flyview:
That exception is only for the periodic re-enabling that occurs while the screen is off, not for reconnection in general. Ok so the fact that it works now when set to 0min points me to say that something is killing/freezing the LD process after some time. CleanMaster or anything of the sort installed? If you use Greenify, have you added LD as an exception?
[Android Apps and Games] TNSMANI:
No killer apps. In Greenify, LeanDroid is not in the list to be hibernated. In Amplify, none of LeanDroid's wakelocks or alarms are limited.

Should I add it in 'not optimised' for battery optimisation in MM?
[Android Apps and Games] Flyview:
Yes, although in my testing that only affected the ability to do internet related things (for LD only checking for browser login requires this) while in Doze mode, which shouldn't take effect for an hour or so. Let us know if that fixes it or not, but I doubt it. If you can I would uninstall Greenify and Amplify just for testing.
[Android Apps and Games] TNSMANI:
I use Doze Settings Editor and the Inactive timeout was set at 300 seconds two days back from 600 seconds. In addition, Aggressive Doze in Greenify is also enabled.

Just now checked again with the same delay of 5 minutes as before for LeanDroid and both WiFi and data work as they should.

Let me play around with the settings some more since you have given me some ideas and since it has now started working.

Give me time till tomorrow and I will report back.

Thanks for the fast response.
[Android Apps and Games] Flyview:
Sounds like "agressive" doze mode could be the problem. From what I've seen so far it would definitely mess things up for LD, even if the initial disabling works, the periodic re-enabling wouldn't (well at least not until the next doze window).
[Android Apps and Games] TNSMANI:
It continues to work. The setting of 0 second for disabling WiFi and data somehow seems to have worked. Also I unticked every option and then ticked whatever I wanted.

All my other settings in Greenify, Amplify, Doze Settings Editor etc remain the same but now LeanDroid works. I don't know whether periodic enabling works but it doesn't matter very much for me.

If there are any problems in future, I will get back to you.

Thank you.
[Android Apps and Games] fatspirit:
[MENTION=2584205]Flyview[/MENTION], how about adding setup profiles? It would be very handy with montly re-rooting due to security updates, at least on N5, and because LD resets own settings to non-root ones.
[Android Apps and Games] Flyview:
Yea that's a good idea.
[Android Apps and Games] okazaki0:
Good:good::good::good::good:
[Android Apps and Games] aeryl:
App is saying it cannot obtain root on my Oneplus One. I'm running a custom ROM but have no issues obtaining root on an earlier version.

Running Sultanxda's cm13 rom if it matters. I don't use supersu to root as you can do it right from the settings. Not sure if that is the problem here.
[Android Apps and Games] Flyview:
The app needs SuperSU root specifically to function correctly. Please flash SuperSU if you can.

Published a small update today:

3.0.9 (January 17, 2016)

-Fixed LD re-starting whenever any app updated

-Material style dialogs for pre-Lollipop devices
[Android Apps and Games] aeryl:
Flashed SuperSU 2.66 beta and it works, however, when I try to get the upgrade, nothing happens. Is there another way to get to the upgrade package so I can pay? Couldn't find via play store.
[Android Apps and Games] Flyview:
Thanks for going for the upgrade. No there is no other way. Do you have Google Play services installed? Can you try clearing data on your Play store and restarting the device? Let me know if that works.
[Android Apps and Games] aeryl:
Hm, I tried that and rebooted and no luck. Also tried to uninstall and reinstall then reboot and nothing. The weird thing is, when I had the older version (before I installed superSU) the prompt to upgrade would work.

Sorry for this issue. Appreciate your work and efforts.
[Android Apps and Games] Flyview:
That's strange. You also just changed ROMs right? Do in-app purchases work in other apps?
[Android Apps and Games] aeryl:
No, I've been on this ROM for a bit (around 2 months or so) In-app purchases give me no issues with other apps.

Maybe it's a permissions issue but I don't think so.
[Android Apps and Games] muniz_ri:
[MENTION=2584205]Flyview[/MENTION] - just gave this app a 5 star review on Play. Great work!
[Android Apps and Games] Flyview:
Did you try a clean install of LD without restoring any data? Shoot me an email so I can send you a debugging version.
[Android Apps and Games] Aaren11:
Thanks for the excellent work dev.

I have been having one issue with Leandroid however. On my htc m7 running Santods 5.1.1 ROM I've found that leandroid appears to wake up the entire phone whenever set to periodically enable wifi/data during sleep to resync. Ive set it to a delay of 60 seconds every thirty minutes - but gsam shows the phone staying awake for nearly 15 minutes every 30 min. Without leandroid my phone only wakes once every hour or so with wifi running.

I was also wondering why, with all these alternative apps, leandroid, Intelli3g, SmartNetwork - none yet offers the option for radio/wifi control while the screen is ON. Saving battery while the screen is locked is one thing. But I loose a lot of power while browsing the web with 3g enabled, but no data flowing. The 3g modem in standby seems tl be horribly ineffcient, but enabling and disabling it takes under a second, at least on the m7. Why then couldn't an app be made to diaable the 3g modem when no data is being sent or received, and renable it when an app requests a connection? Surley there must be some flag that indicates an app is asking to connect, because my data meter in thr status bar only shows during activity.
[Android Apps and Games] pigeon92:
nice app, tks u so much :)
[Android Apps and Games] Flyview:
LD does indeed wake the phone when it's time to temporarily restore connections in the background. It should only be keeping the phone awake while the connections are being toggled. It's possible another app is holding a wakelock once internet is available. Does GSAM show LD holding a wakelock for that entire time?

Unfortunately things aren't so simple. I designed LD to save battery in the background when you aren't using the phone. Even if you could somehow detect when other apps are trying to access the internet (which you can't), it would be awfully annoying to have intermittent waiting periods, even for a second or 2.
[Android Apps and Games] Aaren11:
Thanks for the response Fly,

I'll have to check in Gsam and BBS to see if something is holding the phone awake, though I find it kind of hard to beleive as without Leandroid - the phone remains asleep for hours when the screen's locked. I'll look into it further though.

I had expected the sheer complexity of coding a detection for connection requests would have been the issue. You'd probably need some sort of watchdog running to check for connection requests and that would just inflate your overhead to the point where it might negate any potential power savings. I still feel that this is something that should have been coded into Android or Sense's power saver though. The mobile modem toggles on and off so fast I can barley detect any delay in my web browsing at all.
[Android Apps and Games] Flyview:
More details please? Android version? can you post a logcat like above?

Thanks
[Android Apps and Games] Terrez:
Hello, I've told you before, 4.4.2 (CM11). The problem is that it seems that closes and then is not able to open it again.
[Android Apps and Games] Flyview:
Can you tell me what you see in Running Services for LeanData? "x processes and x services"
[Android Apps and Games] Terrez:
You will kill me, but the error is that it was loading, so that the application does not takes effect until you disconnect the charger. Since version 1.2.2 so far no problems.

Running Services for LeanData:

1 process and 1 service

Service:

"DataService" 21 hours

Process:

6,2MB

Thanks you
[Android Apps and Games] Flyview:
Yea the app does not disconnect any connections if the device is charging. Was that the problem?
[Android Apps and Games] Terrez:
In version 1.2.1 the process is killed, then not again revive. In the 1.2.2 to be loading it, I thought it had happened again, not a problem, mine was an oversight.

Thanks
[Android Apps and Games] Flyview:
New updates:

1.3.0:

- Fixed critical bug where sync alarm may not be set after reboot

- Potentially fixed WiFi getting "stuck turning on"

- Fixed FC on SettingsActivity when leaving sync interval blank

- Other SettingsActivity fixes

- Updated some text

- Updated donate dialog

1.3.1

- Improved layout

- Better logic for waiting for toggles to complete before allowing sleep
[Android Apps and Games] cottino:
Hi Flyview, did you get my pm with translation?
[Android Apps and Games] rogxd:
I'm trying this app on my Nexus 4.

In your opinion, can it create some conflict with Snapdragon BatteryGuru?

https://play.google.com/store/apps/details?id=com.xiam.snapdragon.app
[Android Apps and Games] Flyview:
Yes, it could definitely conflict with that. I would not use both.
[Android Apps and Games] brynte5:
unfortunately, i´ve been having some problems lately, that i suspect are caused by this app!

before i installed this app, i had no problems with endomondo, when going for a run, but after i installed this app, endomondo hasn´t been working at all!

i suspect your app kills endomondo, or the gps (or both), after the screen turns off!?
[Android Apps and Games] Flyview:
Does endomondo require an active data connection? Yes, LeanData is probably disabling your data as it doesn't happen to find internet activity when it checks. It won't affect GPS and it doesn't kill endomondo. What you can do is set a higher disable time after screen off. Ex. Set it to 60 minutes if your runs are less than an hour.

Having said that, I'm thinking of ways to better check for internet usage. Right now it only checks for 10s after your set time, so if no apps are using the internet during this time, the connections will be disabled. I may add app exclusions, so for example if endomondo is running, it will not disable data.

Alternatively, I might average the data usage since screen off until the disable connections alarm, and if it's past a certain threshold, keep the connections on.
[Android Apps and Games] RobboW:
It's going to be different for every user. I think the user needs to be smarter. If you want to use an app likely to need data, alter your LD setting to reflect that need. I personally think people expect too much from it and expect it to work simply, but data use on a smartphone is complex. You need to be prepared to turn off the app and do a little manual switching sometimes.
[Android Apps and Games] brynte5:
actually i´m not sure if endomondo requires an active data connection!?

i, for one, would surely appreciate it, if you added app exclusions, especially considering a lot of other apps out there, that i assume are having similar problems...
[Android Apps and Games] rossarnie:
This is a very helpful app - thank you!

Please include the option to run a different schedule at night, or even to turn off all data at night.
[Android Apps and Games] Flyview:
Why? As it is, LeanData will turn off the connections after your time with the screen off and stay disabled 90% of the night, except when enabling for sync (only one minute for each sync). The battery saving would be negligible if not allowing sync only at night (assuming you do want it during the day), and does not outweigh the added complexity and confusion added to the app.
[Android Apps and Games] Flyview:
New update:

1.3.2

- New data transfer detection logic. Should help with WiFi/data turning off when streaming certain content like Pandora, Spotify which don't continuously stream. Set your "Disable after screen off" time to longer than your average song in case the entire song is downloaded before screen off!

- Data transfer now based on received and transmitted

- Eliminated some wakelocks for more efficiency
[Android Apps and Games] RobboW:
I'm glad you're resisting the urge to make the app more complex. There will always be requests to add this and that. Before long it would consume more CPU and RAM and defeat it's purpose.
[Android Apps and Games] rossarnie:
During the day I use WhatsApp a lot. I want it to check for messages/replies every 10 minutes. But at night I don't want it to check at all, if possible.
[Android Apps and Games] RobboW:
So turn off data manually....

That's what I do. All data off manually at night. No emails and notifications to disturb me, but can take a txt or call if something urgent happens. I run LD through the day between wifi and mobile data depending if at home or out. Simple and effective. Got a nice shortcut to open the LD settings. That's as complex as it needs to be.

Sorry if I come over as an a hole about this, but I've seen so many good apps ruined through the development and bug fixing stage because everyone has extra feature requests.

I think this dev is going to fine tune LD and make it one of the go to apps that become a part of the "kit" you install on a new phone or clean ROM install :P
[Android Apps and Games] inzaghi89:
I've a question regarding to battery consumption on three configurations. I've set ld to disable/change state after 5 minutes. And there is a question. Lower battery consumption will be on lte, 2g/3g, ord 3g/2g each on enabled network. Ofc I want to bring back lte after screen is turned on. Phone while screen is off have only push notifications, so there is low traffic usage. At the moment I've set to 2g/3g but I'm curious about your opinion.

Wysłane z mojego A0001 przy użyciu Tapatalka
[Android Apps and Games] Flyview:
Hey sorry I forgot to reply to this. In the past, phones used to have separate modems for 4G/3G/2G and the 2G used less power. However on modern devices I'm not sure this is the case anymore. Basically it comes down to the modem in your phone. Generally whichever has the best signal strength will have the least power use. Does anyone have anything to add?

P.S. Hint hint follow [MENTION=324140]teq[/MENTION]tic on Twitter for a giveaway!
[Android Apps and Games] Darke5tShad0w:
Could remind me which options are in premium?

I want to make sure I still have it after changing my phone and android id.

It works so flawless It has been awhile since I opened it and I can't find anything in the op or gplay that states premium features.

Thanks
[Android Apps and Games] Flyview:
If you don't see a little key in the top right and no little locks beside certain options, you've got premium!
[Android Apps and Games] Darke5tShad0w:
Ah awesome thank you.

I knew it was something to do with the top but couldn't for the life of me remember.

Since I talked to you last I have installed this on alot of phones and everyone loves it!
[Android Apps and Games] Flyview:
Thanks for the exposure. It's a shame it doesn't work too well without root on Lollipop+. Do you use any other apps of mine? Have you heard of WallFlix?
[Android Apps and Games] Darke5tShad0w:
Yes it is, is there no hope for the future on this?

I use ClickLight Flashlight on my s3 but the feature I use "power button activation" is built into the rom of my new main phone. (Sorry)

WallFlix - Not until I joined your twitter a few hours ago :). But im not a big wallpaper person or use my phone enough (tried lock me out long time ago but did use my phone enough lol)

Was just looking at kinscreen when seeing what other apps you have and will check it out in the weekend. I no off 2 people who will love this.
[Android Apps and Games] Flyview:
So there seems to be a bit of a problem I noticed recently (at least on Nexus 5 Android 6.0.1). If you leave WiFi on but not connected, it seems to be counting traffic from the WiFi scans. If you use the "except if active" option, it'll often find it's transferring at 50-200kB/s and therefore not disable data (and WiFi). This happened even while I was on the subway without signal so there's no way it actually was transferring that much. Anyone see anything similar? Kind of hard to test, it usually happens when you're out about town with WiFi left on. You would notice that data isn't really being disabled much.
[Android Apps and Games] Darke5tShad0w:
Nope, works fine here on a 5X. Checked pull down on lockscreen and its disabled. (Turned off my router and leandroid set to reenable after unlock)

PureNexus 6.0.1 Feb update.
[Android Apps and Games] bonny_k-9:
Yea sorry about that, not much can be done unless you set selinux not enforcing. Please email to discuss!

I have tried in different modes selinux. Do not set supersu. On my phone d802 write that bootloop.
[Android Apps and Games] Flyview:
Right now LD rejects anything but SuperSU. I should put out an update that allows root from CM if selinux is set to permissive. Please email teqtic@gmail.com if you would like me to send you a version for you to test.
[Android Apps and Games] phantom146:
This sucks..

[MENTION=2584205]Flyview[/MENTION]

This sucks really and i was frustrated from night until early morning trying to buy the upgrade... It wouldnt let me.. You can see i have more than enough to buy the uphraded version but still it wouldnt let me..

I have bought greenify, ex kernel manager and a lot of apps using this so i doubt its with my service provider.. My patience has run out. Just fix it so i can enjoy leandroid as well..
[Android Apps and Games] Flyview:
Hey there. Heh, I was wondering if you'd get in touch, I saw someone trying to buy LD like 20 times unsuccessfully. Unfortunately this has absolutely nothing to do with the app. The purchase (once you hit the Google Play dialog) is all handled by Google Play and whatever payment provider you are using. Have you tried restarting, contacting your service provider who it seems you're trying to pay through?
[Android Apps and Games] phantom146:
Did it all day.. Restarted 8 times, tried o reload 2x just for LD.. Im frustrated here.. :/ any help would be great
[Android Apps and Games] Flyview:
Do you have any other payment method than through your provider?
[Android Apps and Games] phantom146:
I dont havesince i dont have a bank account opened atm. So the only way i can pay is with my service provider.. Plus i have bought a lot of apps using this.. Idk why this only happened onLD
[Android Apps and Games] Flyview:
Well it's possible that it failing on LD is a coincidence. Can you try another in-app purchase on another app? You could even try another one of my apps and I can issue you a refund.
[Android Apps and Games] phantom146:
I just got off with my service provider and thry said there was a problem with my location.. So i told him some troubleshooting steps.. (Really, its me who troubleshoot) when i got off the phone everything is perfect so thanks! :) i purchased it now :3
[Android Apps and Games] Flyview:
Awesome, thanks! Don't forget to leave a review!
[Android Apps and Games] phantom146:
Will do just a question though.. The main purpose why i bought this was because of the auto airplane mode on cellular radio.. Will it go on airplane mode or you have another method of disabling?

If it does disable how can i check the stats? And what was the threshold for the cellular radio to turn off?
[Android Apps and Games] Flyview:
It's not airplane mode per say, it disables the cellular radio directly. It gets disabled based on the options and exceptions you choose (check exceptions page).
[Android Apps and Games] phantom146:
But its simlar to airplane mode meaning if in my exceptions if the signal is off, it will be disabled immediately saving battery correct? How can i see if the radio was disabled? If there was no airplane mode icon then how will i see it? Will my radio bars have no signal etc? Or an x icon? Sorry for the questions to be honest im really puzzled here
[Android Apps and Games] Flyview:
Yes, when it disables cellular radio, you will no longer have bars. You can check if it's working by setting re-enabling/restoring to happen after screen unlock. Turn the screen on but don't unlock and check the status bar.
[Android Apps and Games] Albhedal:
Im gonna try this, have used smart radio function but felt it was draining battery a lot. Will keep you posted after trying this
[Android Apps and Games] Darke5tShad0w:
Go to settings, battery, click on the graph. Find the cellular network line and it should be broken up, as in not a constant colour.

The spaces are where signal has been turned off.
[Android Apps and Games] Flyview:
I posted an update to the beta channel, should be available within about an hour:

3.1.0-Beta1

-Added support for non-SuperSU root if SELinux permissive

-Get preferred network mode without root

-Added Turkish translations
[Android Apps and Games] ratbags:
Just updated and now location etc aren't available as options as I'm rooted via king root and use the God forsaken king user app. Any chance we can get access to those options again? Thanks.
[Android Apps and Games] Flyview:
Hey, nothing has changed. Before the update you wouldn't have had root either. The good thing is that since this update you can now use non-SuperSU root, as long as your SELinux is set to permissive (which you can do with other apps). This should all be explained in the pop-up dialog. Is it not?
[Android Apps and Games] ratbags:
Previously I could check the boxes for location etc but now I can't. Maybe the functions weren't working previously just appeared to be? Anyway, I'm not sure of the implications of permissive mode yet - I'll have to read up!
[Android Apps and Games] Flyview:
Are you sure it was right before this update that you could check them or could it have been when you first installed it a while ago?
[Android Apps and Games] ratbags:
Yes, it was the previous version when I could select the options.
[Android Apps and Games] Flyview:
Here's the previous version. Please try it and let me know if it allows your root. It doesn't really make sense that it would, since it also checked for SuperSU root.
[Android Apps and Games] ratbags:
I've been using full version bought from play store but after installing this its not full so I don't get access to locked root features.
[Android Apps and Games] Flyview:
Hmmm that should definitely unlock itself... Anyway just use the newest version, SuperSU root is definitely required unless you wanna run SELinux permissive.
[Android Apps and Games] ratbags:
Well it didn't and I hope your not suggesting I'm not using a legit version. Fact is until last update I had root features, now I don't.
[Android Apps and Games] Flyview:
No not at all just wanna be clear on what's happening. Has it still not unlocked itself on the newest version? Did you restore data or install fresh wiping all options?
[Android Apps and Games] ratbags:
Cool. Well when I first tried to install it was over existing, it didn't work. Then I uninstalled and tried again and it wouldn't unlock. Now I've reinstalled, cleared data etc and it unlocks. Immediately on launch I got king user popup asking for root permissions which I accepted. Root features are enabled. No super su or selinux frippery.
[Android Apps and Games] Flyview:
Interesting. "King user" must have some sort of supersu in its version name. Do the root features in LD work?
[Android Apps and Games] ratbags:
Certainly cell radio switching works not sure about location etc yet. I'll have to keep this version on my phone if I want access to these features?
[Android Apps and Games] Flyview:
3.0.9? No, please try the market version again and see if the root functions work again.
[Android Apps and Games] ratbags:
Just tried latest play store version and root options are locked again!
[Android Apps and Games] Flyview:
Locked as in it's not showing the premium version or locked as in LD is saying you need SuperSU or SELinux permissive? The latter would make sense seeing as you don't have SuperSU or SELinux permissive. I still don't understand how v3.0.9 allowed your root solution to work.
[Android Apps and Games] ratbags:
I have full version but I get the super su permissive message again which means I can't select the options.