yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] wanam:
Actually i don't relay on any sysfs, i just hook and keep listening to "com.android.server.display.DisplayPowerState.setScreenState(int state)", i don't use the screen_on/off intent because it is fired a little too late.

I think [MENTION=4167023]AndreiLux[/MENTION] and [MENTION=4898097]arter97[/MENTION] can help you for the scripting way.
[Xposed Framework Modules] Publiuss:
Great module.

Now put a notifiation with a slow/fast mobile network switch and it will be the new Intelli3G! :good:
[Xposed Framework Modules] wanam:
I never used Intelli3G so i have no idea about the notification you are talking about.

While i'm at it, i just pushed a new update with GPS switching support (for KitKat and above), i hope it will help with the Play Services battery drain related to the location services.

CL 1.6.2:

Added GPS switch for Kitkat and above and few other bugs fixes.

Available GPS modes: Off, GPS Only, WiFi and mobile network (power saving), All

Default settings = Gps Off for screen Off and power saving mode for screen ON.
[Xposed Framework Modules] Sam_kaks:
Thanks.. version 1.6.1 works flawlessly in moto x style marshmallow
[Xposed Framework Modules] Juhkimo:
I get alarm notification when I use this app.
[Xposed Framework Modules] Sam_kaks:
Yes have also started getting this alarm notifications after I started tweaking the timers
[Xposed Framework Modules] belloni:
Great app, does it enable high speed network once the screen is on or unlocked? If not, that would be good as I often just turn the screen on to check for notifications and would like it kept on 2g etc.
[Xposed Framework Modules] wanam:
You mean the alarm icon on status bar?

You can try the "wait until unlock" feature.
[Xposed Framework Modules] Sam_kaks:
I have already enabled 'wait until screen unlock' in advanced features. I even did a a dalvik cache n cache wipe.. just to try my luck.. The alarm notification (alarm clock in status bar) is still there. I can live with it .. :) . Thanks once again for this amazing module. GPS features in 1.6.2 also very useful.
[Xposed Framework Modules] Wyneg:
Thank you again!

Maybe you can do a "dark mode" for this great module ;) That's only left to be perfect!!!
[Xposed Framework Modules] wanam:
The "wait until unlock" won't do anything in your case, it was a reply to the other question.

I don't know if this is a normal behaviour since the timers are a real Alarms.

Edit: Yes, It is a feature on the new Alarm api.
[Xposed Framework Modules] wanam:
Can you try attached version?. Released.

I switched to "AlarmManager.setExact" instead of "AlarmManager.setAlarmClock", if you are using Marshmallow, test the timers to make sure doze is not delaying any of the timers, i remember i switched from "AlarmManager.set" on one of my apps because doze feature was causing some of those alarms to be delayed.

Sorry, i don't have time to look at the theming part now, maybe later.
[Xposed Framework Modules] Sam_kaks:
1.6.3 solved the problem. No more alarm notifications in status bar.. Thanks
[Xposed Framework Modules] Juhkimo:
Yes. Alarm icon shows up
[Xposed Framework Modules] Publiuss:
HI

Looks like that module does not switch to 2g on screen off after the chosen amount of time (other things not tested)

I get a LOT of this error in logs during system startup:

01-26 14:54:03.510 E/Xposed ( 1423): java.lang.NoSuchMethodError: com.android.server.pm.PackageSetting#getPermissionsState()#bestmatch
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:235)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:286)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:949)
01-26 14:54:03.510 E/Xposed ( 1423): at ma.wanam.smartnetwork.XPM22$1.afterHookedMethod(Unknown Source)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:689)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.pm.PackageManagerService.grantPermissionsLPw()
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.pm.PackageManagerService.updatePermissionsLPw(PackageManagerService.java:7854)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.pm.PackageManagerService.(PackageManagerService.java:1909)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:1356)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:377)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:675)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.SystemServer.startBootstrapServices()
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.SystemServer.run(SystemServer.java:282)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.server.SystemServer.main(SystemServer.java:185)
01-26 14:54:03.510 E/Xposed ( 1423): at java.lang.reflect.Method.invoke(Native Method)
01-26 14:54:03.510 E/Xposed ( 1423): at java.lang.reflect.Method.invoke(Method.java:372)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
01-26 14:54:03.510 E/Xposed ( 1423): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
01-26 14:54:03.510 E/Xposed ( 1423): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
[/HIDE]

Blisspop ROM 4.0.3 (Android 5.1.1), xposed v79, Smart network v 1.6.2
[Xposed Framework Modules] wanam:
It's a regression and it should fixed now on 1.6.4.
[Xposed Framework Modules] shirengg04:
Thank you for updating the module to support Android MM.......god bless you
[Xposed Framework Modules] blue2018:
Thanks for your work! Would you consider to add this feature? When the data is being transmitted, and the speed is not less than a certain value(e.g. 5kb/s), wifi and mobile networks will be delayed to close or switch after the screen is turned off.
[Xposed Framework Modules] legocorp:
Simple and straightforward. Exactly what I was looking for. Thank you so much for this!
[Xposed Framework Modules] Oshi-Tech:
I'm using Galaxy S2 i9100 with Cyanogenmod 12.1 and XPosed V79. Smart Network doesn't seem to turn off my mobile data when the screen turns off.

I will provide a logcat when I get home.

EDIT: please see the following paste: http://chopapp.com/#etm1poux

http://pastebin.com/pySYdzev (alternative link)

I apologise for the length as it went a bit longer than expected and I don't know which irrelevant bits to chop off
[Xposed Framework Modules] joeygee23:
Galaxy Note 4 on T-Mobile. Maximum Overdrive TW Rom. Xposed 79.1. Data no longer swirching off. How can i provide log cat?
[Xposed Framework Modules] rushwd0:
Wi-Fi Whitelist Issue

Love this module; however, as of the latest update, the whitelist for Wi-Fi networks no longer seems to be functioning on my Moto X Pure 2015 running Marshmallow. Am I doing something wrong?
[Xposed Framework Modules] miomio:
It's the same on my lg g3 with MM

Inviato dal mio LG-D855 utilizzando Tapatalk
[Xposed Framework Modules] halloarno:
The WiFi got disabled when screen off :), though also when connected to a white-listed ssid :(

Can I provide you anything, like logcat?

(Xperia sp,.cm12.1)
[Xposed Framework Modules] wanam:
I will take a look at this bug later, I'm out for 2 weeks.
[Xposed Framework Modules] big88moe:
I found a small bug

For the GPS option I have set it to battery saver setting on screen on and screen off but when I enable high accuracy manually to use navigation for example and I set the delay as 5 mins in the setting of your app. The app keeps switching the toggle to battery saver even though the screen didn't go off and I was navigating on Google maps

If you can add an option that it only activates the option on screen off and back to the setting I set on screen on and no delay for screen on so it dosent keep switching the setting every set time even when the screen is on

I am using LG G3 stock rooted lollipop Xposed

-----------------------------------------------------------------

Ex-WhatsApp+ Official and Telegram+ Official Google plus community owner...

Dr. M.Mounib Al Rifai

LG G3 D855 v20p lollipop stock, Rooted, Xposed
[Xposed Framework Modules] gemj95:
Could you take a look at whitelisting? I think is not working properly on the last version:

I often listen to music in my car through Bluetooth from Spotify, and even if the app is whitelisted, after the screen goes off, the module switches to 2G and this causes huge buffering...

Thank you in advance!
[Xposed Framework Modules] acestars:
Doesn't work on my device miui 7.0.12. It just doesn't switch.

Sent from Xiaomi Redmi Note 2 with MIUI 7.0.12
[Xposed Framework Modules] capoi:
Thank you dear module developer,

This app help a lots. But after i set the sreen off delay for example 1 minute or more, the service not switch back to 2G network. If i leave it the delay feature to 0, it working fine in the moment i turn off the screen.
[Xposed Framework Modules] peltus:
You should post some more details about your configuration.

This function is working fine on 6.0.1 for me.
[Xposed Framework Modules] capoi:
Basically I choose switch network mode to 2G when turning off the screen and choose wcdma mode when unlock the screen. I use Xperia V andoid 4.3. The rest of configuration i leave it as default. No white list application.

However, to avoid the issue temporarily i choose to set the screen off delay to 0. If the delay feature work on my device, it will be great like put an icing on the cake.

Please let me know if I still missing something in this app configuration.
[Xposed Framework Modules] wanam:
No errors on xposed logs or logcat?
[Xposed Framework Modules] capoi:
Thank you for your feedback. Already check in xpose log and I thought everything is in order (just assume because it didn't shown any error).

At this time I can say I'm give up. Just leave it at 0 delay as default.
[Xposed Framework Modules] wanam:
Try again with the timer, and get a logcat with Syslog App after your test.

Do you get the same issue with the WiFi timers?
[Xposed Framework Modules] capoi:
Thank you again. I tried to use syslig app but I'm really noob to choose which type I should use. Then, I decide to use xpose log and export to Google drive. Here is the link. Please have a look.

https://drive.google.com/file/d/0B6fd1Ituo2vvMndwa29XcE83Z3M/view

Currently I'm away from home and any wifi. Can't comment yet regarding wifi feature.

Edit: Just now realize the link can't be access without my Google id. Will solve it later. I prefer to use desktop pc rather than smartphone.
[Xposed Framework Modules] wanam:
I still prefer the logcat (main logs on Syslog), xposed logs may not contains any useful information about the timers.
[Xposed Framework Modules] capoi:
Thank you again. Ok here is the main log from syslog

https://drive.google.com/file/d/0B6fd1Ituo2vva0dfMlBITkkxNXM/view?usp=docslist_api

Please have a look. Previously I'm not sure which type of log you need.
[Xposed Framework Modules] wanam:
This method does not exist on your Rom (Android 4.3):

﻿I/Xposed *( *861): java.lang.NoSuchMethodError: android.app.AlarmManager.setExact

I though it exists since i didn't get any lint warning on Eclipse, but it seems i'm wrong, this method was added starting from Kitkat.

Should be fixed on the upcoming update.
[Xposed Framework Modules] capoi:
Thank you so much for your feedback. I'm really looking forward to your latest version.
[Xposed Framework Modules] wanam:
Can you set the display to stay always on and try again, maybe it sets it again because the screen goes dimmed.

Try attached version.
[Xposed Framework Modules] peltus:
[MENTION=3562083]wanam[/MENTION]: Are there known issues with the module when running SELinux in permissive mode instead of enforcing mode?
[Xposed Framework Modules] peltus:
Thanks for the quick reply.
[Xposed Framework Modules] popy2006:
Also for me on LGG4 v20D (MM 6.0) this is the case.

Wifi got disabled also when connected to whitelisted SSIDs.

pOpY
[Xposed Framework Modules] wanam:
I didn't have time to test the white-listing feature yet, but did you try the version attached on the previous post﻿?
[Xposed Framework Modules] capoi:
Thank you so much. This version work fine. I have a suggestion. Its up to you to consider whether applicable or not. Is an optional feature. I suggest this app also have a delay once turn the screen on. I mean, the mode still in save mode once you turn on the screen. The resaon is, sometimes we only want to use our phone only for a few second to reply text message. I think, when you just turn the screenon just to do that, it will make your phone switch to wcdma/lte mode only for a few second and then turn off the screen back. If it not drain the battery, then okay. I don't know whether swicthing mode in a short period of time will drain the battery.

Thank you again. This module very useful.
[Xposed Framework Modules] peltus:
There already is an option like that under advanced. It waits until screen unlock before switching on services. Only applicable if you enable all lockscreen notifications I guess.
[Xposed Framework Modules] capoi:
I mean after unlocking the screen. Especially if you only texting a message and turn off the screen back. I think i already use the function in advance setting as mention by you.
[Xposed Framework Modules] halloarno:
Yep, tried. But wifi-whitelisting isnt working properly.
[Xposed Framework Modules] wanam:
Then i guess it's because of the restriction added on LL, third party apps are NOT allowed to get the list of running activities on Android 5+, i will check this later, maybe this one can help.
[Xposed Framework Modules] kornelius1982:
I face same issue on my S4 with 5.0.1 TW.
[Xposed Framework Modules] MohamedRaafat:
Is there a way by which wifi is turned off if it gets disconnected from a specific access point for example if you leave the place ?
[Xposed Framework Modules] peltus:
[MENTION=3562083]wanam[/MENTION] I'm getting a different issue this week. I must admit it started after i clean flashed the latest pure nexus ROM (AOSP based) build on my N5X. In the build before that it seemed to work ok.

I've got the screen of network set to GSM only and the screen/wifi on setting to LTE, GSM/WCDMA.

Smart network does switch the network type, but to H+/3G when screen is on. 4G remains off. If I disable smart network it does connect to 4G network.

Using smart network 1.6.4 from xposed installer.

Attached logcats:

22-16-00 switching by turning wifi off and on

22-18-56 switching by turning screen off and on

22-22-49 switching by turning acreen off and on with 1 minute delay

22-24-33 turning wifi off and on with smart network disabled. This instantly switches to 4G/LTE connection when turning off wifi.
[Xposed Framework Modules] IZwiebelchen:
[MENTION=3562083]wanam[/MENTION]

I use your app since yesterday and it looks very great.

But one question: is it possible to add a white list for bluetooth devices. I hear music over bluetooth and without a white list I can't use your option in the app.

Thanks

Gesendet von meinem LG-D855 mit Tapatalk
[Xposed Framework Modules] lortelli:
I'm was wondering if this it's possible, would be a great feature! just the only thing missing to this excellent module!
[Xposed Framework Modules] wanam:
Maybe later, the top priority for now is to make a consistent and stable module.

It can done but to check if your wifi AP is available again, we need to keep enabling/disabling WiFi periodically, and this may lead to a battery drain.

New update 1.6.5 pushed to xposed repo:

- Fixed white-listing for mobile and WiFi

- Few other bugs fixes
[Xposed Framework Modules] jackyaway:
White listing SSID WiFi isn't working on my LG G4 with stock marshmallow. I selected two access point in white list but WiFi turn off when screen goes off. I noticed also that after including access point in white list, for example access1 and access2, a new access point is created with name access1$$$access2

When you make the module stable, please consider to make white list app for GPS. Thank you!

Update: SSID white list works fine if i select only one. If i select two or more SSID it stop working.

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] miomio:
Me too. With one is ok but with 2 or more the wifi turn off when the screen turn off

Inviato dal mio LG-D855 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
I was about to ask you to test with only one AP, i think it's a separator bug, the SSID white-list is not manged the same way as the apps white-list, so i couldn't test it since on running on mobile data for now.

Can try attached version? i added a GSP white-listing as well, tested with Google Maps.
[Xposed Framework Modules] jackyaway:
GPS white list works well! I tried it using 3 different apps. Thank you!

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
What about the WiFi SSID white-list bug?
[Xposed Framework Modules] jackyaway:
No changes. It's still there.

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
Try to clear the app data.
[Xposed Framework Modules] jackyaway:
I did:

App data clear

Reboot

App setup

But the SSID bug is still there.

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
Okay, can you post your xposed logs? i will test it myself when i get back home.

Edit: do you still get duplicate entries?
[Xposed Framework Modules] halloarno:
Confirm
[Xposed Framework Modules] wanam:
I managed to reproduce it, i will fix it asap.

I think it's because the "$" is not the good choice to be used on regular expression :) .
[Xposed Framework Modules] jackyaway:
I got the log if you need it

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
No need since I can reproduce it, it's easy to fix.
[Xposed Framework Modules] wanam:
New update 1.6.6 pushed to xposed repo:

- Fixed WiFi SSID white-listing

- Added GPS Apps white-listing
[Xposed Framework Modules] jackyaway:
Thank you! It works well!

Inviato dal mio LG-H815 utilizzando Tapatalk
[Xposed Framework Modules] halloarno:
Confirm :D
[Xposed Framework Modules] halloarno:
Thanks Wanam for your great work! SmartNetwork is working well on my xperia sp.

But I have an other device: samsung galaxy tab s2, running nearby stock rom + wanam-xposed (and ofcourse wanam-module :) ). On the tab s2 I cant get smartnetwork run properly, wifi and bt are not disabled when screen off. Everything seems to be installed fine.. I attached xposed.log if your willing to look at it.... thanks in advance.
[Xposed Framework Modules] noneym86:
Does it work with Note5? It doesn't seem to work on mine. Thanks.
[Xposed Framework Modules] ArgamanZa:
Can anyone who got more battery time with this module share his options ?

The only thing important to me is to get WhatsApp Notifications immediately....
[Xposed Framework Modules] minimale_ldz:
Hi, is it meant to turn all managed services after I unlock the device? I'd like to set them to turn off on screen lock and stay off after unlocking it. It doesn't really make sense when I get data, wifi, gps and bt on every time I unlock. I'm using 1.6.6 version on moto g (xt1039) with 5.1. Cheers
[Xposed Framework Modules] wanam:
Post your logs.

It's not meant to do that.
[Xposed Framework Modules] minimale_ldz:
I tried 1.6.5 version and it does the same. The only options I've checked are "Turn data off", "Turn wifi off" and "Disable bluetooth" and it turns them on when I unlock the device even when they were all switched off manually before locking the screen.
[Xposed Framework Modules] Wyneg:
Same here, gps was active and I didn't turn it on.
[Xposed Framework Modules] Mefesto87:
Hi wanam,It's possibile to add a bluetooth decide white-list?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Xposed Framework Modules] wanam:
This was not what I understood from your previous post.

Why would you enable this feature for a service you want to set manually?

Anyway both of you can try the "keep manual settings" on advanced settings, but it's not guaranteed for the reasons i explained many time on this thread.
[Xposed Framework Modules] Wyneg:
That's the question, I didn't enable, I don't use the GPS almost never, xD

PS: After see GPS was active, I deactivated "Switch GPS mode" in your module (It's true, I didn't enable this option!)
[Xposed Framework Modules] wanam:
Try the new update 1.6.7:

- Fixed a permissions regression on the devices running Android 5.1.1

- Added Bluetooth devices white-list (tested with GS6 TW 5.1.1 and Nexus 5X 6.0.1)
[Xposed Framework Modules] Nosepull:
For me, turning Bluetooth off dies not work. Rather, SmartNetwork always turns BT on as soon as the screen goes off?!? Similar like some other posts here which report unexpected behavior. Sony Z3compact with CM12.1
[Xposed Framework Modules] wanam:
Your logs?
[Xposed Framework Modules] mefisto2114:
Automatic synchronization

Hi, can you please add option to start automatic data synchronization when connected to AC? Thanks in advance.
[Xposed Framework Modules] RFrancis:
Any chance you could make it so that wifi keeps off when screen comes back on? The way it works right now is that it turns wifi off when screnn is off but turns back on when screen is on.

Id like the logic to be screen off checks wifi access point whitelist if accespoint is present do nothing of note turn wifi off. If timer is enabled check for accespoint on interval if accespoint isn't detected turn off if whitelist accespoint is detected keep on and not do anything.

I hope that made sense
[Xposed Framework Modules] nugrohobachtiar:
you should really focus on keep manual setting *currently beta

this app will be needed soo much i believe
[Xposed Framework Modules] primozho:
A suggestion: How about something like turn connections off until screen off?

A widget perhaps.

Great work, thanks.
[Xposed Framework Modules] alexeei:
Have installed module at note 4 Android 5.1.1, before it was installed intelli3g and it switch network (2g-3g) normally, but smart network not worked :( Logs attached could you please see it. logs
[Xposed Framework Modules] Nosepull:
Concerning Bluetooth (post above), I now think I don't have found a bug in SmartNetwork, but it works as intended:

Screen off -> Bluetooth off after the configured time span.

Screen on -> Bluetooth turns on again

However, for me Bluetooth is something I only use from time to time. If it's not connected, it should stay off even if the screen goes on.

I can achieve that if I tell SmartNetwork to respect my manual settings, however this sometimes conflicts with my Tasker profiles.

Would it be possible to add an option "don't turn Bluetooth on again when the screen turns on"?
[Xposed Framework Modules] wanam:
Nothing i can do here, this depends on the device perfs and OEM's implementation of each service, this feature was tested and working fine on Nexus devices running Stock (Google) Android Roms.

I can't find any issues on the logs, are you sure the module is enabled? did you try to disable all other modules?

I saw the features requests but i cannot promise anything, i will see which ones i can implement depending on how much time i can get for it.
[Xposed Framework Modules] RoyanArt:
This module >> when screen off

Can you add feature >> by time schedule ?

Thanks for your hard work :)
[Xposed Framework Modules] pjinkilas:
Doesn't work on LeTv 1s 5.0.2 EUI

It doesn't switch between networks when I turn screen on or off or when I switch wifi. It only switches to default screen off mode when I reboot phone.
[Xposed Framework Modules] PeppeGT:
Note 4

In note 4 after installation it not switch the network. I have note 4 with kiuby ultimate
[Xposed Framework Modules] pjinkilas:
https://drive.google.com/file/d/0ByUTwwRXwtKAdjA5ZUh3NlBidG8/view
[Xposed Framework Modules] PeppeGT:
note 4

For you. Thank you:angel:

drive.google.com/file/d/0B70dE55PaejPUC1jYUpINGxoYk0/view?usp=sharing