通过c++获取Oculus Quest Mac地址

Getting Oculus Quest Mac Address through c++

我一直在尝试从 Oculus Quest 2 获取 Mac 地址,起初我找到了 FGenericPlatformMisc::GetMacAddress,并在蓝图函数库上实现了它,将其作为蓝图公开。努力获取我的 windows mac 地址,但是当我尝试在 oculus build returns 中使用它时,什么也没有。我知道此功能已被弃用并且在所有平台上都不可靠,所以有人知道从 android / oculus?

获取 mac 的某种方法

Oculus 运行 Android 7+,所以我的猜测是 Oculus 应用程序会被故意限制访问它。来自 the Android developer docs:

MAC addresses are globally unique, not user-resettable, and survive factory resets. For these reasons, to protect user privacy, on Android versions 6 and higher, access to MAC addresses is restricted to system apps. Third-party apps can't access them.