NFC在切换的Android 4.x版+?
我知道这是可能的编程姜饼禁用NFC,但有没有人设法围绕创建工作来完成相同的ICS及以上?
I know it is programmatically possible to disable NFC in Gingerbread, but has anyone managed to create a work around to accomplish the same for ICS and above?
我确定如果涉及更改操作系统还源$ C $ C,如果有人涉足了:)
I'm ok if it involves changing the source code of the OS also if someone has ventured into that :)
这姜饼启动2.3.5应用程序所需要的特殊权限android.permission.WRITE_SECURE_SETTINGS
来改变NFC的状态。通常情况下,只有应用由谷歌签署能有此权限,但我认为如果你铲除你的设备,你也许可以绕过通过添加您的应用程序的系统映像文件或将您的签名密钥到某处存放了一些列表。这个答案似乎也有关: http://stackoverflow.com/a/3477237/1202968
Starting from Gingerbread 2.3.5 an app needs the special permission "android.permission.WRITE_SECURE_SETTINGS"
to change the state of NFC. Normally, only apps signed by Google can have this permission, but I assume that if you root your device, you can probably circumvent that by adding your app to the system image or adding your signature key to some list that is stored somewhere. This answer also seems relevant: http://stackoverflow.com/a/3477237/1202968