hz-android-2d-porting
Guides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use…
Upgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog. Use when updating SDK versions or fixing deprecated API warnings. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear.
Claude Code
$ npx -y skills add meta-quest/agentic-tools --skill hz-api-upgrade --agent claude-code
Codex
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a codex -y
Cursor
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a cursor -y
Gemini CLI
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a gemini-cli -y
GitHub Copilot
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a github-copilot -y
OpenCode
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a opencode -y
Windsurf
$ npx skills add meta-quest/agentic-tools --skill hz-api-upgrade -a windsurf -y
name: hz-api-upgrade license: Apache-2.0 description: "Upgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog. Use when updating SDK versions or fixing deprecated API warnings. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear." allowed-tools: Bash(metavr:*), Bash(hzdb:*)
For Unity projects using the Meta XR SDK, use the dedicated [`hz-unity-sdk-upgrade`](../hz-unity-sdk-upgrade/SKILL.md) skill. Continue here for Unreal, native Android or Spatial SDK, Web or IWSDK, and general cross-platform upgrade planning.
Use this skill when:
Every SDK upgrade, regardless of platform, follows the same high-level process:
Determine what version the project currently targets:
Before upgrading, review what changed between your current version and the target version. See [references/api-changelog.md](references/api-changelog.md) for a summary of recent changes.
Use the device hub to search documentation:
metavr docs search "release notes v72" metavr docs search "migration guide openxr"
Update the version numbers in your project configuration:
After updating, compile the project and address errors and warnings. See [references/deprecation-guide.md](references/deprecation-guide.md) for common replacements.
# Search project for known deprecated APIs grep -rn "vrapi_" --include="*.c" --include="*.cpp" --include="*.h" src/ grep -rn "OVRManager" --include="*.cs" Assets/
Deploy and verify functionality on a connected Meta VR device:
metavr app install ./build/output.apk metavr app launch com.yourcompany.yourapp
Ensure the upgrade did not introduce performance regressions:
metavr perf capture
The Meta XR SDK for Unity is distributed as UPM packages. Upgrades are performed through the Unity Package Manager. Key packages include `com.meta.xr.sdk.core`, `com.meta.xr.sdk.interaction`, and `com.meta.xr.sdk.platform`.
See [references/sdk-migration.md](references/sdk-migration.md) for the step-by-step Unity upgrade guide.
The Meta XR Plugin for Unreal is distributed as an engine plugin. Upgrades involve downloading the new plugin version and regenerating project files.
See [references/sdk-migration.md](references/sdk-migration.md) for the step-by-step Unreal upgrade guide.
The Meta Spatial SDK is distributed as Gradle dependencies. Upgrades involve bumping version numbers in your Gradle build files.
See [references/sdk-migration.md](references/sdk-migration.md) for the step-by-step Spatial SDK upgrade guide.
The Immersive Web SDK is distributed as npm packages. Upgrades involve updating package versions in `package.json`.
See [references/sdk-migration.md](references/sdk-migration.md) for the step-by-step IWSDK upgrade guide.
Meta has progressively moved from `Oculus.*` and `OVR*` namespaces to `Meta.*` namespaces. After an upgrade, you may see compilation errors due to renamed classes or moved packages.
APIs that were deprecated in previous versions may be fully removed in newer versions. If you skipped intermediate upgrades, you may encounter missing symbols. Always upgrade incrementally.
Newer Horizon OS versions may require additional permissions in your `AndroidManifest.xml`. Common additions include:
Newer SDK versions may require updated `<meta-data>` entries in `AndroidManifest.xml`, such as `com.oculus.supportedDevices` or updated `minSdkVersion` values.
New binary uploads for Meta Horizon apps must set `targetSdkVersion` within the supported range.
**Unity:** Use the Project Setup Tool in the Meta XR SDK -- it can update API versions automatically. Or manually set in Player Settings -> Other Settings -> Target API Level.
**Unreal:** Use the Project Setup Tool in the Meta XR Plugin. Or set in Project Settings -> Android -> Target SDK Version.
**Gradle (Spatial SDK / Native):**
android {Guides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use…
Guides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns,…
Builds WebXR experiences for Meta VR and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration,…
Build multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native. Covers framework…
Builds app UI for Meta VR and Horizon OS with the MetaVrx UI Set, a Jetpack Compose component library and design system. Covers…
Scaffolds new Meta VR and Horizon OS projects after the build path is selected — Standard Android, Meta Spatial SDK, Unity,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.