以编程方式获取Android移动设备的MAC地址

发布于 2025-02-13 01:12:05 字数 685 浏览 0 评论 0原文

如今,是否仍然可以通过编程方式获取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

不与Mac地址一起使用

所有建议都予以赞赏:)

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

Don't work with MAC Address

All suggestions are appreciated :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文