yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Flyview:
How many of you are familiar with the new Doze feature of 6.0 Marshmallow?

Doze mode will kick in about an hour after you leave your phone stationary with the screen off. In essence, it sort of does what LD does, but not by turning off connections. It doesn't allow apps to hold wakelocks, or have any network activity. LD will continue to work both when the phone is idling in or out of Doze, but keep in mind that if your device does enter Doze mode, OTHER APPS won't have internet access, so even if LD restores connections periodically, those apps will likely not update (unless they are using Google's GCM push system, one of the only few apps allowed internet during Doze).

LD is also affected by Doze. One of the restrictions in Doze is that wake-ups cannot occur more than every 15min. This means that once in Doze, the periodically restore function will work at best, every 15min. In addition, the sync interval may be as long as 15min (instead of say 60s).
[Android Apps and Games] stepanov.standy:
Useful app! Will check it out =)
[Android Apps and Games] Flyview:
Just posted an update to the beta channel. I attached the apk here too. Please let me know of any issues!

3.0.4-Beta1

-Fixed switching of network mode on Android M

-Set alarms that can fire in Doze mode for Android M

-Ask for battery optimization exclusion to avoid App Standby on M

-Temporarily disable location toggling functionality on Android M (until fixed)

-Added warning dialog for root before dialog to unlock premium version

-Added a check to see if rooted with SuperSU

-Fixed a missing check for successful disabling of network location

-Removed "don't show again" checkbox for usage stats permissions
[Android Apps and Games] Flyview:
I'd like to make LD reliable on multi SIM phones too. What would be the most popular multi SIM phone that is already on Lollipop (where there's any hope for this)?
[Android Apps and Games] SuperGamesStudio:
:good:
[Android Apps and Games] drmpk:
Wonderful app. Tried many such apps on 5.1.1. Only this works flawlessly. Thankyou

This may be requested before.

Is it possible to keep the 2g mode even after screen on and restore 3g mode only for selected apps like youtube, playstore etc.. or restore 3g mode manually with a notification toggle. What i observed is, when i unlock my phone 3g gets restored. But in most instances it may be unnecessary for me.

I might have missed something.
[Android Apps and Games] drmpk:
one more request

Switch to 2g network if connected to Wi-Fi (Regardless of screen on or off).
[Android Apps and Games] Flyview:
It's not really possible to enable 3g for certain apps. If you mean have 3g restored once you start using one of those apps, that might be doable, but LD would get no notification that a new app is on screen, and would have to be polling every x seconds to see what's in foreground.

This I will certainly try and integrate, as a lot of people have been asking for it.
[Android Apps and Games] Flyview:
Posted a new update. It will be available on Google Play shortly or you can download it straight from here (attachment).

3.0.4

-Fixed switching of network mode on Android M

-Set alarms that can fire in Doze mode for Android M

-Ask for battery optimization exclusion to avoid App Standby on M

-Temporarily disable location toggling functionality on Android M (until fixed)

-Added warning dialog for root before dialog to unlock premium version

-Added a check to see if rooted with SuperSU

-Added Chinese language (thanks Adan)

-Updated Polish, Ukrainian, Portuguese, Malay, Italian, German, Romanian translations
[Android Apps and Games] drmpk:
Thanks.

But i have a suggestion. How about adding a toggle. An additional toggle to revert. A toggle - not to revert to 3g mode on screen on/unlock but with a norification toggle to do so that can be manually triggered. I know app triggering would be a battery drainer.
[Android Apps and Games] drmpk:
Is it normal that the app tries restoring network even during a call if i unlock the screen for some reason during the call or the screen goes off during the call after the set time. It doesn't drop the call. But i just happened to notice it.
[Android Apps and Games] fatspirit:
Maybe because of this, but it was a long time before root was actually requested. Or maybe it's how root (SuperSU+modified stock kernel) works on Marshmallow.
[Android Apps and Games] Flyview:
Yea I'll try and think of something...

Yes it's normal. It won't drop the call even if you have it set to disable the cell radio as it will detect it's in a call. I didn't even make this an option because who would ever want their celluar radio disabled while in a call? Haha.

What do you mean? How long did it take?
[Android Apps and Games] paul c:
I let flyview make comments first, didn't want to be seen to be taking about other apps in this thread. But since there is no functional overlap...

A Tasker profile - or a similar app - would do that. You would only use 2g (a system setting) then create a Tasker profile: when x,y, or z apps run, then switch to 3g.

Since is just waiting for a change of state, there is no battery consumption.

Tasker can also run an exit task, basically the reverse of the above for when you finish when the app exits. Your would need to kill the app (a lot of Roms allow you to long press the back key, to kill the app).

I think the trick is reverting to 2g in the case of Play, since at least for me it connects seemingly when it wants to. But all manually launched apps would be OK
[Android Apps and Games] Flyview:
How do you think Tasker detects when a new app has come into the foreground? Surely it must be checking every now and then? There's no system wide notification for when a new app enters the foreground, or at least not that I'm aware of.

I also posted an update earlier today:

3.0.5

-Allow non-SuperSU root on KitKat or lower
[Android Apps and Games] drmpk:
Thanks.

I did try. First thing first. Tasker is a tough task for a noob. But i like automation. I am a bit lazy kind of guy.

So i learnt and tried. On my device the option to change the network for any app is marked in red. Says this option is currently not available on your device. I am running 5.1.1 on galaxy note 4 n910c.

I guess it is not easy to achieve it on 5.1.1. But here on LD dev has achieved it already. So i thought he might help.
[Android Apps and Games] paul c:
Tasker detects changes, so that could be a connection to the car BT, an app which launches, a time etc. That change acts as a trigger for an action, which is used by the app to do other things. In this case, it's not a question of the app entering the foreground, rather its launch. User apps would be fine, since you could add an exit task to revert to 2g on leaving the app, but Play could be different since it runs in the background.

Thinking more about it, the LD option of screen off switch to 2g/screen on, switch to 3g is very elegant! It may take a while to update an app over 2g, but if the phone is not in use, that's not a problem (or for that matter, select the "only update over wifi" option in Play)

Indeed, Tasker is not easy, I have been using it for a year, and it's still a struggle :) fortunately google anything prefaced by Tasker, and you get some good pointers. I know even less about the alternatives which are appearing, but since they are all effectively user interfaces for low level programming, things can only get better!

Your network options being in red, would it be that you are not rooted? With a custom 5.1.1 ROM, rooted, my phone displays them in black, as available.
[Android Apps and Games] fatspirit:
Around 15 sec, I even received "Root was not obtained" two times. However, latest update was fast.
[Android Apps and Games] Flyview:
How does it detect an app launching? Wouldn't it have to be monitoring what's running?

15 seconds after what though? hehe sometimes the root functions don't happen until after Wi-Fi has connected if you use the restore "data after waiting 15s for Wi-Fi to connect" option.
[Android Apps and Games] paul c:
I understand it picks up the intent which is logged in the catlog, as the app launches (or time reaches a certain value, or a certain BT device is connected etc).

The available triggers are listed as app launches (or services...), time, state changes (eg screen off), location etc. So that's why I thought it would be good to catch an app launch event and switch to 3g - and switch back to 2g when that app is killed.

Bit more tricky are background processes like Play. Though if an intent can be identified (eg com.google.play.download - making this up!) that could be the trigger for 3g, without user intervention. And it could switch back to 2g after a certain time period, like 10 minutes, to ensure any updates have been executed on 3g.
[Android Apps and Games] fatspirit:
After update from play. But it could be just like you've said.
[Android Apps and Games] Flyview:
Good news, looks like I've managed to fix the location toggling on Marshmallow.
[Android Apps and Games] Flyview:
I just published an update, it should be available on Google Play in about an hour!

3.0.6

-Fixed location toggling for Android Marshmallow

-Added SuperSU check for app restart after boot or updated

-Disable data even if Wi-Fi is still connected (since on 5.0+ it can now use both)

-Fixed link to Wi-Fi scanning always on setting (now under Location settings in Marshmallow)

-Updated Slovak translations
[Android Apps and Games] fatspirit:
[MENTION=2584205]Flyview[/MENTION], should I exclude LD from battery optimisation?
[Android Apps and Games] Flyview:
Battery optimization, as far as we know refers to app standby behavior. From my testing this eventually stops internet access to the apps if you haven't used the app in a while and don't run it as a foreground service (don't show the notification). This only seems to break the browser login detection for LD, so if you use that option, yes exclude LD from battery optimization. I put in a warning dialog when you select that option.
[Android Apps and Games] Flyview:
Anyone running this on a Note 3 with Lollipop? Any problems with disabling of WiFi?
[Android Apps and Games] Flyview:
Published an update:

3.0.7

-Added Simplified Chinese (Thanks Kavin!)

-Updated to appcompat 23.1.0

-Changed update receiver to not fire at all when other apps are being installed
[Android Apps and Games] aimcr7:
How to enable "disable data if connected to wifi", because I find it inside the switch and no option for that, and the restore option always greyed out?
[Android Apps and Games] Flyview:
You have misinterpreted the option. There is no disable data if WiFi is connected option. LD only affects connections while the screen is off. Moreover Android itself keeps data disconnected, even if you have it "enabled", while WiFi is connected (and has internet connectivity) so you don't need any app to disconnect data while WiFi is connected.
[Android Apps and Games] aimcr7:
How do I enable the greyed out option?

Do I have to disable data manually then connect to wifi? Not a big deal, I am just curious
[Android Apps and Games] MaxGood99:
So great. Love using this battery saver app!

I really love how my battery last long. It's a great help.

Thank you. Keep up your good work :)
[Android Apps and Games] Flyview:
The greyed out option you're looking at becomes available when it's relevant: when you have both WiFi and Data checked above. If both WiFi and data are disabled, when restoring them, this option controls whether data should wait until WiFi is connected to be re-enabled, so that data doesn't end up connecting for just a few seconds before WiFi does.

Thanks, make sure you leave a review on Google Play as well!
[Android Apps and Games] blackbuffalo:
Get great battery life with this app, this is reason I paired this app, thump up!
[Android Apps and Games] Flyview:
Thanks! Yes idle time is very light on the battery with LD set up right.
[Android Apps and Games] aldiandrew:
hello sir [MENTION=2584205]Flyview[/MENTION] i have bought your application for a week now and works great as i am expected, i have question, in the future can LD switch to 2g network when connected to wifi and screen on? i read your reply its possible on Lollipop if iam not wrong. The reason why i want this because its saving battery when 3G network its unstable. I know some application work with xposed, but i dont want to install xposed. thx for your answer sir and great apps
[Android Apps and Games] Flyview:
A lot of people have been asking for this, and I'll try to include it at some point. Initially I designed LD to be completely non-intrusive when screen was on and unlocked (restoring all connections as you had them).
[Android Apps and Games] aimcr7:
You can include it in some kind of advance options which include stay in 2g when wifi is connected, restore to previous settings when wifi has no connection. It helps a lot for people who live or work inside a building which has poor cell reception, at least I don't have to do it manually anymore.

Just my $ 0,02
[Android Apps and Games] blinkcrawler:
Hello..

I'm new here. Just asking what happrn when I set disable '1 minute after screen off' because it says 5+ recommended.. is that any effect will happen..

2. Why I can't put the limit when data and wifi active to 1mb/s.. it just limit to 999 kb/s

Thanks
[Android Apps and Games] Flyview:
Hey, welcome! Nothing bad will happen at under 5min but if you use the "except if active" option, which it sounds like you do, LD won't have as much time to catch an app transferring data in that amount of time.

I never thought 999kB/s would be too low for anyone, are you constantly averaging that much traffic!?
[Android Apps and Games] aldiandrew:
Thx for the reply, i found temporary solution with custom rom which include system profile from CM

Basically i just add new profile

Wifi trigerred connected

Mobile network off

Network switch 2g

And with leandroid setting switch 2g when screen off active, and its meets my need for now :angel:
[Android Apps and Games] goldenboy48:
Have marshmallow users found this helpful even with Doze?
[Android Apps and Games] ratbags:
I have an idea related to Wi-Fi white list. What about in a situation where Wi-Fi cannot connect to a white listed ssid within x seconds it allows the data connection but then switches off Wi-Fi? Rather than having Wi-Fi continuously scanning when no network available.
[Android Apps and Games] Flyview:
I'd like to know this as well! I should do a test with and without but right now my Nexus 5 is draining battery quite heavily and I'm not sure why, I think the battery may finally have reached the end of its life, the phone is about 2 years old now.

That's an interesting idea. However, to make it clear I'd have to either redesign the way the options are laid out or think of a really clever way to put it into the current design. Right now the design is disable x x and x after x time, then restore it to what it was after screen on/unlock. It's all about disabling connections while the screen is off, not once the screen is back on. I never really wanted this as it could turn off connections like WiFi while I actually still needed them. For example, imagine driving around looking for an open WiFi. If you forget about your proposed option in LD, you'd find WiFi turning off randomly when you expect it to be scanning.
[Android Apps and Games] ratbags:
I thought it might pose some problems. I'd like to think there was a way around it as there would be definite battery saving gains to be had.
[Android Apps and Games] :
Great app!
[Android Apps and Games] kamilmirza:
do you even read?
[Android Apps and Games] TwoMountains:
nice design interface!)
[Android Apps and Games] at5000:
does it work with android M?:confused:
[Android Apps and Games] Flyview:
Looks like they figured it out :)

Thanks!

Yes, it does. However, most functions will require root, the most important of which is toggling data.
[Android Apps and Games] fenerbuuh:
sry to tell but it doesnt work at all

s3 mini cm 12.1 (5.11)

it got su permission but it doesnt shut off anything.

even as system apo it doesnt work.

what could it be?

---------- Post added at 11:50 PM ---------- Previous post was at 10:54 PM ----------

now it works.... after 3 reboot. damn technic...

thx for your work.
[Android Apps and Games] Flyview:
haha what? All it needs is SuperSU root, not what's included with CM. Did you check your exceptions on the except page? That may be why you thought it wasn't working.
[Android Apps and Games] MBurns2:
[MENTION=2584205]Flyview[/MENTION]

First of all thanks for the great app.

I’m trying to reduce lollipop mobile radio active bug. If during screen off I disable 3g, I have “ connectivity service” wakelocks. If during screen off I switch to 2g I haven’t any wakelocks.

Can 2g reduce mobile radio active bug ? or I have to disable data ?

Thanks a lot
[Android Apps and Games] Flyview:
What exactly is the mobile radio active bug? What's the difference between "disabling 3g" and "switching to 2g"? I found a connectivity service wakelock happens when turning off the internet. However I think the benefits outweigh the wakelock, as long as it's not happening too often.
[Android Apps and Games] MBurns2:
"What exactly is the mobile radio active bug?": it is lollipop bug.

I noticed that if i switch to 2g when screen is off i have not "connectivity service" wakelock. Is 2g good for bypass lollipop data bug ? thanks
[Android Apps and Games] Flyview:
I'm not sure you'll have to test it out and see!
[Android Apps and Games] TNSMANI:
Superb app

[MENTION=324140]teqtic[/MENTION]

I stumbled on KinScreen at the beginning of this month and then paid for it on 6th of Nov. From its menu, I found LeanDroid and fell in love with it also. Paid for it on 9th Nov.

From then onwards I am using both the apps on M without any issues. Since you had raised a query regarding LD on M a few pages back, I am specifically reporting that LD works with Doze. My battery graph is a straight line in the night now.

Initially on switching to M, I found battery life to be terrible, then switched a couple of ROMs before settling on the current one where battery life is better but still not to my satisfaction. That is what prompted me to use LD.

I have gone through this thread starting from the OP and that took me this long. It was a fascinating read, following the app's evolution.

Thanks to you and to all those who contributed to make this app what it is today. My only gripe is the number of downloads in Play Store. Why are many people not aware of this app?

By the way I have left reviews for both the apps with five stars. I also notice that you have changed the app's icon. It looks better than the earlier one.

Sorry for the long post.

Attaching a couple of screenshots and a BBS log.
[Android Apps and Games] Flyview:
Nothing to be sorry for! Thanks for the thorough read, that really means a lot. I had created these apps for myself at first and they've grown and evolved into something useful for many. Of course as you mentioned there is huge potential to grow the number of users. To that effect I have put almost no effort into marketing. If you have any suggestions, please let me know.
[Android Apps and Games] trein91:
Is it possible to make another option to switch to 3G mode back when screen is unlocked? I'm asking this because I want my phone to be on 2g when screen is off and 3g when screen is on.

I enable 4G on demand (via tasker), but at the moment I always have to manually turn it back to 3g before screen off. (otherwise it will go to 2g, then back up to 4g when waking up)
[Android Apps and Games] Flyview:
Of course, anything is possible, with more time. However like I've said before this would be hard to incorporate in the current design of the app, as for everything else LD just restores the state of the radios that was before it disabled anything.
[Android Apps and Games] TNSMANI:
Sorry, I am not a marketing guy so, at the moment, I have no ideas.

I have time at my disposal as I have retired from my profession so I have made it a habit to read all the threads I am interested in. I may not post in all but I keep myself up to date.

My only request is to not make LD complicated, requiring genius for using it. As of now (even from the beginning), it is very simple to setup and use.
[Android Apps and Games] TNSMANI:
[MENTION=2584205]Flyview[/MENTION]

One form of marketing :D See my sig.
[Android Apps and Games] Flyview:
Haha thanks!
[Android Apps and Games] jetknife:
Hi [MENTION=2584205]Flyview[/MENTION]!

Thanks for developing such a useful app! I am curious as to why SuperSU specifically is required over other superuser binaries, such as CM's built-in root.

Cheers!
[Android Apps and Games] Flyview:
It's needed because it allows for context switching, which is needed for some of the root functions to work on Lollipop+ when selinux was introduced.
[Android Apps and Games] Gerolianis:
Looks like a very usefull app!

However, to try it on my Jiayu S3 adv running AOSP based 5.1.1 Lollipop (dual sim, MTK) I would need to buy the premium version. Switching network mode 2G/3G/4G is my primary requirement.

Can anyone confirm it's working on that that device?

Or is any trial version available?
[Android Apps and Games] Flyview:
Hi there. There is no trial version with that option unlocked but go ahead and purchase it, if it doesn't work I'll refund you the money.
[Android Apps and Games] Gerolianis:
Well then, I did. And it's working on the Jiayu S3 ... Lovely, thank you!
[Android Apps and Games] dfx92:
Is there an option to leave mobile data off if wifi is on? If not could it be a future option?
[Android Apps and Games] Flyview:
There's no need for that. Android keeps it disconnected even if you have it "enabled". The only time it will use it is if it needs it, like say for MMS, or, since Lollipop, if your connected WiFi doesn't have internet connectivity.
[Android Apps and Games] dfx92:
Thanks, that's what I thought. I was just getting paranoid seeing the mobile data connection toggle light on.

Great app by the way - moved over from greenpower, LD has more options
[Android Apps and Games] VisualDev:
If the firmware is not like that, it will be very helpful.
[Android Apps and Games] Flyview:
Are you aware of ROMs that aren't like that?
[Android Apps and Games] TNSMANI:
[MENTION=2584205]Flyview[/MENTION]

Suddenly LeanDroid has stopped working two days back. It doesn't switch off the wifi anymore. I stopped and started it, cleared data and cache of the app and uninstalled and reinstalled the app from Play Store. Still the same. The notification shows increasing time as if the WiFi is switched off. One service of LeanData is running (data service). The WiFi is always on. Previously when I unlock the screen, WiFi would be off and then would connect. Now whenever the screen is unlocked, the WiFi is already running.

In Settings WiFi is set to run during sleep (as it was even before) and WiFi scanning is off. I am attaching a few screen shots of the app's settings. You can see that though WiFi is not set to run from 17.45 hrs, it is running.

I updated my ROM yesterday from the 07/12/2015 build to the 10/01/2016 build. But the app's behaviour remains the same.

Since I have an issue of WiFi always running even when set to 'never' while sleeping, I had to use this app. Now once again wifi is always on and my battery is going south.

Any ideas?
[Android Apps and Games] Flyview:
Is it only WiFi that is affected? Is data still turning off as expected?
[Android Apps and Games] TNSMANI:
Just tested data. It also doesn't disconnect. See screenshot.
[Android Apps and Games] Flyview:
Please do a quick test with disable time 0min, wait 10s then turn the screen back on to see if it worked.
[Android Apps and Games] TNSMANI:
Tested twice on WiFi and data. Disconnection and reconnection take place. But the setting of no reconnection from 21.35hrs is not adhered to.