Tasker External Access For NFC - NFC Hacking

I've got the HOX rooted and was wondering if there is a way to grant Tasker more capabilities externally i.e. through NFC Task Launcher (smaller tag sizes when launcher a tasker task and more potential capabilities).
Even with "Allow External Access" checked, I am still denied access to functions that I would love to use, such as Button, Silence Ringer, Kill App, Send SMS, etc...
So, I don't know if it's plausible, but with root access is there anyway to back around the restrictions placed on tasker outside of the native app/widget?
Thank you in advance.

I don't know about the other tasks you mentioned, but root does allow Tasker to kill apps (you have to check the box to use root). I set up a NFC switch in Task Launcher that opens an app (and does a few other things) using a Tasker task on the first NFC scan and then closes the app on the second scan.
Sent from my Transformer Prime TF201 using Tapatalk 2

ylexot said:
I don't know about the other tasks you mentioned, but root does allow Tasker to kill apps (you have to check the box to use root). I set up a NFC switch in Task Launcher that opens an app (and does a few other things) using a Tasker task on the first NFC scan and then closes the app on the second scan.
Sent from my Transformer Prime TF201 using Tapatalk 2
Click to expand...
Click to collapse
Check the box to use root? The box in Secure Settings or is there a box in tasker that has to be checked?

When you add the Kill App task, there is a box in there to use root.

ylexot said:
When you add the Kill App task, there is a box in there to use root.
Click to expand...
Click to collapse
ah thanks. In the meantime i'll see what I can do with Sure Setting plugin. maybe it can take care of certain things.

Related

Best NFC Task Launchers for the One X

Hey guy,
Could you share which NFC launchers you guys are using ? So far I've tried a few but haven't been able to find any to enable the GPS.
Thanks
Sent from my HTC One X using Tapatalk 2
i don't think anything can enable the GPS properly yet, not even tasker.
I'm sure someone else will probably correct me, but the way i found to do it was use NFC Task launcher, tasker and secure settings.
nfc launcher launches a tasker task.
tasker uses secure settings to be able to access the GPS settings. which then allows tasker to turn the GPS on/off when prompted to by nfc task launcher.
would be good to find an easier way though.
MinecraftZombi.es said:
i don't think anything can enable the GPS properly yet, not even tasker.
I'm sure someone else will probably correct me, but the way i found to do it was use NFC Task launcher, tasker and secure settings.
nfc launcher launches a tasker task.
tasker uses secure settings to be able to access the GPS settings. which then allows tasker to turn the GPS on/off when prompted to by nfc task launcher.
would be good to find an easier way though.
Click to expand...
Click to collapse
I'm adding GPS into NFC Task Launcher soon (you just have to make it a system app for it to work - so root required). It's already added and working, but probably won't make the next release - after that though.
When can we start using NFC to pay for McDonalds
Sent from my HTC One X using xda premium
http://forum.xda-developers.com/showthread.php?t=1626688&highlight=nfc+thread

[Q] Can you run macros with NFC?

Hi,
Is it possible to run macros that would launch a specific application and then perform an action, or actions, in that application that could then be launched with NFC tags.
NFC Task Launcher + Tasker?
1cewolf said:
NFC Task Launcher + Tasker?
Click to expand...
Click to collapse
I don't believe Tasker can run Macros. As far as I know there aren't any macro apps on Android (that simulate clicks withing an app). I looked some time back when someone asked me over email and didn't find anything.
krohnjw said:
As far as I know there aren't any macro apps on Android (that simulate clicks withing an app). I looked some time back when someone asked me over email and didn't find anything.
Click to expand...
Click to collapse
Yeah, that's what I've found too. Not much. Perhaps there is no way to do it.
Thanks.
On the Xperia NXT Series there ist a programm called Smarttags preinstalled, it its programmable and it launches apps or sets your phone to silent or disables Wifi when you hold it at an Xperia Smarttag, the app ist downloadable at the playstore maybe it fits your Question
Psierra117 said:
On the Xperia NXT Series there ist a programm called Smarttags preinstalled, it its programmable and it launches apps or sets your phone to silent or disables Wifi when you hold it at an Xperia Smarttag, the app ist downloadable at the playstore maybe it fits your Question
Click to expand...
Click to collapse
No, he asking about macros. As in open app X, click here, click there, enter this text here etc.
krohnjw said:
No, he asking about macros. As in open app X, click here, click there, enter this text here etc.
Click to expand...
Click to collapse
Yes, exactly.
Thanks.
It is sometimes possible to do that with Tasker via the DPAD function. For example, I have an app open, then DPAD down (3 times), then DPAD Press, then DPAD down 2 times, then DPAD press.
this opens the app, scrolls down to the button I want pressed, presses it, which takes app to next screen, then scrolls down then presses again to start it.
Must be rooted to use the DPAD button. My understanding is it works whether your phone actually has a DPAD or not. However, the function of a DPAD action within any app depends on how the developer of that app set it up, so it may or may not work with your specified app, but you can try...
hollywoodfrodo said:
DPAD function
Click to expand...
Click to collapse
Thanks! Is the DPAD Function something that is built into Tasker?
Yep - under task it's in the "Input" category.
Thanks! I'll have to mess with that.
Apologies if this is way of track..
http://www.macrodroid.com/
https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid
Does this app help?
Ofiaich
I think it's similar to Tasker. It will trigger apps but not actions within them.
But thanks.
Sent from my EVO using xda app-developers app
what macros?
Generally a macro is a keystroke, or in our case an NFC tag, that is set up to replace a series of actions like repetitive keystrokes or actions. For example lets say that you are going a report and there are certain words that you use all the time. A macro would be a keystroke to replace having to type out that word over and over again
llpavell said:
what macros?
Click to expand...
Click to collapse
Sent from my SGH-T989 using xda app-developers app
The more I hear about Tasker the more intrigued I am by it.
Sent from my SCH-I535 using xda app-developers app
Throckmorton said:
Hi,
Is it possible to run macros that would launch a specific application and then perform an action, or actions, in that application that could then be launched with NFC tags.
Click to expand...
Click to collapse
Have you made any progress on learning how to do this or if its possible yet?
In my case, I need my NFC tag to open up google voice and set it to use voice on all calls. The best I can do is get it to just open up the settings where I have to do 2 more screen taps to change it.
blackhemi4x4 said:
Have you made any progress on learning how to do this or if its possible yet?
In my case, I need my NFC tag to open up google voice and set it to use voice on all calls. The best I can do is get it to just open up the settings where I have to do 2 more screen taps to change it.
Click to expand...
Click to collapse
No, I haven't. I've abandoned the idea.
Sorry.
blackhemi4x4 said:
Have you made any progress on learning how to do this or if its possible yet?
In my case, I need my NFC tag to open up google voice and set it to use voice on all calls. The best I can do is get it to just open up the settings where I have to do 2 more screen taps to change it.
Click to expand...
Click to collapse
You could possibly do it using activities. This is gonna sound like a "long cut" but it might work and would be a short cut once you get it all set up.
First install Nova Launcher (you're not gonna use it as your launcher, but it allows access to activities within apps). Now long press anywhere on your screen to add app/shortcut. Choose shorcut. Then choose "activities" which is by the Nova Launcher icon.
Now you'll have a list of apps which if you press the app will then show the apps' available activities. Google Voice has 5 possible activities - this is where you'll have to do some testing by adding those one at a time to your homescreen, then pressing it to see what that activity does/doesn't do and see if one of them accomplishes what you want. I can see on my phone that one activity is "CycleCallRoutingModeActivity" - that might be a good one to test first.
If you don't find an activity that when launched from your homescreen does what you want, then I got nothing else for ya...sorry. However, if that one activity or one of the others does do what you want then you can use Tasker & the tasker plugin in app AutoShortcut and any NFC App that can launch a tasker task to launch that activity.
Basically, you'd set up a task in Tasker, add your first task and choose "plugin" then "AutoShortcut". Then you click "Edit" and it opens up all the same shortcuts as when you were adding one to your homescreen so you can go into "activities" and choose the appropriate activty under Google Voice.
Then you use your NFC App to write a tag that launches that task in tasker. I use Tasker URL Launcher which lets you launch a tasker task by coding a special url to a tag, but you can also do tasker task directly from NFC Task Launcher, AVX, or a couple of other apps.
Hope that helps!

[Q] App to toggle between two apps using gestures?

I ran into an issue recently while using spotify and navigation while driving.
I wanted to keep the screen on spotify but check the map a few times while not taking my eyes off of the road for any length of time.
Long pressing the home button and choosing between the running apps was a pain. I was looking for an app that would just toggle between two chosen apps via a gesture such as a left or right swipe.
An app called "switcher" seemed to be what I wanted but it's no where to be found.
Can some one help find switcher or point me to something that will fill the bill?
You might want to try SwipePad its something like what your looking for. I think it might help
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
qo2520 said:
You might want to try SwipePad its something like what your looking for. I think it might help
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
You could also probably accomplish that with Tasker.
ewingr said:
You could also probably accomplish that with Tasker.
Click to expand...
Click to collapse
I have tasker...how would I do that?
rpavich said:
I have tasker...how would I do that?
Click to expand...
Click to collapse
Switching between two different apps will take more thought than I have time to provide, but with the info below, you should be on a good start.
In this example you would create a gesture to load a given app:
Create a profile based on an event; the even would be based on sensor; then you would select gesture or shake
NOTE: The Shake or Gesture will then have settings you play with to get it like you want
Then create a task based on App/Load App
The above would launch an app, or change to that app if running in background. Also, there is a function in the App Task to Load Last App. I suspect a different gesture for that would be used (in a new/different profile) which would then switch back to the previous app.
I haven't tested any of that, but I think the theory is sound.
Let us know how it goes.
Thanks for all the good suggestions; I tried Swipe Pad and it was very good but not what I was looking for. I'll take a look at the tasker thing (thanks very much for that)
In the mean time, I'm using "Car Home Ultra" that lets you assign "big buttons" to functions and I've just assigned an app switch and kill app function...it seems to be working.

NFC turn on/off app

Hi
i couldn't find any app to turn off / on NFC
like this app for airplane mode;
Airplane Mode
can u recommend an app for this?
thanks
x102x96x said:
Hi
i couldn't find any app to turn off / on NFC
like this app for airplane mode;
Airplane Mode
can u recommend an app for this?
thanks
Click to expand...
Click to collapse
The reason you don't see these is that the Android team moved the NFC enable/disable setting into the secure settings in 2.3.5. Prior to then there were a few NFC toggle widgets on the market. Now those apps would need WRITE_SECURE_SETTINGS (so you're looking at only devices with root access willing to make your app a system app or JB+ devices where you can request it from the package manager with root access).
krohnjw said:
The reason you don't see these is that the Android team moved the NFC enable/disable setting into the secure settings in 2.3.5. Prior to then there were a few NFC toggle widgets on the market. Now those apps would need WRITE_SECURE_SETTINGS (so you're looking at only devices with root access willing to make your app a system app or JB+ devices where you can request it from the package manager with root access).
Click to expand...
Click to collapse
so wht s ur solution for auto turn on NFC?! (except force keep on in "nfc task launcher" app)
x102x96x said:
so wht s ur solution for auto turn on NFC?! (except force keep on in "nfc task launcher" app)
Click to expand...
Click to collapse
I don't think that there's a solution for automatic NFC turm om. What is more, it's not really safe.
x102x96x said:
so wht s ur solution for auto turn on NFC?! (except force keep on in "nfc task launcher" app)
Click to expand...
Click to collapse
I don't auto-turn on NFC. You can create an app that does this if you just have it request WRITE_SECURE_SETTINGS and then either use root to grant that permission via the package manager or copy/move it to /system/app
krohnjw said:
I don't auto-turn on NFC. You can create an app that does this if you just have it request WRITE_SECURE_SETTINGS and then either use root to grant that permission via the package manager or copy/move it to /system/app
Click to expand...
Click to collapse
one more question;
What will happen exactly when select keep on NFC on "NFC Task Launcher" ?
it needs root access Or what happen after asking to reboot phone?
thanks
x102x96x said:
Hi
i couldn't find any app to turn off / on NFC
like this app for airplane mode;
can u recommend an app for this?
thanks
Click to expand...
Click to collapse
System settings --> more --> nfc [check/uncheck]
Or..
system settings --> system --> quick settings panel --> tiles and layout --> add --> nfc, then its on your quick settings panel.
I too would like to see a way of turning the NFC on and off without the manual prompt - like you can with bluetooth.
It appears that you cant do this because its "unsafe" and because of this reason they've also made NFC not work while the screen is off although some crafty people have realized this kind of defeats the purpose of having NFC and for some phones they've enabled NFC to work with lock screen closed (see link)
http://www.xda-developers.com/android/activate-nfc-at-any-time/
I can kind of see how its unsafe to be able to turn it on without acknowledgement - but if you could setup a rule that required Root access then this should be a reasonable stop gap? You would then be able to setup a rule in say "automateit" for example so that the NFC turns on and off during certain times or after certain rules are activated or stopped - this would then kind of make safe because you can turn the NFC off and know for sure its off after certain events have occurred.
I know this is a very debatable subject but I think its a good subject to debate.
I use shortcutter app from play store. Although you have to grant the relevant permission via adb.

Tasker & S-Pen Removal

Is there anyway in Tasker to detect S-Pen removal? If there is I'd like to try (or get some advice for) creating a profile that if my screen is on, and there is no active app to have Tasker launch an app w/ S-Pen removal.
jeggen said:
Is there anyway in Tasker to detect S-Pen removal? If there is I'd like to try (or get some advice for) creating a profile that if my screen is on, and there is no active app to have Tasker launch an app w/ S-Pen removal.
Click to expand...
Click to collapse
S Pen Helper have a plugin for tasker to detect s pen removal or insertion.
antt00 said:
S Pen Helper have a plugin for tasker to detect s pen removal or insertion.
Click to expand...
Click to collapse
Thanks for the pointer. That plugin works great. Is there any way in an if statement in a task to have Tasker detect if there are any foreground apps running? I am hoping to develop a profile/task that launches a specific app on S-Pen removal only if I'm not currently using any other app (actively/foreground).
Haven't used Tasker in a while but why not put the foreground app in the profile?
The point is there is no foreground app. Profile is activated by the Spen removal then I want task to activate an app only if there are no current foreground apps. In other words if I'm using a program and remove Spen nothing happens but if the screen is off or I'm just at the home screen when I remove the Spen the task will activate the specified app.
Sent from my SPH-L900 using Tapatalk 2
Try using If -> Profiles active and create a profile that uses your Launcher as the context application.
Or make a profile with your Launcher as context and some on and exit tasks that can be picked up by the If. Maybe just set a variable to a particular value.
Being on the Home screen just means running the Launcher in foreground, right?
Tintinnuntius said:
Try using If -> Profiles active and create a profile that uses your Launcher as the context application.
Or make a profile with your Launcher as context and some on and exit tasks that can be picked up by the If. Maybe just set a variable to a particular value.
Being on the Home screen just means running the Launcher in foreground, right?
Click to expand...
Click to collapse
Great idea and works flawlessly. Have a task with just a "stop" event assigned to a profile with the "TouchWiz home" app as the context. Second profile for Spen removed has a task that has if profile active statement and only executes if I'm at the home screen... Screen on or off. Thanks for the idea!
Sent from my SPH-L900 using Tapatalk 2
Jeggen help
jeggen said:
Great idea and works flawlessly. Have a task with just a "stop" event assigned to a profile with the "TouchWiz home" app as the context. Second profile for Spen removed has a task that has if profile active statement and only executes if I'm at the home screen... Screen on or off. Thanks for the idea!
Sent from my SPH-L900 using Tapatalk 2
Click to expand...
Click to collapse
Hey Jeggen I was wondering if you could help me. I'm on the note 2014 edition and I want to create a profile that pauses and unpauses gmd gesture control when I remove and insert the spen respectively. I'm just extremely unfamiliar with tasker at this point. Think you could lend a tasker noon a hand?
Is the the app you are asking about? If so I don't see any plugin in Tasker to enable or disable this app from a Tasker action which would be needed to make this happen.
https://play.google.com/store/apps/details?id=com.goodmooddroid.gesturecontroldemo
The app you need to detect spen removal and insertion in Tasker is Note Buddy
https://play.google.com/store/apps/details?id=com.tushar.spen_helper
If you have both you could setup the task to enable or disable the GMD gesture control and then when adding the profile to Tasker select state then plugin and note buddy to setup a profile based on pen removal and assign the disable task when pens removed and the exit task for that profile should be the enable task for gmd gesture control.
Sent from my SPH-L900 using Tapatalk

Categories

Resources