Skip to content

Fix device list source to Pixel FI page - #18

Closed
DebugBoard wants to merge 1 commit into
KOWX712:inject_sfrom
DebugBoard:fix/changeDeviceSource
Closed

DebugBoard wants to merge 1 commit into
KOWX712:inject_sfrom
DebugBoard:fix/changeDeviceSource

Conversation

@DebugBoard

@DebugBoard DebugBoard commented Sep 13, 2026

Copy link
Copy Markdown

Summary

autopif's device-list scrape was silently stuck on the OTA page instead of the factory-images (FI) page, so any Pixel model published only on FI — currently the entire Pixel 10 line — never appeared in the generated device list.

Root cause

FI_URL was extracted with:

grep -o 'href=".*download.*"'

That pattern also matches download-ota hrefs, and sort -ru ranks .../download-ota above .../download, so head -n1 returned the OTA page for both FI_URL and OTA_URL. PIXEL_FI_HTML and PIXEL_OTA_HTML ended up byte-identical, so the SRC=FI/SRC=OTA length comparison could never actually pick FI.

devices newest
OTA page 16 Pixel 9a
FI page 20 Pixel 10 Pro Fold

Fix

Anchor both patterns to the end of the href, in module/autopif.sh and the identical lines in .github/workflows/autopif.yml:

grep -o 'href="[^"]*/download"'       # FI
grep -o 'href="[^"]*/download-ota"'   # OTA

The FI_URL pattern href=".*download.*" also matched download-ota
hrefs, and sort -ru ranked the OTA link above the FI link, so both
FI_URL and OTA_URL resolved to the same OTA page. That page lists
fewer devices than the factory-images page, so newer Pixel models
(e.g. Pixel 10 line) published only on factory-images were never
picked up.
@DebugBoard DebugBoard closed this Sep 13, 2026
@DebugBoard DebugBoard reopened this Sep 13, 2026
@DebugBoard DebugBoard changed the title fix: Use the Pixek Factory Image Fix device list source to Pixel FI page Sep 13, 2026
@KOWX712 KOWX712 closed this in #19 Sep 13, 2026
@DebugBoard
DebugBoard deleted the fix/changeDeviceSource branch September 13, 2026 16:50
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.

1 participant