Enabling Wifi Calling - NFC Hacking

I have a samsung galaxy blaze rooted with ics. I am trying to find a way to create an NFC tag that will switch my wifi calling settings to change the preferences. I work in a building with little cell signal and I would like to change it to wifi only while I am here.
I have tasker, but it seems a little out of my league. Just wondering if anybody might have some ideas???
The nfc tag writers I have seen so far don't seem to have this as a feature.

You might have to go with NFC task launcher, and have it trigger a Tasker sequence.

sysadmn said:
You might have to go with NFC task launcher, and have it trigger a Tasker sequence.
Click to expand...
Click to collapse
that's what i figured. Just having a tough time figuring out how to make the tasker sequence. I was hoping for an easier way

Related

4G on/off toggle

This is for the Verizon LTE version of the Samsung Galaxy Nexus.
I am tasked with writing a tiny app that will effectively disable/enable 4G capability. This can be done manually via settings > mobile network > network mode and choosing either LTE/CDMA (4g enabled) or CDMA (3g only).
I have not tried anything yet because Android development isn't my strong suit. I am looking for guidance... examples, code samples etc. I am assuming this should almost be a one-liner, but it has been my experience that with Android development nothing is as simple as it appears.
I am exploring ConnectivityManager and setNetworkPreference but I'm not sure this will do what I need.
Any help will be greatly appreciated.
I don't know if this may help you at all or not...but there is an app called ANYCUT and u can make shortcuts of an activity..in example....instead of dialing *#*#4636#*#* for the phone info and for you to switch data from 4g to 3g....u can set up a shortcut with it also for network modes..instead of going to it .but I hope it helps in some way ....maybe not what you were looking for...but a toggle widget sure would be appreciated.
Sent from my Galaxy Nexus using xda premium
having attempted the same thing, i think you'll find toggling the 3g/4g is not trivial since after 2.2 they removed the ability to modify phone state.
I created a widget to shortcut to the settings (similar to a few that are out there already) am just polishing a few preferences.
jkhouw1 said:
having attempted the same thing, i think you'll find toggling the 3g/4g is not trivial since after 2.2 they removed the ability to modify phone state.
I created a widget to shortcut to the settings (similar to a few that are out there already) am just polishing a few preferences.
Click to expand...
Click to collapse
Ahhh, good to know. So in your opinion should I give up? I can go to my pm and explain that this is "essentially" not possible. Unless it *IS* "possible." What are your thoughts?
Not sure if this helps but Widgetsoid will already do this. Few of the widget functions do work (it's not fully supported on ICS) but it will toggle 4g or 3g on and off. The key is setting the Data Toggle option in its menus to 'Root Toggle'.
Magnus_CA said:
Not sure if this helps but Widgetsoid will already do this. Few of the widget functions do work (it's not fully supported on ICS) but it will toggle 4g or 3g on and off. The key is setting the Data Toggle option in its menus to 'Root Toggle'.
Click to expand...
Click to collapse
4G says experimental on the version downloaded from the devs website. Cant check it to enable the widget
TheDave1022 said:
4G says experimental on the version downloaded from the devs website. Cant check it to enable the widget
Click to expand...
Click to collapse
I believe that's to toggle between 3g/4g. The option to add it as a button to the widget is greyed out so that definitely doesn't work. However you can create a button that will toggle data off, whether you're using 3g or 4g.
A friend of mine created this widget a few days ago for me. The widget works for showing if lte is on or off. upon tapping the widget it takes you directly to the mobile network settings page effectively reducing the amount of time to toggle it.
he said the only way to make it actually work would be to have the app id be the same as the system id, it would have to be done via flashable zip and not just a simple apk.
*shrug*
rayfin said:
A friend of mine created this widget a few days ago for me. The widget works for showing if lte is on or off. upon tapping the widget it takes you directly to the mobile network settings page effectively reducing the amount of time to toggle it.
he said the only way to make it actually work would be to have the app id be the same as the system id, it would have to be done via flashable zip and not just a simple apk.
*shrug*
Click to expand...
Click to collapse
If you guys are going through that much trouble to turn data on and off you should try widgetsoid.
Magnus_CA said:
If you guys are going through that much trouble to turn data on and off you should try widgetsoid.
Click to expand...
Click to collapse
Magnus, when you have some time, can you do a write-up as to how to do this w/ widgetsoid? I can't seem to get it.
Magnus_CA said:
If you guys are going through that much trouble to turn data on and off you should try widgetsoid.
Click to expand...
Click to collapse
NexusMMM said:
Magnus, when you have some time, can you do a write-up as to how to do this w/ widgetsoid? I can't seem to get it.
Click to expand...
Click to collapse
I'm operating off memory because I don't have my phone in front of me...
Fist, make sure you installed widgetsoid2.x!! Also, he recommends a reboot after install. This may just be to get the widgets in your widget list. And of course, you must be rooted.
I dropped a widgetsoid widget to my homescreen and went into its configuration. The button you need to include is 'Enable/disable Data' (one arrow pointing up and one down). The other key is to choose 'Root Toggle' in global preferences. When you're done setting up your widget click apply.
That did it for me. Let me know if you're still having problems and I'll try and reply with my phone in front of me next time.
NexusMMM said:
Magnus, when you have some time, can you do a write-up as to how to do this w/ widgetsoid? I can't seem to get it.
Click to expand...
Click to collapse
i wouldn't get too excited... turning data ON/OFF and toggling between 4G/3G are separate controls, i haven't tried the data toggle yet (to see if it's a real toggle), but the Widgetsoid 4g/3g "toggle" definitely only opens the settings menu. still, Widgetsoid is so awesome that i purchased the donate version.

AOSP tether patch.

Has there been anything developed that can be applied to the stock ROM (rooted) to enable the AOSP tether, overriding Verizon's tether?
If not, why?
Is it a kernel issue? Can it be done on a stock ROM at all? Etc...
If you believe it to be possible, can you guide me toward information so that I can dive into this rabbit hole? I have background in development, though I've never touched Android, the OS, or the kernel, so I'm looking for a good place to get started.
I understand that I can just install a custom ROM, but that is not the answer to the puzzle I'm trying to solve.
Sent from my Galaxy Nexus using XDA App
http://www.droidforums.net/forum/galaxy-nexus-development/188611-official-wifi-tether.html
This is not AOSP tether. I have considered poking around in its source though.
As I remember it, my OG Droid needed a kernel modification to run android-wifi-tether where the Nexus doesn't. Figure it might be tapping into something existing.
As I said before, never played around with any of the dev stuff on Android, so feel free to correct my way out left speculation with fact.
Sent from my Galaxy Nexus using XDA App
hgray said:
This is not AOSP tether. I have considered poking around in its source though.
As I remember it, my OG Droid needed a kernel modification to run android-wifi-tether where the Nexus doesn't. Figure it might be tapping into something existing.
As I said before, never played around with any of the dev stuff on Android, so feel free to correct my way out left speculation with fact.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Confused - if it works, why does that matter? Just curious.
I see that devs have it worked out in their ROMS, so I wondered if it was available as a patch in the same way that battery percentage patches have been in the past.
The Android-Wifi-Tether is a good piece of software, but I figure that whatever is built into the OS is probably WAY more stable. I've always had problems with the software for one reason or another and I'm currently having stability issues on the Nexus.
I'm also interested to be able to learn more about how tethering operates on the backend because I'm currently having issues with my tethering speed.
http://forum.xda-developers.com/showthread.php?t=1436598
I could possibly avoid the speed issue by installing another ROM or trying to wipe and see if that fixes it, but that would not actually SOLVE the problem. I want to know why.
Note, should my speed issue go away I would still be interested in getting AOSP tether running.
TLDR; I'm curious too.
you should try this: https://market.android.com/details?id=com.koushikdutta.tether
it can't be blocked by verizon, and it's made by the creator of clockwork mod.
I did try Tether in an attempt to determine if android-wifi-tether was the culprit of my speed problems and I had the same slow results. Aside from that, my interest is in getting the AOSP tether into a patch. I'm setting up to poke around inside the source code now.
Wish me luck!
http://source.android.com/source/initializing.html
The only difference between carrier tether and aosp tether in ICS is provisioning.
http://www.galaxynexusforum.com/for...e-wifi-hotspot-using-unrooted-phone-free.html
Just add a tether widget using Switch Pro Widget and it overrides the check. Easy, free tethering.
adrynalyne said:
The only difference between carrier tether and aosp tether in ICS is provisioning.
Click to expand...
Click to collapse
I tried the tether widget you shared. I'm getting 4G speeds with it, but still not with any other tether program...
Can you point me to some more info about the above quote? I'm not being a smart-butt. Just genuinely curious as to the deeper answer of why. It seems as though the other tether apps are pulling from the 3G radio.
I just thought of a way to test it... Make a phone call while tethering and see if it dies. Not sure if the Nexus has SVDO, but I'll turn off LTE to ensure that it's riding on 3G and make a second test to confirm.
I can't make a call right now, so I'll try later and post results.
I'm still interested in how this is circumvented by the widget and why the 3G is being used be the other tether programs, if this is actually what is happening.
Hmm...
Funny business going on. I just tried android-wifi-tether once more for kicks and now it's running on 4G speeds.
Rebooted the phone to make sure that it stuck and it did.
Not sure why, but still interested to know.
Out in left field (but still reasonable) speculation is welcome.
Sad that I will not get to try and test my 3G theory. I do have my clockworkMod backup and might try it all tomorrow and see what results I get.
hgray said:
I tried the tether widget you shared. I'm getting 4G speeds with it, but still not with any other tether program...
Can you point me to some more info about the above quote? I'm not being a smart-butt. Just genuinely curious as to the deeper answer of why. It seems as though the other tether apps are pulling from the 3G radio.
I just thought of a way to test it... Make a phone call while tethering and see if it dies. Not sure if the Nexus has SVDO, but I'll turn off LTE to ensure that it's riding on 3G and make a second test to confirm.
I can't make a call right now, so I'll try later and post results.
I'm still interested in how this is circumvented by the widget and why the 3G is being used be the other tether programs, if this is actually what is happening.
Click to expand...
Click to collapse
I can confirm also that using a WiFi hotspot toggle will override the Verizon hotspot check. I saw this on another forum and tried it out. It works flawlessly. Apparently this worked on Thunderbolts on VZW but not on other devices. If I had to guess, they implemented the check in a very rudimentary way that is bypassed by using a toggle. The toggle likely just executes a command to enable the hotspot whereas the toggle in the settings has a check in place first and then the command is executed. Either way, it works and I don't have any issues at all.
A more apt title for this thread would be "Verizon tether patch", seeing as AOSP has tethering and doesn't need any patching to enable it, like you do on American carrier-phones.
After digging around in some source code and stumbling upon some relevant topics both here and other forums, I see that this is something that happens before compile. I suppose it would be possible to replace recompiled versions of these files, but I don't know enough about what I'm doing here to make that happen at this point.
A few other people have been down this road of inquisition for ROM development. The answers were out there, I just didn't have the right keywords until I started poking in the ICS source code.

[Q] App to reconnect 4g?

Is there an app that will auto turn off 4g and turn it back on when I lose connection? I know the areas that I have 4g and turn it off when going out of those areas. However, there's a couple dead spots in town that kick me off when I'm driving around and it never reconnects by itself. I've tried editing the wimax settings, but none of them reconnect for me.
Thanks!
I bought, but never used, the profiles app. I don't know if it can be configured to do what you want. I think it might be able to do things based on the time of day or location. I'm sure someone that uses that app could tell you if rules could be made up with it to do what you're looking for.
That's a good idea. I have Tasker, but didn't think about that. I will look into that in the mean time. thanks
ok I think tasker is a little too advanced for me to figure out how to do that. I just use i for basic things so far hehe.
oscarthegrouch said:
I bought, but never used, the profiles app. I don't know if it can be configured to do what you want. I think it might be able to do things based on the time of day or location. I'm sure someone that uses that app could tell you if rules could be made up with it to do what you're looking for.
Click to expand...
Click to collapse

(Q)NFC in airplane mode

Forgive me if this has been asked before. I did search and didn't find an answer. Is there a way to prevent NFC from being disabled in airplane mode? I currently use a tag at work to turn airplane mode on when I get to my desk. I have virtually zero signal and no wifi, so leaving airplane mode off eats a lot of battery in the order of 25% or more an hour. I would like to be able to just tap the tag when I leave to turn everything on. I have tried a simple task in tasker (Status=Airplane mode on -> enable NFC), but its sketchy at best. I know the nfc.apk has been modded to enable at lockscreen and at screen off conditions. Could the nfc.apk be modded to survive airplane mode, or would that hack be somewhere else. If it matters, I'm on an AT&T Galaxy SIII running the stock rom, rooted.
On my Galaxy Nexus, I'm able to go into the menu and enable NFC once I activate aeroplane mode; is it different for the S3? Or are you looking for an automatic solution?
I'm looking for an automatic solution. I can manually enable this too.
I am also looking to do this, or find a work around that turns off everything airplane mode does except NFC
lordmorphous said:
I'm looking for an automatic solution. I can manually enable this too.
Click to expand...
Click to collapse
I mean not to be an ass or anything but would it kill you just to do it manually? It takes like 3 seconds...
Sent from my Galaxy Nexus
AshtonTS said:
I mean not to be an ass or anything but would it kill you just to do it manually? It takes like 3 seconds...
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
I guess that is what he means by automatically rather than manually.
AshtonTS said:
I mean not to be an ass or anything but would it kill you just to do it manually? It takes like 3 seconds...
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
But that defeats the purpose of using the nfc... Automation.... Why I bought an NfC capable phone
Sent from my EVO using Tapatalk 2
bacidath said:
But that defeats the purpose of using the nfc... Automation.... Why I bought an NfC capable phone
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
I added this to NFC Task Launcher - essentially there is a comma delimited string that tells Airplane Mode what radios to toggle. If you remove nfc from this list the broadcast receiver for the nfc service doesn't disable it when airplane mode changed is broadcast. It only scans this setting on boot though so you'll need to change it and then reboot.
krohnjw said:
I added this to NFC Task Launcher - essentially there is a comma delimited string that tells Airplane Mode what radios to toggle. If you remove nfc from this list the broadcast receiver for the nfc service doesn't disable it when airplane mode changed is broadcast. It only scans this setting on boot though so you'll need to change it and then reboot.
Click to expand...
Click to collapse
That is the NFC app I use, fantastic app by the way thanks. So is it in there now?
kiwitrc said:
That is the NFC app I use, fantastic app by the way thanks. So is it in there now?
Click to expand...
Click to collapse
Yeah, it's been in for the last few updates. Under preferences and advanced.
Ignore my comment, found it thanks!
Sorry, I didn't mean to abandon my own post....lol.
I didn't realize this option was in the app...awesome!
krohnjw said:
Yeah, it's been in for the last few updates. Under preferences and advanced.
Click to expand...
Click to collapse
Thanks... I should have looked in there
Sent from my EVO using Tapatalk 2
kiwitrc said:
Ignore my comment, found it thanks!
Click to expand...
Click to collapse
I can not find!!!!!! Please help.
NFC task launcher is now Trigger. Is this OK.
Thanks.
Dadomih said:
I can not find!!!!!! Please help.
NFC task launcher is now Trigger. Is this OK.
Thanks.
Click to expand...
Click to collapse
Haven't used it for a while. Had a look but I can not see it anywhere in the new app, sorry.
kiwitrc said:
Haven't used it for a while. Had a look but I can not see it anywhere in the new app, sorry.
Click to expand...
Click to collapse
Thanks Kiwitrc.
Can anyone make a backup of NFC task launcher and send it to me via e-mail?

[SOLVED with INFO] WiFi Calling and GPS

Is it just me or does having WiFi calling enabled and running use the GPS a lot?
From what i have googled and found is that it does. But i just wanna make sure im not crazy or something or have a rogue app running..
Do any others notice this?
Also, what is it even for? 911 calls?
elesbb said:
Is it just me or does having WiFi calling enabled and running use the GPS a lot?
Click to expand...
Click to collapse
I have wifi calling on all the time, and I notice my GPS does activate a lot at random times when I'm not otherwise using any specific apps (usually just saying "searching for location"); however, I haven't noticed a connection between the two (the GPS activating when I make / receive a wifi call)
Just Another User said:
I have wifi calling on all the time, and I notice my GPS does activate a lot at random times when I'm not otherwise using any specific apps (usually just saying "searching for location"); however, I haven't noticed a connection between the two (the GPS activating when I make / receive a wifi call)
Click to expand...
Click to collapse
Thanks for the reply! It's not necessarily when I make/receive a call. It's just random. I'm gonna take a look at the apk see what it's doing.
Sent from my SGH-M919 using Tapatalk 2
Great, if you find anything post it here. I'm also curious why my phone needs to know my location at all these random times, especially in light of recent news here in the US.
My best guess is that it's related to Google Now (the google voice search thing). Do you have that enabled? They say they periodically take your location to tailor content and make the app "smart" (such as figuring out your home address and telling you how long it will take you to get there from a given location).
Just Another User said:
Great, if you find anything post it here. I'm also curious why my phone needs to know my location at all these random times, especially in light of recent news here in the US.
My best guess is that it's related to Google Now (the google voice search thing). Do you have that enabled? They say they periodically take your location to tailor content and make the app "smart" (such as figuring out your home address and telling you how long it will take you to get there from a given location).
Click to expand...
Click to collapse
I don't have the apk installed for Google now. So it can't be that. And I notice it locks my GPS every time I see that WiFi calling notification. So I'm most certainly it's related to that.
And yeah go USA right? Man I don't get our government.
Sent from my SGH-M919 using Tapatalk 2
UPDATE:
So i decompiled the apk, and my suspicions are correct. The GPS for the WiFi calling IS used for emergency calls to locate you more accurately. I am still wondering if i should remove it or not. I may just decrease the interval for how often it locks.
elesbb said:
UPDATE:
So i decompiled the apk, and my suspicions are correct. The GPS for the WiFi calling IS used for emergency calls to locate you more accurately. I am still wondering if i should remove it or not. I may just decrease the interval for how often it locks.
Click to expand...
Click to collapse
Thanks for the update.
I thought the wifi calling app was closed source, so you couldn't get into it? If you know of a way to disable the tracking, that would be nice (i'm not a programmer, I just know enough to know what "decompiling an apk is" without being able to actually do it)
Not sure why they'd need this feature (presumably they'd have your location anyway from the IP of the wifi connection), and if I need to call Emergency Services, I'll have to tell them where I am anyway.
Just Another User said:
Thanks for the update.
I thought the wifi calling app was closed source, so you couldn't get into it? If you know of a way to disable the tracking, that would be nice (i'm not a programmer, I just know enough to know what "decompiling an apk is" without being able to actually do it)
Not sure why they'd need this feature (presumably they'd have your location anyway from the IP of the wifi connection), and if I need to call Emergency Services, I'll have to tell them where I am anyway.
Click to expand...
Click to collapse
I can disable it. And it makes it easier for emergency personal to find you as exact coordinates are given to them. If you're on cell towers and initiate a 911 call, I believe it automatically sends GPS information. It's just the WiFi calling doesn't use cell towers so it can't grab the location. And I'm sure they can get ip information.
As for it being closed source, I just decompiled the apk responsible for the notification and all the prompts/tutorials, the actual hard core code is found in the lib files which yes are closed source and impossible to reverse engineer.
Sent from my SGH-M919 using Tapatalk 2

Categories

Resources