mockdevice-testing
Skill by facebook
Explains how to use MockDeviceKit to test DAT SDK integrations on Android without physical Meta glasses. It is for Android developers who need simulated glasses, permissions and camera feeds in their tests.
Install mockdevice-testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.claude/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/mockdevice-testing ~/.claude/skills/mockdevice-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/mockdevice-testing ~/.gemini/antigravity-cli/skills/mockdevice-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
MockDeviceKit is a testing aid for developers building on the DAT SDK. It simulates Meta glasses, including Ray-Ban Meta, so integrations can be tested without physical hardware. The entry point is MockDeviceKit, which creates simulated devices through MockGlasses and provides a MockCameraKit with a configurable video feed and photo capture.
Developers enable the mock environment, pair a simulated device, and step it through power, unfold, don and fold states. They can also control permission results, such as simulating a denied camera permission, and set video or image files as camera input. The skill includes a base class for instrumentation tests and notes on converting video with FFmpeg. It is aimed at Android developers testing DAT SDK integrations.
Written from the project's SKILL.md and checked against it.
What it can do
- MockDeviceKitEntry point for creating simulated devices and enabling the mock environment.
- MockGlassesSimulated Ray-Ban Meta glasses that can be paired and controlled in tests.
- Glasses lifecycle simulationSimulates powerOn, unfold, don, doff, fold and powerOff device states.
- Permission controlSets permission status and request results, such as simulating a denied camera permission.
- Mock camera feedsSets a video file as the stream feed or an image as the captured photo.
- Instrumentation test base classProvides a reusable Kotlin test base class with MockDeviceKit setup and teardown.
What you need
- Android project using Gradle
- mwdat-mockdevice Gradle dependency
- FFmpeg to convert mock video files (optional)
Try asking
- Set up a simulated Ray-Ban Meta device and power it on in my Android test.
- Simulate a denied camera permission in my MockDeviceKit instrumentation test.
- Set a video file as the mock camera feed and start streaming in my test.
Good to know
- Android does not transcode video automatically, so mock video files must be in h.265 format.
- Phone camera feeds need android.permission.CAMERA granted at runtime before calling setCameraFeed.
- Test files are loaded from URIs, so setCameraFeed(Uri) has no extra permission requirement.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/mwdat-android/skills/mockdevice-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mockdevice-testing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
mockdevice-testing: common questions
Do I need physical Meta glasses to use MockDeviceKit?
No. The source says MockDeviceKit lets you test DAT SDK integrations without physical Meta glasses by simulating their behavior.
What video formats does MockDeviceKit accept?
The source lists h.264 (AVC) and h.265 (HEVC) for video and JPEG or PNG for images. It also says Android needs h.265 video because it does not transcode automatically.
How do I simulate a denied permission?
Use mockDeviceKit.permissions.set() to control checkPermissionStatus() and setRequestResult() to control the outcome of permission requests.
How do I install mockdevice-testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mockdevice-testing free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is mockdevice-testing safe to use?
It scores 65 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mockdevice-testing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
