hz-api-upgrade

Upgrade Meta Quest apps to a newer Horizon OS SDK version. Provides migration guidance, replacements for deprecated APIs, and changelogs. Intended for use when updating the SDK version or addressing deprecated-API warnings.

Last repository push
GitHub Stars
269
Forks
25
Issues / PRs
8

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hz-api-upgrade" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d3d1174e336cf77654c8e7d3f2d15731aaf087303f6b785599a51336e7ddca75. Verify the upstream source and version against https://github.com/meta-quest/agentic-tools before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Upgrade Meta Quest apps to a newer Horizon OS SDK version. Provides migration guidance, replacements for deprecated APIs, and changelogs. Intended for use when updating the SDK version or addressing deprecated-API warnings.

0 Downloads

Introduction source: third_party · meta-quest · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
Use this skill when: Upgrading an existing Meta VR application to a newer Horizon OS SDK version Fixing deprecated API warnings or compilation errors after an SDK update Migrating between major API versions (e.g., VrApi to OpenXR) Understanding what changed between SDK releases Planning an upgrade path for a project that has fallen behind on SDK versions
Software, accounts and paid services
New binary uploads for Meta Horizon apps must set `targetSdkVersion` within the supported range.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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:*)

Horizon API Upgrade Skill

For Unity projects using the Meta XR SDK, use the dedicated hz-unity-sdk-upgrade skill. Continue here for Unreal, native Android or Spatial SDK, Web or IWSDK, and general cross-platform upgrade planning.

When to Use

Use this skill when:

  • Upgrading an existing Meta VR application to a newer Horizon OS SDK version
  • Fixing deprecated API warnings or compilation errors after an SDK update
  • Migrating between major API versions (e.g., VrApi to OpenXR)
  • Understanding what changed between SDK releases
  • Planning an upgrade path for a project that has fallen behind on SDK versions

General Upgrade Workflow

Every SDK upgrade, regardless of platform, follows the same high-level process:

1. Identify Current SDK Version

Determine what version the project currently targets:

  • Unity: Check Packages/manifest.json or the Package Manager UI for com.meta.xr.* package versions
  • Unreal: Check the Meta XR Plugin version in .uplugin files or the Plugins browser
  • Spatial SDK / Android: Check build.gradle or build.gradle.kts for com.meta.spatial:* dependency versions
  • Web / IWSDK: Check package.json for @meta-spatial-sdk/* or @iwsdk/* package versions

2. Check the API Changelog

Before upgrading, review what changed between your current version and the target version. See 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"

3. Update SDK Dependencies

Update the version numbers in your project configuration:

  • Unity: Update via Package Manager or edit manifest.json directly
  • Unreal: Download and install the new plugin version
  • Gradle projects: Bump version strings in build.gradle
  • npm projects: Run npm update or edit package.json

4. Fix Deprecated API Calls

After updating, compile the project and address errors and warnings. See 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/

5. Test on Device

Deploy and verify functionality on a connected Meta VR device:

metavr app install ./build/output.apk
metavr app launch com.yourcompany.yourapp

6. Run Performance Check

Ensure the upgrade did not introduce performance regressions:

metavr perf capture

Platform-Specific Upgrade Paths

Unity: Meta XR SDK

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 for the step-by-step Unity upgrade guide.

Unreal Engine: Meta XR Plugin

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 for the step-by-step Unreal upgrade guide.

Android / Spatial SDK

The Meta Spatial SDK is distributed as Gradle dependencies. Upgrades involve bumping version numbers in your Gradle build files.

See references/sdk-migration.md for the step-by-step Spatial SDK upgrade guide.

Web / IWSDK

The Immersive Web SDK is distributed as npm packages. Upgrades involve updating package versions in package.json.

See references/sdk-migration.md for the step-by-step IWSDK upgrade guide.

Common Upgrade Issues

Namespace Changes

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.

Removed APIs

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.

New Required Permissions

Newer Horizon OS versions may require additional permissions in your AndroidManifest.xml. Common additions include:

  • com.oculus.permission.HAND_TRACKING for hand tracking features
  • horizonos.permission.HEADSET_CAMERA for passthrough camera access
  • New <meta-data> entries for feature declarations

Manifest Changes

Newer SDK versions may require updated <meta-data> entries in AndroidManifest.xml, such as com.oculus.supportedDevices or updated minSdkVersion values.

Android SDK Targeting Requirement

New binary uploads for Meta Horizon apps must set targetSdkVersion within the supported range.

What's required

  • Set targetSdkVersion to API level 32-34 for immersive apps (or 32-36 for 2D panel apps)
  • minSdkVersion can remain at API level 32
  • Applies to all new binary uploads for both new and existing apps
  • Existing published apps continue to work without changes

How to update

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 {
    defaultConfig {
        targetSdkVersion 34  // 32-34 for immersive, 32-36 for 2D panel apps
        minSdkVersion 32
    }
}

Using metavr for Documentation Lookup

The metavr tool provides documentation search to help during upgrades. Invoke via metavr <args> (published as the npm package metavr; if metavr is not on PATH, run npx -y metavr <args>) — no global install needed.

# Search for migration-related documentation
metavr docs search "migration guide"
metavr docs search "deprecated API"
metavr docs search "breaking changes v73"

# Search for specific API replacements
metavr docs search "OVRManager replacement"
metavr docs search "vrapi openxr migration"

References

Version history

  1. v1.8.0 GitHub ↗
    Original release notes

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0

  2. v1.2.3 GitHub ↗
    Original release notes

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3

  3. v1.2.1 GitHub ↗
    Original release notes

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供完整的 Horizon OS SDK 升级工作流,涵盖多平台(Unity、Unreal、Android、Web)
  • 包含详细的弃用 API 替代方案和常见升级问题解决方案
Trigger Precision92/100

Highlights

  • 触发描述清晰完整,覆盖多种使用场景和变体
  • frontmatter 中 description 位置正确且内容无截断
Structure and Standards95/100

Areas to improve

  • When to Use 章节内容形式 Reported severity: Minor

    When to Use 章节使用列表形式而非段落描述

    Recommendation: 建议补充一段引导性文字说明使用场景的整体目标

Highlights

  • 文档结构清晰,分阶段引导用户完成升级流程
  • 提供端到端示例和具体命令行操作
Execution Reliability88/100

Highlights

  • 工具来源明确(metavr、grep、npm、Gradle),参数正确
  • 覆盖主要异常场景并提供前置文档查阅建议
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 162

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

New binary uploads for Meta Horizon apps must set `targetSdkVersion` within the supported range.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.