Skip to content

Fix the Quest launch blockers: app label, permissions, camera notice and licences - #28

Merged
FzzySwtr merged 10 commits into
mainfrom
fix/launch-blockers
Nov 14, 2026
Merged

FzzySwtr merged 10 commits into
mainfrom
fix/launch-blockers

Conversation

@mrhegemon

@mrhegemon mrhegemon commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

This fixes problems in the Quest app that blocked a Meta Horizon Store release.

  • Name. The APK label, which the headset shows in its library and in permission prompts, was "CompanionCapture". It is now "Companion Scan", the store name. The package name is now set explicitly and stays com.CompanionIntelligence.CompanionCapture; without that, Unity would have derived a new one from the new name.
  • Permissions. The APK requested hand tracking, which nothing in the app uses, and Meta asks for the minimum permissions (VRC.Quest.Security.2). The permission and its feature are gone. USE_ANCHOR_API stays, because reading Space Setup needs it.
  • Docs. The README said Y uploads the room export to the vision server. The shipped scene saves it on the headset and uploads nothing, and the README now says so. The store's What's new text, kept outside this repository, was corrected the same way.
  • Camera notice. Passthrough images are Device User Data under Meta's Developer Data Use Policy, and nothing in the app said what a capture sends. Before the first snapshot leaves the headset, a notice now names the server and asks. The answer covers that server only, and every image request checks it.
  • Privacy policy and licences. Settings now links the privacy policy and shows the open-source licence notices, which the APK now carries.
  • Logs. Meta's Immersive Debugger kept every log line, captions and labels included, in memory in release builds. It is now off in the committed settings.
  • BUSY label. The wrist display showed mis-encoded text during a capture. It now shows "BUSY...".

Ten commits on main @ 714feb8. The vision server is unchanged. Release signing in CI is #25. What is left for the owner is under Owner actions.

What changed

Name and package

  • productName is Companion Scan in ProjectSettings/ProjectSettings.asset and in the Meta Quest build profile.
  • Both had overrideDefaultApplicationIdentifier: 0, so Unity derived the package name from the company and product names. Both now set it explicitly to com.CompanionIntelligence.CompanionCapture. The main scene keeps its file name, CompanionCapture.unity.
  • CommandLineBuild drops spaces from the output file name, so it writes Builds/Android/CompanionScan.apk (.aab with -aab), the name the editor menu build and CI already use.
  • AppIdentityTests check the label in both places and the explicit package name. They also check that no scene, prefab or string literal in app code says "CompanionCapture" or "Companion Capture", in either case. The package name and the scene file name are allowed.

Permissions

  • Nothing reads hand tracking: no code, scene or prefab uses OVRHand, OVRSkeleton or XR Hands, and every control is a controller button. Hand tracking is Controllers Only (handTrackingSupport: 0) in Assets/Oculus/OculusProjectConfig.asset. Assets/Plugins/Android/AndroidManifest.xml removes com.oculus.permission.HAND_TRACKING and the oculus.software.handtracking feature with tools:node="remove", which also drops them if an SDK setting or OpenXR feature adds them again. It no longer sets com.oculus.handtracking.frequency.
  • com.oculus.permission.USE_ANCHOR_API stays, with the reason in a manifest comment. MetaSceneCollector reads Space Setup with OVRAnchor room queries and locate calls, and the AR Foundation plane, bounding box, mesh and raycast features use the same extension, XR_FB_spatial_entity. USE_ANCHOR_API is that extension's install-time permission. The app saves and shares no anchors. The vendor build code adds the permission on its own:
    • Meta XR Core 209.0.0, Editor/OVRManifestPreprocessor.cs, adds it when anchorSupport is enabled or sceneSupport is not None. This project has anchorSupport: 1 and sceneSupport: 2.
    • com.unity.xr.meta-openxr 2.6.1, Editor/ModifyAndroidManifest.cs, adds it for every enabled feature that uses XR_FB_spatial_entity: anchors, planes, bounding boxes, meshes and raycasts. All five are on for Android here.
  • AndroidPermissionsTests keep USE_ANCHOR_API, check that hand tracking is off in the Meta config and removed in the manifest, and search the app's C# code for the hand-tracking APIs: OVRHand, OVRSkeleton, XRHandSubsystem, UnityEngine.XR.Hands, and the Hands, LHand and RHand controllers of OVRInput.

Camera notice

  • SpatialCapturePipeline calls CaptureConsent.EnsureGranted with the server URL before it takes a frame. Until the user agrees, nothing is captured or sent. With no notice in the scene to ask, nothing is sent either.
  • The notice (CaptureConsentPanel, "Before you send a snapshot") names the server. It says that one capture sends one still image from the passthrough cameras over HTTPS with the API token, what the server's models do with it, that the image can show people, screens and papers, and that Companion Intelligence receives none of it. It links the privacy policy. A agrees and the capture goes ahead, B sends nothing, Y opens the policy.
  • The answer is kept on the headset only, in PlayerPrefs (CompanionScan.CaptureConsent.*): the notice version, the UTC time and the server URL. It covers that server only. URLs are compared normalized, so the case of scheme and host, a default port and a trailing slash do not matter. After the URL changes in Settings, the next capture asks again and names the new server. A record without a server, or for an older CaptureConsent.NoticeVersion, does not count. A grip in Settings withdraws the agreement, and uninstalling deletes it.
  • CVServerClient.PostAsync, which every image request passes, checks the agreement for its server before each attempt, retries included. Without it, it throws CaptureConsentRequiredException and sends nothing, so withdrawing in Settings also stops a retry.
  • The notice and Settings open at the same spot. Otherwise Menu would open Settings behind the notice, and the server could change under a notice that names the old one. Opening Settings now closes the notice without agreeing, and the notice does not open over Settings or the licences view. That capture sends nothing; the next one asks.
  • RoomAnalyzer is deleted. It sent frames to /v1/florence without asking. Its script GUID was in no scene, prefab or asset, and no code called it.
  • CaptureConsentTests cover the record and its server, the same server written differently, a new server asking again (directly and through the pipeline), the notice's buttons and text, Menu and Settings, and the client: Detect, Segment and Florence requests without the agreement fail at once and a loopback test server gets no connection, while the same request with the agreement connects. The live-server PlayMode tests record the agreement for their server while they run (TestServerConsent) and then put back what was there.

Privacy policy and licences

  • PrivacyPolicy.Url is https://ci.computer/privacy/companion-scan. Settings shows it and Y opens it in the browser; the notice links it too. Google Play asks for the policy inside the app.

  • NOTICE.md requires its notices and the licence texts it points to to travel with binary copies, and nothing in the APK carried them. LicenseNoticesBuildStep runs after Unity generates the Gradle project and copies into the APK's assets/licenses:

    • LICENSE, NOTICE.md and THIRD_PARTY.md;
    • the vendored licence files: TextMesh Pro's Liberation Sans OFL, NaughtyAttributes and the NuGet packages in Assets/Packages;
    • the top-level licence and notice files of every package the project resolves, built-in packages included.

    Identical texts are stored once, with every source named at the top. index.txt lists the documents in reading order.

  • LicensesPanel pages through them in the headset. A trigger in Settings opens it; A and X turn the page, B and Y change the document, and Menu goes back.

  • Settings, the notice and the licences view share one world-space layout, HeadsetPanel, moved out of SettingsPanel. The settings panel is now titled "Settings" and shows whether, and on which date, the user agreed for the current server.

  • LicenseNoticesTests cover collecting, writing, the index and the pages. THIRD_PARTY.md open item 1 now says that only web/dist still lacks the notices.

Immersive Debugger

  • immersiveDebuggerEnabled is now 0 in Assets/Resources/ImmersiveDebuggerSettings.asset. "Enable only in debug builds" keeps Meta's debugger panel out of release builds. But in Meta XR Core 209 its ConsoleLogsCache subscribes to every log message whenever the debugger is enabled, and in a release build nothing drains it, so it kept every message (captions, labels and the server address among them) for the life of the app.
  • To use the debugger, turn it on locally for a development build and do not commit that. ImmersiveDebuggerSettingsTests pin both settings.

Docs and the BUSY label

  • README.md: the controller table (A mentions the notice; Y saves a glTF in the app's storage on the headset, files/exports, and uploads nothing; Menu opens Settings with the new Y, trigger and grip actions), the architecture sketch, the export section and the release-build file names. The quick start no longer asks for a ServerConfig asset with a baseUrl: the app ships with no server address, the URL and token are entered in Settings on the headset, and the Editor reads CompanionScan_SERVER_URL and CompanionScan_API_TOKEN.
  • docs/SIDELOAD.md: the name in the headset library.
  • ControllerMenuUI: the busy label held a doubly encoded ellipsis and is now "BUSY...". A new PlayMode test reads the label with a busy and an idle pipeline.

Verification

Local runs with Unity 6000.6.9f1 on Windows, in batch mode. They ran on the tree before a last history edit, which changed one comment in ControllerMenuHudBindingTests.cs and the matching line of one commit message, and no code.

  • EditMode: 178 of 178 passed. The new and extended classes: CaptureConsentTests 24, AppIdentityTests 12, LicenseNoticesTests 11, ImmersiveDebuggerSettingsTests 2, and AndroidPermissionsTests 17 in all.
  • PlayMode: 43 tests: 18 passed, 24 skipped, 1 failed.
    • The new BUSY label test passed.
    • 22 skipped tests need a live vision server (CompanionScan_TEST_SERVER_URL), which was not set. The other 2 need a baseline screenshot and the Meta XR simulator.
    • The failure is the known batch-mode one: XrSceneScreenshotTests.QaXrScene_CapturesControllersAndAnchors yields WaitForEndOfFrame, which batch mode never fires. The release candidate (chore(release): release candidate 1 on Unity 6000.6.9f1, Quest 3/3S first #23) had the same failure and the same 24 skips.
  • Debug-key APK, built with CommandLineBuild.BuildAndroidQuest to Builds/Android/CompanionScan.apk and read with aapt2:
    • application-label:'Companion Scan', in every locale;
    • package com.CompanionIntelligence.CompanionCapture, versionCode 1000, versionName 0.1.0, targetSdkVersion 34;
    • permissions com.oculus.permission.USE_ANCHOR_API, com.oculus.permission.USE_SCENE, horizonos.permission.HEADSET_CAMERA, android.permission.CAMERA, android.permission.INTERNET and com.oculus.permission.USE_PASSTHROUGH_CAMERA, plus Unity's app-internal DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION. No HAND_TRACKING and no oculus.software.handtracking feature. The release candidate's APK also requested HAND_TRACKING;
    • assets/licenses holds 61 files: the 60 documents the build step logged copying, and index.txt.
  • Review. A separate review of the final code confirmed that every image request goes through CVServerClient.PostAsync. The only other upload code in Assets/CompanionScan is GltfSyncClient, which nothing uses (see After merge).

Not verified

  • Nothing ran on a headset. Not checked on a Quest 3 or 3S:
    • the notice flow: the first capture, A, B and Y, Menu closing the notice, asking again after a server change, and withdrawing with a grip;
    • that Space Setup queries work with USE_ANCHOR_API, or fail without it;
    • whether the notice and the licences view are readable at their size and distance;
    • the name in the headset library and in permission prompts, and the policy link opening in the browser.
  • No release-signed build. The APK above was signed with the debug key.
  • The 22 live-server PlayMode tests were skipped, so their recording and restoring of the agreement has not run against a server.
  • Nothing has run on GitHub Actions.
  • No automated check reads the built APK's label or permission list. The tests read ProjectSettings.asset, the build profile, AndroidManifest.xml and OculusProjectConfig.asset, not the merged manifest, where Meta and Unity add permissions. Once Sign release builds in a protected release job #25 is in, its check-quest-package.sh could assert both.

Merge notes

  • Sign release builds in a protected release job #25 (ci/release-signing, open). A trial merge with git merge-tree conflicts only in README.md, in two places in "Release builds from the command line". Whichever pull request merges second resolves it:

    • Keep Sign release builds in a protected release job #25's text: its opening paragraph (signing variables under the names GameCI uses) and the two bullets it adds before -aab (the version from bundleVersion; the variables no longer read).
    • Use the new names in it: Builds/Android/CompanionScan.apk in the paragraph and Builds/Android/CompanionScan.aab in the -aab bullet.
    • Rename two places that merge without a conflict but keep the old names: Sign release builds in a protected release job #25's signature checks in the same section (apksigner verify on Builds\Android\CompanionCapture.apk; jarsigner -verify and keytool -printcert -jarfile on Builds\Android\CompanionCapture.aab), and its sentence in docs/SIDELOAD.md that the command-line build "writes Builds/Android/CompanionCapture.apk".
    • Leave com.CompanionIntelligence.CompanionCapture as it is everywhere. Only the file names change.

    The names come from the code. In Assets/Editor/Build/CommandLineBuild.cs, this branch changes only SanitizeFileName, which now drops spaces, so the file is named after productName without its space. Sign release builds in a protected release job #25 does not touch that function. Its workflow and check-quest-package.sh find the package by pattern (Builds/Android/*.apk) and name the artifacts CompanionScan-<version>, so CI needs no change.

  • Vision server: opaque upload IDs, a delete route and optional retention; Dependabot ignores transformers majors #29 (the vision server's upload IDs and retention) merges cleanly with this branch.

Owner actions

Before the first store upload

  1. Choose the final package ID. It cannot change after the first upload. Today it is com.CompanionIntelligence.CompanionCapture, set in ProjectSettings/ProjectSettings.asset and the Meta Quest build profile and named in AppIdentityTests, docs/SIDELOAD.md and tools/quest_smoke_test.ps1. The store drafts suggest com.companionintelligence.companionscan.
  2. Publish the privacy policy and update it for this build. Settings and the notice link https://ci.computer/privacy/companion-scan, which returns 404 until the website change that adds it is deployed. In the Companion Scan text:
    • add the camera agreement kept on the headset (notice version, time and server address), that a grip in Settings withdraws it, and that uninstalling deletes it;
    • delete the sentence that the headset may show the app as "CompanionCapture";
    • take "hand" out of "Head, controller and hand tracking".
  3. Meta Horizon submission.
    • Permissions: drop HAND_TRACKING from the list. For USE_ANCHOR_API, give the Space Setup reason: the app reads the room layout through Meta's spatial entity API, whose install-time permission this is, and it saves and shares no anchors.
    • Reviewer notes: the first capture shows a camera notice; press A to agree.
  4. Review the notice wording in CaptureConsentPanel.BuildNotice against the published policy. If a change alters what it says is sent or where, raise CaptureConsent.NoticeVersion so every user is asked again.
  5. Meta telemetry key. The manifest carries Meta's com.oculus.telemetry.project_guid, and the policy says Meta's XR SDK may send technical information about the app to Meta. Ask Meta what the key enables, or remove it if the SDK allows.
  6. Launcher icon. Assets/CompanionScan/Icons/AppIcon.png is a generated placeholder. Replace the PNG and keep its file name and .meta.
  7. Run the headset checks listed under Not verified, on a Quest 3 or 3S with a release-signed build.

After merge

  1. The unused glTF upload. GltfSyncClient.UploadAsync posts the room export (the glTF, its buffer, and extras with the snapshots' camera poses and image paths) to /v1/gltf without checking the agreement. No scene, prefab or asset uses it, and the shipped scene has uploadAfterExport off, so nothing runs it today. Either remove it (GltfSyncClient, SpatialMapExporter.uploadAfterExport and ExportAndSync), or make it refuse without CaptureConsent.IsGrantedFor(baseUrl) and change the notice and the README, which say exports stay on the headset. docs/quest-capture-gltf.md and docs/scan-export-pipeline.md describe the upload too.
  2. Diagnostic logging (privacy review item C1). Release builds still write the Florence-2 caption, the detected labels and the server address to the headset's system log (SpatialCapturePipeline.cs, SettingsPanel.cs), as the policy's "Diagnostic log" bullet says. The two new [Consent] log lines in CaptureConsentPanel.cs also name the server. To stop this, wrap those Debug.Log calls in #if DEVELOPMENT_BUILD, then delete the bullet and the system-log clause in the policy's uninstall sentence. That also keeps them out of the last 200 log lines that Meta XR Core 209's LogCaptureService holds in every build, which nothing reads while the debugger is off.

🤖 Generated with Claude Code

mrhegemon and others added 10 commits November 13, 2026 17:49
The headset library and Android's permission prompts use the APK label,
which was the product name CompanionCapture. Player Settings and the
Meta Quest build profile now say Companion Scan, the store name.

Both had overrideDefaultApplicationIdentifier 0, so Unity derived the
package name from the company and product names and the rename would
have changed it. The package name is now set explicitly and stays
com.CompanionIntelligence.CompanionCapture until the final one is
chosen; it is permanent from the first store upload.

CommandLineBuild drops spaces from the file name, so it writes
Builds/Android/CompanionScan.apk (or .aab), the name the editor menu
build and CI already use. Tests check the label, the profile and the
unchanged package name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing reads hand tracking: no code, scene or prefab uses OVRHand,
OVRSkeleton or XR Hands, and every control is a controller button. The
APK still requested com.oculus.permission.HAND_TRACKING and declared the
oculus.software.handtracking feature (VRC.Quest.Security.2 asks for the
minimum permissions). Hand tracking is now ControllersOnly in the Meta
project config, and the manifest removes the permission and the feature
(tools:node="remove") and no longer sets the hand tracking frequency.

USE_ANCHOR_API stays, with the reason in the manifest: the Space Setup
query (MetaSceneCollector's OVRAnchor fetch and locate calls) and the AR
Foundation scene features use XR_FB_spatial_entity, whose install-time
permission it is. Meta XR Core 209's manifest preprocessor adds it
whenever Scene Support is on, and Unity's Meta OpenXR package adds it for
the plane, bounding box, mesh and raycast features.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The controller table, the quick start and the export section said Y
uploads the glTF to the CV server through GltfSyncClient. The scene's
SpatialMapExporter has uploadAfterExport off and there is no sync client
in it, so Y saves the export in the app's storage on the headset, as the
privacy policy says.

The quick start also told users to create a ServerConfig asset and set
baseUrl. The app ships with no server address: the URL and API token are
entered in the headset's settings panel, or set through the
CompanionScan_SERVER_URL and CompanionScan_API_TOKEN environment
variables in the Editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y policy and licences in the app

Camera notice (V3, in the app). Passthrough images are Device User Data
under Meta's Developer Data Use Policy, and nothing in the app said what
a capture sends. The CV pipeline now calls CaptureConsent.EnsureGranted
before it takes a frame: until the user agrees, nothing is captured or
sent. The notice names the server and says what one capture sends, what
the server does with it and that Companion Intelligence receives none of
it; A agrees and the capture goes ahead, B sends nothing. The answer is
recorded on the headset (notice version and UTC time in PlayerPrefs), and
a grip in Settings withdraws it. With no notice to ask, nothing is sent.

Privacy policy link. Settings shows ci.computer/privacy/companion-scan,
and Y opens it in the browser; the notice links it too. Meta and Google
Play want the policy reachable inside the app.

Open-source licences (V14). NOTICE.md says its notices and the licence
texts it points to must travel with binary copies, and nothing in the
APK carried them. LicenseNoticesBuildStep copies LICENSE, NOTICE.md,
THIRD_PARTY.md, the vendored licence files and the top-level licence and
notice files of every resolved package into the APK's assets/licenses
after Unity generates the Gradle project (identical texts once), and the
licences view, opened with a trigger in Settings, pages through them.

The settings panel's world-space layout moves into HeadsetPanel, which
the three panels share. Tests cover the gate in the pipeline, the record,
the notice text, the collected and written licence files and the pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ilds

"Enable only in debug builds" keeps Meta's Immersive Debugger panel out
of release builds, but in Meta XR Core 209 its ConsoleLogsCache still
subscribes to every log message whenever the debugger is enabled, and in
a release build no debugger console ever drains it, so it keeps every
message (captions, labels and the server address among them) for the
life of the app. The committed setting is now off. Turn it on locally
for a development build (it stays debug-build only) and do not commit
that. A test pins both settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wrist HUD's busy label held a doubly encoded ellipsis, so the headset
showed "BUSY…" during a capture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only SpatialCapturePipeline checked the camera agreement, before it took
a frame. CVServerClient.PostAsync, which every image request passes, now
checks it before each attempt (retries included, so withdrawing it in
Settings also stops a retry) and throws CaptureConsentRequiredException
without sending anything.

RoomAnalyzer sent frames to /v1/florence without asking. Nothing used it:
its script GUID is in no scene, prefab or asset, and no code calls it. It
is deleted.

EditMode tests: Detect, Segment and Florence requests made without the
agreement fail at once, and nothing connects to a loopback test server;
the same request, agreed to, does connect. The live-server PlayMode tests
record the agreement while they run and then put back what was there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ses the notice

The camera notice names the vision server, but the agreement was kept
without it, so changing the server in Settings sent snapshots to a server
the user never saw named. The record now holds the server URL as well
(normalized: case of scheme and host, default port and trailing slash do
not matter). EnsureGranted and CVServerClient accept only that server, so
after the URL changes the next capture asks again, naming the new one.
A record without a server, or for an older notice, does not count. The
notice says that its answer covers this server only, and Settings shows
when the next capture will ask for the current server.

The notice and the settings open at the same spot. Menu while the notice
is open used to open the settings behind it, where the server could be
changed under a notice that named the old one. Opening the settings now
closes the notice without agreeing, and the notice does not open over the
settings or the licences view (a capture started before they opened asks
on the next capture instead). Nothing is sent in either case.

EditMode tests: the record and its server, the same server written
differently, a new server asks again (directly and through the pipeline),
an image request to another server than the agreed one sends nothing,
Accept records the server the notice named, Menu closes the notice
without agreeing, and the notice stays closed while the settings are open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d label checks

A PlayMode test runs the wrist display with a busy and an idle pipeline
and reads its label: "BUSY..." while a capture runs, empty otherwise.
The commit "fix(hud): show BUSY... instead of mis-encoded text" fixed an
ellipsis encoded twice there.

The hand tracking search also looks for OVRInput.Controller.LHand and
RHand and for UnityEngine.XR.Hands.

The old label check also covers scenes and prefabs and the spelling
"Companion Capture", in either case. In app code it reads every string
literal, not only those that start with the label. The package name and
the main scene's file name still contain CompanionCapture and are not
labels; a parameterized test pins the pattern on both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…till needs them

Open item 1 said no build carried the licence notices. The Android build
now copies LICENSE, NOTICE.md, THIRD_PARTY.md and the licence and notice
files of the vendored assets and resolved packages into the APK under
assets/licenses, and Settings shows them in the headset. The web bundle
is the one left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FzzySwtr
FzzySwtr merged commit f17ac17 into main Nov 14, 2026
1 check failed
mrhegemon added a commit that referenced this pull request Nov 14, 2026
…ver retention (#29)

README.md conflicted in two places: keep this branch's release-build text
(signing from GameCI's environment names, versionCode from bundleVersion)
with the artifact names main's command-line build now writes,
Builds/Android/CompanionScan.apk and .aab. The signature-check commands in
the README and docs/SIDELOAD.md named the old CompanionCapture artifacts
too and are updated the same way. The workflows pick packages up by
dist/*.apk and dist/*.aab, so they need no change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants