以编程方式获取Android移动设备的MAC地址
如今,是否仍然可以通过编程方式获取Android设备的MAC地址?
我有这个项目,它使用访问点来定位设备的室内位置,对于位置数据,其唯一标识符是连接的设备的MAC地址。
我正在通过HTTP请求的访问点获取位置,但是有了该请求,我可以连接所有设备。
我的目标是创建一个可以区分设备运行的MAC地址的React Native移动应用程序。因此,从访问点获取位置数据后,我可以使用React Antive应用程序在室内地图上显示位置。
我尝试使用CLI,但也不支持它。我可以将其重做Java,并在需要时在Android Studio中进行。
更新启动Android 11 https:https://开发人员.android.com/training/articles/user-data-ids#mac-11-plus
所有建议都予以赞赏:)
Are there still ways to fetch the MAC Address of an Android device programmatically nowadays?
I have this project, that uses Access Points to locate the indoor position of a device, and for the location data, its unique identifier is the connected device's MAC Address.
I am fetching the location from the Access points thru an HTTP request, but with that request, I am getting all the devices connected.
My goal is to create a react native mobile app that can distinguish the MAC address of the device where it runs. So that after fetching the location data from the Access Points, I can display where I am on the indoor map using the react native app.
I tried using Expo CLI, but it does not support it also. I can redo it into Java and do it in android studio if needed.
Updates starting Android 11 https://developer.android.com/training/articles/user-data-ids#mac-11-plus
All suggestions are appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论