Mock Device Kit is a component of the Device Access Toolkit that helps you build and test integrations for Meta glasses, without the need to access the actual hardware.
This kit provides a simulated device that mirrors the capabilities and behavior of Meta glasses, including camera, media streaming, permissions, and device state changes. You can use it to test your app integrations in a virtual environment. This is useful for rapid iteration, automated testing, and development workflows where physical devices may not be available or practical to use.
To connect to a simulated device using the sample app:
Tap the Debug icon on your mobile device. You will see the Mock Device Kit menu open.
Tap Pair RayBan Meta. A Mock Device card is then added to the view.
Swipe down the Mock Device Kit menu. The new device should now be available.
Changing state
Now that your mock device is paired, you can alter the state of your virtual device:
To simulate powering on the glasses, tap PowerOn. The device must change to “Connected” on the main screen.
To simulate unfolding the glasses, tap Unfold. The device is now ready for streaming.
To simulate putting on the glasses, tap Don.
Note: CameraAccess automatically checks camera permissions when you start streaming. If permission isn’t granted, the app redirects to Meta AI to complete the flow.
Simulating media streaming
To test your app’s media handling capabilities, you can configure the Mock Device Kit with sample media files that simulate video streaming and photo capture from the glasses.
Streaming video
Set your mock device to Unfold.
Click Select video and select any supported video. This video will be used as mock streaming video.
Note: Android doesn’t transcode video automatically. Any video used here must be in h265 format. To transcode a video to h265, you can use FFmpeg. For example: