Tasker One-Click GPS Fix Workaround For 2.3.x - Android Software/Hacking General [Developers Only]

With the help of a few other posters and Tasker's user guide, I figured out how to make a macro (script?) that will allow you to turn GPS on with honest-to-god one click. Specifically, if you open Navigator, Maps or any other app that uses GPS, this will check to see if GPS is off and if so, turns it on and returns you to said program.
I hope this helps. It is far from perfect. I'm still learning Tasker, but it definitely works. Has fixed a great annoyance for me and 2.3.x.
http://www.youtube.com/watch?v=fg56IgNHA0Y
"This tutorial explains how to make a one click GPS solution for Android 2.3.x, which by default, disables apps from automatically turning GPS on or off. Annoyed by having to press three or four different times just to turn GPS on? Not anymore. Tasker fixes that (with some work) and makes it legitmately one-click.
If you'd like to import the script directly into your Tasker, download this:
http://hotfile.com/dl/147479329/497bda8/userbackup.xml.txt.html
or
http://oron.com/u26ogc0s8dvk
Thanks!"

Related

Where did Tasker install to?

I'm going to do an adb pull to insert an icon into Tasker, for it to be used for notifciations. I'll do the icon add in windows, then push the app back to the Aria. Where should I expect to find the Tasker app? It does not allow install to the sd, so it is somewhere in the internal. Anyone have Tasker and can find it?
duckredbeard said:
I'm going to do an adb pull to insert an icon into Tasker, for it to be used for notifciations. I'll do the icon add in windows, then push the app back to the Aria. Where should I expect to find the Tasker app? It does not allow install to the sd, so it is somewhere in the internal. Anyone have Tasker and can find it?
Click to expand...
Click to collapse
/data/app/net.dinglisch.android.tasker-1.apk
Is there a way to use terminal emulator to push a file into this app?
My last Intruder was a Grumman A-6E.
duckredbeard said:
Is there a way to use terminal emulator to push a file into this app?
My last Intruder was a Grumman A-6E.
Click to expand...
Click to collapse
Great question - I don't know. What you might check out is PULLING the APK and extracting it with WinRAR or you're alternative zip program and placing the file you want in there...what exactly are you trying to accomplish? After you replace or place your file rezip and rename to .apk ... please note I do not know if this 'method' is suitable for what you are trying to do, don't know if it will work or what...in my eyes its worth a shot...if anything your phone just wont install it.another thing I'd try is, unseasonable of unzipping, then rezipping just drop the file in there and place/replace, then put on SDCARD and try to sideload it.
If you are familiar with Tasker, this should make sense. I'll give you the quick version.
I have three modes, Home, Car, and Work. When I leave home, Tasker detects my home network has been disconnected and switches to car mode (wifi off, bluetooth on, gps on). When I arrive at work, Tasker's gps function detects my location and switches to work mode (wifi off, gps off, bluetooth off). When I leave work, Tasker uses "cell near" detection to see that I have left work and goes back to car mode (wifi off, gps on, bluetooth on). Tasker monitors gps data and knows when I have returned home sets everything back to home (wifi on, gps off, bluetooth off). There are other settings that get changed as well, such as brightness and volume levels. Quite complex to set up, but it is totally automated. I believe it saves battery by keeping unnecessary functions off when not needed.
So, what I'm trying to do is have Tasker initiate a notification (tasker does this also) when each state changes. The notification can be made to be "permanent" and is only cleared by the change of mode. When setting up Tasker to do these notifications, there are only a few stock ones to chose from. Things like teddy bears and penguins and stars. I'd like to use different icons. So I believe the solution is to find suitable icons (24x24 or 32x32 png images) and name them the same as what is found in the apk. The file icon_notify_bear.png will become a VW logo for car mode, etc. It should show up in the list of icons available for the notification. I intend to replace those that are not of interest and add a few others, using the same file name structure.
More info (though outdated) can be found here http://tasker.dinglisch.net/tour.html#notify
Tasker has been updated many times since that, it has many more and better features and functions now. Except easily adding icons for notifications. The dev says that android won't allow it through the app itself. So I'm going in through the back door.
duckredbeard said:
If you are familiar with Tasker, this should make sense. I'll give you the quick version.
I have three modes, Home, Car, and Work. When I leave home, Tasker detects my home network has been disconnected and switches to car mode (wifi off, bluetooth on, gps on). When I arrive at work, Tasker's gps function detects my location and switches to work mode (wifi off, gps off, bluetooth off). When I leave work, Tasker uses "cell near" detection to see that I have left work and goes back to car mode (wifi off, gps on, bluetooth on). Tasker monitors gps data and knows when I have returned home sets everything back to home (wifi on, gps off, bluetooth off). There are other settings that get changed as well, such as brightness and volume levels. Quite complex to set up, but it is totally automated. I believe it saves battery by keeping unnecessary functions off when not needed.
So, what I'm trying to do is have Tasker initiate a notification (tasker does this also) when each state changes. The notification can be made to be "permanent" and is only cleared by the change of mode. When setting up Tasker to do these notifications, there are only a few stock ones to chose from. Things like teddy bears and penguins and stars. I'd like to use different icons. So I believe the solution is to find suitable icons (24x24 or 32x32 png images) and name them the same as what is found in the apk. The file icon_notify_bear.png will become a VW logo for car mode, etc. It should show up in the list of icons available for the notification. I intend to replace those that are not of interest and add a few others, using the same file name structure.
More info (though outdated) can be found here http://tasker.dinglisch.net/tour.html#notify
Tasker has been updated many times since that, it has many more and better features and functions now. Except easily adding icons for notifications. The dev says that android won't allow it through the app itself. So I'm going in through the back door.
Click to expand...
Click to collapse
Alright, well I am familiar with tasker but didn't know about the different notification icons. Anyway, what I told you above is exactly what I would try. Pull the APK from your phone, open it in winrar have a looksie at what you can find (note you may have to unzip to see what each file is, but I wouldn't rezip it to achieve this task), once you find what you need to replace drag and drop from windows to winrar...winrar SHOULD ask you if you want to replace what's already in there. If it doesn't, this 'method' will probably not work. If it does, either push it back to your phone or just drop it on your sdcard and sideload it, test it out and see what you can come up with. May take a few trial and error failures but that's all part of the learning experience in my opinion.
I've read a thing or two about apps in the /data/app need to be signed after edit. Not a clue what I am to do with that advice
My last Intruder was a Grumman A-6E.
duckredbeard said:
I've read a thing or two about apps in the /data/app need to be signed after edit. Not a clue what I am to do with that advice
My last Intruder was a Grumman A-6E.
Click to expand...
Click to collapse
Look into SignApk...i tried to do this after editing ROM frame apk with UOT so I didn't have to flash two files and I failed...well...I may have succeeded in signing the apk but the ROM was stuck at the boot animation so i gave up there...
These should help you out some:
http://www.londatiga.net/it/how-to-sign-apk-zip-files/
http://www.youtube.com/watch?v=-wjOCFS-pQc

[Q] P6210 Automation via Tasker or Timeriffic

Trying to automate some tasks on my stock Galaxy Tab Plus such as connecting wifi, etc. Tried Tasker but the actions aren't triggered. Then I tried Timeriffic and it also isn't working.
Looks like when I create tasks and I trigger them in a minute or two for testing, they work. However, when I schedule them for a few times a day, they do not get triggered.
Is anyone using Tasker or Timeriffic with Galaxy Tab Plus and not having these issues?
Tasker works fine for me but I use it enough to know there are many potential issues. Could you provide a bit more detail of exactly what you're doing?
Cptnodegard said:
Tasker works fine for me but I use it enough to know there are many potential issues. Could you provide a bit more detail of exactly what you're doing?
Click to expand...
Click to collapse
I have 4 profiles that run a task at 4 specific times Mon-Fri. The task turns wifi on, waits 1 minute, does a GReader sync, waits some minutes then turns wifi off. This works on my Samsung phone but not on the Tab.
I've set some notifications in the task to see display the wifi state as way of debugging and generally, after the tasks run once, they don't run again.
Thanks for your help.
Hmm weirdly enough I've only had things that don't work on my SII work on the 7.0 Plus... not the other way around.
Tasker is running in the background right? Meaning there's a constant lightning shaped icon in the notification tray. Without this icon the OS might close Tasker itself.
Cptnodegard said:
Hmm weirdly enough I've only had things that don't work on my SII work on the 7.0 Plus... not the other way around.
Tasker is running in the background right? Meaning there's a constant lightning shaped icon in the notification tray. Without this icon the OS might close Tasker itself.
Click to expand...
Click to collapse
Yes, the tasker icon is there. My phone is SG2 and both Tasker and Timeriffic work on it. Weird! Thanks.
This is something of a shot in the dark but try downloading the Beta version of Tasker from the dev's site. It replaces the one you bought and uses the existing license check to work. Wouldn't think it would matter but the beta has more features anyways
Timeriffic Helpdesk
Thanks for the feedback. To better help us could you do the following...in Timeriffic, click Menu, Report Error. Note this issue again, this will help us better diagnose the trouble. We have had reports of various hardware and versions of Android OS causing issues and we are researching how that impacts our app. We hope when/if Android is updated it might correct some of those errors. We are also have an FAQ for our users to provide some answers too.

GPS and Tasker

Ok, so I may be a little iffy here.
I have tasker and secure settings w/ helper installed and I'm running the latest version of cleanrom lite.
So in secure settings I have the GPS option enabled via helper and in Tasker I'm able to select it as a misc action.
What I want to do is have it enable GPS when I launch the Map, Nav, or Places application and disable when I leave them. I think I have it set up properly, but my problem is it isn't enabling the GPS. The profile will enable but it won't change the setting.
Any feedback here?
Edit: I found the fix. I feel derpy. For anyone looking to do something similar once you have Secure Settings w/ Helper installed and you go to set the setting in Tasker do not attempt to go Misc - > GPS. It won't work. Instead select Plugin -> Secure Settings -> Configuration and choose GPS. That'll get it working for you just peachy.
soapbubble said:
Ok, so I may be a little iffy here.
I have tasker and secure settings w/ helper installed and I'm running the latest version of cleanrom lite.
So in secure settings I have the GPS option enabled via helper and in Tasker I'm able to select it as a misc action.
What I want to do is have it enable GPS when I launch the Map, Nav, or Places application and disable when I leave them. I think I have it set up properly, but my problem is it isn't enabling the GPS. The profile will enable but it won't change the setting.
Any feedback here?
Edit: I found the fix. I feel derpy. For anyone looking to do something similar once you have Secure Settings w/ Helper installed and you go to set the setting in Tasker do not attempt to go Misc - > GPS. It won't work. Instead select Plugin -> Secure Settings -> Configuration and choose GPS. That'll get it working for you just peachy.
Click to expand...
Click to collapse
Thank you mate! Was just having this problem with jellybean. Either way working on the exit function.
soapbubble said:
Edit: I found the fix. I feel derpy. For anyone looking to do something similar once you have Secure Settings w/ Helper installed and you go to set the setting in Tasker do not attempt to go Misc - > GPS. It won't work. Instead select Plugin -> Secure Settings -> Configuration and choose GPS. That'll get it working for you just peachy.
Click to expand...
Click to collapse
I'm rooted, I have Superuser, busybox, secure settings and helper all installed. I have "green circles" at each location in helper indicating that I can change all these things but when i hit "Plugin>secure settings>configuration" I only get the top half of the list...not the bottom half.
can someone help?
Edited to add: found the answer; the right side green check boxes needed to be checked.
Thank you thank you. I've been looking for this fix. love tasker not easy to use though
Thank you!
soapbubble said:
Ok, so I may be a little iffy here.
I have tasker and secure settings w/ helper installed and I'm running the latest version of cleanrom lite.
So in secure settings I have the GPS option enabled via helper and in Tasker I'm able to select it as a misc action.
What I want to do is have it enable GPS when I launch the Map, Nav, or Places application and disable when I leave them. I think I have it set up properly, but my problem is it isn't enabling the GPS. The profile will enable but it won't change the setting.
Any feedback here?
Edit: I found the fix. I feel derpy. For anyone looking to do something similar once you have Secure Settings w/ Helper installed and you go to set the setting in Tasker do not attempt to go Misc - > GPS. It won't work. Instead select Plugin -> Secure Settings -> Configuration and choose GPS. That'll get it working for you just peachy.
Click to expand...
Click to collapse
I've tried this I've set it to enabled and toggle and nothing happens when I open my satnav app waze.
Any ideas
Just as a note : be careful with this particular formula in Tasker. I use it as well, but the problem is if you're using, say, a navigation program. You open it up, Tasker sees it open, enables GPS, everything is right with the world. You're chugging along. You stop at a red light, and... get a text or something, and you tap to see it. As soon as you switch away from the navigation app, even if it's running in the background, Tasker will count that as "exiting" the program, and disable GPS (at least in my experience). Your navigation app will still run in the background but not have GPS to tell you where to go until you bring it to the foreground again.
Can you get Tasker/GPS to work on an un-rooted phone?
No.
Sent from my Evita
timmaaa said:
No.
Click to expand...
Click to collapse
Dangit.

[Q] Tasker & Secure Settings > GPS issues

Hopefully someone can help me out with this...been reading forums etc. for a while and can't find an answer..
Rooted HTC One m8. Tasker pro. Secure Settings free version. Running 5.0.1
I installed the helped for tasker (or whatever it's called now) and added a new task. Went to plugins >secure settings>gps and set for 'enabled'. When I test the task, it gives me nothing. I trying setting a shortcut to see if that might work and same result as the test. When I go into tasker and click 'test action' it says 'executing action' and it works. However, as soon as I try just clicking the play button,nothing. No clue what else to try, any help would be greatly appreciated.
Same Issue with Llama Locale + Secure Settings
Kevinj17 said:
Hopefully someone can help me out with this...been reading forums etc. for a while and can't find an answer..
Rooted HTC One m8. Tasker pro. Secure Settings free version. Running 5.0.1
I installed the helped for tasker (or whatever it's called now) and added a new task. Went to plugins >secure settings>gps and set for 'enabled'. When I test the task, it gives me nothing. I trying setting a shortcut to see if that might work and same result as the test. When I go into tasker and click 'test action' it says 'executing action' and it works. However, as soon as I try just clicking the play button,nothing. No clue what else to try, any help would be greatly appreciated.
Click to expand...
Click to collapse
I'm running Exodus 5.1.1 on my OnePlus One. In Llama with the Secure Settings plug in, when I test and activity to toggle GPS to High Accuracy Mode when Maps or Waze is launched, the test works flawlessly. When I actually launch Maps or Waze though, the action never triggers and remains on GPS Battery Savings Mode.

WhatsApp ignores "Do Not Disturb": ideas for workarounds

It's been noted before that WhatsApp ignores DND, leading to intrusive interruptions. For example I use my mobile as webcam for Zoom and Skype calls from the PC (whose webcam is broken) and every time a WhatsApp notif comes it, it stops the video in Skype or Zoom.
I scanned forums for workarounds but didn't find a one-click solution.
Thought I'd share what I've settled in so far, and ask if others are using other methods.
I use Nova Launcher. Nova has a widget type called Nova Activities. Using that, I placed a button on my screen that launches Settings / App notifications. WhatsApp is usually on the first page, and can be turned off in one touch (so two touches total), which I do before Skype or Zoom calls. Just have to remember to enable later.
Rejected solution: saw an app in the Play Store but it wants to create a VPN and (i) don't want to create one on top of AdGuard, (ii) don't want to entrust my traffic to an unknown entity.
who ah way said:
It's been noted before that WhatsApp ignores DND, leading to intrusive interruptions. For example I use my mobile as webcam for Zoom and Skype calls from the PC (whose webcam is broken) and every time a WhatsApp notif comes it, it stops the video in Skype or Zoom.
I scanned forums for workarounds but didn't find a one-click solution.
Thought I'd share what I've settled in so far, and ask if others are using other methods.
I use Nova Launcher. Nova has a widget type called Nova Activities. Using that, I placed a button on my screen that launches Settings / App notifications. WhatsApp is usually on the first page, and can be turned off in one touch (so two touches total), which I do before Skype or Zoom calls. Just have to remember to enable later.
Rejected solution: saw an app in the Play Store but it wants to create a VPN and (i) don't want to create one on top of AdGuard, (ii) don't want to entrust my traffic to an unknown entity.
Click to expand...
Click to collapse
Just using macfosroid to kill the app and then at 8oclock in the morning it launches it
jaggillararla said:
Just using macfosroid to kill the app and then at 8oclock in the morning it launches it
Click to expand...
Click to collapse
You're talking about using the macrodroid app from the Play store to kill WhatsApp overnight, right? Interesting, I didn't know about macrodroid, looks easier to configure than Tasker.
That said, what I'm going for is an easy way to kill WhatsApp notifications while I'm on a Zoom or Skype call, and to turn them back on after the call. The only quick solution I've found so far is this "Nova activity" button.
@jaggillararla tried Macrodroid, really like the interface, great way to create macros. It looks like some options would work, like killing WhatsApp or disabling its notifications when either silent mode or DND are turned on. Sadly at the moment these triggers are not working on my device (which is rooted).
But in the meantime I realized that just going on Airplane mode should do exactly what I need! Duh. In airplane mode, the webcam software still communicates with my PC. That's probably the easiest trick for me, if it works.
Thank you very much for your thoughts, hope I can get Macrodroid to work for something else.
EDIT: these two macros seem to do the trick:
- IvCam ON → Airplane Mode ON
- InCam OFF → Airplane Mode OFF

Categories

Resources