简体   繁体   English

Android蓝牙-是否可以通过使用给定的MAC地址,序列号和设备的PIN来构建蓝牙设备?

[英]Android Bluetooth-Is it possible to construct the Bluetooth Device by using the given MAC Address,Serial Number and Device's PIN?

我正在创建一个android应用程序,其中列出了用户最近添加的蓝牙设备,我的要求是,如果用户要使用其他一些移动设备登录,我还要显示已经配对的蓝牙设备。通过PIN配对选项启用,我已经获得了蓝牙设备的所有详细信息,例如MAC地址,序列号和PIN详细信息,这里我想做的是在后台本身进行操作,同时从服务器上获取我需要的设备列表为特定设备进行PIN配对我的意思是在这里我不需要从创建蓝牙设备对象的给定详细信息中等待设备的存在。

I assume your app is want to let user to migrate the paired device smoothly between different devices. 我假设您的应用程序希望让用户在不同设备之间顺利迁移配对的设备。 If you are building your app on Android, I mean fi you do not hijack(get the root privilege) the system, the answer is NO. 如果您要在Android上构建应用程序,那么我的意思是说您不劫持(获得root特权)系统,答案是否定的。 You can only got the MAC address, but you can not get the PIN(here the PIN I assume should be the linkkey/LTK which is used for encrypt the link).If the PIN here is pincode, it is meaningless since the pin code may vary, and only used for pairing. 您只能获取MAC地址,但无法获取PIN码(此处我假定的PIN码应该是用于加密链接的链接密钥/ LTK)。如果此处的PIN码是密码,则由于密码而没有意义可能会有所不同,仅用于配对。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM