yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] one7dchevy:
Hello, few questions on LD. I am running Nexus 6P w/ 7.0 (essentially factory rom..)

I cannot select any of the root options, it immediately un-selects itself and throws the error that says LD needs root access etc.. but I have already granted LD root access and I see multiple popups from SuperSU that LD has been granted root access.

I have tried clearing data and force closing it.
[Android Apps and Games] Flyview:
Strange, I haven't seen this. Can you try forgetting access from SuperSU app and then granting it again?
[Android Apps and Games] one7dchevy:
I did try that but forgot to mention it earlier. I just tried again with the same results.
[Android Apps and Games] Flyview:
Very strange indeed. What version of SuperSU? Are other root apps working?
[Android Apps and Games] one7dchevy:
V2.79. I have not had any problems with other root apps.
[Android Apps and Games] Flyview:
Send me an email so I can send you a debugging version.
[Android Apps and Games] one7dchevy:
Awesome thanks! Sending shortly
[Android Apps and Games] one7dchevy:
As I expected it was my phones problem. After a clean ROM install LD works as expected!
[Android Apps and Games] fernseher:
I own two phones with nougat AICP roms installed, Asus and Xiaomi. One with the internal aicp root (Asus) and one with internal root disabled and Supersu (Xiaomi). On both phones the cellular adapter gets not disabled as I see in the status bar. The other functions like Bluetooth disabling... working great.

On my third phone (Oukitel) with MM this Funktion works without any problems. Any ideas?
[Android Apps and Games] Flyview:
What do you mean by cellular adapter? Are you trying to disable just data or the entire cellular radio? Email me so I can send you a debugging version and we can see what is going on.
[Android Apps and Games] ugvpkn:
Leandroid does not work with Magisk 11.1/MagiskSU. When I try to enable something it says either SuperSU or permissive is required. Making it permissive also does not work. Thanks !!
[Android Apps and Games] Flyview:
Yea unfortunately looks like you need to install SuperSU. I haven't tested LD with any other SU implementation.
[Android Apps and Games] zsandras:
Here LeanDroid works excellent on Nougat system-lees rom with Magisk v11.1SU.
[Android Apps and Games] nomesrjp:
Open LeanDroid and select an option requiring SuperSU (options with an astrix). Does this work?
[Android Apps and Games] zsandras:
Yes mate all settings (with/one asterix) are working as before MagiskSU. Really I don't see any difference.
[Android Apps and Games] discodestroyer10:
I confirm, it does not work. Now, I switched to Magisk only to get AP working and I lost Leandroid. I sometimes give up with all of this:)
[Android Apps and Games] Flyview:
In the upcoming version, I am allowing Magisk as it seems to be working fine.
[Android Apps and Games] GilX:
I had the same problem. A work around I found was setting Linux to permissive. SElinuxmodechanger works with MagiskSu.
[Android Apps and Games] Flyview:
I just released an update to the beta channel on Play and XDA Labs. Does anyone have an Android 5.0 (not 5.1) device to test this on? Go in to select the apps exception, give it usage access, and see if the app exception works please!

3.3.1 - Beta 1

-Fixed “except running apps exception” on some 5.0 devices

-Added MagiskSU support

-Layout tweaks

-Updated to support libraries 25.2.0
[Android Apps and Games] discodestroyer10:
Works fine now on nougat with Magisk. Thanks for update!
[Android Apps and Games] Flyview:
New update up on Play store and XDA Labs:

3.3.1 (March 9, 2016)

-Fixed “except running apps exception” on some 5.0 devices

-Added MagiskSU support

-Layout tweaks

-Fixed rare bug on Android versions before KitKat

-Updated to support libraries 25.2.0
[Android Apps and Games] Brentboy:
Hey man could I request a quick tile for the next update possibly?
[Android Apps and Games] Flyview:
What do you want it to do?
[Android Apps and Games] Brentboy:
Eh just an on and off thing kind of like the notification, but it's not really necessary haha
[Android Apps and Games] discodestroyer10:
Just noticed it doesn't work on RR with Magisk (angler). I get the toast notification about superuser being granted but there's no effect at all after desired 10 mins. Works just fine when switched to SuperSU.
[Android Apps and Games] Weetbix:
Strange. Seems to want to fine for my angler on ABC rom with Magisk.

I have it set to restore mobile data after the screen is unlocked. So after letting my device sit for a bit ibwokebtye phone. Mobile data was off. Unlocked it and leandroid got the toast notification, and then mobile data a turned back on.
[Android Apps and Games] fnotsje:
Works like a charm! I do see some small 'opportunities for improvement' in the Dutch translation, let me know if I could be of any assistance.
[Android Apps and Games] Freezy202:
Hey bro, you have to update your Magisk. Seems like the new version fixed the issue :)
[Android Apps and Games] discodestroyer10:
Just noticed that today and wanted to share that happy news:) Now it works perfectly fine. That app is a real life saver when I'm at work, where bad signal sucks my battery off.
[Android Apps and Games] Flyview:
Sure, send me an email to contact att teqtic.com. Thanks!
[Android Apps and Games] Panic84:
is this working on miui7(5.1)?

Edit: ok, I am using the app (purchased already) but I cannot find a way to keep the data to 2g (I tick only switch to 2g) if the wifi is conected when I unlock the screen. Is this option not enable? I think if you are connected to wifi is better to remain in 2G always to save battery (lock and unlock screen)

Any help?
[Android Apps and Games] Flyview:
LD won't affect connections while your screen is on (or unlocked). It will restore connections as they were once you turn the screen on or unlock. I don't think 2G saves much if any battery with modern phones. Signal strength probably has a bigger impact.
[Android Apps and Games] Panic84:
Hi, thanks for the explanation. Just one question, if I select both disable "cellular data" and "switch cellular data to" always disable completely the data. Is there a way to disable data if wifi is connected and switch to 2g if wifi is not connected? thanks
[Android Apps and Games] Flyview:
This has been asked a lot. There's no reason to disable data while WiFi is connected, Android already does this. No, there's no way to switch to 2G only when WiFi is connected.
[Android Apps and Games] Panic84:
Thanks for the support. Just one last question: is there any choice to add an option to switch to 4G only if some apps are opened instead of unlock the screen trigger? I mean, sometimes I dont need to change the data network to 4G to only check the email or whatsapp, I can remain in 2G for these apps. I would like to have the option of switching to 4G only if I use some apps instead of unlocking the screen.
[Android Apps and Games] Flyview:
Anything is possible but right now LD is designed around the idea of optimizing connections and networks while the screen is off and not to get in the way while the screen is on/unlocked. Switching network modes isn't really that fast and could end up being quite annoying. As I've said before, I am also not even sure if switching network modes saves any power on modern devices. Signal strength on the respective network probably has more to do with efficiency.
[Android Apps and Games] ratbags:
This is generally true but there are bugs and glitches that cause major battery drain when data is left on along with wi-fi. This issue was especially prevalent in lollipop and Google didn't bother fixing it throughout lollipops lifetime. It wouldn't hurt to allow switching network mode or data connection while connected to WiFi would it? There are ways of switching network mode when connected to WiFi but it might involve xposed which I know flyview isn't keen on.....
[Android Apps and Games] xdarthanonx:
For such a complex rule you should probably use an automation app, like Tasker or MacroDroid.
[Android Apps and Games] darkwolf_99:
I encounter a strange thing that in my Emui 5 (N 7.0), LD cannot turn off wifi and data after the time (the default is 10 minutes) when the screen is off, but I have to turn the screen on once, but not unlock it, and then LD can turn off wifi and data.
[Android Apps and Games] Flyview:
No it wouldn't hurt but LD is designed around doing things x min after screen off. It's kind of difficult to convey something happening in the different scenario of screen on.

That is pretty strange. Do you have any sort of app/battery optimization apps that might stop LD's alarms while the screen is off? It sounds like LD can't wake up the device to turn off connections.
[Android Apps and Games] :
How does LeanDroid behaves if i have on my Android System "

Keep Wi-Fi on during sleep

" set to Never, does it still restores my Wi-Fi every 60 minutes for 60 seconds even if my system is sleeping? I'm using Greenify with Agressive Doze.
[Android Apps and Games] Flyview:
Unpredictably. I've always recommended that setting be left on always. Chances are with "aggressive" doze, periodically re-enabling WiFi will do nothing unless it also happens to match Doze's wake up part of the cycle. This is actually something I really need to test that I haven't in a while.
[Android Apps and Games] twinko:
[MENTION=2584205]Flyview[/MENTION] i was using your app on mm, yesterday i updated to n and it stoped working. It just did nothing since the update. Im on nougat (supermanrom - touchwiz based, with magisk installed and rooted). And i have a sm-g935f Samsung s7 edge. What should I do?
[Android Apps and Games] zsandras:
Here works nice on same device on same rom MagiskSU and SuperStock Kernel. Have no idea what could be wrong there.
[Android Apps and Games] ratbags:
Apparently it's possible to change gps and data connection without root on nougat and marshmallow. User has to deploy a couple of adb commands through their PC (see the app autoset in play store). Just wondering if you'd consider allowing this as an option? Or if I grant leandroid secure settings permission via adb will the root only options just work - I'm guessing not because leandroid wouldn't detect presence of supersu?
[Android Apps and Games] Korax94:
I want to know if it is possible too since I'm not rooted but I really need this app, I would buy it
[Android Apps and Games] WuNgUn:
I have (newest) LD set to turn off radios after 1 minute and restore after screen unlock...whenever I pick the phone and look at the lock screen, I still see BT and WiFi and location, etc. enabled, even though I have no exceptions enabled...Running S8 port on S7, Morokernel, rooted with latest Magisk.

When I unlock the phone, and check notifications, it says 00min. 00sec.

Will try uninstall, wipe storage and app cache, reboot and wipe dalvik/cache and reinstall...
[Android Apps and Games] WuNgUn:
Bump....?
[Android Apps and Games] ratbags:
Just a random guess but could doze be stopping LD kick in? Maybe put LD in exception list, I had to to get it working properly.
[Android Apps and Games] rav101:
Hey,

Just done a quick search but couldn't find anything relating to OxygenOS 4.5.x on the OnePlus 5. I tried using LeanDroid on the phone last week but I don't think it was disabling or re-enabling anything. I tried turning the wait period to 0 and checking after a minute but I would still have wifi, Bluetooth and 4g where I had set to 3g for data Service. Using Magisk as my root app of choice.

Has anyone else experienced similar issues?

One for the OP but would it be possible to add a toggle for NFC? I use Android Pay but don't want it to work with my screen off for security reasons (People using a reader in trains or crowded places).
[Android Apps and Games] admuerte:
Yes I have the same issue. For me worked when I have disabled LeanDroid from Doze list in Battery settings
[Android Apps and Games] dread123:
having same probs--not switching networks- app is not in doze list. using latest magisk
[Android Apps and Games] hsquare:
Latest Magisk and removed from Doze, LeanDroid won't turn off location service. Someone else having this?
[Android Apps and Games] rav101:
I'm also having issues with Leandroid and using Magisk. Given the number of recent updates to Magisk it could be that the Leandroid app needs updating?
[Android Apps and Games] Flyview:
What are the adb commands to toggle gps and data on Marshmallow and Nougat?

For everyone having issues with LD not toggling connections, please write out exactly how you test it. This is how I would do it:

1) Disable exceptions in LD.

2) Enable the notification so you can track the timer.

3) Set it to disable connections after 1 min, and to restore after unlock.

4) Turn the screen off, and turn it on after 2 min.

5) Look at the status bar, are connections still enabled?

If they're still enabled, check that you aren't freezing, killing, LD etc via another app or Agressive Doze or whatever. If that's not the case, then repeat the above test with the debugging version of LD attached, save and post the logcat filtered for "LeanData". Magisk may or may not be an issue. I've allowed it for now cause it seemed to work at one point, but I can't test it because I use SuperSU on my device.

I will look into toggling NFC while screen off.
[Android Apps and Games] Weetbix:
I'm using magisk on my 6p... And i have no issues. Then again - i really only turn off mobile data with LD, so my usage case is fairly simple :)
[Android Apps and Games] ratbags:
[MENTION=2584205]Flyview[/MENTION]: adb command would be something like "adb shell pm grant com.kmshack.autoset android.permission.WRITE_SECURE_SETTINGS" without the quotation marks and replacing package name with leandroid package name. This allows toggling of data and GPS on non rooted devices (although for some unknown reason data toggling doesn't seem to work on dual SIM devices)
[Android Apps and Games] BeautyRose:
that's very good

goooooooooooooooooooooooooooooooooooooooooood!
[Android Apps and Games] hsquare:
Hey Flyview, we've been in contact before, I did all of your 5 steps - still no success. I've sent you my logcat before. Any news?
[Android Apps and Games] rav101:
Hey buddy,

I am now using OOS 4.5.8 based ROM (Freedom 1.6 for anyone interested) on the OnePlus 5 with Magisk Beta 13.6.

These are both later versions than the ones used when originally having the problem. I also turned on the notification/ turned off the exceptions. One of these changes seems to have fixed the issue. I will start returning it back to my usual set up and report back at what point it breaks (if it breaks at all now).

Not sure if a new version or Magisk or OOS has helped or if it's just the notification being activated.

Saw your note about NFC, it would be greatly appreciated!!
[Android Apps and Games] Rakuu:
I've been having troubles with the app randomly losing root more recently, I use magisk. Basically it just stops detecting root, even if I clear it's permissions and regrant it, afterwards it will randomly start working again.
[Android Apps and Games] Darke5tShad0w:
I have not had this issue with magisk, Only issue I have is it no longer auto starts for me since my fresh rom install with Magisk 13.
[Android Apps and Games] admuerte:
Hi

I want to know is there a possibility to reduce mobile data active limit less then 1 kb/s. Cause Spotify uses less mobile data and keeps off play tracks after two songs,because of disabled mobile data.
[Android Apps and Games] xdarthanonx:
This?
[Android Apps and Games] admuerte:
Yes
[Android Apps and Games] fatspirit:
A you sure Spotify doesn't cache media it plays?
[Android Apps and Games] admuerte:
Yes indeed, but if there is no mobile data, i think there is nothing to cache. Or am i wrong?

Two more things: on wifi works good even with 1kb/s,

when i turn of leandroid, spotify plays without stoping on mobile data

UPDATE:

Sorry guys, remembered on more feature "except if apps running" - did it and it works good. Sorry again. Shame on me
[Android Apps and Games] hsquare:
Hey Flyview, do you have any updates on the development status of the app so that it works with Magisk instead of SuperSU?
[Android Apps and Games] Rakuu:
Yes, it works.
[Android Apps and Games] hsquare:
Whaaaat? Can I get the update please? It is not on the Play Store. For me latest version as available on the Play Store is not working with Magisk as the developer acknowledged.
[Android Apps and Games] hsquare:
Rakuu, can you pass along that apk?
[Android Apps and Games] Rakuu:
It's the one from the play store.
[Android Apps and Games] hsquare:
Ah ok, no, that's not working, that's why I asked.
[Android Apps and Games] TNSMANI:
It is working for me too with the PlayStore version.
[Android Apps and Games] hsquare:
With Magisk instead of SuperSu?
[Android Apps and Games] TNSMANI:
Yes, Magisk v14. My config is in my signature.

Sorry for the delayed reply, I didn't get the mail from XDA.
[Android Apps and Games] hsquare:
Thanks for the reply! Ok that's weird, it not working for me. Did you do anything specific to make it work (allow something in Greenify or whatever)?
[Android Apps and Games] TNSMANI:
No. Routine install from PlayStore v3.3.1

It is not greenified nor is it excluded from battery optimisation.

What is the actual problem you are facing? Are you able to set the various options in LD? Is root granted to LD? Which root app and version are you using, SuperSU or Magisk? And what is your device and ROM?
[Android Apps and Games] hsquare:
Nexus 5x, latest LineageOS, latest Magisk. I am able to change all settings in LeanDroid, but nothing will be applied like deactivating Bluetooth, Location, etc., also the timer in the permanent notification isn't running.
[Android Apps and Games] TNSMANI:
Looks like an issue of root permission. Other root apps are running? If so, I am out of ideas.
[Android Apps and Games] hsquare:
Root works fine, yes.
[Android Apps and Games] lioux:
Leandroid is not automatically starting on latest stock Oreo October security update for Pixel XL. su is provided by Magisk 14.2 plus latest beta Leandroid. Everything worked fine before Oreo so I bet it's either the new permission model or the background killer.

If I start Leandroid manually, the notification appears and it seems to be just fine. However, sometimes it dies on its own.

I haven't been able to pinpoint exactly what's going on yet. I'll try to provide a logcat later. Are there any debug options I could enable for Leandroid beta?

Let me know if there's anything I can do to help.
[Android Apps and Games] Flyview:
Bluetooth doesn't need root. If not even BT is being disabled, something is killing the LD service right away. But first, how do you know it isn't? Do you have it set to disable and then restore only on unlock and checking with screen still locked? If you can confirm that, then go check running services and see if LeanDroid shows as 1 process and 1 service.

That's strange that it isn't starting on its own. Are you sure you don't have any apps that might block it? If you want to send a logcat, email me so I can send you a debugging version.
[Android Apps and Games] Dr Zeuss:
Very good! A Runs-On-Start check on installation is very useful.
[Android Apps and Games] hsquare:
I've sent you a logcat before, we've been in touch via mail. I attach the logcat again.

LeanDroid runs as 1 process and 1 service.

I can tell, because network indicator shows no change from LTE to 2G, location indicator still shows "high accuracy" and timer is not running. LeanDroid is allowed to start at boot-up, all other root-apps are running fine.
[Android Apps and Games] lioux:
That would be optimal. I can provide logs next week.

On another note, the recommended way to run background services now is using Android Compatibility Library class JobIntentService

When building for Oreo, it compiles using jobs instead of services. Furthermore, it uses the old way on previous android versions. Neat.
[Android Apps and Games] Dyt199412syam:
[MENTION=2584205]Flyview[/MENTION], please add support for Lineageos su addon. Thanks for advance.
[Android Apps and Games] hsquare:
With the release of Xposed for Nougat yesterday, I switched to Xposed module Smart Network:

https://xdaforums.com/xposed/modules/mod-t2908637

It can also trigger NFC.
[Android Apps and Games] Flyview:
Based on the log you posted, LD is hanging (ANR) when it's supposed to do its root calls. Can you please test with no root options selected? I bet it's a root issue. The reason SuperSU works best is because I use the SuperSU library in my app to make the root calls. I don't know how Magisk handles calls put out by the SuperSU library.

LeanDroid needs a constantly running service to monitor screen on/off events, but thanks for posting that. I need to learn more about the Oreo changes.

Is it based on SuperSU?
[Android Apps and Games] fatspirit:
[MENTION=2584205]Flyview[/MENTION], LD is being killed too much.
[Android Apps and Games] hsquare:
SuperSu is no alternative as I need Safetynet to be passed. No root options (disabling bluetooth) also not working.
[Android Apps and Games] Flyview:
What system are you on? Looks like a bunch of other processes are also "dying" and being killed. Have you tried running it with the notification enabled? That makes it a foreground service.

Have you tried unchecking all of the root options and then testing BT? How come Magisk can pass Safetynet and SuperSU can't? Is [MENTION=631273]Chainfire[/MENTION] working on that at all?
[Android Apps and Games] fatspirit:
Notification is always on. Latest official 6.0.1 for N5 with Magisk.
[Android Apps and Games] hsquare:
I am not developer enough to answer why the one passes Safetynet and the other doesn't, sorry. As I said, unchecking non-root-options and only using BT is not working either. But it is ok, thanks for your help, Smart Network for Xposed is working perfectly and I am gonna stick to that.
[Android Apps and Games] Flyview:
Interesting. If you still want to help out, can you please post a log like you did before with only BT selected to be disabled?
[Android Apps and Games] Flyview:
Are you seeing any issues with it being killed? Is it restarting on its own?
[Android Apps and Games] Darke5tShad0w:
You can pass safetynet with supersu using chainfires additional app called suhide-lite.

I require magisk because of several modules including systemless exposed so /system is untouched

Leandroid also fails to autostart with latest magisk xposed. (Only app to do so)
[Android Apps and Games] fatspirit:
I see that icon in notification drawer disappears periodically. It doesn't reappear automatically.
[Android Apps and Games] TNSMANI:
LeanDroid + Magisk, no issues.
[Android Apps and Games] Panic84:
scan should be always available on wifi settings? do you think disable mobile network and check every 15 mins is not worth? the default is 60mins, maybe the conection energy that needs every 15 mins is not recommended...

Edit, looks like does not work with mobile networks. I have nougat 7.0 and rooted device with supersu, I dont know what is happen.
[Android Apps and Games] Flyview:
WiFi scanning is something Google introduced to more accurately pinpoint your location. It actually keeps the WiFi radio on even when you turn WiFi "off". It will save some battery to turn it off, but if quicker location updates are important to you or the apps you're using, leave it on.

You can check every 15min, that should be fine.

Are non-root functions working? Please email contact@teqtic.com so I can send you a debugging version.
[Android Apps and Games] winamp26:
Hi

Can you add dual SIM to options?

When select dual SIM turn off signal.
[Android Apps and Games] bkkzak:
Any testing on 8.1?
[Android Apps and Games] fernseher:
Or is this app dead?
[Android Apps and Games] Rakuu:
I still use it daily, try it for yourself, no one's going to do stuff for you.
[Android Apps and Games] fernseher:
Sorry, but that was not the question - is there any further development?
[Android Apps and Games] Rakuu:
Does it need further development? Is something not working? I can give you an app every day with an incremented version number if it makes you feel better.