yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] lou2s:
I hv been using juicedefender (mainly for it's scheduled sync feature) and just come across Superpower today. Wanna try if it makes a difference, especially for the 2g/3g toggle, so I download it from the market. I give permission via superuser and I saw the loading screen (preference, etc.) then a blank whitish screen showed as a result. I am also using Nexus One with MIUI 10.22 so this might be the problem. Thanks!
[Android Apps and Games] nemesys504:
So I tested the 4G detection and it doesn't seem to work properly.

I rebooted my phone then used DDMS to view the events and it seems to detect when the app is loaded but doesn't try to detect when I actually turn on 4G.

I attached a screenshot of the events in DDMS. After com.android.settings I turned on 4G and as you can see nothing happened.
[Android Apps and Games] vysus:
Cool! This app ROCKS!

I was half the way to leave the HD2 Android project due to the huge and unbearable battery drain, but never say never:

yesterday, without SP, battery lasted minus than 6 hours, I really don't wanna loose my push mail and the drain is surely caused by the constant data transfer.

Woke up this morning and started device at 6.40: now it's 8.10 and battery stays at 92%, several emails sent & received, obviously left data connection always on.

NOW there's no need to buy a DHD or a Z, REALLY!
[Android Apps and Games] Ireyn:
I think the app needs a good way to let the user know which settings override which other settings.

For instance ... place the highest-priority settings at the top of the list. Then settings at the top of the list take priority over the ones below them.
[Android Apps and Games] emelie:
i second that. had to really concentrate to get the hang of it - but then i can't think of a possible alternative to how things are now, maybe later.

on another note: while setting all the preferences i set several apps to always have a data connection.

after uninstalling several of those apps last night i noticed that they still are set in the preferences. once i unset them they are gone.

several things crossed my mind:

- it would be great to have a long-press action in the per-app-list; "delete" or "unset" or something like that

- maybe it should automatically remove apps that are uninstalled? or maybe it's convenience that their settings are being rememberd by your app in case i re-install one of those apps? i would appreciate if the settings are being removed once i uninstall an app.

- i then thought "what the hell i'll better delete all per-app settings" and went through the process of opening/disabling/closing every item i've set before; would it be wise/possible to provide a remove-all-per-app-settings switch?

some other things i like/miss/noticed:

- is there a setting to enable/disable the service as a whole?

- is there a setting to enable/disable parts of the service? (e.g. above mentioned per-app-monitor)
[Android Apps and Games] anarchyuk:
airplane mode is coming on when it goes to sleep regardless, no good if you want to take calls at all!!! galaxy s
[Android Apps and Games] Chainfire:
Ah ok. So the problem doesn't always happen, just sometimes ?

Unfortunately the logs didn't help and I still don't know what is going on with this ROM. I'm afraid I'm not going to be able to do anything about this problem until I can find a ROM that exhibits the same bahevior on either Galaxy S, G1, or Hero.

However, I am putting some extra logging into the startup screen for the next release (probably will be a few days, though). If the same logcat can be output again with the next release, it may help pinpoint the problem.

Could you try turning on/off 4G, then starting SuperPower again, and checking the startup output to see if the enabled/connected values are correct in those cases? (At least I know the capable value works right now :D) If so it means the base functions work, but the "state change" detection doesn't. I'll know what to work on :)

I agree this needs some more thought :) But it is difficult as what overrides what depends on the situation.

Though generally, everything that starts with "Auto" or "Switch" is overridden by anything that starts with "Do not". As a rule of thumb.

Taking your suggestions under advisement. As stated before, the per-app settings are getting a complete overhaul in an upcoming version, though is probably still a number of versions away.

There is currently no way to enable/disable the entire service or parts of it. Also on the to-do list, though. It's not easily possible to enable/disable parts in the code unfortunately, except for a few cases (like app-specific)

Doesn't happen for me unless I select the airplane feature under sleep mode, can anyone else confirm this behavior? Note that if you have "Switch to 2G" turned on in sleep mode it appears to go into airplane mode due to the band switch, but this will not last more than a minute or so.
[Android Apps and Games] Chainfire:
4G and blank screen

Ok here is a special test version ONLY for 4G detection testing and the blank screen issue.

4G

Please perform the tests again and let me know the EXACT output

Blank screen

Please recreate the logs as explained previously. I've added some extra logging that may help pinpoint the problem.

Everyone else

Don't install this version.
[Android Apps and Games] Davith:
It's not happened again so that's fine. Thanks for this brilliant app.

By the way, anybody notice any difference in battery consumptions during sleep mode (from 00AMto 8PM in my case)? I disabled WiFi, data and bluetooth and still lost 6% overnight (~8hours). Don't get me wrong, that's not bad, but it's about the same as what I was losing before with 3G data enabled.
[Android Apps and Games] emelie:
holy sh** i just discovered i ran into the nasty 2.1 bug you mentioned in "known issues".

mail service went crazy and wastes power up to the point that i'm able to watch the percentage going down.

i guess i'm going to test along but switch to permanent use once froyo is officially out.
[Android Apps and Games] Chainfire:
Can you reliably reproduce this problem ? If so, it'd be a big help if you could confirm wether disabling "background data" under settings -> accounts and sync will stop the madness ?
[Android Apps and Games] nemesys504:
I tried testing and did what you asked. Again I rebooted my phone, turned 4G on then off, ran SuperPower then turned 4G on and off again. Nothing happens. I attached the DDMS log to show the events.

I will test your special test version and report back here.
[Android Apps and Games] Chainfire:
Looking forward to the results of the test version. However with the on/off I meant:

- Turn on WiMAX

- Start SuperPower

- Note output

- Close SuperPower (BACK button!)

- Turn off WiMAX

- Start SuperPower

- Note output

- Close SuperPower (BACK button!)

- Start SuperPower

- Turn WiMAX on and off a few times

- Note output

The special test version will hopefully output events when you turn WiMAX on/off when SuperPower is running.

If it does, I will need to know the exact events... and if the output (enabled/connected) is actually correct.
[Android Apps and Games] nemesys504:
Will try this later. But on a good note I tested your special test version and everything seems to be working. :D

Attached 2 screenshot. First with 4G on and the second with 4G off. Is there any special way you would like me to test this version also?

Will try 0.63 with the instructions you posted.
[Android Apps and Games] Chainfire:
Actually, don't bother, this is exactly what I need for the moment. WiMAX detection features seem to be 100% operational.

I will come up with some more tests (turning it on/off, relation to "data" settings) and provide you with a new test version.
[Android Apps and Games] ctbear:
I'm on CM6.1 right now and the app works fine. I will flash back to MIUI tomorrow and let you know the result
[Android Apps and Games] Chainfire:
I hope I can fix it too :D But first I need to find the underlying issue which is hard when I cannot reproduce and test at will.

There is one more thing you can do for me right now to help:

- Make sure SuperPower is installed and (Ultimate)Juice(Defender) isn't

- Reboot your phone

- Connect device to computer

- Start logging with ADB: adb logcat > superpower.log

- Play with your phone until the problem occurs

- As soon as possible when the problem surfaces, Ctrl+C in the adb logcat window

- Zip up and attach the superpower.log file

Hope you know how to use ADB or this will be difficult :) Perhaps from those logs I can figure out what is happening with Wi-Fi...
[Android Apps and Games] emelie:
sure i'm going to test it right away. is there anything i can look for in logcat output?
[Android Apps and Games] nemesys504:
Sounds good. Looking forward to it.
[Android Apps and Games] Chainfire:
Well, the constant crashes of the email service should stop :D (fingers crossed)

Beware this may not happen until after the weekend, just a heads up.
[Android Apps and Games] Lazat:
Hi! just wanna report that i have seen increased batterylife by using this app. im just running with the data disabled, not the bandswitching.

one little question though, after having the phone on for 15hours i still have 54% battery (which is for me, better then normal) BUT in wakelocks it shows that SuperPower have total time: 3h 40m 48s. thats pretty much out of 15hours. is it supposed to be like this? or is something "disturbing" superpower?

my phone:

nexus one

cm 6 nightly 226, DT a2sd (dalvikcache on data). intersect raven kernel 2.6.35.7_AVS-CM_CFS_20101025_1941.

thanks for an awesome app!

edit: i have one suggestion, under "Screen state" - "delay action for..." give us more then just 30s, 1min, 2min, 5min. i want mine on 3 or 4 min, or 3,5min. and other users probably want it on something different :)

thanks again!
[Android Apps and Games] toansta:
can i ask anyone, what is sleep mode and how do i configure it?

i see that the new changes allow it to go into plane mode when in sleep mode, is that the same? because at the moment i am using beautiful widgets shortcut to go into plane mode. will that be a problem?

edit: i think i figured it out. if i'm correct sleep mode is an automatic state that puts the phone into plane mode (if specified) and will wake up at the set time. Please let me know if i'm wrong. thanks
[Android Apps and Games] Chainfire:
It depends on how much and how you've used your phone :)

SuperPower holds a wakelock at least under the following circumstances:

- The screen is on (it holds a wakelock the ENTIRE time the screen is on)

- "delay action for..." seconds/minutes + however long it takes to perform the actions configured under screen state

- During scheduled data

- When the phone comes out of suspend but is still unattended (screen off but CPU on) for any reason (i.e. your email program may decide it wants to check email - even if SuperPower has data disabled), and triggers any sort of action SuperPower listens for (this could be a change in data state, a background program starting etc) for as many seconds as it needs to determine if any further action should be taken, and if so, the time it takes to perform that action.

So if this is too much wakelock time, that wholly depends on what you have been doing on your phone and wether or not software installed on your device has caused unattended wake ups (screen off but CPU on). Wakelock wise, SuperPower is coded very defensively, though. SuperPower does hold wakelocks while waiting for events (for example: if it turns wifi off, it'll wait to confirm wifi is off before releasing wakelock), but each of these event-waits has a timeout, which will cause it to release the wakelock wether or not the expected event happened or not.

It's always possible there's a bug, but I wouldn't call this wakelock time extremely weird. If you had absolutely no background processing software / scheduled alarms, etc, SuperPower would be holding a wakelock 99.9% of the time the phone is not in full suspend (as there would be no other reason for the phone to be awake aside from SuperPower scheduled data, and the phone being used by you, both would have SuperPower hold a wakelock)

You are right. It's for when

you

are asleep and wont be using the phone anyway. I might rename it to "Night mode", perhaps that would describe it better ?
[Android Apps and Games] Disgustipated:
Quick update:

On 0.6.3, still testing for the WiFi reconnect but I believe it isn't reconnecting to my home network on wake. I'll have to test it more extensively and see if there's any situations where it DOES reconnect automatically.

Other than that, it's working great. Love the total control of everything. Barring any heavy bugs, I'll be using this permanently. JuiceDefender can't compare. I'll also be recommending it to all of my friends with Android.
[Android Apps and Games] Chainfire:
Yeah Disgustipated please check if in some situations it does and in others does not properly reconnect to Wi-Fi. I uncovered a bug today that if the service crashes or Android closes it down because of low memory (or *gasp* an evil task killer), the service is reloaded but state isn't properly restored. It will "forget" it turned off Wi-Fi. That *might* be the problem in your case, but I wouldn't bet on it. Either way, probably the next version (aiming for Tuesday release) will have a fix for *that* specific issue.

Also because of the other Wi-Fi bug reported, I've been tested this a lot all day, and apart from a single crash (that seemed to be Dalvik bug instead of SuperPower) it has reconnected to Wi-Fi *every single time*.
[Android Apps and Games] emelie:
thanks for the detailed explanation! i was wondering about the huge amount of wakelocks as well.

that's actually a very good idea. while testing in uninstalled/reinstalled a couple of times so far and everytime i go over the settings my mind gets distracted by this thought: what is "sleep mode" when a couple of items above there is "screen state" and "lock screen"?

an alternative to "night mode" would be "schedule sleep" - that puts it in line with the item above it ("schedule data") and creates a connection to i-am-able-to-set-times-with-this-setting
[Android Apps and Games] Neo31697:
Should this or could this be used with Colins battery tweak and or set CPU or overclock widget?

Sent from my NFX-HERO
[Android Apps and Games] nemesys504:
P.m. me when its available and need futher testing. Also purchased your SuperPower Paid to help futher development.
[Android Apps and Games] Disgustipated:
Will do. I go from home to school and don't use WiFi at school since only my laptop's MAC address is registered there, and whenever I use my phone @ home I have to constantly turn on the WiFi after it sleeps, otherwise it'll use 3G. So I think you'd have to set another option is so that on wake-up, it checks for known Wi-Fi networks and connects to them. It seems that it never actually tells the WiFi to turn on wake after the set delay + usage... so if it forces it to check for known networks and then connect to them, that should *in theory* make sure the Wifi comes on but ONLY when you need it, correct?

Hope that doesn't sound crazy. I'll keep testing it through this weekend and let you know if I encounter anything that makes WiFi come on at all by itself after wake + delay. Otherwise I really, really like this app. It's must-have status for sure; no other battery manager/scheduler comes close.

2G + 3G switching works well; it always switches to 2G when using WiFi, and only turns on 3G during web browsing. That's pretty awesome. I know 2G in theory saves battery (not always, but in most scenarios for most users it should... right? I read that somewhere) so it's a nice touch.

I think the only thing this app really needs is a drain indicator like Android has that can tell you exactly what app/hardware is draining the most. The Android function for battery drain is really broken (it always says my screen is doing 90+% of the drain, even @ 0-25% brightness), so a working one would be awesome. And I don't know if it's possible (not sure if the Galaxy S has the ability to monitor power draw from individual components) but a total wattage/amp draw from each component (radio, GPS, screen, processor etc) so that you know what's eating up how much juice would be great in figuring out what you should turn off to save battery.

Another nice touch would be an advanced function for the CPU scaling so that I can set thresholds for Mhz like SetCPU does. I'd really like the ability to make custom power profiles. For example, a high performance profile for when I'm at home/charging where I can set the CPU frequency to minimum 700 mhz, and max to 1000 (or beyond for OC kernels) so that it never downclocks beyond high frequencies. This would be great for apps that are performance intensive, or just for having the phone be at maximum responsiveness all the time. You get the idea, I'm just elaborating.

I know that'd all be a lot of extra work to code, implement, and test, but I'm willing to donate + help test different functions if you ever decide that you'd like to expand your feature set.

Thanks again for the hardwork.
[Android Apps and Games] thevodkaboy:
thank you

well i must say of all the system confiqs out there, your is the best i've ever seen. i'm new to the hacking scene and i can tell you that this program works on a rooted DroidX 2.2 froyo. thank you :)
[Android Apps and Games] ekowanz:
confirm work on samsung fascinate. But the option for 3G is not...
[Android Apps and Games] Aztriltus:
If this app can be used as a plug-in in locale, then it will be the best even if its paid. It just features so much that is lacking in the plug-ins for locale. Hopefully you will be making it like a plug-in in locale, so I can configure when I'm in my house, it will not switch to 2G and it will lower my CPU speed. And when I'm out, it will enable back the 2G switch when screen off. I'm hoping for this day to come (:
[Android Apps and Games] madhuranand007:
Please upload .apk

Please upload .apk please. Net is not working on my phone..

Please upload please.
[Android Apps and Games] Lazat:
thanks for explaning

ah thanks for that info, i understood all except that its also holding a wakelock during the time the screen is on =) then it all sums up pretty good, 2hours of screen on, and data scheduled 3 min every 30min for 15hours should sum up to roughly 4hours =)

once again thanks for an awesome program! =)

what settings do u have under "screen state" ? i have noticed that if i uncheck auto wi-fi disable then my wifi start acting wierd, it doesnt resume, and it cannot find my home network when i go into wifisettings and so on. if i just check auto wifi disable again then everything work like normal.

give it a try and tell us =)
[Android Apps and Games] bclark:
I was having Wifi issues for awhile too, where it wouldn't reconnect after being locked and would only use 3g. This happened through .62 and .63 and then I restarted my phone and issue resolved.

Also getting rid of Advanced Task Killer has significantly increased my battery and decreased the lag. I felt as if these two apps were competing in some way.

BTW this app makes me not want to return my phone...and Angry Birds, haha.

Captivate with I897UCJI6 Rom.
[Android Apps and Games] Chainfire:
TaskKillers will cause any number of weird behaviours and battery drain. TaskKillers are relics from the past, you shouldn't be using them since 2.0 and you DEFINITELY shouldn't be using them on 2.2.

Unfortunately, people don't seem to know that :)
[Android Apps and Games] ctbear:
Here is the log for the test version
[Android Apps and Games] Aztriltus:
I understand. Your app is truly complex and it is an app that I think the developer has put the most effort in. I'm really hoping that in the future, you will add 2G and CPU plugins for Locale or even just have the location based settings since you already have a strong foundation. Minor tweaks and there such as Kill selected apps when screen is off. Thanks in advance and keep up the fantastic work
[Android Apps and Games] Black1982:
Wow ,great to see you and this App on Android! WMlonglife was one of my favorite apps on WM. Cool to have a way to change G/3G on non aosp based Roms!

I'll test this on my Desire HD! Hope to see perform some more of your magic on android (and the Desire HD :D)

I'll spread the word in my section!
[Android Apps and Games] Black1982:
Request

I'd like to request an alternative brightness logic like LUMOS for WM. Lowest auto brightness setting is still to high for my taste and this option could save a lot of battery, esp. on large screen devices such as my Desire HD. I know of some apps that control brightness, but they seem coupled to your battery level, so not quite what I'm looking for.
[Android Apps and Games] Disgustipated:
This is odd: there is no shared_prefs.xml in data/data... in fact, there's not even an nl.morose.superpower folder in there. I searched too. :\

I see the point of all of your other comments, was just curious as to how viable those options were. :cool:
[Android Apps and Games] flowtec:
Same here with .63, but restart don't help. Have no Taskmanager installed. Always started to connect over 3g and not WiFi, even WiFi was enabled before.

Here with Desire/Leedroid 2.2d.
[Android Apps and Games] bigtom624:
I love this app. My battery is lasting a hell of a lot longer now. I've tried all the other so called Task Manager's out there, all of which BLOW!!!! Can't wait for the full version. Nice job man.
[Android Apps and Games] Disgustipated:
Chainfire,

I forgot to mention that I had the Wifi reconnect issues on both Cognition beta 8.1 and also beta 9.1.2. Doesn't seem to be affected by the ROM.
[Android Apps and Games] emelie:
it stopped, but i think this is related to another thing ->

i reinstalled SuperPower and this time didn't enable the 2g/3g-root-switch.

so maybe mail-service got distracted by the amount of time spent in airplane/switch/hybrid-mode while switching to/from 3g

i see your point, but then again the "schedule data"-settings are also overrided regularly by other settings (at least that's how i understand it).
[Android Apps and Games] Chainfire:
Unfortunately it did not provide me with any clues :(

I will consider this :)

Weird... full name for this file on my SGS is:

/data/data/nl.morose.superpower/shared_prefs/nl.morose.superpower_preferences.xml

I've now finally been able to replicate the Wi-Fi "breakage" issue. So not just that it doesn't turn on, but that Wi-Fi doesn't connect to any network. Unfortunately I still cannot reproduce it at will. It happened at a time when I wasn't near my PC, and by the time I was, the problem _solved_itself_.

This still does suggest a firmware issue - though not necessarily ROM related. More likely is that a part of the Wi-Fi subsystem crashed, causing the issue, but was later automatically restarted by Android. Still needs more investigation.
[Android Apps and Games] z0mbi3:
how does the pin lock thing work with this app? Thinking there might be an opportunity to get around exchange pinlocks using a similar method...
[Android Apps and Games] pilgrim011:
+1. :) I really miss Lumos on Android.

Chainfire, could you explain to me this CPU scaling thingy? I mean, Android OS does it already, so how does your implementation differs from Android's native one?

To be more specific, I'll attach adb readings from my HTC Desire, in various conditions: sleep, display on without opened apps, browser just opened, market, Gentle Alarm, camera, mesaging...
[Android Apps and Games] mcsrobert:
I'm having problems getting wifi back on through the notifications drop down. Pressing the toggle button there has no effect anymore, probably after SuperPower killing it.

I've found a workaround to get it back on though, which is going via Settings->Wireless and Network->Wifi Settings->Wifi.

The description of the Wifi menu item/setting will be saying 'Error' at this point. Toggling it back on from there works though.

I'm running SuperPower on a Samsung Galaxy S I9000, with official JP6 firmware.

Let me know if you need any additional information.

P.S. Thanks for the otherwise amazing program.