If my tests are conclusive, I'll reveal the method so more people can use it. All credit goes to the OP though. I dumped his app to smali, but it wasn't much help. He used Stringer to encrypt all of the strings in his app to prevent anyone from seeing what it was really doing, but the structure of the code gave me a few pointers and after looking at the smali from the stock code I think I have found a fix.
If my tests are conclusive, I'll reveal the method so more people can use it. All credit goes to the OP though. I dumped his app to smali, but it wasn't much help. He used Stringer to encrypt all of the strings in his app to prevent anyone from seeing what it was really doing, but the structure of the code gave me a few pointers and after looking at the smali from the stock code I think I have found a fix.
---------- Post added at 01:39 AM ---------- Previous post was at 01:38 AM ----------
I'm not sure, but I would guess Yes. I can confirm it works on other sense 4 roms (Evo 4G LTE)
I tried to testing the app,
Unfortunately it didn't work,
Here are the things I tried.
- I installed the app
- Put my phone to sleep at 01:10 Am
- Checked at 01:30Am and the WiFi wasn't there.
- I disabled the "Automatic Date and Time"
- Put my phone to sleep at 01:35Am
- Checked at 02:00Am and the WiFi wasn't there
- I re-enabled "Automatic Date and Time"
- Turned my phone off with "Fast boot" disabled.
- Turned back my phone on.
- Put my phone to sleep at 02:30Am
- Checked at 03:00Am and the WiFi wasn't there.
I UnInstalled the app.
Thank you for the efforts thogh.
I tried it last night, installed 23:50 and checked at 00:20 but wifi was off.
Then i restarted phone.
Checked again at 01:00....Wifi was on.
Checked again at 04:50....Wifi was on.
Checked again at 06:30....Wifi was on.
So maybe a reboot was all it was needed. Will test more tonight but all the guys that didn't work, also try a reboot...It doesn't hurt
Steps to test it properly:
- install and open the app
- check the "Disable smartsync" in the app
- do a reboot
- open the app again and look if its still checked
- turn on wifi
- set your time manually to 11:55 pm, turn your screen off and wait >20 minutes
- after that time turn your screen on and wifi should be stilll there.
orig post here.
Steps to test it properly:
- install and open the app
- check the "Disable smartsync" in the app
- do a reboot
- open the app again and look if its still checked
- turn on wifi
- set your time manually to 11:55 pm, turn your screen off and wait >20 minutes
- after that time turn your screen on and wifi should be stilll there.
do teh same steps again, just with unchecking "Disable smartsync" in the app...your wifi should be disconnected after 20 minutes screen off time.
I have read this whole entire thread. I wanted to do some tests of my own. First I simply installed and enabled the app, shut off my screen and waited 20 minutes. Turned screen back on, wi fi was disabled. This was expected based on the fact that I didn't reboot.
I rebooted. Turned screen off, waited 20 minutes and then turned it back on, wi fi did not drop. This was within the 12am-7am window (real time). Second test I did was manually set clock to 11:55PM and waited another 20 minutes. Turned screen on, wi fi was still latched on.
And my phone isn't even a One X. I did this test on my Evo 4G LTE. This works on my phone, it should definitely work on everyone with a OneX (Or sense 4.0, really) otherwise you are doing something wrong. Make sure you have keep wi fi while sleeping to "always" under wi-fi settings. These are two different toggles.
Anyway, thank you very much OP, this even works on my phone
This works ideal for me with working nightshift, tested all last night and working 100%
Sent from my HTC One X using XDA
I tried to testing the app,
Unfortunately it didn't work,
Here are the things I tried.
- I installed the app
- Put my phone to sleep at 01:10 Am
- Checked at 01:30Am and the WiFi wasn't there.
- I disabled the "Automatic Date and Time"
- Put my phone to sleep at 01:35Am
- Checked at 02:00Am and the WiFi wasn't there
- I re-enabled "Automatic Date and Time"
- Turned my phone off with "Fast boot" disabled.
- Turned back my phone on.
- Put my phone to sleep at 02:30Am
- Checked at 03:00Am and the WiFi wasn't there.
I UnInstalled the app.
Thank you for the efforts thogh.
I am a nightshift worker and yes this does keep 3g connected but it made things worse after the 'fix' for me, i had to send an email to the wifey before i could receive one from her..
it all got very confusing in the end and it felt like i was playing some kind of party game where one has to answer a question before it's asked...hehe...uninstalled