Four Rounds on AppGallery: Half-Fixes, 28vp Avoidance, and SARFT Order 336
Shipping Vela Player from 1.0.1 to 1.0.4 on HUAWEI AppGallery (AGC): fixing two things only halfway (stripping tv from deviceTypes while leaving TV screenshots online, moving permissions past privacy consent while still prompting on Home), the 28vp bottom-bar avoidance math, and handling SARFT Order 336 filing and release MD5 order.
Vela Player is a private media library for HarmonyOS built in ArkTS and native C/C++, targeting phone, foldable, tablet, and HarmonyOS PC (2in1). I originally submitted it to HUAWEI AppGallery (AGC) with native HarmonyOS Smart TV (tv) support included. Four review rounds later — from 1.0.1 to 1.0.4 — the mobile, tablet, and 2in1 editions are shipping cleanly, while tv stays pulled out waiting on its broadcast filing number.
Looking back, none of the rejections required deep architectural rewrites. What actually burned rounds were two patterns: fixing a two-layer rule only in the code layer, and misreading the real boundary behind a guideline clause.
Writing these down for the next developer who hits the same walls.
Round 1: four rejections, one expected
The first submission (1.0.1) came back with four items. Only the first was expected:
- Missing walkthrough video: Vela bundles zero media; without adding a NAS or cloud drive, a reviewer lands on four empty tabs. Recording a full walkthrough following
docs/agc-demo-recording.mdand uploading it to AGC’s self-test slot solves it. - Permissions requested before privacy consent: There was no dedicated privacy page at all, and
DISTRIBUTED_DATASYNCfired unconditionally inonWindowStageCreate. I addedpages/PrivacyPage.etsand gatedEntryAbility.firstPage()right atloadContent— the main shell does not even mount until consent is recorded. A modal dialog on Home was deliberately avoided: mountingTabShelltriggers database reads, source reachability probes, and poster fetches on frame one. - “TV” wording in copy and screenshots: AGC required replacing “电视” (TV) with “智慧屏” (Smart Screen). At the same time, the store description still mentioned casting while
Features.CASTwasfalse— promising a button that did not exist in the UI. Both were removed. - Missing SARFT audiovisual filing number on Smart Screen: Citing SARFT Order
[2023] 336, reviewers required registration in the National Network Audiovisual Platform Information Registration System, displayed on the first screen and initial launch page.
The catch was that the registration portal only accepts enterprise entities with a business license and broadcast compliance policies — individual developers cannot apply. After I followed up in the AGC ticket, Huawei offered to submit the filing on my behalf using an Excel form and a VelaPlayer-images.zip bundle (with strictly ASCII filenames, since Windows unpackers on the review side mangle UTF-8 Chinese names) under the name Vela Player(鸿蒙应用).
Because SARFT turnaround is unpredictable, I stripped tv from deviceTypes in module.json5, leaving ["phone","tablet","2in1"]. Every line of TV UI (IndexLegacy, TvUi, TvTabBar, focus navigation) stayed in the repo, and compatibleSdkVersion stayed pinned at 5.1.1(19) so existing Smart Screens and HarmonyOS 5.1 devices remain compatible later.
Round 2: fixing two things only halfway
With three items patched, I re-submitted — and got three rejections back. Two of them happened because I had fixed only half the problem.
Half-fix #1: tv gone from the .app, TVs still in the store listing.
AGC rejected under §1.14 (store screenshots and description mismatch the actual binary). Reviewers could not install the package on a Smart Screen because tv was gone from deviceTypes, yet the store page still carried six Smart Screen screenshots, featured TV banners, a TV illustration in brand/multi-device.html, and two AI promo banners depicting TVs.
Updating the .app does not touch AGC store metadata. For 1.0.2 (versionCode 1000200), I added WITH_TV = False at the top of brand/make-agc-shots.py, redrew multi-device.html with just a tablet and a phone, switched the promo banners to multi-device.png, and manually cleared the TV slots, featured assets, and “Smart Screen” keywords in the AGC console.
Half-fix #2: permissions moved after privacy consent, still fired on Home.
Moving DISTRIBUTED_DATASYNC into services/AppInit.ets kept it behind the privacy gate, which satisfied Round 1. Round 2 flagged §7.17 anyway:
On first launch, on the Home page, the app prompts for “Discover and connect to nearby devices” without the user actively triggering the corresponding feature.
Accepting the privacy policy unlocks eligibility to ask for a permission; §7.17 forbids asking before the user opts in to the feature itself.
I flipped Settings.crossDeviceSync to default false. AppInit now calls SyncService.start() silently, checking SyncService.granted() via checkAccessTokenSync with zero dialogs. The only place in the entire app that prompts for DISTRIBUTED_DATASYNC is SyncService.enable(), triggered when the user toggles “Settings -> Playback -> Cross-device continuity.” If denied, the toggle snaps back to false. common/PrivacyText.ets, site/privacy.html, and PrivacyConsent.VERSION were updated to match.
The 28vp bottom-bar avoidance math
The third item in Round 2 came from automated layout inspection on HarmonyOS 6.1 (MatePad Pro 11, API 23):
Navigation bar not adapted: bottom controls raised by less than 28vp.
All six failing steps pointed at the “Disagree and exit” button on PrivacyPage.ets, which had a hard-coded bottom: 20 ([[36,2425][1564,2515]] in portrait, [[36,1465][2524,1555]] in landscape) — short by 8vp. Because the scanner could not get past the privacy gate, the other standalone pages were probably failing too.
common/SafeArea.ets previously subscribed only to TYPE_SYSTEM (status bar). I added TYPE_NAVIGATION_INDICATOR (bottomRect) broadcast via mq_bottom_inset, and routed all seven @Entry pages through Ui.bottomSafe(inset, base), which takes the maximum of three values:
- The 28vp spec floor: relying solely on system inset returns
0in 2in1 windowed mode, which fails static threshold checks. - Actual navigation indicator height: gesture navigation uses a thin pill, while three-button navigation is taller; hard-coding 28vp gets clipped under three-button mode.
- Design baseline (
base): preserves visual spacing on pages that already breathe.
Lists use padding({ bottom }) rather than contentEndOffset — contentEndOffset arrived in API 22, and hvigor does not validate @since when compatibleSdkVersion is 19. I also added tools/check-safe-area.sh to fail builds if any @Entry page misses safe-area wiring. On a HarmonyOS 6.1 foldable (2496px screen height), the button landed at [42,2303][2182,2409] — 87px from the bottom at 2.65 density, or 32.8vp.
Why “free” is a weak appeal under Order 336, and the MD5 trap
Even with tv deferred, preparing the SARFT materials surfaced two practical traps.
First, never build an Order 336 appeal around “this app is free.” ProService already anticipates a future Pro tier for software features, so claiming “permanently free” in an official reply would be dishonest and easily contradicted later. More importantly, “free” is a weak regulatory argument. Order 336 targets nested content paywalls on TV. The real defense is what you charge for: a future Pro license unlocks tool capabilities (like any desktop utility), never media content — paid or unpaid, the user can only play files from their own NAS, local storage, or cloud drive. Paired with the walkthrough video showing four empty screens before adding a source, that distinction holds up cleanly.
Second, the 9 blue-bold cells and final package MD5 order. Huawei’s filing spreadsheet defaults to “Audiovisual” (视听类). Changing APK类型 to “Non-audiovisual” (非视听类) means the 9 blue-bold fields (broadcast entity, license ID, content pack flags, etc.) should be explicitly filled with 不适用(非视听类) instead of left blank so they are not flagged as omitted.
Even easier to get wrong is row 25 (备案前应用MD5值). We already had three .app artifacts in the workspace: 051113cb… (abandoned Aug 30 build), aac3e0cb… (the tv-enabled build entered into the SARFT filing sheet), and bbdd5c83… (1.0.2 without tv for AGC). Any edit to PrivacyPage or SafeArea changes the release .app hash immediately. The only safe sequence is: finish code -> assembleApp -> md5 -q build/outputs/release/*-release-signed.app -> fill the form.
Where things stand at 1.0.4
After 1.0.2 passed, 1.0.4 (versionCode 1000400) rolled up fixes for landscape rotation blocked by system rotation lock (switching AUTO_ROTATION_RESTRICTED to AUTO_ROTATION), missing audio-focus interruption handling in libmpv, and collection-list bottom clearance under the floating tab pill (52vp measured after scroll bounce settles).
Phone, tablet, and 2in1 are live and iterating on AGC. The TV adaptation stays intact in the repo, waiting for the SARFT filing number to flip tv and WITH_TV = True back on.
Comments