Related
I bought some nfc tags from the good people over at tagsfordroid.com and took the weekend to program a few of the tags. I thought it would be cool to list some of the programs/actions people have programmed into the tags so others can get some good ideas.
Program: NFC Task Launcher.
Work tag:
~switch tag.
1. Get to work:
Disable wifi
set ringer type vibrate
set brightness to 26
disable bluetooth
2. Leave work:
Enable Wifi
Set Ringer type Normal
Enable Auto-Brightness
Ringer Volume 7
NFC on key chain.
~switch tag.
1. hotspot on:
enable portable hotspot
set brightness to 16
disable wifi
disable bluetooth
2. hotspot off:
disable portable hotspot
enable wifi
enable bluetooth
enable wifi
That's all i have for now. lets see what else everyone is programming into their nfc chips.
i also put an nfc tag by my calendar at my work to pull up my calendar app when i tap my calendar.
Put a tag on my car dock to turn off wifi, turn up ringer and media volume, and start pandora
Have one on my valet at home to turn on wifi and set ringer to vibrate
Sent from my Galaxy Note using xda premium
neevz said:
Put a tag on my car dock to turn off wifi, turn up ringer and media volume, and start pandora
Have one on my valet at home to turn on wifi and set ringer to vibrate
Sent from my Galaxy Note using xda premium
Click to expand...
Click to collapse
cool!
alicechong89 said:
Here is another page for Creative Uses for NFC Tags
http://forum.xda-developers.com/showthread.php?t=1447678&highlight=nfc+tags
Click to expand...
Click to collapse
good article i saw that one when doing a search.
Just thought it would be cool to actually show the action items that were posted to the tags so someone could reproduce it if they thought it was a good idea.
has anyone figured out how to turn on and off an exchange account with NFC? I would love the tag that i use when i leave my office to turn on my exchange account mail so i can get my e-mail while im at home. I dont need it on while im at work because im in front of a computer all day and have access to my e-mail.
chambers7867 said:
has anyone figured out how to turn on and off an exchange account with NFC? I would love the tag that i use when i leave my office to turn on my exchange account mail so i can get my e-mail while im at home. I dont need it on while im at work because im in front of a computer all day and have access to my e-mail.
Click to expand...
Click to collapse
I'm sure that you could set something up using a combination of NFC Task Launcher and Tasker.
Also, while I'm tooling around trying different tags, It seems that placing tags on a metal background causes them to not work... I have had no success placing them on the side of the front door (metal door...) so I can touch it on my way out the door. Also all the desks and everything else for that matter is metal at work (Navy) so placing a "work" tag has proven to be rather difficult to accomplish successfully... May have to try different types of tags to see if there is success with another type.
Ammontj said:
I'm sure that you could set something up using a combination of NFC Task Launcher and Tasker.
Also, while I'm tooling around trying different tags, It seems that placing tags on a metal background causes them to not work... I have had no success placing them on the side of the front door (metal door...) so I can touch it on my way out the door. Also all the desks and everything else for that matter is metal at work (Navy) so placing a "work" tag has proven to be rather difficult to accomplish successfully... May have to try different types of tags to see if there is success with another type.
Click to expand...
Click to collapse
Get metal isolating tags, they have an isolation layer between the IC and the surface you place them on so they work on metal. They are a bit thicker as a result.
place them on so they work on metal
There is a mod in the EVO 4g LTE and HTC one x forums that let's you choose when NFC can be read.
Screen on and unlocked,
Screen on and locked, or
Screed off (obviously locked)
I modded the phone to read tags when the screen is on and even if the phone is still locked. Allowing it to read while the screen is off may be a security risk for some.
Anyway,
On my keychain:
Switcher:
WiFi off, Bluetooth on, volume up, brightness up, latitude check in, plays media player.
This is great because it automatically connects to my car Bluetooth headset and the HTC aux stereoclip so music starts playing through my car speakers wirelessly via swipe of the keychain.
Tap again to disable all these and check in again w latitude.
I also have a separate tag in my car low on the dash to enable GPS and open maps so I don't have to fiddle w my phone througg the settings and open the app drawer to open maps. Makes driving that much safer. Also, I don't always use GPS, so having a separate tag for it from my keychain saves battery by using it only when needed.
Trying to set up a tag to enable WiFi tether for root users and stick it to my laptop/pc for quick swiping and enabling. But that has been tricky as you either have to use tasker or a custom activity in NFC task launcher.
Can't think of any others relevant to my interests. I don't see the need in making 38583983 tags. I definitely use the ones in the car tho.
I may order a wristband and think up something creative for it. Assigning a "sync all" activity would rock for it as I keep auto-syncing on my phone off and only sync email and such when I see fit.
Phew.
Sent from my EVO using XDA
For the two of you who permanent contact?
For example, I have a car dock in my car. My thought was to put the NFC Tag sticker on the back of the dock so when I put my phone in the dock, it would obviously hit the tag and trigger my car settings (wifi off, bluetooth on, etc). Then when I removed the phone from the dock, I'd want it to trigger other settings (bluetooth off, etc).
Since the phone would be constantly against the tag, though, would it be continually triggering switches back and forth? Or would the initial switch trigger upon putting it in the dock, but in order to trigger the 2nd switch upon removal I'd need to move it away from the tag, then tap it back on the tag to initiate another trigger?
Thanks for your help. Trying to fully grasp how the NFC tags work.
hollywoodfrodo said:
For the two of you who permanent contact?
For example, I have a car dock in my car. My thought was to put the NFC Tag sticker on the back of the dock so when I put my phone in the dock, it would obviously hit the tag and trigger my car settings (wifi off, bluetooth on, etc). Then when I removed the phone from the dock, I'd want it to trigger other settings (bluetooth off, etc).
Since the phone would be constantly against the tag, though, would it be continually triggering switches back and forth? Or would the initial switch trigger upon putting it in the dock, but in order to trigger the 2nd switch upon removal I'd need to move it away from the tag, then tap it back on the tag to initiate another trigger?
Thanks for your help. Trying to fully grasp how the NFC tags work.
Click to expand...
Click to collapse
With android there's no indication that a tag has gone out of "range" broadcast to the system. Essentially to get the tag to re-fire you'd need to either move out of range and then back in or turn the screen off (disables NFC) and then back on and unlock the device (restarts NfC and re-reads the tag).
hollywoodfrodo said:
For the two of you who permanent contact?
For example, I have a car dock in my car. My thought was to put the NFC Tag sticker on the back of the dock so when I put my phone in the dock, it would obviously hit the tag and trigger my car settings (wifi off, bluetooth on, etc). Then when I removed the phone from the dock, I'd want it to trigger other settings (bluetooth off, etc).
Since the phone would be constantly against the tag, though, would it be continually triggering switches back and forth? Or would the initial switch trigger upon putting it in the dock, but in order to trigger the 2nd switch upon removal I'd need to move it away from the tag, then tap it back on the tag to initiate another trigger?
Thanks for your help. Trying to fully grasp how the NFC tags work.
Click to expand...
Click to collapse
Two important points
1) NFC doesn't usually work with screen off, so you either need to patched NFC.apk (for example AOKP b40 has this feature) - otherwise, everytime you switch on screen, it would trigger the tag again
2) there really is no way to trigger action on tag removal
I solved this (sort of) by having two tags - one in dock and other one that resets to "default" settings that I swipe after I leave. Not pretty but working...
Or you can set the actions as toggles, so one touch - set for dock mode, and second touch - revert back. But it obviously doesn't work for everything.
Simple solution to that, get an app that detects other hardware features so it can detect when its being moved, ie proximity detection, orientation.
You could also get a fabric nfc tag and sew it into your pocket?
Sent from my GT-I9300 using xda premium
I created a tag that does the following:
->Turns WiFi on
->Waits until I'm connected to my home WiFi connection.
->Sends a WOL packet to my desktop at home
->Wait 20 seconds
->Turn Wifi Off
So when I get home from work I can put my phone down on the tag and my PC will automagically begin booting
For the obvious uses, don't forget night mode - turn ringer off (or on, depending) turn off mobile data, connect to home wifi, etc.
If you just want to mess with tags, go to your local tmo or bestbuy store and pick up a pack of the samsung tectiles. They aren't as cheap as you get online ($15 for 5 vs $1-$2 each) but they are decently large and work just fine. Once you run out you know its time to order a bunch, and you'll probably have a better idea which ones you want to order.
As an old-school embedded hacker, does anyone know of a vendor that sells the DESfire E2V tags with a tag dev kit? I've got a bunch of ideas for cool apps, but I need to be able to modify the OS on the tag. (Take a look at the specs, its pretty neat. up to 32k of storage, with security etc, all running on an old Intel embedded CPU from the 80s.) The only ones I've found so far have the firmware distinctly read-only. I suspect it is using the on-chip ROM, which means it would take impossibly delicate surgery to replace. (There is a pin that toggles between booting on-chip and external.) In theory a dev kit would be set to external and come with a jig or other tool to write it, as well as OS binaries for the standard NFC OS..
As a random easy example of stuff you could do, think of a write-only tag that took vcards for a mailing list (or a roll call) but didn't let anyone but the authorized user read them out again. Right now you'd need to put a full embedded computer behind an active NFC module to do that - a lot more expensive and more failure-prone than a custom tag..
The command IF
neevz said:
Put a tag on my car dock to turn off wifi, turn up ringer and media volume, and start pandora
Have one on my valet at home to turn on wifi and set ringer to vibrate
Sent from my Galaxy Note using xda premium
Click to expand...
Click to collapse
I think that without the command "IF" and "SWITCH" the use of this tags is too easy and useless.
Are these two commands available?
hollywoodfrodo said:
For the two of you who permanent contact?
For example, I have a car dock in my car. My thought was to put the NFC Tag sticker on the back of the dock so when I put my phone in the dock, it would obviously hit the tag and trigger my car settings (wifi off, bluetooth on, etc). Then when I removed the phone from the dock, I'd want it to trigger other settings (bluetooth off, etc).
Click to expand...
Click to collapse
I had problems with double-reading when I'd fumble putting the phone in the car dock. It snaps into place the dock, and it would sometimes read when it got close to the dock, then again when it snapped into the cradle.
I put the tag on my sun visor instead. Sit down, touch the phone to the visor, put it in the car dock. Arrive at work, pull the phone from the dock, touch the visor, and go.
Same thing with my at work tag - I put it on the side of my desk so it wouldn't re-trigger if I removed the phone from my work dock to answer it.
Anything is possible with Tasker
mmameli said:
I think that without the command "IF" and "SWITCH" the use of this tags is too easy and useless.
Are these two commands available?
Click to expand...
Click to collapse
You can definitely do "IF" commands if you use Tasker along with NFC Tags. Since Tasker doesn't natively support NFC, switch isn't a possibility, but since switch is built into many NFC apps, that's an easy one.
I programed my vcard on a tag and put it in my wallet.. Instead of exchanging info if they have an android or blackberry with nfc I just hold my wallet to their phone for a second and it will open the vcard on their phone and ask if they want to save it.
The tag is always in my wallet ready to go.
Surprisingly I've used it more then I thought I would already.. It's kind of fun also and people get a kick out of it.
Sent from my SAMSUNG-SGH-I747 using xda premium
Is there an NFC tag writer that will allow a tag to work in proximity? What I'm looking to do is to mount a peel and stick tag to my car's windshield mount. Then when the phone is in the mount, it will trigger the tasks I've programmed. When i remove the phone from the mount, I'd like the phone to toggle back to the way it was before it was placed into the mount.
I thought i had an app a while ago that would allow this, but i can no longer find it.
I personally haven't tried it, but I did a quick search in the play store for " tasker nfc" and this sounds like it may do the trick for you:
NFC Retag freehttps://play.google.com/store/apps/details?id=com.widgapp.NFC_ReTAG_FREE
Sent from my Optimus G Pro using xda app-developers app
CapnPez said:
I personally haven't tried it, but I did a quick search in the play store for " tasker nfc" and this sounds like it may do the trick for you:
NFC Retag freehttps://play.google.com/store/apps/details?id=com.widgapp.NFC_ReTAG_FREE
Sent from my Optimus G Pro using xda app-developers app
Click to expand...
Click to collapse
I have that app and i don't see a proximity setting. BTW, that app allows you to set what i would call macros on your phone. Unlike other NFC apps that write directly to the tag, this one stores the tag's ID on your phone, and then you associate a bunch of commands with that tag ID. So when the phone "sees" the tag, it then executes the stored commands that were stored on the phone, without anything having to be stored on the tag itself.
andygold said:
I have that app and i don't see a proximity setting. BTW, that app allows you to set what i would call macros on your phone. Unlike other NFC apps that write directly to the tag, this one stores the tag's ID on your phone, and then you associate a bunch of commands with that tag ID. So when the phone "sees" the tag, it then executes the stored commands that were stored on the phone, without anything having to be stored on the tag itself.
Click to expand...
Click to collapse
Oh, I see what you mean. I hadn't understood what you meant by the "proximity setting" (I've never used NFC tags). Just to be clear, is the difference in that the profile is changed depending on whether the tag is either in contact or not, i.e. car mode when in contact and then detects the loss of connection when removed and restores to previous profile?
Again, I'm not sure if this helps, but I found this thread from a GS3 forum:
http://forum.xda-developers.com/showthread.php?t=2171952
It sounds more like what you were asking, but I'm not sure if it's only for the GS3.
CapnPez said:
Oh, I see what you mean. I hadn't understood what you meant by the "proximity setting" (I've never used NFC tags). Just to be clear, is the difference in that the profile is changed depending on whether the tag is either in contact or not, i.e. car mode when in contact and then detects the loss of connection when removed and restores to previous profile?
Again, I'm not sure if this helps, but I found this thread from a GS3 forum:
http://forum.xda-developers.com/showthread.php?t=2171952
It sounds more like what you were asking, but I'm not sure if it's only for the GS3.
Click to expand...
Click to collapse
Yeah, I saw that when I searched. That is basically what I'm looking for. The thing is, I could have sworn that at one point I had an app that had proximity built in as standard. Maybe it was just for rooted phones, I don't remember...
I hadn't actually used it back then for proximity, but I thought it was there to be used.
To answer your question, Yes! With proximity, you could set your phone for the normal day to day operation. Then for example, at bed time, you could place your phone into a charging dock that has a peel and stick NFC tag on it's face, and when the phone gets near enough, the tag would activate the tasks you have programmed into the tag. For example, you could turn off WiFi, turn off the ringer, Turn the brightness down to minimum, set a wake alarm/volume/tone, etc... Then, in the morning, when you remove the phone from the dock and it loses proximity with the NFC tag, the tasks will revert to their "daytime" mode, and the brightness will come back up, the WiFi will turn back on, etc...
I realize that all of this can be done by setting the tag to "toggle" functions in that the first swipe of the tag could turn WiFi off, and the next swipe of the same tag would turn it back off, but obviously I don't want to "toggle" by using multiple swipes. I want proximity. (another way would be to use two separate tags near each other and one would be the daytime tag and the other would be for nighttime...)
for the car, I want to turn brightness down a bit (I do most of my driving at night), turn on bluetooth (to sync with my handsfree device), turn WiFi off while driving, start my music app and play a specific playlist, turn the volume up to max (my cassette adapter has very low volume, and the phone automatically lowers the volume when the headphone jack is plugged in), and announce each thing as it is happening (yes that's currently an option)....
i dont use NFC
phamtung8xhd said:
i dont use NFC
Click to expand...
Click to collapse
Thanks for posting your helpful and insightful comments. They truly add to this thread!!
Anyone else have any thoughts as to whether or not an app exists that allows NFC to work with a proximity setting?
Might this help you?
I understand that what you're probably looking for is an app to "program the NFC tag" itself but I hope you find this helpful until you find what you are looking for.
You can try using an app like Llama (the location aware Brazilian camel ...) to set different profiles (with settings and all) for home, work, CAR,etc. Have Llama identify the Areas first (Don't worry about car at this point just tweak the settings for the car profile). In the events tap you can define a condition (NFC tag detected) to an action (activate profile A: Car).
For when you arrive to your destination and want your phone settings to change to suite your new location i.e. activate a different profile, you can create an event -also in the events tab- triggered when the condition (Enter/In Area)is met. Llama will then alter your settings to the ones you have set for the new area you arrived to i.e. change Car profile to Home or Work. The reason why you have to create another event to change profiles after you get out of the car, after NFC tag disconnected, is that Llama can't detect when a certain NFC tag is disconnected -my understanding- so you have to create a new trigger to bring about a new event.
Keep us informed of your progress as I am really interested in Automation myself. Cheers.
I don't know how to put this nicely in words so forgive me if its hard to follow, but here goes:
When, in the settings in touchwiz, one checks the "disable spen detection when pen is docked" setting, what is the code or what changes in the scrips or system files to disable the detection?
I want to be able to disable detection because I've noticed that the screen drains my battery too fast in CM11 (and any other non touchwiz ROM). I feel that is the digitizer "listening" for the pen.
If I know what files are affected I should be able to use tasker to activate and deactivate the pen detection when I remove or insert the pen.
Sent from my GT-N7100 using xda app-developers app
I was using NFC LockScreenOff Enabler on my Nexus 5 until the screen hardware died on me. Google is currently sending me a new one. I was MultiROM'ing Lollipop and tried the smart NFC unlock feature, but I didn't like it because you had to turn the screen on, hold the NFC tag, and swipe a swipe-to-unlock screen.
I have an NFC implant so i want the functionality just like NFC LockScreenOff Enabler. NFC polling with screen off, hold phone up to my hand, phone unlocks straight to home screen.
Is there a working solution for lollipop?
dimex said:
I was using NFC LockScreenOff Enabler on my Nexus 5 until the screen hardware died on me. Google is currently sending me a new one. I was MultiROM'ing Lollipop and tried the smart NFC unlock feature, but I didn't like it because you had to turn the screen on, hold the NFC tag, and swipe a swipe-to-unlock screen.
I have an NFC implant so i want the functionality just like NFC LockScreenOff Enabler. NFC polling with screen off, hold phone up to my hand, phone unlocks straight to home screen.
Is there a working solution for lollipop?
Click to expand...
Click to collapse
not currently, however there are several non stock lock screens that have this feature such as:
Tap Unlock or Uber Device lock
mbloomer04 said:
not currently, however there are several non stock lock screens that have this feature such as:
Tap Unlock or Uber Device lock
Click to expand...
Click to collapse
They're both ugly and not reliable, IMO. I couldn't even get Uber to work and sent the dev an email. He was a ****ing jerk and basically said I'm dumb and didn't enable the app. Come on.
I wonder if there's a way to use Tasker to bypass the swipe screen after touching the phone to NFC. I don't mind placing the phone on my implant and pressing the power button. Having to then swipe another screen requires weird hand acrobatics when using an implant, which is why I'm still on 4.4.4.
dimex said:
They're both ugly and not reliable, IMO. I couldn't even get Uber to work and sent the dev an email. He was a ****ing jerk and basically said I'm dumb and didn't enable the app. Come on.
I wonder if there's a way to use Tasker to bypass the swipe screen after touching the phone to NFC. I don't mind placing the phone on my implant and pressing the power button. Having to then swipe another screen requires weird hand acrobatics when using an implant, which is why I'm still on 4.4.4.
Click to expand...
Click to collapse
using the secure settings and locale plugins it is possible to make a profile that disables lock screen on a specific nfc tag read and then reanables lockscreen when the screen goes off
mbloomer04 said:
using the secure settings and locale plugins it is possible to make a profile that disables lock screen on a specific nfc tag read and then reanables lockscreen when the screen goes off
Click to expand...
Click to collapse
Any guide on this?
Neurom707 said:
Any guide on this?
Click to expand...
Click to collapse
dimex said:
I wonder if there's a way to use Tasker to bypass the swipe screen after touching the phone to NFC. .
Click to expand...
Click to collapse
-EDIT-
guide link removed due to error
mbloomer04 said:
yup, I just made one for you here Guide
sorry for the delay
Click to expand...
Click to collapse
Not going to work. NFC polling in stock Lollipop is Screen On, Unlocked. We need to enable alternate polling modes to even be able to read the NFC tag. Go ahead and try it, your phone won't even read your NFC tag, let alone disengage the keyguard. Even if you got rid of the keyguard, you still have the Pattern Unlock, or PIN, or password. You need Secure Settings plugin within Tasker to remove those.
The only ROM for the Nexus 5 at the moment with different NFC polling options is Cataclysm. I tried extracting the NfcNci.apk after I changed the settings, but the settings didn't stick around when I brought it to stock ROM. I'm guessing you have to go in and manually add the settings or change the polling code within the apk, but I don't know how to decompile and edit code.
If you know how to do that, that's all we need; a modified NfcNci.apk with Screen Off, Locked polling mode. It's located in system/app.
Your guide is useless as it stands, just being honest.
dimex said:
Not going to work. NFC polling in stock Lollipop is Screen On, Unlocked. We need to enable alternate polling modes to even be able to read the NFC tag. Go ahead and try it, your phone won't even read your NFC tag, let alone disengage the keyguard. Even if you got rid of the keyguard, you still have the Pattern Unlock, or PIN, or password. You need Secure Settings plugin within Tasker to remove those.
The only ROM for the Nexus 5 at the moment with different NFC polling options is Cataclysm. I tried extracting the NfcNci.apk after I changed the settings, but the settings didn't stick around when I brought it to stock ROM. I'm guessing you have to go in and manually add the settings or change the polling code within the apk, but I don't know how to decompile and edit code.
If you know how to do that, that's all we need; a modified NfcNci.apk with Screen Off, Locked polling mode. It's located in system/app.
Your guide is useless as it stands, just being honest.
Click to expand...
Click to collapse
Damned hubris! good call, tested and it worked fine on 4.4.4 :/ . hmmm will edit the guide to mention it wont work on Android 5
Thanks for the heads up and my apologies
"Even if you got rid of the keyguard, you still have the Pattern Unlock, or PIN, or password. You need Secure Settings plugin within Tasker to remove those."
Click to expand...
Click to collapse
The tasker profile above worked fine with a pattern set, scan the tag the lockscreen disapears till you turn off your screen, I tested it with secure settings and could see no benefit to also having it disable you password etc as the lack of keyguard meant you were never prompted for it
but aye a different polling method is needed
---------- Post added at 03:07 AM ---------- Previous post was at 02:59 AM ----------
dimex said:
Your guide is useless as it stands, just being honest.
Click to expand...
Click to collapse
Aye, have requested the thread be removed as it'll only work with nfc lockscreenoff... and that in itself removes the need for this
thanks for the heads up, rookie error on my part there
mbloomer04 said:
Aye, have requested the thread be removed as it'll only work with nfc lockscreenoff... and that in itself removes the need for this
thanks for the heads up, rookie error on my part there
Click to expand...
Click to collapse
All good. We just need someone who knows what's up to modify NfcNci.apk for us. I just started the semester and can't devote time to it right now.
dimex said:
All good. We just need someone who knows what's up to modify NfcNci.apk for us. I just started the semester and can't devote time to it right now.
Click to expand...
Click to collapse
Even if it has been a while, this might be useful:
http://forum.xda-developers.com/showpost.php?p=59780557&postcount=469
There is also a step-by-step guide on how to mod it yourself, a few pages later, and a guide for NFC with screen on but locked. I tried it on 5.1 (Xperia S, nAOSP), worked like a charm.
So I know some time ago, this functionality had been hacked using a combination of the NFC LockscreenOFF Xposed module and modification of the NFC apk. Base on what I can find in the forums, this last worked with Lollipop, but there seems to be little or no activity on this front since then.
I'm just wondering if anyone knows of a way to restore this functionality in Oreo, or if the discussion has ceased because there is a simpler, more obvious solution that I can't find.
Essentially, my goal is to have an NFC tag on my phone cradle in my car which facilitates Tasker profiles/tasks for using the phone in the car. My current setup *sorta* works. The tag sets a variable, and when the variable is set and the phone is plugged in, the profiles/tasks execute. When the phone is unplugged, the exit tasks execute, including clearing the variable set by the NFC tag.
The problem is that if I turn the screen off, the process repeats itself the next time I turn the screen on.
Ideally, the NFC tag would be detected even if the screen is off, the entry tasks would run, and the exit tasks would be triggered by the NFC tag being lost (phone removed from the cradle). Because the tag would still be detected when the screen is off, I wouldn't have to worry about the tasks executing again when I turn the screen on. I could skip the variable entirely and eliminate the "powered" condition for the profile.
Any insight on a solution for this would be much appreciated. If this is the wrong section, please point me in the right direction. I searched every applicable forum I could think of, so my apologies if I've overlooked something.
I'm running a Nexus 5X, stock Oreo 8.1, rooted with Magisk and running systemless Xposed. Tasker and Secure Settings are installed, if that matters.
Thanks in advance for any input.
Looking for this as well. Did you ever find a solution?