AppGallery Privacy Rejection and Three ArkUI Traps in Flick for HarmonyOS
Why Huawei AppGallery rejected Flick's 'we collect no data' claim—on-device analysis still counts as collecting photos—plus locking startup behind a versioned PrivacyConsent gate and three silent ArkUI pitfalls including a 66vp double safe-area bug.
When the HarmonyOS NEXT version of Flick went through Huawei AppGallery review on September 22, 2026, it came back with three blocking rejections—all centered on privacy labels and permission timing.
Fixing them meant locking down the cold-start sequence, and migrating screens from bindContentCover to NavDestination surfaced three ArkUI traps that fail without a single compiler warning.
On-Device Processing Is Not “Not Collected”
One of the three rejections could only be fixed in the AppGallery Connect (AGC) dashboard:
- Automated checks detected collection of “User Content — Photos or Videos,” while the privacy label had “No” checked.
- Photo library read/write permissions were requested before the user accepted the privacy policy.
- Cold start did not explicitly prompt the user to review the privacy policy first.
Our Settings screen previously stated: “Flick does not collect any data.” Engineering-wise, that felt accurate—96-dimensional perceptual descriptors and Laplacian blur scores run locally on the phone, zero bytes leave the device, and there is no server, account, or third-party SDK.
Under Huawei’s privacy definitions, however, “collect” asks whether the app accesses or obtains that personal data, not whether it uploads it. Reading the photo library to compute similarity and blur counts as collecting Photos/Videos. The right declaration in AGC is Yes for Photos/Videos (purpose: app functionality), with No for off-device transfer, third-party sharing, advertising/tracking, and identity linking.
In-app copy had to match. Leaving “no data collected” inside Settings while declaring “Yes” in AGC guarantees a mismatch during review. We updated the wording to: “Photos are read and analyzed on-device only: never uploaded, never shared. No servers, no accounts, no third-party SDKs.”
Locking Startup Order Behind a Versioned PrivacyConsent Gate
The other two rejections were code ordering bugs: getPhotoAccessHelper was invoked during initialization, and the permission UI sat ready before explicit consent.
docs/HUAWEI-REVIEW-PRIVACY-2026-09-22.md fixed the cold-start sequence into a strict linear gate: Privacy Consent Gate → 4-screen Onboarding → Permission Page → System Permission Dialog.
Four details made that gate hold everywhere:
- Store a version integer, not a boolean:
services/PrivacyConsent.etspersistsPrivacyPolicy.consentVersionfromcommon/Constants.ets. Any substantive policy update increments the integer and surfaces the gate again for existing users. - Declining exits via
terminateSelf(): Both the Decline button and the hardware/gesture Back action exit the app. Flick cannot function without photo access, so there is no degraded mode. - Gate the shared funnel and make the helper lazy:
services/AppServices.etsgatesrefreshAccess(which handles foreground resume, permission callbacks, deep links, and InsightIntents),PhotoStore.etsmovesgetPhotoAccessHelperout ofattachinto a lazymediaHelper(), andrequestAccessasserts consent right before calling the system API. - Do not mount the permission page underneath:
pages/Index.etsdoes not render the permission view behind the consent overlay (only screenshot automation launched viascripts/install.sh <tab>with--ps FLICK_TABbypasses the gate).
The regression suite (node scripts/tests/review-regression.cjs) passed 39/39 assertions, including verifying that refreshAccess neither queries permissions nor reads the library before consent.
Three ArkUI Traps That Fail Silently
Porting Flick’s UI to ArkUI (docs/PLATFORM-NOTES.md) uncovered three traps where the compiler stays quiet while the UI breaks:
1. Double Safe-Area Padding Stealing 66vp After Leaving bindContentCover
Settings, Ignored Groups, and the Paywall initially used bindContentCover. On real devices, @ohos.arkui.advanced.* components (SubHeaderV2, SegmentButtonV2) rendered completely blank inside bindContentCover, and custom image components froze on their initial empty frame after async photo loads.
Moving those pages onto the main Navigation / NavDestination stack fixed rendering—but left their old safe-area padding intact. Under setWindowLayoutFullScreen(true), safe-area padding must happen exactly once: Index.content() pads the tab shell and Navigation stack; NavDestination pages inside it must not pad; only top-level overlays (ViewerCenter.ets, onboarding) pad themselves.
Leaving padding on those three NavDestination pages doubled the bottom inset and quietly chopped 66vp off the viewport. Because both layers shared the same background color, it just looked like an inexplicable empty band at the bottom of scroll views.
2. Value-Parameter Freeze in @Builder
Passing dynamic state by value into an ArkUI @Builder function captures the initial value during initialRender. Subsequent @State updates on the parent never re-render the builder, with zero compiler diagnostics. Any dynamic @Builder must either take no parameters and read directly from this, or be extracted into a child @Component using @Prop.
3. Reserved ArkUI Component Names on struct Members
Defining members named size(), scale, translate, borderColor, or borderWidth on a @Component struct collides with ArkUI’s built-in component modifiers and breaks compilation; we renamed them to cardShape(), zoom, strokeColor(), and strokeWidth(). (Similarly, @Concurrent functions in AnalysisKernel.ets can only reference imported symbols—moving the math into AnalysisMath.ets satisfied the compiler and allowed unit testing outside taskpool.)
Flick for HarmonyOS is live on AppGallery (1.8.2), and every one of those startup and layout invariants stays guarded by automated checks so a refactor can’t quietly undo them.
Comments