Repository navigation
Fix the Quest launch blockers: app label, permissions, camera notice and licences - #28
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes problems in the Quest app that blocked a Meta Horizon Store release.
com.CompanionIntelligence.CompanionCapture; without that, Unity would have derived a new one from the new name.USE_ANCHOR_APIstays, because reading Space Setup needs it.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
productNameisCompanion ScaninProjectSettings/ProjectSettings.assetand in theMeta Questbuild profile.overrideDefaultApplicationIdentifier: 0, so Unity derived the package name from the company and product names. Both now set it explicitly tocom.CompanionIntelligence.CompanionCapture. The main scene keeps its file name,CompanionCapture.unity.CommandLineBuilddrops spaces from the output file name, so it writesBuilds/Android/CompanionScan.apk(.aabwith-aab), the name the editor menu build and CI already use.AppIdentityTestscheck 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
OVRHand,OVRSkeletonor XR Hands, and every control is a controller button. Hand tracking is Controllers Only (handTrackingSupport: 0) inAssets/Oculus/OculusProjectConfig.asset.Assets/Plugins/Android/AndroidManifest.xmlremovescom.oculus.permission.HAND_TRACKINGand theoculus.software.handtrackingfeature withtools:node="remove", which also drops them if an SDK setting or OpenXR feature adds them again. It no longer setscom.oculus.handtracking.frequency.com.oculus.permission.USE_ANCHOR_APIstays, with the reason in a manifest comment.MetaSceneCollectorreads Space Setup withOVRAnchorroom 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_APIis that extension's install-time permission. The app saves and shares no anchors. The vendor build code adds the permission on its own:Editor/OVRManifestPreprocessor.cs, adds it whenanchorSupportis enabled orsceneSupportis not None. This project hasanchorSupport: 1andsceneSupport: 2.com.unity.xr.meta-openxr2.6.1,Editor/ModifyAndroidManifest.cs, adds it for every enabled feature that usesXR_FB_spatial_entity: anchors, planes, bounding boxes, meshes and raycasts. All five are on for Android here.AndroidPermissionsTestskeepUSE_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 theHands,LHandandRHandcontrollers ofOVRInput.Camera notice
SpatialCapturePipelinecallsCaptureConsent.EnsureGrantedwith 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.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.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 olderCaptureConsent.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 throwsCaptureConsentRequiredExceptionand sends nothing, so withdrawing in Settings also stops a retry.RoomAnalyzeris deleted. It sent frames to/v1/florencewithout asking. Its script GUID was in no scene, prefab or asset, and no code called it.CaptureConsentTestscover 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.Urlishttps://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.mdrequires its notices and the licence texts it points to to travel with binary copies, and nothing in the APK carried them.LicenseNoticesBuildStepruns after Unity generates the Gradle project and copies into the APK'sassets/licenses:LICENSE,NOTICE.mdandTHIRD_PARTY.md;Assets/Packages;Identical texts are stored once, with every source named at the top.
index.txtlists the documents in reading order.LicensesPanelpages 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 ofSettingsPanel. The settings panel is now titled "Settings" and shows whether, and on which date, the user agreed for the current server.LicenseNoticesTestscover collecting, writing, the index and the pages.THIRD_PARTY.mdopen item 1 now says that onlyweb/diststill lacks the notices.Immersive Debugger
immersiveDebuggerEnabledis now 0 inAssets/Resources/ImmersiveDebuggerSettings.asset. "Enable only in debug builds" keeps Meta's debugger panel out of release builds. But in Meta XR Core 209 itsConsoleLogsCachesubscribes 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.ImmersiveDebuggerSettingsTestspin 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 aServerConfigasset with abaseUrl: the app ships with no server address, the URL and token are entered in Settings on the headset, and the Editor readsCompanionScan_SERVER_URLandCompanionScan_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.csand the matching line of one commit message, and no code.CaptureConsentTests24,AppIdentityTests12,LicenseNoticesTests11,ImmersiveDebuggerSettingsTests2, andAndroidPermissionsTests17 in all.CompanionScan_TEST_SERVER_URL), which was not set. The other 2 need a baseline screenshot and the Meta XR simulator.XrSceneScreenshotTests.QaXrScene_CapturesControllersAndAnchorsyieldsWaitForEndOfFrame, 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.CommandLineBuild.BuildAndroidQuesttoBuilds/Android/CompanionScan.apkand read withaapt2:application-label:'Companion Scan', in every locale;com.CompanionIntelligence.CompanionCapture, versionCode 1000, versionName 0.1.0, targetSdkVersion 34;com.oculus.permission.USE_ANCHOR_API,com.oculus.permission.USE_SCENE,horizonos.permission.HEADSET_CAMERA,android.permission.CAMERA,android.permission.INTERNETandcom.oculus.permission.USE_PASSTHROUGH_CAMERA, plus Unity's app-internalDYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION. NoHAND_TRACKINGand nooculus.software.handtrackingfeature. The release candidate's APK also requestedHAND_TRACKING;assets/licensesholds 61 files: the 60 documents the build step logged copying, andindex.txt.CVServerClient.PostAsync. The only other upload code inAssets/CompanionScanisGltfSyncClient, which nothing uses (see After merge).Not verified
USE_ANCHOR_API, or fail without it;ProjectSettings.asset, the build profile,AndroidManifest.xmlandOculusProjectConfig.asset, not the merged manifest, where Meta and Unity add permissions. Once Sign release builds in a protected release job #25 is in, itscheck-quest-package.shcould assert both.Merge notes
Sign release builds in a protected release job #25 (
ci/release-signing, open). A trial merge withgit merge-treeconflicts only inREADME.md, in two places in "Release builds from the command line". Whichever pull request merges second resolves it:-aab(the version frombundleVersion; the variables no longer read).Builds/Android/CompanionScan.apkin the paragraph andBuilds/Android/CompanionScan.aabin the-aabbullet.apksigner verifyonBuilds\Android\CompanionCapture.apk;jarsigner -verifyandkeytool -printcert -jarfileonBuilds\Android\CompanionCapture.aab), and its sentence indocs/SIDELOAD.mdthat the command-line build "writesBuilds/Android/CompanionCapture.apk".com.CompanionIntelligence.CompanionCaptureas it is everywhere. Only the file names change.The names come from the code. In
Assets/Editor/Build/CommandLineBuild.cs, this branch changes onlySanitizeFileName, which now drops spaces, so the file is named afterproductNamewithout its space. Sign release builds in a protected release job #25 does not touch that function. Its workflow andcheck-quest-package.shfind the package by pattern (Builds/Android/*.apk) and name the artifactsCompanionScan-<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
com.CompanionIntelligence.CompanionCapture, set inProjectSettings/ProjectSettings.assetand theMeta Questbuild profile and named inAppIdentityTests,docs/SIDELOAD.mdandtools/quest_smoke_test.ps1. The store drafts suggestcom.companionintelligence.companionscan.https://ci.computer/privacy/companion-scan, which returns 404 until the website change that adds it is deployed. In the Companion Scan text:HAND_TRACKINGfrom the list. ForUSE_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.CaptureConsentPanel.BuildNoticeagainst the published policy. If a change alters what it says is sent or where, raiseCaptureConsent.NoticeVersionso every user is asked again.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.Assets/CompanionScan/Icons/AppIcon.pngis a generated placeholder. Replace the PNG and keep its file name and.meta.After merge
GltfSyncClient.UploadAsyncposts the room export (the glTF, its buffer, and extras with the snapshots' camera poses and image paths) to/v1/gltfwithout checking the agreement. No scene, prefab or asset uses it, and the shipped scene hasuploadAfterExportoff, so nothing runs it today. Either remove it (GltfSyncClient,SpatialMapExporter.uploadAfterExportandExportAndSync), or make it refuse withoutCaptureConsent.IsGrantedFor(baseUrl)and change the notice and the README, which say exports stay on the headset.docs/quest-capture-gltf.mdanddocs/scan-export-pipeline.mddescribe the upload too.SpatialCapturePipeline.cs,SettingsPanel.cs), as the policy's "Diagnostic log" bullet says. The two new[Consent]log lines inCaptureConsentPanel.csalso name the server. To stop this, wrap thoseDebug.Logcalls 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'sLogCaptureServiceholds in every build, which nothing reads while the debugger is off.🤖 Generated with Claude Code