NFC在切换的Andr​​oid 4.x版+? [英] Nfc Toggle in Android 4.x+?

查看:135
本文介绍了NFC在切换的Andr​​oid 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

这篇关于NFC在切换的Andr​​oid 4.x版+?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆