An Idea: Grouping/Reversing permissions (Wakelock / Connectivity / Positionning) - General Topics

TL;DR: Go down to summary to just grab the idea
I've been working a lot on optimizing my battery life, and I've become more aware about security concerns regarding Permissions, and I came up with an Idea that would make all of this a lot easier, even for unexperienced users.
Instead of giving apps general permission for wakelock, positionning or connectivity, there should be groups for these permissions. Let me explain with an example:
Say there is a permission group called "Instant Messenger connectivity" for apps like skype, facebook messanger, ICQ and such. you are able to set the update intervall for this group, there are 2 settings: phone in deep sleep and phone awake. The default deep sleep intervall would be like 1 or 2 minutes, the awake setting would be constant. Now every time the intervall runs through, the phone calls a hook that allows all apps in the group to check for new messages. If you want to optimize your battery life or bandwith useage and dont need to instantly know who is sending you a message you set the update intervall to, say 5 or even 15 minutes.
"E-Mail" group would be set to 15 minutes or an hour or 5 hours, whenever you want your not so urgent messages to be delivered. Or set it to "screen activated" so emails get checked when you actually look at your device.
"Updates" group would be allowed to check once a day.
Similar grouping would be done for GPS: One group would be "Navigation software" that would be constantly allowed to track your position, another group could be called "Check-Ins" or "Geographic postings" or something, those apps would only be allowed GPS access after a prompt. Permission through the promt lasts for 5 minutes or so during which the app can get your position, even several times if needed.
This way your navigation software works flawlessly, and you would be able to tag your photos or add locations to your posts or use check-ins but apps couldnt track or log your positions without you knowing it.
Similar thing for waking the phone: "alarms" group is able to wake your phone at any time to ring the alarm. "Maintainance" group would be triggered once every three hours or so.
Timing options would be something like: Always, every X seconds/minutes/hours, while screen is on.
The permission intervall should have a limited duration, which expires either after all the hooks are completed or after a fixed amount of time, stopping apps from gaining GPS permission to tag a post and afterwards keeping the permission to log your movement patterns, or keeping the internet connection alive while trying to get an info from a server that is not currently online or reachable.
Advantages
This would lead to a centralized settings, where you can - if you choose to - set how often you want updates or permissions granted for each group.
Instead of each app waking up the phone individually for their task, all the apps would get a signal to update at the same time, getting the best use out of the time the phone is not on deep sleep.
Permissions would be more transparent to unexperienced users, and it would be either very obvious if apps want permissions they shouldnt have, or they dont get tempted to go overboard with the use of the permissions they are granted.
Summary
- Apps are given permissions in matching groups allowing them permission to use the functions as the user sees fit
- Permissions work as hooks: Instead of letting the app decide when to trigger a certain event, i.e. connect to the internet or wake the phone, the phone decides when the permission should be activated and sends a command to the app which in return then does what it needs to do with the permission (check for messages, get your location etc.)
Disclaimer
This is more of a general demonstration of a principle, my coding knowledge or knowledge of procedures in android is not enough to describe the actual implementation.
I am also not sure at which level this would have to be implemented, i.e. if it could be done within a custom rom or it had to be implemented in the android kernel. I am well aware that it would probably require some recoding from the app developers, and this is not a simple tweak but a pretty big overhaul of the way android works. I just wanted to get the idea out there, just to get you guys thinking or giving you adifferent perspective on things.
Tell me what you think.

Related

Tasker finally on the Market, automate nearly anything easily!

It's hard to describe what Tasker can do, as there's not much it can't do. I try to describe it like a high-level interface to the Android API. You can adjust hoards of Android settings programmatically based on Events (application, time, date, location, event, gesture).
Personally, I do some of the following:
Passively upload my GPS location to my website every 10m
Have the phone get fairly loud when I'm a home
Quiet when I'm at work
Nearly Muted when I'm in a meeting (matches a Calendar event)
Muted with Autosyncing disabled at Night while I sleep
Disable Rotation on my etext reader to work around a bug in the ereader which loses my position in my book when it rotates!
Make the screen brightness and sounds high when I'm running Waze (gps program) on AC power (plugged into car charger)
... more little things!
All of this is done using an easy to use GUI to build matching contexts and a task to execute when matched. There are lots of samples to start with on the website, and very easy to write your own. Basically it's a graphical programming language that anyone could use.
It's on the market as of today, and the website is here: http://tasker.dinglisch.net/
I have zero connection to the author besides an extremely happy user, decided I would post this here because he's exited beta testing and on the market now.
Here's even a few more examples of things that can be done, pasted from the website.. Still only the tip of the iceberg on things it can do:
passcode-lock sensitive applications (e.g. for child safety)
change phone settings by
application: long screen timeout in a book reader
time: screen brightness lower in the evening
location: ringer volume high at the office, turn off ke yguard at home
wake up with a random song from your music collection
Text-to-speech; read out loud: incoming SMS/ phone number, WiFi/Bluetooth status, when it's time for an appointment, when the battery is low etc etc (Android OS 1.6+ only)
launch a music application when your music SD card is inserted, otherwise a file browser
start the day with a particular application showing
change all your home icons and wallpaper every day, or in particular locations
turn the phone upside down to return to the home screen, tilt 90 degrees to the left and back to toggle speakerphone during a call
create a Home widget to
toggle bluetooth/wifi on/off
launch wireless settings dialog
show a menu of tasks to choose
send an emergency SMS with your GPS location
remap camera etc buttons to other applications, or show a menu of applications and/or actions
decrypt/encrypt and/or zip/unzip application data on the fly when an application is launched/exits
pause music playback while in a particular application, restart on exit
change the Home icon for any application
take a time-lapse photo series (possibly 'secretly')
make a regular backup of a file on the SD card
track your phone location via SMS in case of theft
extend the use of the media button on your headset: take a picture from a distance or go to the previous media track with a long press
record call times and destinations to the SD card
show a popup when an SMS arrives from a particular phone number
setup a birthday SMS to be sent months before it happens so you don't forget
record battery levels over time to a file on SD card
make automatic recordings of what you say during phone calls to SD card
during the night, turn on airplane mode to conserve battery/reduce radiation, but turn it off every 15 minutes to check for SMS/voicemail.
setup a vacation SMS message, with different messages for different callers
launch a music application when headphones are connected
Hrmmm, there's not much reviews for the app. I'm interested in trying out but I wish there was a trial or something.
Vulpix said:
Hrmmm, there's not much reviews for the app. I'm interested in trying out but I wish there was a trial or something.
Click to expand...
Click to collapse
I hadn't looked at his market version yet, but it shouldn't need validation for 14 days..
He sells it on the market and off of the market. If nothing else you could install it from his website. I'll ask on his forum, it shouldn't require purchasing to use immediately.
Everytime I try it I get a FC when setting up my profiles, and I lose all my changes. Gets annoying fast. I uninstalled and did refund.
Knether said:
Everytime I try it I get a FC when setting up my profiles, and I lose all my changes. Gets annoying fast. I uninstalled and did refund.
Click to expand...
Click to collapse
Weird, I've seen that like once when I first tried it.. You might want to get on his forums and see what he can do to help fix it, as if you're interested I don't think there's anything else out there that does anywhere close to what Tasker does.
Come to think of it, yes, I did see that maybe 2-3 times, especially when first messing around, but I haven't seen it in weeks, even though I've set up multiple profiles since then. Interesting. You could always set up some stuff, Apply, re-enter the app. At that point it's saved. If it crashes, you won't lose anything. However it'd be good to get logs from alogcat or such to figure out the crash problem.
Awesome.. tasker is too good and much better than locale and setting profiles (though UI could get a bit better)... I've been waiting for it to arrive on the market..
I guess I'm the only person who has troubles with the app.. ::sigh:: I want to love it..
I've actually been using the app for a little over two weeks, and I've found it to be indispensable! GPS drains my battery too fast, so I love coordinating tasks with calendar events in conjunction with network-based location. Not to mention auto starting GPS for specific apps and then shutting GPS back off when I exit said app. There are simply SO many uses for tasker, and its compatible with locale plug-ins.
Btw. Try using Foxy Ring's ambient noise feature to auto adjust ringer volume. It works great when constantly moving from quiet study areas into a loud common room.
Does anyone know how I can set up Tasker to switch to 2G at midnight and then back to 3G/H at 8am?
I have looked throught the options and I can see the settings for 2G, but when I add Time as the 1st context I then can't find anything relating to 2G for the next context.
I understand it's probably just me being thick but if any one could help it would be much appreciated!
Loving this app otherwise, well worth the small fee.
Thanks.
CitizenLee said:
Does anyone know how I can set up Tasker to switch to 2G at midnight and then back to 3G/H at 8am?
I have looked throught the options and I can see the settings for 2G, but when I add Time as the 1st context I then can't find anything relating to 2G for the next context.
I understand it's probably just me being thick but if any one could help it would be much appreciated!
Loving this app otherwise, well worth the small fee.
Thanks.
Click to expand...
Click to collapse
Sure, Tasker doesn't have a "Default" profile, when a profile ends it returns what settings it changed back to what they previously were.. So if it's H going into your night profile, switch off 3G, then when the profile is over it'll return to H. The big difference here is that most likely you're going to have to run an external program, maybe APNDroid or something, to toggle 2G/3G, as apparently it's not in the API directly and Tasker can't do it. So you have an entry task and an exit task.
Yep, I just looked for apps that can do this, they all launch the option in the menus, can't do it directly... So doing this doesn't seem (directly) possible, but maybe there is something out there.. I just glanced. http://www.cyrket.com/search?q=3g&market=android
Profile
Context: Time 00:00 to 08:00
Enter Task
Run Program APNDroid (?)
Exit Task
Run Program APNDroid (?) (to toggle it back on, since it's not a setting here)
Found a nice review and guide for tasker here:
http://lifehacker.com/5599116/how-to-turn-your-android-phone-into-a-fully+automated-superphone
Looks powerful, and superior to locale.
psych2l said:
Found a nice review and guide for tasker here:
http://lifehacker.com/5599116/how-to-turn-your-android-phone-into-a-fully+automated-superphone
Looks powerful, and superior to locale.
Click to expand...
Click to collapse
I kind feel sorry for Locale Tasker has it 100x over, plus it can use Locale plugins.
I haven't done much digging, but... maybe someone could help me with this one:
I have the Samsung vibrant which does not have a hardware camera button. Would there be a way to use this app to remap the power button when in the camera.app to use it as the shutter button?
Thank you
Anyone else having force closes when trying to set backgrounds for app menus? Don't dig the bland menu background that comes stock in the app.
Great app except the fact it is using 1/4th of my battery for two profiles.
UrbanMuppet said:
Great app except the fact it is using 1/4th of my battery for two profiles.
Click to expand...
Click to collapse
You have something misconfigured or you have insanely good battery usage then. I have Tasker using the GPS every 10 minutes, uploading that GPS data to my website. It reminds me every 2 minutes of missed email, phone calls, sms... It goes speakerphone if I flip it on a call. It changes profiles for home, work, work meeting, running GPS in the car... I think I have a profile to wash the dishes too, but I'm waiting on an enhancement from Pent to make that one function.
Seriously, post on his forum with the exact context and task, I bet something is done wrong.
Man I still have difficulty trying to make Tasker do simple things because I'm not really savvy with such stuff...
I have been trying to get Tasker to automagically switch keyboards based on orientation for like a few days now, no luck. I want to have Swype when in portrait mode, and then a custom HiRes keyboard in landscape...
can anyone help with this or if someone has done it already, please lend some advice...
Also, maybe this thread can become the official Tasker profile thread, if not, maybe a sticky with user created profiles?
ImSoHungry said:
Also, maybe this thread can become the official Tasker profile thread, if not, maybe a sticky with user created profiles?
Click to expand...
Click to collapse
Been trying to a place where people dump their profile examples for the inept people who can't work out half the settings, like myself
Tasker works perfectly on my phone: HTC Desire, stock ROM, official Android 2.2 update
My profiles:
Profile: Running Navigation
Context: Application: Load app Sygic
Tasks:
- Misc: GPS ON
- Audio: Set Media Volume to max
- Display: Set Brightness to 200
- Set Speakerphone to ON
Profile: Silencing Hidden Caller-ID
Context: State: Incoming Call
Tasks:
- Audio: Set Ringer Volume to 0 - if %CNUM ~ 0
- Audio: Set Vibrate to OFF - if %CNUM ~0
Note: for the second profile, you need to use at least 1.0.6 beta 5 (%CNUM bug fixed).

[GUIDE] Tasker

Tasker is a very powerful program for Android devices that lets users have complete control over the automation of their phones.
I have seen a lot of fragmented threads about different profiles and requests for help. So I have decided to make a thread to collect profiles and advice for people from different devices to use (hopefully in an easy to understand English!). Also, I'm not a huge Tasker wiz! I just hope that everyone can contribute in one place for everyone at xda. So please send me/the contributor a PM if you see a post that is wrong.
Contents:
Post #2 - Links to submitted guides/profiles
Post #3 - Basics of Tasker
*Disclaimer*
I do not have ownership (whole or part thereof) of the Tasker Android Application. This guide is for educational purposes only. I, or any contributor to the guide, is not responsible for any faults (software or hardware) resulting from following the instructions set out in this guide.
Tasker is available from the Android Market or in trial form from the website
Admins: If this thread is unnecessary please delete and let me know, thanks.
Submission of Profiles:
If you have a profile that you would like to share, please put it into this standard form so that people can more easily understand what to do:
##(example 1)##
Profile: "Wifi at home"
Context:
Variable "HOME" [matches] "1"
Wifi-near [(SSID of home/work/school wireless network)]
Activity:
Wifi [ON]
Mobile Data [OFF]
Mobile APN Enabled [OFF]
Exit Activity (if any):
Wifi [TOGGLE]
Mobile Data [ON]
Mobile APN Enabled [ON]
##(end example 1)##
OR if you want to submit a walk-through as well:
##(example 2)##
Tap Context
Add
Application
Google Maps
...etc
##(end example 2)##
Absolute Beginners:
If you are completely new to Tasker, you need to check out the Tasker website and wiki.
The program may seem unwieldy and complicated at first for those who do not have programming experience - I certainly found it a little intimidating at first - but once you play around with it, it helps a lot. The guides on the wiki and on the website are a little confusing, so hopefully this thread will help decode some of the settings/profiles into plain English.
The wiki is worth checking out for the walkthroughs and downloadable profiles - so take your time to check it out!
duckredbeard has also pointed out that there is a google group for Tasker which is supported by the developer himself. So if you need some trouble shooting, check that out too.
Turning GPS on only for GPS apps and then turning them off again
Automagically switching wifi on and off
...slowly building more. post to contribute!
Here are some basics that every beginner needs to know (or if you just need reminding).
Profile:
Not much explanation needed. A profile contains all the required settings for a particular purpose - it is usually recommended that you give your profile a name that makes sense (e.g.: "Wifi at home" for turning on/off your wifi when you are near your house). A profile has:
Contexts
Tasks
Exit Tasks (not always)
Contexts:
A Context is basically an on/off switch for your Tasker profile - something that tells Tasker that a certain thing has happened/is happening and so Tasker should do something about it. When you tap "new" in Tasker and have given your profile a name, you will be given some choices for your Context. A Context can be:
Application (profile is activated by the opening of an app)
Time (this can be through a time interval or a set time frame)
Day (profile activation based on which day/month you are on)
Location
State (of your phone)
Event (something that has happened to the phone)
Tasks:
Once your profile has been triggered by your Context, you want it to do something - this can be switching on Wifi, or locking your phone, or turning on the GPS, launch an application, etc. You have amazing control over what your phone does! You will need to explore the different options in order to understand the kind of control you have.
Exit Tasks:
An exit task tells Tasker what to do once your Context is no longer true (e.g.: you are no longer near your wifi network). You can tell Tasker to switch things back on that you might have turned off (or vice versa). You do not need to have an exit task, but sometimes it is useful. You CANNOT have an Exit Task if your Context is an Event.
Monitoring your context:
Some contexts (like "Location") require Tasker to recognise when it is in a certain area or not - this is how Tasker does it.
To find a wifi network using the "Wifi-Near" context, Tasker switches on your wifi briefly (specified in "Menu -> Preferences -> Monitor -> Wifi Timeout Seconds") and scans the wifi networks available. After the specified amount of seconds has passed, Tasker will then switch off the Wifi scanning. Tasker begins scanning for wifi networks again after another time interval (specified in "Menu -> Preferences -> Monitor -> Wifi Scan Seconds"). Obviously the more you scan the more battery you use, but also the more responsive Tasker will be. And obviously the shorter amount of time you spend scanning for networks, the more battery you save, but you also have a lower chance of connecting to a network. Tasker can only do this wifi-scanning if you have set your Wifi to [TOGGLE] or [ON] - it will not do it if you have set your Wifi to [OFF].
GPS is a much more accurate way to find your location, but obviously much more battery intensive. Settings are much the same as the Wifi ones and are found in "Menu -> Preferences -> Monitor". Tasker can only update your GPS location if you have set your GPS to [TOGGLE] or [ON] - it will not do it if you have set your GPS to [OFF].
Network Location is the least battery intensive, but also the least accurate. Tasker checks your network location according to the time specified in "Menu -> Preferences -> Monitor -> Network Location Check Seconds".
...more to come.
--just in case--
Using GPS only when needed:
In normal use, apps like Weather, Places, Latitude, etc, only need to know which suburb/cell tower you are using. If you have your GPS switched on, then it becomes a huge waste of battery. Here is how to set it so that your GPS switches on when you use a GPS app, and then to switch it off again when you exit that app.
Profile: "GPS on"
Context:
Application
Google Maps
Locations
Navigation
...etc
Tasks:
GPS [ON]
Exit Tasks:
GPS [OFF]
Automagically switching wifi on and off
The Easy Way:
Profile: "Wifi at home"
Context:
- Wifi-Near [(Set as your work/home/school/etc SSID and MAC address - do this by long-pressing on the dialog box for Tasker to scan for you)]
Tasks:
- Wifi [ON]
Exit Tasks:
- Wifi [OFF]
This method has Tasker checking for your wifi network according to the settings you placed in:
"(Tasker Home Screen) Menu -> Preferences -> Monitor"
However, this theoretically leads to more battery usage because Tasker is always checking for your wifi network even when you are nowhere near your wifi network. You could always have it check your location using your GPS, but this is even worse for your battery. A way to reduce this battery drain is to lower your "Wifi/GPS Timeout" setting and increase your "Wifi/GPS Scan" setting. This will cause Tasker to check for wifi networks/GPS location for a smaller duration and less frequently - the downside is that Tasker will be less responsive when you enter into your wifi network (eg: if you set Tasker to check once every 10 minutes, then you might have to wait 10 minutes before Tasker kicks this profile into gear)
Slightly more complicated way:
This requires 2 profiles.
Profile 1: "Home"
Contexts:
- Cell Near [(press 'scan' to let Tasker find out what cell towers are near you)]
Tasks:
- Set variable "%HOME" = [1] (this is a variable i defined myself)
- Wifi [TOGGLE]
Exit Tasks:
- Set variable "&HOME" = [0]
- Wifi [OFF]
Profile 2: "Wifi at home"
Contexts:
- Variable "%HOME" matches [1]
- Wifi-Near [(SSID of home/work/school/etc)]
Tasks:
- Wifi [ON]
- Mobile Data [OFF]
- Mobile APN Enabled [OFF]
Exit Tasks:
- Wifi [TOGGLE]
- Mobile Data [ON]
- Mobile APN Enabled [ON]
(you can also enable Auto-Sync if you wish)
Explanation:
This method can theoretically save battery and increase the responsiveness of Tasker. It does it by only enabling the Wifi-scanning when you are within a certain cell-tower(s) area. Since checking for your location via the mobile network does not require much battery (and also since your phone is automatically doing it for your weather app anyway), you can set your Network Scan time to something quite low (I have it at 15 seconds). Once you are in the general area, then Tasker begins to look for your wifi network. Because you are not always searching for the wifi network, you can increase the frequency of the searches and also increase the duration of the search.
This does require a bit of testing - I find that it works quite well, but that could just be my area. Have a go and see what you find.
dont mean to cut down your efforts here, but: http://tasker.wikidot.com/
It will be nice to use this thread as a helpful discussion area on programming tasker as their does not to be such a place on the tasker wiki site.
Maybe you can help to achieve this state.
Is it possible to have several IF variables?
Ie.
Between hours 21:00 - :06:30 Reduce phone ringer to 2
If Location (network operator) = Home
and Power is connected
and phone has been idle for 30mins.
I have been playing with Tasker but having no programing experience it is difficult for my brain to wrap around how I would achieve this.
any hints?
TopShelf10 said:
dont mean to cut down your efforts here, but: http://tasker.wikidot.com/
Click to expand...
Click to collapse
yeah, I'm aware of the wiki - but the wiki doesn't answer all the questions and I feel it isn't organised very well (not that this would be organised any better). Plus, a forum opens things up to discussion and sharing, which I'm sure a lot of people will appreciate. feel free to contribute!
Daft Templar said:
It will be nice to use this thread as a helpful discussion area on programming tasker as their does not to be such a place on the tasker wiki site.
Maybe you can help to achieve this state.
Is it possible to have several IF variables?
Ie.
Between hours 21:00 - :06:30 Reduce phone ringer to 2
If Location (network operator) = Home
and Power is connected
and phone has been idle for 30mins.
I have been playing with Tasker but having no programing experience it is difficult for my brain to wrap around how I would achieve this.
any hints?
Click to expand...
Click to collapse
I believe that if you put all of those 'variables' into one profile and make them all contexts, then you would be able to do that. But don't forget to set your task priorities properly!
Have you tried:
Code:
Profile: (profile name)
Contexts:
- Time [21:00-06:30]
- Wifi-Near [(your home SSID)] (also see my post about how to reduce wifi-searching to increase battery life)
- Power [Any/AC/USB]
Tasks:
- Ringer Volume [Level 2, (Sound, Display if you want as well - good for debug)]
Exit Tasks:
- Ringer Volume [(whatever you like your volume level to be at)]
I am not sure how to do your "Phone Idle" condition as I have never had to use it before - I suppose that you could always set another 2 profiles:
1 to countdown to 30 minutes which then sets a variable (say, "Timer") equal to 1 and has a context that tells it to run the profile every time "Timer" = 0; the other profile would have set "Timer" = 0 every time the Display turned on. You could then add a "Timer [matches 1]" context to your original profile, and that should work.
This seems like a rather roundabout way to do it, but that's what I can think of at this time. Let me know if you would like me to post up the instructions to do that though.
If anyone else has a better idea, let me know!
I think when using tasker (particularly with lots of profiles) It is important to keep things as simple and clean as possible. Otherwise if certain tasks start becoming too dependant on other tasks it will either reduce your ability to program new tasks or Things will start going pear shaped.
For Example. If I were to program the phone with Wifi-Near to Enter silent mode It will affect any other Tasks I have going with the Wifi, Either it being Turn wifi Off Or stop searching or Even If My network goes down. I think (if possible) it would be better to use a different more non varried method of location if you know what I mean. I think it would go for any other tasks you would want to program as well. Keep things simple and very direct, It will also help you too trace back and find problems if needed later down the track as well.
Daft Templar said:
I think when using tasker (particularly with lots of profiles) It is important to keep things as simple and clean as possible. Otherwise if certain tasks start becoming too dependant on other tasks it will either reduce your ability to program new tasks or Things will start going pear shaped.
For Example. If I were to program the phone with Wifi-Near to Enter silent mode It will affect any other Tasks I have going with the Wifi, Either it being Turn wifi Off Or stop searching or Even If My network goes down. I think (if possible) it would be better to use a different more non varried method of location if you know what I mean. I think it would go for any other tasks you would want to program as well. Keep things simple and very direct, It will also help you too trace back and find problems if needed later down the track as well.
Click to expand...
Click to collapse
whilst it is good to try and keep things simple, sometimes more complex profiles lead to more efficient use of battery. Or sometimes a simple task may need certain exceptions so that it fits around our lives. Remember that Tasker should be making our phones do what we want, how we want it - we want to try and avoid the "i'll get used to it" line as much as possible.
When using complex profiles (or even profiles that may end up conflicting each other), the use of priorities for your task is very important. For example - when my "wifi at home" profile gets switched off, it turns my wifi onto [TOGGLE]. BUT if I leave the cell-tower area near my house at the same time, it tells it to turn wifi onto [OFF]. Since these are conflicting tasks, I have given my wifi [OFF] a higher priority than [TOGGLE], and so Tasker does what I want. As with any programming, sometimes convolution is unavoiable - in those instances make sure that you keep your line of logic clear (some people like to use flowcharts for programming, but i think that's a bit excessive for Tasker - each to their own though!)
is there a way to tell when music is playing?
Sent from my HTC Vision using XDA App
I want to use Tasker to switch off data/wifi when the screen is switched off, then switch data/wifi back on again when the screen is on, but only if they were previously on. Is this possible?
skulk3r said:
Tasks:
GPS [ON]
Exit Tasks:
GPS [OFF]
Click to expand...
Click to collapse
The Exit Task is unneeded. For all On/Off toggles, Tasker returns them to their original state on exit automatically.
Michealtbh said:
I want to use Tasker to switch off data/wifi when the screen is switched off, then switch data/wifi back on again when the screen is on, but only if they were previously on. Is this possible?
Click to expand...
Click to collapse
As far as I know, your phone will automatically switch off your wifi when you have your screen off (unless you installed a mod/app that forces it to stay open). I believe that Tasker (by default) will switch it off unless you have put wifi to [TOGGLE]. However, if you wanted to be completely sure, you can always use variables.
ie: you can make a profile that sets a variable (say, "WifiON") to 1. and then when you make a "screen on" event profile, make it Wifi [ON] IF WifiON [matches 1].
Izkata said:
The Exit Task is unneeded. For all On/Off toggles, Tasker returns them to their original state on exit automatically.
Click to expand...
Click to collapse
Oh wow, I must have completely missed that! Thanks for the help =] Feel free to continue to share/post guides.
sundar2012 said:
is there a way to tell when music is playing?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
I haven't found it on Tasker - but then, I don't really know Tasker as well as some other people here. You could always try to use the launching of the Music app as a context, or use the headphones plugged in event as a context?
If you haven't been to the google group for tasker, you should go NOW. It is moderated by the developer himself. He answers questions every day, including updates on what to expect on the next version. There are dozens of users on that group that can and will help you with the infinite number of things Tasker can do for you.
Head over to http://groups.google.com/group/tasker/topics?gvc=2 and read a few pages. It is likely that your questions have already been answered.
Whenever Ive previously tried Tasker it savages my battery...
All I had it doing was at a certain time turn on mobile data, open rss reader (so it updates) then play a beeping .mp3
Just wanted a flashy alarm clock to get to grips with it. but always see 25% less available battery with it installed than without...
duckredbeard said:
If you haven't been to the google group for tasker, you should go NOW. It is moderated by the developer himself. He answers questions every day, including updates on what to expect on the next version. There are dozens of users on that group that can and will help you with the infinite number of things Tasker can do for you.
Head over to http://groups.google.com/group/tasker/topics?gvc=2 and read a few pages. It is likely that your questions have already been answered.
Click to expand...
Click to collapse
oh wow. thanks for that. I'll chuck it up on the first few posts.
Would still like this to be a share-some-love discussion though!
Coedy said:
Whenever Ive previously tried Tasker it savages my battery...
All I had it doing was at a certain time turn on mobile data, open rss reader (so it updates) then play a beeping .mp3
Just wanted a flashy alarm clock to get to grips with it. but always see 25% less available battery with it installed than without...
Click to expand...
Click to collapse
what is your device? I have seen improved battery life with my HTC Desire Z - I usually only had about 30-40% battery at the end of the day with light texting, some calls and web surfing. Now i have about 60%! Although that's not completely Tasker - I do have SetCPU to underclock during screen off times.
Did you turn the mobile data back off?
Yep, had it to turn off mobile data and then enable wifi when I close the news app.
(I usually keep wifi on 24-7 if Im at home that day).
I say it took about 25% of my battery because I usually get 36 hours with everything on (except BT) and with tasker going I only got slightly over 24hours... (maybe like 26 or 28?)
Its a HTC Hero btw. Maybe ive just tuned it so that its at its optimum battery for me and my situation? I just think its weird that whenever I use Tasker within the next 2 days the battery has dived down to 20 something hours from around 35+

New to the thunderbolt? Look here before posting

I'm hoping this helps out I know with all the hype of the Thunderbolt there's quite a few users new to android that see how people are customizing and wanting to know, and repeat after repeat of questions and bringing a lot of unneeded hostility around here. Feel free to add what ever you guys think is something that is repetitively brought up. I'm running kind of short on sleep, so if I left anything out let me know!
Remember to always follow instructions and SEARCH SEARCH SEARCH before making a new thread
Remember to always Wipe Data/Factory reset/Wipe cache/wipe dalvik cache to insure a clean, fresh bug free install.
Also ALWAYS make a backup of what ever current rom before flashing a new one
Lastly, DO NOT treat the devs with disrespect they are losing sleep/girlfriends/what ever to give us these roms and kernels and everything else for free. If something gets messed up do not come at them with hostility or it will only be returned. The people of XDA will HELP you, but only if you've searched and tried to help yourself first. Also don't forget to donate to the dev's from time to time for their monster/beer/hookers and all their time and effort.
Thunderbolt Root Users Dictionary:
http://forum.xda-developers.com/showthread.php?t=1143188
Back up Date before rooting
http://forum.xda-developers.com/showthread.php?t=1193901
How To Root your Thunderbolt
http://forum.xda-developers.com/showthread.php?t=996616
How to Root via Mac OS
http://forum.xda-developers.com/showthread.php?t=1011623
REVOLUTIONARY ROOTwww.revoultionary.io
Easy Auto Root:(Although this is not the recommended way, I've used it before and had no issues.)
Video guide:
http://www.youtube.com/watch?v=yQYoeFrJ1Jk
Download links
TB Auto-Root : http://www.multiupload.com/NOK55G17MZ
HTC SYNC : http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/HTC-Sync-81096.shtml
Lost data after rooting? Try these steps
oneders65 said:
This is what I did.
1.) Flashed my phone back to Stock S-ON usine this link.
http://forum.xda-developers.com/showthread.php?t=1009423
when you reboot the phone make sure you wait until you get a 3G/4G signal. If you start the process of setting up your phone to quick it will cause your phone not to activate the data connection.
2.) ROOTED my phone and at each boot made sure I had 3G/4G connection before setting up phone. (Downgrade and Upgrade).
3.) This let me keep my data connection all the way through.
Credits
Scotty2, jamezelle, jcase, and all of Team AndIRC
Testers, especially ProTekk and Trident
Thanks to scotty2 for WPThis
Busybox was pulled from a CyanogenMod ROM, source should be available here
psneuter was pulled from somewhere, credit to scotty2, source here
All firmware credit goes to 911sniper
Jaroslav from Android Police for editorial help
dbzfanatic
Click to expand...
Click to collapse
How To UNROOT your thunderbolt
http://forum.xda-developers.com/showthread.php?t=1009423&highlight=Un+root
To help decide whether you want Gingerbread or Froyo
Differences between Gingerbread and Froyo
http://androidheadlines.com/2011/01/differences-between-android-2-2-froyo-and-2-3-gingerbread.html
ROMS and Kernels:
http://forum.xda-developers.com/showthread.php?t=1081930
Team Mikmik aka Gingeritis ROMs since people don't know where they went
http://www.themikmik.com/forums/viewforum.php?f=271
I see CyanogenMod around what is that?
http://wiki.cyanogenmod.com/index.php?title=Main_Page
I installed a GB rom and all my texts time stamps are off
https://market.android.com/details?id=com.mattprecious.smsfix&feature=search_result
Activate>use phone time has fixed every issue with this for me!
Radios:
http://forum.xda-developers.com/showthread.php?t=1048128&highlight=radio
Thunderbolt Themes and Apps:
http://forum.xda-developers.com/forumdisplay.php?f=944
How to help Improve battery life (Courtesy of Guitarchris123):
If you easily get a full day's use with stock settings, then ignore this. But the ThunderBolt is a powerful 1GHz smartphone made by HTC with a fairly small stock battery, large 4.3" screen, LTE capability, and Sense UI, so battery life may be a concern to you. There is no magic app or single technique that will make your battery last all day with heavy use, but if you utilize some of the following tips you WILL notice a significant increase in your battery life. Everyone's use is different, so 6-9 hours on one charge may be enough for some while others need 12-15 hours. Some of these may not be necessary, appropriate, or desirable for all users, so just pick which ones work for your purposes and preferences. You might prefer to keep using some of the particular features mentioned, as the benefit for you might outweigh the minimal savings in battery life. The point of this is to show people how to disable or limit features they don't need, not force them to shut down everything the phone was built to do. Feel free to add your own suggestions as well or ask any questions about the techniques.
1. Settings: (use an app or widget that helps you quickly toggle them, eg. built-in widgets, or from market such as Elixir, Quick Settings, or MySettings)
a. Screen –go to settings/display, turn down Brightness (20-30%), set Timeout to 30 secs, manually turn off by quickly pushing top button when not using anymore (instead of waiting). I have personally found that I like setting timeout at 1 min better, and manually turning off the screen with the top button every time I am done using it before I put it down or away in my pocket, that way it doesn't waste itself timing out or shut off on me when I don't want it to yet.
b. GPS – always turn off when not using, and plug into car charger (or car dock if you have one) during extended use
c. Bluetooth – always turn off when not using
d. 4G – always turn off when not using, only use when you need the speed, (the TB will get a toggle either in an update or in app form at some point, in the meantime there are several methods to accomplish this)
e. Mobile hotspot – always turn off when not using, plug into charger when in use if you can
f. WiFi – turn off when not near a WiFi signal for an extended period of time, but always use when available (faster than 3G, uses less battery), go to settings/wireless & networks/WiFi settings, press menu button and tap Advanced then WiFi Sleep policy and select“Never”, this sounds counter-intuitive, but it actually uses less power because when WiFi sleeps 3G or 4G wakes up to sync, get email, and retrieve other data (WiFi connection disables 3G/4G). Also uncheck Best WiFi Performance if its checked.
2. Background/wallpaper - use a static image instead of a live wallpaper (but these are cool, so use one if you really want to, they only drain for the short amount of time you are looking at the launcher screens). Many say the live wallpaper drain is minimal, but I noticed a significant amount while using a live one so I went to static. Have any of you tried both and noticed much of a difference yet?
3. Window animations – go to settings/sound & display/animation and select“no animations”
4. Keyboard vibration – turn off vibration function (haptic feedback) for when you hit a key (helps with speed too), go to settings/language & keyboard/touch input/text input and uncheck vibrate when typing, you can disable haptic feedback in other areas of the system by going to settings/sound, and uncheck vibrate feedback
5. Notification lights – unless you really want/need to know when something happens on your phone when you are not looking, go to settings/display/notification flash and uncheck all the boxes
6. Vibration – unless you really want this function, go to settings/sound, and uncheck vibrate
7. Monitor battery use - go to menu/settings/about phone/battery use, this will show you what is eating the most battery, uninstall troublesome unneeded app, use Running services widget by going to shortcut/settings (helps identify processes running in the background and foreground), if you want more detail check out SystemPanel in the app market, if you want to be alerted to "rogue" apps check out Watchdog Task Manager in the app market
8. Disable“always-on mobile data”– go to settings/wireless & networks/mobile networks, uncheck “Enable always-on mobile data,”you will still receive emails, texts, and phone calls, as well as internet usage, but it may cause connectivity problems in some third party apps (use manual refresh feature when opening apps to update online data)
9. WiFi and 4G network notifications – go to settings/wireless & networks and uncheck Network notification box (so phone will not constantly scan to look for open networks to tell you about)
10. Background data – if you are not using Google life-management services, go to settings/accounts & sync and uncheck Background data box (so that apps cannot sync, send, and receive data whenever it wants to, even if not currently using them). Add a homescreen shortcut to quickly toggle this (allows you to update/sync only when you want/need to).
11. Auto-sync – uncheck Auto-sync in settings/accounts & sync, or at least limit what apps are set to sync, it is better to manually sync/update/refresh in the app when you open it (set to update at launch), set update/notification frequency (polling schedule), if you do not want to turn off auto sync, just change widget or app update/notification frequency (refresh interval) in settings/accounts & sync to 30 mins or 1-2 hours, or better yet set it to update at launch, useful for Facebook, Twitter, Flickr, news, weather, Google apps, and stocks, be sure to manually sync/back up your contacts every once in a while in case you lose your phone or break it
12. Email – change sync option in settings, set email check frequency to 30 mins or 1 hour, or as items arrive, or better yet set it to never and manually refresh when you want to check/read your email
13. Camera app(s) – make sure they are not running in the background when not in use, exit/close when done
14. Video chat app(s) – make sure they are not running in the background when not in use, exit/close when done
15. Streaming app(s) – make sure they are not running in the background when not in use, exit/close when done, try to limit use or plug into a charger during use if you can
16. Google Talk – press Menu then tap All apps/talk/menu/settings and uncheck automatically sign in, make sure you exit the application by going to menu/more and selecting sign out when you are done (exiting the app by pressing home or back keys will not sign you out), if you want to receive IMs just open the application again
17. Adobe Flash Player – open browser, hit menu key, go to settings/enable plug-ins and set it to“On demand”(this way the browser only loads flash content when instructed to do so)
18. Update apps – hit menu key and to go My Apps to check for updates, even if you have selected“update automatically”because some apps require you to manually install updates (apps often get updated to use less power)
19. Location settings (updated) – go to settings/location settings. It is ok to have all of these checked, because it is the apps that use the GPS and consume power, not having these settings selected. GPS is only active when apps using it are in use.
20. Task killer – do not use them, uninstall if you currently have one, can harm phone and consume battery, just use back arrow key to exit apps instead of home key, simply monitor rogue apps instead and uninstall/replace. These are especially bad on pre-installed apps and services (many things rely on each other), so never "auto-kill" or "kill all." If you must use one, only use it on apps that you have installed that are misbehaving, otherwise let Android do it on its own.
21. Anti-virus – do not use them, uninstall if you currently have one, only download and use periodically or when you suspect a problem, do not download suspicious apps (check reviews and rating in market first)
22. Ad blocker – do not use them, uninstall if you currently have one
23. Battery meter accuracy – go to data/system and delete“batterystats.bin”after you have charged your phone to 100%
24. Tasker – can be used to automate settings (eg. based on time of day or app launched)
25. Juice Defender + Ultimate Juice – can be used to automate settings (eg. based on time of day or location)
26. Screebl - keeps backlight on while holding phone in "use" (vertical) position and turns it off when laying flat
27. Rebooting - reboot phone every few days
28. Delete unnecessary apps – determine which apps you do not need or use anymore and uninstall them, determine which apps you keep are causing the most battery drain and see if a comparable replacement from the market will do better
29. Widgets – turn off animations, do not use too many of them (choose them wisely), and delete unnecessary ones, they pull data in the background. At least make the interval/frequency of sync/updates longer for the ones you have. It may be better just to open some apps themselves instead of using the widget. Disable auto-updates on HTC Weather widget or at least set it to every few hours, manually update by tapping update icon on bottom of widget. Note that widgets that display battery, CPU, and memory utilization consume some power because they are polling the system for information.
30. No service – turn off phone or go into Airplane mode when you are in an area that does not have cell service
31. Chargers – have them handy at home, at work, and in car, and plug in when available. Try to get a 1A charger (same as included wall charger), many cheap aftermarket car chargers are only 500mAh and will not be enough to handle the GPS. VZW's car charger is 750mAh.
32. Rooting – (there are a lot more techniques that can be used with a rooted phone, such as removing bloatware and underclocking when then screen is off, but I will save that for a later thread)
33. If all else fails, buy an extended battery or have a spare handy just in case
Update1 - I came across another technique, it sounds a little strange but it apparently came from HTC regarding the EVO...some users appeared to have experienced gains from it:
34. "Calibrate" battery - (1) Turn device ON, charge it for 8 hours (or until LED turns green), (2) unplug and turn it OFF, plug it back in and charge for 1 hour (or until LED turns green), (3) unplug and turn it ON, wait 2 minutes, turn it OFF, plug it back in, and charge for 1 hour (or until LED turns green), (4) unplug it, turn it ON, and use normally. Repeat once a month or so.
Update2 - I found a few more things to suggest
35. Blockbuster app - open app, download update from market, then go to menu/settings and tap "disable movie updates." The app is set to automatically periodically scan for updates by default, and requires the new update to turn this off.
36. Friendstream - delete the widget from your home screen, open app and go to menu/settings and select update when opened. This way it isn't constantly refreshing, but rather only does so when you want to look at it by opening the app.
37. Signal strength - whether 3G, 4G, or WiFi, if whatever you are trying to connect to has a low signal strength the TB's battery will be draining trying to connect. Keep an eye on your connections, and try to be aware of when you are in poor signal areas and toggle off or switch connections if you can. Also keep in mind where your "fringe" areas are (ie. bounces between 3G/LTE/1X)
38. Apps - not all 3rd party apps are optimized for the TB, be sure to read reviews/ratings in the market to see what problems other users have had with them. Monitor your apps to see if any of them are hogging system resources (eg. CPU, RAM) and draining your battery, and delete or replace them accordingly. And remember to set the sync/update/notification frequency at longer intervals in settings within the apps that connect to the internet frequently.
39. Power saver - go to settings/power, and check enable power saver, the go to power saver settings and tweak (basically does a lot of the things we've talked about here for you automatically when you get low on battery, in case some things are left on or on higher settings than needed)
Another Battery Saver 3g/4g toggle switch:
https://market.android.com/details?id=net.andirc.lteonfoff&feature=search_result
What is SetCPU and where do I get it?
http://forum.xda-developers.com/showthread.php?t=505419
Just because it's free doesn't mean you shouldn't donate a little something to the dev!
Commonly used widgets
http://forum.xda-developers.com/showthread.php?t=761517
How do I customize my home page and change the docks and such?
https://market.android.com/details?id=org.adw.launcher&feature=search_result
https://market.android.com/details?id=com.fede.launcher&feature=search_result
This is a nice and concise introduction. I needed this last week!
Upvoted for the phrase "beer and hookers."
One stop shop very nice!!!!....
Sent from my ADR6400L using XDA App
Thanks for that. I am going to have my wife read this so she can understand more on what to do with her phone, since it is not rooted and still has all that bloatware.
My phone is rooted and I have been testing with 4gLTE off/on, and seriously gained 5 hours when 4gLTE was turned off.
17-18 Hours Almost made it to 19 hours - 4gLTE off - This is with moderate use call/text/IM and some gameplay.
13-14 Hours - 4gLTE on - This is the same as above.
Trying now to talk my wife into letting me root her phone, but alas it is her phone and her choice.
Also if you want to update there is a 4G/LTE app in the Marketplace for the toggle - just search in the Market - LTE - it will show up as a Red Lightning bolt in a grey Circle.
Excellent post!
scubaskm said:
Thanks for that. I am going to have my wife read this so she can understand more on what to do with her phone, since it is not rooted and still has all that bloatware.
My phone is rooted and I have been testing with 4gLTE off/on, and seriously gained 5 hours when 4gLTE was turned off.
17-18 Hours Almost made it to 19 hours - 4gLTE off - This is with moderate use call/text/IM and some gameplay.
13-14 Hours - 4gLTE on - This is the same as above.
Trying now to talk my wife into letting me root her phone, but alas it is her phone and her choice.
Also if you want to update there is a 4G/LTE app in the Marketplace for the toggle - just search in the Market - LTE - it will show up as a Red Lightning bolt in a grey Circle.
Click to expand...
Click to collapse
Ah, very good! I forgot about the toggle switch. Added and thanked!
Lots of good info, thanks
Awesome, thanks for the tips, should make my experience better.
This is a great post!! I def used some of the battery saving techniques.
Awesome information - wish I would have found this when I first bought my Thunderbolt... better to learn from others than trial and error method sometimes. lol
Thank you for the info... Somw i knew some i didn't... Great one stop for quick reminder..
Sent from my A05PTH3ORYB0LT using Tapatalk
Good stuff. Thank you.
Great post. Just one question. Why do ad-blockers use more battery? Wouldn't it decrease data use and thus battery since it prevents ads from being downloaded?
Thanks for the info!!
def a one stop shop. thank you. info much needed.
Sorry kind of falling behind on updates. Anyone think anything needs to be added???
ScoobarSTI said:
Sorry kind of falling behind on updates. Anyone think anything needs to be added???
Click to expand...
Click to collapse
may want to add in the "how to unroot for people who used revolutionary" thread
http://forum.xda-developers.com/showthread.php?t=1310014&highlight=revolutionary
Rooted with revolutionary...lost my gps CM7 ROM
Rooted my TB...with revolutionary, installed CM7 ROM. Now my gps doesn't work. Any ideas. Any advice?
I think CM7 has issues with GPS.
Thanks !!
Using Juice Defender lets me go a day and a half without charging. It's awesome !

TaskPanel, Autostarts, and when to use a task killer

Please dont 'quote' this as it VERY lengthy, just copy and paste the this first sentence.
I wanted to write up a definitive posting on task killers as I think they are way to often misused and misunderstood and I am getting quite tired of reposting this same information.
I use a task killer called TaskPanel XTRA (its free). BUT, I ONLY use it for killing tasks that are misbehaving (an app that has slowed down or nearly hung your phone or an app that is CLEARLY causing battery drain or sending copious data via your cellular connection). If an app continues to misbehave, switch to a different app that offers the same functionality, do NOT continue to use a task manager / task killer to kill an app continuously.
Task killers should NEVER be configured to automatically kill an app (as I will explain later in the post) and should NEVER be used to manually kill apps UNLESS it is a small emergency (as in major battery drain, copious cellular data, massive processor usage/memory usage preventing the user from using the phone normally).
Android is a VERY powerful operating system which gives YOU THE USER the control to manage your phone (hence the major reason I dont like the IPhone or Windows Phone), but with that control comes responsibility. As I will explain shortly, Android has many built-in features in place to help you manage your phone's precious memory. While there has been much nonsense one way or the other as to whether task killers should be used for anything other than a misbehaving app, I tend to listen to the creators of a product before I listen to some jackass who bases a decision on pure speculation or a 'feeling' he has. I can tell you that I have not used Task Panel in the last 4 months (with the exception of I believe Pandora which I used about a month ago and could not find a way to actually exit the app - guess what...this app is no longer on my phone - both because of privacy concerns that recently came up about Pandora AND I dont keep apps around that I cant manually exit the app cleanly).
For a VERY good write up (with a brief 'readers digest' summary at the bottom with plain English bullet points, since most of the article is taken directly from the Android developer FAQ and is very techy for non-programmers), have a gander thru this.
http://geekfor.me/faq/you-shouldnt-b...-with-android/
And for the FAQ they quote most of the above article from (but I do recommend you read the above FIRST as it will give you some context - much of the reasons are 'cherry picked' from different areas of the FAQ to help you understand why this is important and give you the information that is relevant to the discussion as to why task killers are not a good thing). All of the relevant information is in the page that will load up (in the rightmost panel / frame) so you dont need to click any links to read the relevant article. I am only providing this link as a reference to the original source material so you dont think I am just making this up - this is straight from the horses mouth so to speak (again, for most people, dont read this FAQ, read the one above first to get context and then if you feel you want to know more, read this link below).
http://developer.android.com/guide/t...damentals.html
Alright, enough about task killers, now to deal with how to manage those pesky apps that seem to always be running (even if you never started them) and how to keep them from starting up using a method that will NOT affect Android and how it manages your memory but will keep your phone in peek performance.
For managing the conditions when an app starts up, use an app called Autostarts, do NOT use a task killer to 'auto kill' tasks. Autostarts literally allows you to control the conditions of when an app starts.
Android has built in functionality for managing the memory footprint of various apps and will manage your phones memory quite nicely. Much of the functionality of the built in memory management came in Android 2.2 (also sometimes referred to as Froyo) and is really quite good 'if' you allow the phone to manage processes rather than just quickly killing everything.
There is a reason you can no longer just 'kill' system level processes, Google wants you to allow Android to 'learn' how to manage itself.
Android has a very powerful feature, the ability for app writers to start their app when certain conditions occur. The problem with this powerful feature is, often times, apps are bloated or poorly written, many times being started for any little thing your phone does (wifi on or off, Bluetooth on or off, location changes, screen on or off, USB connected, cellular connection, headphones connected, a cow fart, a bird poops, etc.). Even Google itself has been guilty of this, Google Maps (until recently) would be started in nearly 20 different conditions as a background process for very trivial things and was a major source of battery drain (it still is to some extent). This is where Autostarts comes in. Use Autostarts to control the conditions of when/if an app will start up automatically based on a certain condition.
Most ancillary apps (apps that are not integral to the core functioning of the phone - although it is probably more appropriate to refer to these as 'user apps', it isnt quite accurate because many 'system apps' (which in the technical description are apps that are installed with the rom) are not core apps either. For example, many roms come with Youtube pre-installed (meaning you do not manually have to go to the market and install them) which is not integral to the core functioning of the phone), these apps do NOT need to ever start under ANY condition for that app to function normally. The only considerations for an app starting itself would be the widget updating, the app has a scheduled event (for example, an alarm, a podcast client downloading podcasts at a certain time of day, Titanium backup performing a scheduled backup, etc.), or an app that has to be running in the background to perform a task when certain conditions arrive (for example, an app called Sanity needs to be available to run and monitor for incoming/outgoing phone calls so that it can start itself and perform its function during a phone call).
Using Autostarts, I have disabled nearly 80% of EVERY condition that all NON-system apps start under (I havent counted but for 70 apps, this is probably 55 apps or so that I disabled EVERYTHING these apps would start under). This includes Google Maps (yep, even Google is guilty of having an app needlessly running when it doesnt need to).
By taking control of your apps (in essence, disabling as many apps from 'auto starting' until YOU the user launch the app manually) and properly quitting an app when you can (within the app, find a way to click a 'quit' or 'exit' button to allow the app to remove itself from memory) rather than just allowing apps you launch to run in the background, you can save yourself massive amounts of battery life, limit cellular data usage, AND allow Android to properly manage itself.
Think of it like this, if I were trying to learn something but you (the user) kept doing it for me, Id never learn. And if you read the above linked article, you will begin to understand why there is more to this than just allowing Android to learn.
To give you an idea, using Autostarts to disable any non-system app that does not need to be running, if I am using the stock battery, I can run my phone for 2 days pretty easily if I simply turn off cellular data, Wifi and Bluetooth when I dont need it, maybe even stretch it to 3 days.
My ram usage is almost always around 50% (150 MB free) on a fresh reboot (around 2 minutes to allow the phone to stabilize) and it remains this way during the day because I exit apps when I am done using them, even tho I have around 80 apps installed, and I dont allow apps to just start themselves because they sensed a fart in my general direction.
For those of you that use a Windows PC, you can think of Autostarts as a proper 'msconfig'. Keeping your PC clean of apps when windows starts keeps your PC running much more smoothly. Autostarts takes this to the next level and keeps apps from ever starting in the first place rather than a task killer 'auto killing' a task, the app restarting, the app getting 'auto killed' again by the task killer, the app again restarting, etc. (a vicious cycle that both kills your battery because the phone has to crank up the cycles on the processor to both start and stop the app, the power used to write and clear the data written to both ram and 'perma' storage (if an app needs to store any data), and cellular data (if an app 'phones home' so to speak when it initially launches (which is both a cause for additional battery usage to send data and also adds to the amount of data your phone transmits over the cellular network, which is a problem given most cell plans have a monthly data cap).
Autostarts is fairly easy to use but does require root.
The app is $2 and here is a brief synopsis of how to use it:
When you initially launch the app, read any dialog messages that appear and click ok thru them. Then, wait for the app to finish loading (there is a progress bar at the top that will fill with yellow - on my phone it takes about 45 seconds to a minute to finish loading in).
Once it is loaded, you need to configure a few things BUT, you might want to just scroll thru the list of things currently on the screen. These are the 150+ conditions that apps currently installed on your phone are starting up under (dont click anything just yet, just browse the list if you are curious).
Right now, the app is configured to show a list categorized by conditions. This unfortunately is not very helpful. We need to change it to sort this list by apps rather than by conditions (so that we can literally disable EVERYTHING an app will automatically start under rather than scrolling thru every condition).
So, hit your menu button and the top left most icon in the menu that appears is an icon 'Group by application'. Hit that icon and magically, you are now seeing every app. You can now click an app and see all the conditions every app starts under. Neat.
But there is one more setting to change first in order to help keep you from doing something you should not.
(Optional but HIGHLY recommended!) Hit your menu button again (if you exited out of the menu already) and hit the upper right most icon, the 'View' button. Tick the topmost checkbox, 'Hide system apps' and hit the 'Ok' button. This will keep you from disabling anything that 'may' be critical to your phone operating.
Now, exit the menu (the 'back' button on the phone itself).
If you decided not to hide system apps, these will appear in YELLOW. It is probably not a good idea to mess with these unless you know what you are doing. Messing with these can cause a soft brick or make your phone unusable in certain conditions (for example, if you prevent the phone.apk app from ever starting, you will never be able to take phone calls).
Now, start scrolling thru the list (start at the top). If it is an app that does NOT need to run in the background, expand the app by selecting it and starting with the topmost condition that app starts under, tap each condition and in the menu that appears, select 'Disable'. Do this for ALL conditions for each app you want to manage. When you are done disabling the conditions, go to the next app and decide again whether that app needs to run in the background or not.
As a brief summary, to consider whether an app should be allowed to run in the background, ask yourself the following:
Does the app:
a. ...have a widget that you are actually using on your home screen that needs to update? For example, a media player or weather widget should NOT be disabled...
b. ...have a scheduled event such as checking the weather, downloading new podcasts, checking email, etc?
c. ...need to perform a certain task or provide some extra function(s) when a specific event happens (such as recording a phone call when it comes in, an eq when audio is playing, etc.)?
My recommendation is, if you answered YES to any of the above questions, leave all the conditions that app starts under alone (unless you know what you are doing, its best not to mess with it as I will explain in a moment).
If you answered NO to all the above, DISABLE ALL of the conditions that app starts under (again, DONT mess with system (yellow) apps and certainly dont disable every condition for these).
I recommend an all or nothing approach for each app is because if an app doesnt behave properly, it can become a major pain to continue to open Autostarts and try to track down a specific condition you disabled that is stopping / preventing that app from functioning the way you want it to.
Every time you update or install an app, if you remember, try to open autostarts and review the conditions the app starts under. Updated apps often times will add something new and if you have this app completely disabled, it may find a way to start itself again.
And, dont worry, you cant permanently screw anything up (unless you are messing with system apps - get the reason why I recommend not playing with system apps?). If an app stops functioning correctly, just re-enable the conditions that app starts under. Pretty easy.
Hopefully, this is complete enough, I will now just link to this post everytime I need to mention autostarts. I am getting quite tired of posting this same information .
Good information for people. Well done.
Sent from me to you using stuff

[Q] App like Tasker or Llama

Hi.
Since coming from android I've been a frequent user of apps who lets the phone change it's settings due to specific triggers, like turning silent at night and loud in the morning, turning silent when a certain calendar happening occurs, turning of wifi when leaving home etc.
Is there anything like this for using along with windows phone?
Thanks in advance
Pemell
Actually, (some of) this is theoretically possible, but nobody has done it so far. It's also not going to be allowed on the Marketplace; you'd need to use some unofficial APIs.
For example, the DllImport Project already has shown the ability to control the phone's volume. Programmatically muting the phone at a certain time, for example one minute after a meeting is supposed to start, should be pretty easy.
The trick would be to make sure the phone also un-mutes it when the meeting ends. WP7 doesn't (officially) allow third-party software to run continuously in the background, and while you can schedule a time for the software to run, it make no guarantee ot to-the-minute accuracy. There are ways around the official restrictions, but most of them have serious battery-life considerations (although telling the process to sleep for the next 30 minutes * 60 seconds * 1000 miliseconds would probably work without draining battery). Additionally, I'm not sure how much access apps officially have to calendar data, although on interop-unlocked or full-unlocked phones there are varius ways to access that data.
For things other than volume control, like enabling or disabling WiFi (almost completely unneccessary on WP7, the WiFi power management is, if anything, too conservative already) you'd need to find the place in the OS that controls it. Probably just sending SetDevicePower to the Wifi driver would work to disable it, though I don't know if that would show up correctly in the UI.

Categories

Resources