J
j4n87
Guest
Redmond pie article:
HTC One X Turning 3G & Wi-Fi Off Overnight? A Fix Is Now In The Play Store
thanks to Oliver Haslam
Hi guys,
I found a solution for the HTC SmartSync Powersaving issue and provide here a simple app to disable this HTC feature..and the cool thing is:
It works for LOCKED devices without root too!
It should be compatible with each Sense 4.0 device and Sense 4.0 port.
What's this HTC SmartSync Powersaving issue?:
HTC introduced SmartSync with Sense ICS (all devices), which shall provide you the best battery life for your device.
Unfortunatly HTC messed it up again, because theres no interface to control this powersaving feature.
Isn't a problem you think? It is, and I tell you why:
HTC SmartSync system forces the wifi and data connections to go do sleep/disconnect after 15 minutes screen off time between 00:00 and 07:00 am.
For some this isnt an issue and can ignore this thread, but for some it is important to have a constant data/wifi connection during night.
The issue is disussed here in over 40 pages: wifi goes sleep even setting policy to "Always On"
Some people contacted HTC and HTC confirmed this "issue"...they call it more a feature to save battery during night and didnt make a statement if this "bug" will be fixed in the future.
mikeyxda posted a solution to this problem here, but its quite a dirty hack. To accomplish this you also need some basic knowledge with apktool. For me it causes issues with Exchange syncing as well.
But the biggest disadvantage with this solutution is, that you have to be rootet.
Some smali code which shows the issue (for experienced users):
Here you can see the timespan from 00:00 to 07:00 where the SmartSync to turn of data/wifi gets disabled
constructor of SmartSyncScreenOnOffTimeReceiver.smali
You see that this values are hardcoded which wouldnt allow a configuration...if an interface to it would exist, of course.
...theres lots more code I could show, but most of the users wouldnt have use for it =P.
I spent some hours to backtrace the the issue to find a cleaner solution than mikeyxda found. But thanks to him I got a point to start with
and found a cleaner solution...well even the possibility to provide this fix for none unlocked/rooted users.
How to test this issue immediatly:
-> You should see that you havent any data/wifi connection and wifi reconnects few seconds later
And this behaviour repeats each day during 00:00 and 07:00am.
Now do the similar steps again just
-> You should see that your wifi is still connected!
Disclaimer:
I tried to fix what HTC borked..but I'm not responsible if your data connection still disconnects and you miss important mails etc.
The app is properly testet and I got several reports that its working though.
HTC One X Turning 3G & Wi-Fi Off Overnight? A Fix Is Now In The Play Store
thanks to Oliver Haslam
Hi guys,
I found a solution for the HTC SmartSync Powersaving issue and provide here a simple app to disable this HTC feature..and the cool thing is:
It works for LOCKED devices without root too!
It should be compatible with each Sense 4.0 device and Sense 4.0 port.
What's this HTC SmartSync Powersaving issue?:
HTC introduced SmartSync with Sense ICS (all devices), which shall provide you the best battery life for your device.
Unfortunatly HTC messed it up again, because theres no interface to control this powersaving feature.
Isn't a problem you think? It is, and I tell you why:
HTC SmartSync system forces the wifi and data connections to go do sleep/disconnect after 15 minutes screen off time between 00:00 and 07:00 am.
For some this isnt an issue and can ignore this thread, but for some it is important to have a constant data/wifi connection during night.
The issue is disussed here in over 40 pages: wifi goes sleep even setting policy to "Always On"
Some people contacted HTC and HTC confirmed this "issue"...they call it more a feature to save battery during night and didnt make a statement if this "bug" will be fixed in the future.
mikeyxda posted a solution to this problem here, but its quite a dirty hack. To accomplish this you also need some basic knowledge with apktool. For me it causes issues with Exchange syncing as well.
But the biggest disadvantage with this solutution is, that you have to be rootet.
Some smali code which shows the issue (for experienced users):
Here you can see the timespan from 00:00 to 07:00 where the SmartSync to turn of data/wifi gets disabled
constructor of SmartSyncScreenOnOffTimeReceiver.smali
Code:
const/4 v2, 0x0 [COLOR=Red]----> Stands for 00:00[/COLOR]
....
sput v1, Lcom/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver;->USERNIGHT_TIMESTART:I
const/4 v2, 0x7 [COLOR=Red]----> Stands for 07:00[/COLOR]
sput v2, Lcom/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver;->USERNIGHT_TIMEEND:I
You see that this values are hardcoded which wouldnt allow a configuration...if an interface to it would exist, of course.
...theres lots more code I could show, but most of the users wouldnt have use for it =P.
I spent some hours to backtrace the the issue to find a cleaner solution than mikeyxda found. But thanks to him I got a point to start with
and found a cleaner solution...well even the possibility to provide this fix for none unlocked/rooted users.
How to test this issue immediatly:
- Turn your wifi on
- Go into Settings->Date and Time: Uncheck automatic date and time
- Set the time to 00:00
- Turn your screen off and let it off for 20 minutes
- after >20 minutes turn your device on and see if your wifi/data is still connected.
-> You should see that you havent any data/wifi connection and wifi reconnects few seconds later
And this behaviour repeats each day during 00:00 and 07:00am.
Now do the similar steps again just
- Start my app
- Check the checkbox "Disable smartsync"
- REBOOT
- Turn your wifi on
- Go into Settings->Date and Time: Uncheck automatic date and time
- Set the time to 00:00
- Turn your screen off and let it off for 20 minutes
- after >20 minutes turn your device on and see if your wifi/data is still connected.
-> You should see that your wifi is still connected!
Disclaimer:
I tried to fix what HTC borked..but I'm not responsible if your data connection still disconnects and you miss important mails etc.
The app is properly testet and I got several reports that its working though.
Last edited: