Problem with scheduled tasks - Nexus 7 Q&A, Help & Troubleshooting

I have a rooted Nexus 7 (JOP40D) and am having problems with scheduled tasks not executing:
1. A Tasker (v1.09) profile scheduled to run at a specific time does not execute, even though it works fine in Test mode. I did notice that there is no green light on the "On" button in Tasker (this turned green on my old tablet when Tasker was switched on, but doesn't on the Nexus). The Tasker icon does show in the Notification bar though.
2. Beyondpod does not do its scheduled daily updated of my feeds.
Has anyone else had problems with scheduled tasks?

I've just noticed that the correct Profile name appears in the notification bar when it becomes active, but the actions don't execute (turn on screen, open bookmark, start Beyondpod Smartplay, etc)

Related

Unattended power policy - revisited

Hi,
My application makes use of unattended mode quite well.
this mode however is used to keep the application always in effect and ready to communicate which might consume some battery power.
is there a way to allow the device to get into deep sleep but schedule some periodic callback or wake at schedule to perform a task ?
thanks
Moshe
// get my app for free at http://www.logelog.com/utils
mvalenci said:
Hi,
My application makes use of unattended mode quite well.
this mode however is used to keep the application always in effect and ready to communicate which might consume some battery power.
is there a way to allow the device to get into deep sleep but schedule some periodic callback or wake at schedule to perform a task ?
thanks
Moshe
// get my app for free at http://www.logelog.com/utils
Click to expand...
Click to collapse
you could use the windows mobile notification system for this, this is explained a bit here: http://www.codeguru.com/cpp/w-p/ce/memorymanagement/article.php/c11113
you can use this to,for instance, to set a user notification that is triggered at a specific time and then calls a program that wakes up the device

Tasker - automate your phone

One of the best apps in the Market for android is Tasker. Needless to say what transformation cand your phone get by using this app. You can see that here:
http://tasker.dinglisch.net/
and you can get it from here:
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
I was just trying to find a collection of profiles for O1 and it seems there isn`t one, so why not having it right here.
So let`s get the best from our O1 by sharing the profiles we can use for different tasks. Practically there is no limit to what we can do with the phone using that app.
I also recommend you should post your system configuration because some tasks may not work on some roms, kernels etc.
LET YOUR SMARTPHONE BE SMART!
For people using ICS Roms, go to sttings>language and input method>text transformation result and select Pico TTS so you enable voice on Tasker.
I`ll start with a simple profile to make you phone stop ringing by turning it face down:
For this Context, you would choose State, then pick Orientation. You'll get the options you see at left. For this example, "Face Down" is a pretty deliberate action you take with your phone.
For the tasks, you can add "Bluetooth" and "WiFi" from the Net menu, set to Off, "GPS" from Misc set to Off, and set the volumes for "Media Volume" and "System Volume" to 0 from the Audio menu. If you'd like, you can re-order the tasks in priority by pressing and dragging them up the chain. In this case, I moved the volume-to-0 tasks up higher, since silencing the phone was the most important thing to do. Hit Done, and you're all set.
And there you go! Just flip the phone on it`s face to make it silent.
All the profiles listed below can be found here
http://tasker.wikidot.com/profile-index
Simple
Use different ringtone for callers not in your contact list
Button to turn 3G Data Connection on / off
Wi-fi Button for home screen
Full silent mode button (turns off ALL sound including media and notifications)
Battery icon on home page that shows exact %
Birthday alert from google calendar.
Auto Respond to Received SMS while driving.
Speak Weather in the Morning
Add Calendar Entry Based on another entry (rename if necessary
Lock An Application
Start the Day with a Particular Application
Battery Full Alert
Launch Music App When Headset Inserted
Launch Menu of Music Apps When Headset Inserted
Keep screen awake when using the keyboard
Speaking Clock for Android 1.5
Control Keyguard (scroll to unlock) when Power is Connected/Disconnected
Keep Multiple Backups of Tasker Config
Change Ringtone on Every New Call
Mute in Meetings
Hold Ringer Volume Down
Auto-Respond To SMSs At Night
Change Volume Levels during Different Times of the Day
Check Data/SMS/Minute Usage With Carrier While Sleeping
Temporarily max brightness of screen during Incoming Call
Auto (Silent) Sleep Mode with Exceptions
Always ring loudly for call from important contact
Blocking Calls
Camera Gesture
Automatically turn off Bluetooth
Connect2Wifi: task with loops and feedback if connected or not
Intermediate
This will retrieve your location then post to xml file and send location via sms 1/9/2012
Find weather for next two time periods for your current location and speak it. (Using HTTPGet)
Keep volume low when using headphones
Repeat Caller Name
Power Plug In - Choose Car/Home/Night Mode
Generic Toggle Widget
Open the keyboard and start texting
Set volume then Launch menu of music apps
Alarmclock without Snooze
Alarms with Snooze and Vibrate
Geburtstagserinnerung (German)
Car Locator
Notification Reminder Pulse
Locate your phone using SMS and google maps
Lock your phone and locate it by SMS and sound
A full talking clock
Act like a docking station when plugged into USB
Auto answer calls when your bluetooth headset is connected
Extended phone profile changer with Notification and Widget
Turn your cell phone into a Voip phone
Create KML files for Google Earth
Enhancing battery life using Tasker
Missed Notification Reminder
LocateMe Log, Track And Emergency Button
Daily Reminder SMS e.g. for birth control
Total Wifi and Mobile Data Sync Control
The Ultimate Alarm Clock
Boost SD Card Read Cache
Automatically Send an "I'll be Home Soon" SMS
Nandroid Backup whilst you sleep with file management
Keyguard Delayed Enabler (with ready-made task for a Keyguard toggle widget)
Gmail/SMS/Call Notifications with "Minimalistic text"
The Deep-Sleep-Detective
Text me when you get home!
Juice Defender inspired Battery saving
Clock in and Clock out - create a calendar entry with event start and event end times
Disable keyguard when you are at work/home
Advanced
Record Phone Calls (legal)
Periodic Data Check (Juicedefender Replacement)
Periodic Data Check with Widgets (Juicedefender Replacement)
Creates profiles similar to S60 devices and changes them depending on variety of factors
U.S. Navy Ships Bells (Using Tasker's OR '/' feature) * Pattern Matching *
Changing background image depending on current weather (Using HTTPGet)
Find weather for your current location automatically (Using HTTPGet)
Set up an alarm clock that adapts to inclimate weather (Using HTTPGet)
Aumatically start / stop your WIFI when you are at home with limited battery use
Enable WIFI when within cell tower range for multiple access points, minimal battery use
Balance wifi usage and data check (Update)
CPU control profiles for governor and frequency
Tasker as an Automated Task Manager
Blackberry-like Sound Profiles
Automatically change display brightness while plugged in depending on time of day
Automatically respond to texts with street address
Expert
iTANCard
Am I the only one who thinks that an app doing something at absolutely anything you do with the phone, this is not draining, it just uses 100% of the CPU when you flip the phone...
And lets not mention that, to make phone silent when turned upside down means it has a permanent wakelock, and sensor constantly finding what is the position etc...
At the end, you will have a very smart phone, but you won't be able to answer a call, because when answering phone must change all the settings, and then reboot, and... whatever, this thing sucks! Just like juice defender, but it is oriented 100% on losing performance and battery and control over the phone...
Oh you can try to make it do a factory reset every day if it is so smart
.........
vlt96 said:
Am I the only one who thinks that an app doing something at absolutely anything you do with the phone, this is not draining, it just uses 100% of the CPU when you flip the phone...
And lets not mention that, to make phone silent when turned upside down means it has a permanent wakelock, and sensor constantly finding what is the position etc...
At the end, you will have a very smart phone, but you won't be able to answer a call, because when answering phone must change all the settings, and then reboot, and... whatever, this thing sucks! Just like juice defender, but it is oriented 100% on losing performance and battery and control over the phone...
Oh you can try to make it do a factory reset every day if it is so smart
.........
Click to expand...
Click to collapse
Read first, post after. Tasker app does not keep your phone awake as most tasks are set to trigger while it is awake and the display is on. Like the task to open automatically wifi when you open your browser or xda app and set it off after closing those apps. And when setting triggers based on power settings or time, the wakelocks are not constant, being activated just like alarm wakelocks. In fact you can set smart alarms too. Or actions based on calls/sms/mms received from specific ppl at specific times etc., or actions based on gestures set by you, proximity sensor ...
Tested wakelocks with BBStatus and no wakelocks, the phone goes to deep sleep. Tested cpu freq with Cool Tool and max freq is used only when starting the triggered app or doing the task set. In the rest of the time the freq oscillates normally.
And please do not make comments on any app based on how other apps behave. Try it then post.
If anyone is using this app, post your profiles or the ones you think are usefull.
nice thread! let me share my fav profiles
@vlt
Yea, you are the only one who thinks it because otherwise the app wont get 4-5 stars at always if it is battery consuming also, just because the developer had explained clearly how the tasker consume battery. its in the userguide inside and im vrry satisfied with it.
@voyager
tasker is just amazing to me ive been using it for long because it really makes my phone even smarter.
undoubtedly yes, using sensors as a context is the most battery comsuming but we can Limit the use of its detection by ourselves. not mentioning its pre-installed functionality that it wont detect when screen off, for your silent mode thing we can add another context - how about only when our launcher is in the foreground? that makes things even easier
now im glad to share my most frequently used profiles (not giving you guys my private ones XD) including
- vibrate 0.3 second with a little toast msg when power is plugged
- vibrate 0.3 sec and show how much battery left with toast when power is unplugged
- weekdays auto vibration mode in the morning
- auto rotation only on browser
- temporarily disable lockscreen when specified apps are opened (my default set for u is calculator)
- CM7 camera anti-flickering (good for those who OC with stock kernel )
- brightness 80% when camera activates and restore after exit
although gestures and proximity sensor contexts are SUPER COOL, other than the time i show off to my friends xD, ive always been avoiding the sensors to eliminate any chances of over using them and cause batteries.
so, i guarantee my profiles are super battery friendly....
hehehe you must be tempted to download immediately? do it! tell me what do you think of my favourite profiles which are always activated on my P500
to import, unzip my zip and u get xml files. go to tasker, long press "profiles" tab, import, choose the xml. done!
lol dont worry abt the little tip, Miasmic never gives malicious tasks
Happy tasking!
Sent from my LG-P500 using xda premium
I suppose camera anti-flickering profile uses the OC task and downclocks the phone when opening camera right?
Nice ideea!
voyager20021 said:
I suppose camera anti-flickering profile uses the OC task and downclocks the phone when opening camera right?
Nice ideea!
Click to expand...
Click to collapse
yup!! very handy, then the clock goes back up when leaving the cam
Sent from my LG-P500 using xda premium
Miasmic said:
yup!! very handy, then the clock goes back up when leaving the cam
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
How do you change OC on it?
.........
Set a profile which is based on a context on which the task will trigger, for example when open camera, set task to set clock to 600 Mhz, then set exit app task to reset the clock back to your usual OC freq.
You can play like that with almost everything on you phone.
I use a profile to like turn in gps when i open maps and automatically close it later
Sent from my LG-P500 using xda premium
karthiknayak94 said:
I use a profile to like turn in gps when i open maps and automatically close it later
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Doesn't it have an option for network location too?
karthiknayak94 said:
I use a profile to like turn in gps when i open maps and automatically close it later
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Yap! Also can set to start wifi/data when opening browser and disconnect when closing it etc.
vlt96 said:
Doesn't it have an option for network location too?
Click to expand...
Click to collapse
Look under task>net. If not there then no.
I can't get it executes the task, the notification keep saying no active profiles. Imported missmic XML profiles (thanks to miasmic). please help, thanks....
Try setting some simpler tasks like start wifi when opening browser. Miassmic`s tasks can be set manually too.
Here`s another profile
Enable WiFi when at Home
Context: State –> Cell Near
Tap the “Start” button and move around your home as your area may be covered by several cells (the “<” sign represents the tower you’re currently connected to). You may stop it after few minutes.
Action: Net –> WiFi
Another profile which sets up a shortcut on home screen for taking instant photos, without opening camera app (point and shoot)
Long-press on the Home-screen > Shortcuts > Task
Action: Media –> Photo Series Time (So that new photos don’t overwrite the previous one and every new photo will have the time attached with its name.)
If discrete is checked, there will be no sign of the picture being taken.
Profiles i use
I attached some of my usual profiles.
What they do:
Missed call> after any missed call with display locked the phone vibrates 0.7 sec than waits one minute and says "you had one call x minutes ago" every minute for 30 minutes. Profile must be used with display unlocked profile
Display unlocked> if you had a missed call and unlock the phone the missed call profile stops
Charging>when connected to AC/usb (can be set to either or any) phone will vibrate 07 sec and say "charging"
Battery full>when connected to AC/usb (can be set to either or any) and battery reaches 100% the phone will say "battery full"
Profiles can be improved or modified easy to reach anyones expectations.
This application has a few problems like battery drain .
Another one is UI....it's a bit unfriendly by the way the cool thing is that you have that if :
if condition1 = or anything with condition 2 then execute .
Yap, a bit unfriendly, but once you now how...
Hi,
On cm 7.2, how do you set tasker to enable or disable pattern lock?
I'm on cm 7.2 since yesterday on my Desire. It's my first time on cm, actually. Before that, I used to be on HTC Desire specific roms. I'm rooted.
I've been using Tasker for quite a while, and by now I have a number of profiles that make me feel my phone is smart
Now, the big problem with Tasker is that it spoils you by doing all sorts of things automatically for you. And when a profile no longer works and you have to do things manually, you get really annoyed
And so, in that context, I have the following profile :
Profile : Home
Context : Cell Near
Variable Set %HOME to on
Wifi Set On
Secure Settings Configuration Pattern Lock disabled
Previously, before I switched to cm 7.2, this used to work perfectly, with GO Launcher and stock pattern lock. Now that I'm on cm 7.2 also with GO Launcher, Tasker can no longer act on pattern lock.
Any idea anyone?
Thanks,
Egg
SOLVED :
I solved my issue by complety removing Secure Settings and re-installing version 1.2.2 from Google Play.
So I am thinking about buying this app but.....
This app is incompatible with your device.
CTM Samsung GT-N7100
Is there a way that i could get it to work do you think before i possibly waste my money, or is it just a risk i am going to have to take?
JohnMather said:
Is there a way that i could get it to work do you think before i possibly waste my money, or is it just a risk i am going to have to take?
Click to expand...
Click to collapse
There's a 7 day trial version you can download here:
http://tasker.dinglisch.net/download.html

Your S3 Tasker Profiles

I thought it would be a good idea to share your Tasker profiles.
I recently discovered this app and after 3 years of using Android it feels like Android has a whole bunch of extra features.
My profiles are boring really but I'll share anyway.
My first profile puts my phone on silent between 2am and 10am.
My second profile turns off Bluetooth after 3 minutes of being unpaired.
My third and final profile waits until my screen goes off, waits 5 seconds,turns the screen on displays the time on an app called night screen lite (only between 9pm and 11am)
What are your Tasker profiles?
Sent from my Samsung Galaxy S3 using Tapatalk 2
I'm trying to work out this app at the moment, getting everything I want it to do is taking me time.. Getting it perfect
The main ones I want is
After gps is turned on I want it to launch copilot live and radardroid, then dim the screen and turn wifi off..
Also a few other things like bluetooth off after un paired from car, silent mode at night and getting locale hooked up correctly.
Sent from my GT-I9300 using xda premium
ATHOME
Set %ATHOME to 1 (Enter)
Set %ATHOME to 0 (Exit Task).
ATWORK
Set %ATWORK to 1 (Enter)
Set %ATWORK to 0 (Exit Task).
ATFRIENDS
Set %ATFRIENDS to 1 (Enter)
Set %ATFRIENDS to 0 (Exit Task).
ATCOLLEGE
Set %ATCOLLEGE to 1 (Enter).
Sends a HTTPS POST to my College WIFI Login Portal.
Set %ATCOLLEGE to 0 (Exit Task).
USBCHARGE
Set %USBCHARGE to 1 (Enter)
Set %USBCHARGE to 0 (Exit Task).
GOWORK (I have some problems with sleep in morning)
I turn wifi-on and verify if i stay in my home (ATHOME), and play some BAD song util i leave my home... the only way i found to get out of my bed in the morning. As my tasker are password protected, i can't disable it sleeping.
HOMEUSB
Disable pattern lock, put screen dim into max, things like this.
LowBattery
Shutdown all things that can speed my cellphone to get died far from a charger.
NightSleep
AirPlane mode in the night... from Mon to Thu... Fri-Sun i can be in some party...
NFCHOME (Activated by my xperia tag)
Turn on wifi and verify if i'm in the home... and wake up my computer...
Hey guys, there's a thread going with lots of profiles etc, check it out here: http://forum.xda-developers.com/showthread.php?t=1754500
I have one profile used for automatically transfering calls to my car.
Bluetooth will switch on when incoming call and outgoing call. Connect to car Bluetooth. Transfer audio to car. And Bluetooth will switch off after the call.
With this profile, I do not have to worry about switch on Bluetooth and connecting it manually eveytime I enter the car. Everything is done automatically !
Its indeed a great software.
Sent from my GT-I9300 using xda app-developers app
I have one for work that rejects all calls and sends a text, also responds to texts. Both say at work will call later, never sends the text to the same person twice in a row. Also prompts me to turn it off after normal work times. Our don't use location since I'm not always in the same place.
Also, while at work it sends my wife a random text once or twice a day. I can't have my phone at my desk and she used to complain that I never call or text during the day.
Also, face down full silent and the Bluetooth others have mentioned... Oh and low power disables everything but calls and sms.
Sent from my SHV-E210S using xda app-developers app
Ive got a few setup.
When on home wifi..deactivate pin code security, reactivate pin when disconnected (need secure settings plugin)
Same as above when paired with my bluetooth car stereo. Also set display timeout to one hour. Turn wifi off. Launch carhome app.
The usual sleep one. Turn off sync. Wifi. Bluetooth etc. Phone to silent.
Sent from my GT-I9300 using xda premium
I created another profile last night...
When I open maps, navigation or camera (geotag) GPS turns on automatically, then turns off when I exit the app.
Sent from my Samsung Galaxy S3 using Tapatalk 2
Can all of u please share ur profiles as xml files? It would be great to see them for us noobs
i use llama
https://play.google.com/store/apps/details?id=com.kebab.Llama
awesome app and free.
more info on dev homepage --> http://kebabapps.blogspot.ch/
shivark79 said:
Can all of u please share ur profiles as xml files? It would be great to see them for us noobs
Click to expand...
Click to collapse
Here are all mine:
http://db.tt/JtJi6wbB
The 'Night Stand' profile requires an app called 'Night Clock' or a similar app. After a set time, when the screen has been off for 5 minutes and the phone is on charge, it will show the time in big text and stay on for as long as you exit. Very useful for quickly checking the time during the night.
Sent from my sick ass Samsung Galaxy S3
How do you turn bluetooth off after 3 minutes?
CuBz90 said:
I thought it would be a good idea to share your Tasker profiles.
I recently discovered this app and after 3 years of using Android it feels like Android has a whole bunch of extra features.
My profiles are boring really but I'll share anyway.
My first profile puts my phone on silent between 2am and 10am.
My second profile turns off Bluetooth after 3 minutes of being unpaired.
My third and final profile waits until my screen goes off, waits 5 seconds,turns the screen on displays the time on an app called night screen lite (only between 9pm and 11am)
What are your Tasker profiles?
Sent from my Samsung Galaxy S3 using Tapatalk 2
Click to expand...
Click to collapse
If you could export the XML for your second profile to turn bluetooth off after 3 minutes of being unpaired, I'd be really really grateful, or just provide the steps in your reply.
Thanks
1). Pocket Lock - Detects when phone is upside down in my pocket and activates WidgetLocker.
2). Read Caller Aloud - Incoming caller name said aloud so I can decide whether I want to answer without looking at my phone.
3). Night Mode - From 00:00 to 06:00 Puts phone into silent mode, plus checks whether Wifi, Data, GPS, or Blutooth are on, and turns them off if they are.
4). Battery Low - When battery gets to 15%, and it's not connected to a charger, Says "Battery low, connect charger" and turns off Wifi, BT, Data, GPS.
5). Music Player - When headset is plugged in, loads music app.
6). Wake on Lan - Scan an NFC tag by my front door to send Wake on Lan packets to my pc to resume windows.
7). Home - Gets general location from cell tower, activates Wifi, disables Data & GPS. Exit Task disables Wifi, and enables Data.
8). Work - Gets general location from cell tower, disables Wifi, Data, GPS, BT, and Auto Replies to sms that im working and will reply when i can.
I'm pretty new to tasker, but have been pretty bored lately and have been working on an addition to my Work profile.
This profile will, use variables to save up to 5 peoples numbers and how many times each has txted me, and txt each of them back, using their names from my contact list in the body of each txt.
So lets say BOB txts me once, his number will be added as a variable, and it will begin counting the txts from him. On the first txt he is send a txt saying, something like. "Sorry BOB, im at work, will reply when i can".
Then DAVE txts, he will be assigned to Sender2, and have a txt sent to him like above, with the second Counter and Number (%CNTR2 and %SNDR2).
BOB, realizing it's an auto-reply, decides to be funny and spam txt me, thinking he will get a reply every time. However, tasker counts his incoming txts, (%CNTR1) and when it reaches a value of 10, send just one more txt saying something like (Thats 10 txts you've sent, seems Im still unavailable).
Profile: Auto Reply
Variables:
%SNDR1 <---- BOBs cell number
%SNDR2 <---- DAVEs cell number
%SNDR3
%SNDR4
%SNDR5
%CNTR1 <---- BOBs txt counter
%CNTR2
%CNTR3
%CNTR4
%CNTR5
%TXTVAR <---- Counter determining whether a txt received is from someone new or a number already saved.
Enter Task:
Code:
1). GoTo label Sender1 if %SMSRF ~ %SNDR1
2). GoTo label Sender2 if %SMSRF ~ %SNDR2
3). " " etc.
4).......
5).....
6). If (%SNDR1 ~ 0) then SetVariable %SNDR1 to %SMSRF
7). If (%SNDR2 ~ 0) and (%TXTVAR = 1) then SetVariable %SNDR2 to %SMSRF
8). If (%SNDR3 ~ 0) and (%TXTVAR = 2) then SetVariable %SNDR3 to %SMSRF
9)........etc.
10).
11). If (%SMSRF ~ %SNDR1) <-------- Label Sender1
Variable Add (%CNTR1 + 1)
If (%CNTR1 = 1)
Send SMS (Tells this person eg. BOB I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR1 = 10)
Send SMS to %SNDR1 (Thats 10 txts you've sent me)
Endif x2
12). If (%SMSRF ~ %SNDR2) <-------- Label Sender2
Variable Add (%CNTR2 + 1)
If (%CNTR2 = 1)
Send SMS (Tells this person eg. DAVE I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR2 = 10)
Send SMS to %SNDR2 (Thats 10 txts you've sent me)
Endif x2
13). If (%SMSRF ~ %SNDR3) <-------- Label Sender3
Variable Add (%CNTR3 + 1)
If (%CNTR3 = 1)
Send SMS (Tells this person eg. EMILY I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR3 = 10)
Send SMS to %SNDR3 (Thats 10 txts you've sent me)
Endif x2
14). ......Etc.
15). ......
I'm still working on it, deciding whether to have the variables reset as they are all filled, 1 at a time, or to make them reset every hour or so. Also whether to make another profile purely for resetting those variables, or add them to this task. Bearing in mind that on my phone it gets rather annoying to manage/edit the task since its currently at 78 lines long.
As I said I was bored.
If anyone is interested in this I can post a backup xml of this somewhere.
Here are mine:
1. Kill a couple of apps on boot
2. Power Saver – mainly To turn off my WiFi profile
3. Call Brightness – while the phone's ringing, the brightness is maxed.
4. Keyboard Out – disables the display timeout for the time I've got the hardware keyboard out
5. Lost – checks for incoming SMS with one of two predefined phrases. On the first one it starts playing alarm sound (if I forgot where I placed it). On the second one it sends back the GPS coordinates and battery level and puts the same information in my google calendar, so I can see it from anywhere (source tasker wiki. Can't give the link, since I'm new here, sorry. PM me if you can't find it)
6. Sound Control – I hate the thousands chat sounds when I'm texting with someone, but I need them when the phone is not in my hand. So here's what this profile does:
Any time I turn the screen on, the sound volume will be set to 0, and phone will be set to Vibrate.
When I turn the screen off, the sound settings will be restored to their previous values, unless it's currently on MUTE. Then it'll keep it on Vibrate (!) until it's manually raised (in which case it will remember the new volume level). That's cause I never use my phone on "mute" (no sound and no vibration). If I want no sound, I keep the vibration on.
Sound Control Project:
Code:
[b]profile Display On[/b]
Contexts:
event: Display On
state: Not Call Incoming
apps: Not Alarms (or whatever alarm app you use)
Tasks:
Silent Mode: On (if %Mute ~ 1)
Silent Mode: Vibrate (if %Mute !~ 1)
[b]profile Display Off[/b]
event: Display Off
Tasks:
If %SILENT ~ On
Variable Set %Mute to 1
Silent Mode —> Vibrate
Else
Variable Set %Mute to 0
Variable Set %Volnprev to %VOLN (IF %VOLN>0)
Notification Volume —> to level %Volnprev (IF %VOLN~0)
7. WiFi Control – turns on and off WiFi when I'm at home/work.. wherever. The original source is from Tasker Wiki but it wasn't working properly so I did some changes)
Key points:
- It watches the Cell towers only when I'm not connected to wifi.
- It uses Wifi Near to check if I'm near the router ONLY when I'm within the Cell tower range and NOT connected to wifi.
- If I disconnect from wifi it waits a few seconds and checks if I'm connected before continuing.
WiFi Control Project:
Code:
[b]A: Cell Network Home[/b]
Contexts:
Cell Near {Cell towers at home}
Not Airplane Mode
Task:
Profile Status "Wifi Near Home" set to On
End Task:
Profile Status "Wifi Near Home" set to Off
[b]B: Wifi Near Home[/b]
Context:
Wifi Near {my router SSID and MAC}
Task:
Wifi On
End Task:
Wifi Off (IF WIFIC !~ 1)
... repeat A and B for each location, for ex. work
[b]C: Wifi Connected[/b]
Context:
Wifi Connected *,*,* (to any)
Task:
Variable Set %WIFIC to 1
Wait 15s
Stop (IF %WIFIC !~ 1)
Profile Status "Wifi Near Home" set Off
Profile Status "Cell Network Home" set Off
... set also profiles for other locations to Off
End Task:
Variable Set %WIFIC to 0
Wait 30s
Stop (IF %WIFIC ~ 1)
WiFi Off
Wait 3s
Profile Status "Cell Network Home" set On
... set also the cell profiles for other locations to On
I have one that sets usb debugging off at boot and displays permanent notification with usb debug status + theres an action attached to the notification that toggles debugging on/off.
This is to toggle debugging on when I need it and to make sure it's off when I'm not using it. I wouldn't want anyone to easily bypass the lockscreen should my phone fall in the wrong hands.
kaczus said:
I have one that sets usb debugging off at boot and displays permanent notification with usb debug status + theres an action attached to the notification that toggles debugging on/off.
This is to toggle debugging on when I need it and to make sure it's off when I'm not using it. I wouldn't want anyone to easily bypass the lockscreen should my phone fall in the wrong hands.
Click to expand...
Click to collapse
Can you share this tasker profile? Ether a detailed version or even better a copyed xml we can port to our tasker?
Thanks in advance :thumbup:
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
Set an alarm if my battery is fully charged.
Sent from my GT-I9300 using Tapatalk 2
deanr1977 said:
Can you share this tasker profile? Ether a detailed version or even better a copyed xml we can port to our tasker?
Thanks in advance :thumbup:
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
Click to expand...
Click to collapse
Sure, here it is.
You need secure settings with "helper" installed for it to work.
This profile uses %USB_DEBUGGING var to store current state of the setting as there is no way to read the actual state from within tasker (as far as I know).
The usb debugging will be turned off at boot, you can change this by changing the "variable set" action in "Start" task to 1.
kaczus said:
Sure, here it is.
You need secure settings with "helper" installed for it to work.
This profile uses %USB_DEBUGGING var to store current state of the setting as there is no way to read the actual state from within tasker (as far as I know).
The usb debugging will be turned off at boot, you can change this by changing the "variable set" action in "Start" task to 1.
Click to expand...
Click to collapse
Cheers mate, stupid question though how do I import this to my tasker? On the old version this was easy.... but struggling to figure this out with the new ui? Thanks mate
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
deanr1977 said:
Cheers mate, stupid question though how do I import this to my tasker? On the old version this was easy.... but struggling to figure this out with the new ui? Thanks mate
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
Click to expand...
Click to collapse
To be honest I never tried it before but after some reading I did it this way:
First put the xml file somewhere on your phone, go into your file manager, click on the xml file, a dialog should appear with apps available to open the file - there choose tasker. Do this for all files you want to import.
Now open tasker, open profiles tab and long click on it -> import, choose the imported profile name, "autostart" in this case. Then go to tasks and long click on it -> import, there should be the toggle usb task, exit tasker and restart it. The imported profile and two tasks should all be there. Now when you go to the "Start" task and click the triangle "play" icon (or reboot the phone) the notification should appear
Oh and I didn't notice that tasker did not export one of the tasks required for this to work, don't know why, so I'm attaching it here.
Sorry about the mess.

Tasker exits as soon as I open it

Wondering if anyone else having this problem? VZW G2 running CleanRom. I installed Tasker from the Play Store and it installed fine and I opened it and accepted the terms and whatnot and the tasker icon is in the notification bar, indicating it's running. WhenI open the app to add profiles, it exits about a second later. It doesn't force close, it just exits and appears to still be running in the notification bar. I used it before on my GS3 without any issues. Any ideas? I have an internet connection, so it should be able to verify the license.
Edit: upgraded to latest Tasker beta problem solved. Weird.

Titanium Backup schedules not executed

Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.
Fixed
khaberz said:
Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.
Click to expand...
Click to collapse
OK, fixed it - I had to activate it under Ignore Battery Optimizations
khaberz said:
OK, fixed it - I had to activate it under Ignore Battery Optimizations
Click to expand...
Click to collapse
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks
palosanto0 said:
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks
Click to expand...
Click to collapse
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.
khaberz said:
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.
Click to expand...
Click to collapse
Unfortunately it does not work in my Xiaomi redmi Note 4X.
I found the option to activate "Ignore Battery Optimizations", however if I don't leave the Titanium backup PRO running, the scheduled backups are not performed.
Last week I have been searching internet for a solution, however still I have not found a satisfactory one.
Kind regards and thanks for your advice,
Javi
<deleted - see next post for updated info>
Titanium Backup schedules not executed (or interrupted after being started) and/or its related notifications not being shown appears to be an issue that is caused by crazy additional 'features' as implemented at some devices to improve battery life. This especially happens at OnePlus devices running Oreo (Android 8), but may possibly also appear at devices of other brands (Xiaomi?). Therefore it actually isn't a shortcoming of Titanium Backup itself, but the result of some stupid app handling and killing behaviors that may be active at your device.
Also other apps that should permanently be kept running in background may be impacted by this behavior (being killed for the same reason) like Tasker, Sync-to-cloud apps, etc.
Especially at OnePlus devices running Oreo, following implemented crazy 'optimization' behaviors are playing a role here:
After a user has set Battery optimisation OFF for a specific app, it may automatically be set ON again after a reboot or after the app was updated
Background services may be killed EVEN when for the related app the Battery optimisation was set OFF
The 'Autostart' attribute may be ignored, so apps may be NOT automatically started in background after rebooting your device
SOLUTION
1. Make sure the 'Advanced optimisation' options are disabled
Go to Settings > Battery > Battery optimisation
Click the 3 dots in the upper-right corner and select 'Advanced optimisation'
Verify that the options 'Advanced optimisation' and 'Sleep standby optimisation' are both disabled
2. Set Battery optimisation OFF for any app that should continue to run in background
Go to Settings > Battery > Battery optimisation
Select the app that should never be killed, so in this example: 'Titanium Backup'
Select 'Don't optimize' and click DONE
Nb.
Above is not needed for the 2nd entry 'Titanium Backup PRO', which is just related to your PRO key payment and not the running Titanium Backup process itself.​
However, disabling Battery optimization for an app is NOT enough for preventing that it could be killed when running in background at OnePlus devices!
This not only because the 'Don't optimize' setting may automatically be reverted to 'Optimize' after a reboot or after an update of the app, but EVEN when Battery optimisation is actually disabled it's nevertheless still candidate for being killed at OnePlus devices running Oreo! Therefore also next action is required in addition.
3. Lock the app in your 'Recent Apps' list
Open and then close Titanium Backup (or just touch the Home button at your device after opening the app)
Touch the 'Recent Apps' button at your device
This shows your recent apps, where Titanium Backup will now be included (as last / most recent entry)
Toggle the 'Lock' icon in the upper right corner of that Titanium Backup entry, to switch it to a closed lock icon symbol
(see attached screenshot)
This last action not only just prevents that the app could be removed from your 'Recent Apps' list, but it ALSO prevents the issues as described above, so:
The app will not be killed anymore when running in background
The 'Battery optimisation' setting for that app will not be reverted anymore to 'Optimize' after a reboot or after an update of the app
When done, Titanium Backup schedules should now run as defined. Also, its completion messages shouldn't disappear from your notification entries anymore, but kept until you remove them.
OTHER APPS
Because it's not just a specific Titanium Backup issue but the result of the stupid behavior as implemented at OnePlus devices running Oreo, it's highly recommended to repeat the steps above for any app that should never be killed when running in background (eg. Tasker, Sync-to-cloud apps, Alarm/Alert apps, etc.). Also apps that are making use of scheduled actions, or should awake at incoming messages, chats, mails, alarms, or Security/Anti-virus apps etc. could be candidate of not being able to react properly because they were killed when running in background and/or not started at boot. When such apps doesn't always correctly react/awake at your device, just perform same actions as described above to prevent them to be killed. When an app still doesn't work because it wasn't auto-started at boot, you could use Tasker to create a Tasker-profile that executes a Tasker-task to launch such apps at boot. Start-at-boot via Tasker appears to be not required for Titanium Backup, but for some other apps this was my only option to ensure that they were auto-started after a reboot of my device.
Nb.
Some apps have options included in their internal settings like 'Keep active in background', 'Run in Foreground' or 'Turn off battery optimisation'. Even when these types of internal app settings are selected, they could still be killed at some device brands (eg. OnePlus) when the actions as described above aren't implemented in addition for such apps.
OnePlus: Never settle, but also never be so stubborn...
Thanks
Much appreciated for the fix.
Never thought about locking the app, great idea ?
Just stumbled over this post through a link. Many thanks for the info; in my case it's not only TB that's effected but also several other apps like OruxMaps and Automagic.
For completeness I post some screenshots from OnePlus 6 / OOS 9.0.4 (Pie) showing the changed recent apps screens and dialogs (in German, but I guess you'll get the picture)
paarnoutse said:
Titanium Backup schedules not executed....
OnePlus: Never settle, but also never be so stubborn...
Click to expand...
Click to collapse
i was wondering why titanium is not executed in months.. and killed shortly even when i run it manually.
settings were great:
- no battery optimization
- no data optimization
- tons of free memory on RAM boasting 1+ (funny isn't it)
- recent app management=normal clear
- standby check=exempted
- keep activities
- deep optimization turned off
- sleep standby optimization turned off
and still it didn't help until i LOCKed the app. this is why 1+ and xiaomis achieve better battery scores than samsung
doggydog2 said:
...this is why 1+ and xiaomis achieve better battery scores than samsung
Click to expand...
Click to collapse
(Spoiler: heavy OT post)
...which is what I really love about my 1+: 3 - 4 days between charging aren't rare here.
For the very few apps that are having probs (like track recording) with heavy battery optimization I wrote myself a script (am using automagic, but this should be also possible with Tasker etc) to disable deep opt. then start my critical app. Works great for me, but as always: ymmv
I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?
James_Oakley said:
I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?
Click to expand...
Click to collapse
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc
lm089 said:
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc
Click to expand...
Click to collapse
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?
James_Oakley said:
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?
Click to expand...
Click to collapse
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===
lm089 said:
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===
Click to expand...
Click to collapse
Thanks - got it. When I read about "recents" in this thread earlier, I assumed it was when you go to Settings > Apps and you're first shown a list of recent apps. I've now got what everyone is talking about, thanks to your patient explaining. I'm sure this will help others too. On my phone, there's no nav bar it's all done with gestures, so you swipe up from the bottom of the screen - then lock Titanium in place. Bingo, and thank you.

Categories

Resources