[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115114":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},115114,"Flasher_Builder","koaaN\u002FFlasher_Builder","koaaN","Private development copy of Build_Tools for the local Linux and Windows flasher builder",null,"Python",65,22,1,3,0,9,5,48.43,false,"main",[],"2026-11-04 15:03:02","2026-11-23 04:39:34","# Flasher Builder\n\nA local desktop GUI for this repository's firmware build workflow. Select the device, flasher type and region, choose a **full OTA ZIP** or paste its download URL, and click **Build package**. The GUI supports the same 86 combinations as `.github\u002Fworkflows\u002Fbuild_tools.yml` and filters the choices as you select a device.\n\nOpen **Documentation** in the sidebar to read this guide inside the app, with formatted headings, code blocks, section navigation and text search. Bundled documentation works offline; web links open in your browser.\n\n## Linux and Windows releases\n\nDownload the matching package from the repository's [Releases](https:\u002F\u002Fgithub.com\u002FkoaaN\u002FFlasher_Builder\u002Freleases):\n\n- **Windows 10\u002F11 x64:** extract `FlasherBuilder-windows-x86_64.zip` and run `FlasherBuilder.exe`.\n- **Linux x86-64:** extract `FlasherBuilder-linux-x86_64.tar.gz` and run `.\u002FFlasherBuilder`.\n\nExtract the whole archive and keep the worker and project folders beside the GUI.\nBoth packages include Python, Qt, native otaripper **3.5.0** with remote streaming, lpmake, aria2c **1.37.0** and GitHub\nCLI (optional for private forks). Windows does not need WSL, Git Bash, or a separate Python installation.\nLinux requires curl and Qt runtime libraries; on Ubuntu\u002FDebian:\n\n```sh\nsudo apt install curl libegl1 libopengl0 libxkbcommon0\n```\n\nPublic releases, bloat downloads and update checks work without a GitHub login.\nDownloads use bundled **aria2c `-x8 -s8`** (up to eight connections per file), with\n**curl fallback** if aria2c is unavailable or a transfer fails. Files still download\none at a time. Servers determine whether parallel range requests improve speed.\nSizes and checksums are verified before files are accepted. Cancelling removes\npartial data and aria2 control files without starting a fallback transfer.\nWindows uses its built-in curl; Linux users should keep curl installed as a fallback.\n\nFor a private fork, an existing GitHub CLI login can resolve authenticated release\nlinks. No account token is shipped or saved in application preferences.\n\nClick **Check setup**, then **Run pipeline self-test** to verify the native tools.\nTest packages contain synthetic data and must never be flashed.\n\n## Running from source\n\nInstall Python 3.10 or newer and run these commands from the project folder:\n\n```sh\npython -m pip install -r requirements.txt\npython scripts\u002Ffetch_tools.py --platform all\npython flasher-builder.py\n```\n\nOn Windows, `py -3` can replace `python`. On Linux, use `python3`. The source\nlaunchers `start-linux.sh` and `start-windows.bat` are also provided. Paths and\nURLs are passed as argument arrays, without shell interpolation.\n\n## Building a package\n\n- Choose a supported device, flasher type and region. The app selects ColorOS or OxygenOS templates for the device; the region alone does not determine the firmware family.\n- Complete **step 2 — Bloat files**: choose a folder containing the required images or click **Download bloat**. The app verifies their sizes and SHA-256 hashes. You can select or download an OTA before this step is complete. **Build package** stays disabled until the required bloat, OTA selections, output folder and any required ODM match are ready.\n- In **step 3**, use **Version catalog**, choose a full OTA ZIP, or enter an HTTP(S) URL. Placeholder and incremental OTA files are rejected.\n- Choose the output folder. **ZIP build** is checked by default; uncheck it to keep the finished flasher folder and skip compression. This choice is remembered between launches. Recovery installation requires a ZIP.\n- Click **Build package**. The app opens **Build output** for progress and logs; **Back to setup** returns to the form. The log reports download, staging, extraction, packing and optional compression. **Cancel** stops the active native tools and their child processes.\n- **Open output** opens the latest result folder. Each job has a unique name and contains either the final ZIP with `.zip.sha256`, or the finished flasher folder, plus `build.json` and `build.log`. Build history also opens folder builds directly. Temporary work files are removed after a successful build. Cancelled builds remove their entire job folder after stopping the native tools, including partial packages and temporary images. Existing completed packages, original OTA files and downloaded bloat are preserved. Failed jobs retain partial work for inspection; those job folders can be deleted when no longer needed.\n\nBudget roughly **40–80 GB free** for full firmware builds, depending on device, OTA compression and the number of inputs. The worker checks available space before extraction, but actual requirements vary. The GUI logs the OTA's declared device identifier; choose firmware appropriate for the selected device. A successful package build does not establish compatibility with a physical phone.\n\nThis application builds local ZIPs or flasher folders. SFTP uploads and Telegram announcements remain in the original GitHub Actions workflow. No runner registration or GitHub login is needed for public downloads.\n\n### OTA version catalog\n\nOpen **Version catalog** in step 3 to fetch versions from [Daniel Springer's OTA catalog](https:\u002F\u002Froms.danielspringer.at\u002Findex.php?view=ota).\nThe picker matches the selected device and region, shows the latest release first,\nand displays the model, size and security patch when available. **Fetch versions**\nuses the site's [public catalog API](https:\u002F\u002Froms.danielspringer.at\u002Fapi\u002Fota.php?format=html&help=1),\nwith a shared 15-minute cache and ETag revalidation. An offline cached list is clearly marked.\nSelections with no matching catalog releases can still use a local ZIP or a manual URL.\nConversion builds use explicit target\u002Fbase mappings and show both selectors when needed.\n\nWhere a conversion requires a patch-matched ODM, the catalog shows the selected\ndonor version. The app finds a full donor OTA with the **exact same security patch\ndate**, including for older target versions, checks the actual OTA metadata, and\nstreams **only `odm.img`** plus the small ZIP\u002Fpayload metadata needed to locate it.\nThe full donor OTA is never downloaded. The image must pass its payload SHA-256\nchecks before packing; the donor version, patch, image size and SHA-256 are recorded\nin `build.json`. Missing patch data, no exact match, or a server without range\nsupport stops the build. A fixed bloat ODM or a different patch is never substituted.\nLocal-file and direct-URL targets are identified from their embedded OTA metadata.\n\nSelect a version and click **Build package** to download it and build in one operation.\nAlternatively, **Download OTA** saves and verifies the full ZIP without building;\nthe current session then shows **Already downloaded** and reuses that local ZIP for\nbuilds. On later launches, choose that saved ZIP in **Local file**. Downloads happen\none at a time, including separate target and base packages when required. Bloat is required for building, and can be downloaded before or after selecting the OTA.\n\n**Copy download link** resolves a fresh link onto the clipboard. Some links expire;\nthe worker resolves them again immediately before transfer rather than reusing an\nold copied link. Temporary resolved links are not saved in settings, the cache or\nbuild logs. Catalog downloads check the listed size and MD5 when provided, as well\nas the existing full-OTA ZIP checks. Cancelled or failed standalone downloads remove\ntheir partial files and leave existing files intact.\n\n## Bloat assets\n\nAll bloat images are versioned together in the public `bloat-assets-v1` release.\n`bloat\u002Fassets-manifest.json` maps each device\u002Fregion image path to a release\nattachment and pins its size and SHA-256. Identical images share one attachment.\n\nThe **Bloat files** panel follows the selected device, region and flasher type.\nUse its folder button to choose where to keep the images, then click\n**Download bloat**. No OTA is needed for this download. The panel reports\n**Already downloaded** when all selected images have the correct sizes and\nSHA-256 checksums, or shows how many files are missing. Use **Recheck** (the refresh icon spins while verifying)\nto recheck files manually; status also updates when the selection or folder\nchanges. The chosen folder is remembered between sessions.\n\nImages are stored as `\u003Cchosen folder>\u002F\u003Cdevice>\u002F\u003Cregion folder>\u002F*.img`.\nDownloads happen one at a time. Completed images are reused, and a cancelled\ndownload can be retried without downloading those images again. A hidden\n`.cache` folder contains verified transport objects used for repairs and\ncompressed images. Builds reuse the images from the chosen folder automatically. The worker rechecks them before any OTA transfer and requires local images during staging; it never silently downloads missing bloat as part of a GUI build.\n\nStep 2 fetches only the images needed by the selected device, region and\nflasher type. Downloads are verified and kept in the chosen folder's `.cache`\nfor reuse. Images are verified again before the build starts and as they are\nstaged. The native build worker requires local images and does not silently fetch\nmissing bloat after step 2. Oversized release attachments are losslessly gzip-compressed;\nthe builder restores the original `.img` automatically. If compression still exceeds\nGitHub's attachment limit, the transport is split across smaller attachments.\nThe app downloads these one at a time, verifies each part and the combined\ntransport, then restores and verifies the original image. No manual joining is needed.\n\nThe repository and bloat release are public. Set `BLOAT_CACHE_DIR` in the build environment to use a different\ncache location. The cache can be removed when no build is running; the next\nbuild downloads the required assets again. Cached assets can be reused offline.\nThis asset release uses release attachments, not Git LFS or expiring Actions\nartifacts.\n\n## Testing\n\n**Check setup** verifies required commands and assets. **Run self-test** generates tiny Android OTAs with valid payload operations and runs the **real bundled** otaripper, lpmake and avbtool through all three builder scripts. It checks extracted bytes, sparse-image headers, archive CRCs, SHA-256, folder output, and patch-matched ODM extraction from a local HTTP range server. The range test checks that unrelated payload data is never transferred. Test artifacts begin with `TEST-DO-NOT-FLASH`; they contain synthetic bytes and must never be flashed.\n\nCommand-line checks:\n\n```sh\npython3 -m unittest discover -s tests -v\nQT_QPA_PLATFORM=offscreen python3 flasher-builder.py --smoke-test --test-output \u002Ftmp\u002Fflasher-qt-test\npython3 flasher_builder\u002Fbackend.py --check\npython3 flasher_builder\u002Fbackend.py --self-test --output \u002Ftmp\u002Fflasher-builder-test\n```\n\nA normal command-line build is also supported:\n\n```sh\npython3 flasher_builder\u002Fbackend.py --download-bloat --device 'DEVICE_NAME' \\\n  --kind 'FLASHER_TYPE' --region REGION --bloat-dir \u002Fpath\u002Fto\u002Fbloat\npython3 flasher_builder\u002Fbackend.py --device 'DEVICE_NAME' \\\n  --kind 'FLASHER_TYPE' --region REGION --bloat-dir \u002Fpath\u002Fto\u002Fbloat \\\n  --ota \u002Fpath\u002Fto\u002FFULL-OTA.zip --output \u002Fpath\u002Fto\u002Fbuilds\n```\n\nThe GitHub Actions scripts extract to explicit directories, normalize script line endings in per-job copies, stop when an asset download fails, and reject super images missing core partitions. Local builds never execute the workflow's runner-workspace cleanup step.\n\nAdd `--no-zip` to the command-line build to keep the finished flasher folder instead of creating an archive.\n\n## Distribution builds\n\nThe setup form fits without scrolling, including supported target\u002Fbase OTA selectors. Build output stays hidden until a task starts and uses its own view, so logs never shrink the setup form. Successful bloat and OTA downloads return to setup automatically; **View output** reopens their logs.\n\nThe app checks for newer stable app releases in the background on startup. When an update is available, an **Update v…** button appears in the sidebar and opens the release download page. **Environment → Check for updates** checks again manually and displays your installed version. Public update checks work without a login; connection problems appear in Environment and do not block builds. Checks ignore bloat releases, drafts, prereleases and releases missing your platform's package. Extract the new package to update; automatic installation is not performed.\n\nThe UI uses PySide6 (Qt 6). The build worker uses Python's standard library. Build history, environment checks, task logs and package summaries are built into the desktop interface. Create a portable source ZIP with:\n\n```sh\npython3 scripts\u002Ffetch_tools.py --platform all\npython3 scripts\u002Fpackage_app.py\n```\n\nTo also create a native executable distribution, run on the target OS:\n\n```sh\npython3 -m pip install -r requirements.txt pyinstaller\npython3 scripts\u002Ffetch_tools.py --platform all\npython3 scripts\u002Fpackage_app.py --native\n```\n\nOn Windows, use `py -3` instead of `python3`. Native packages include project assets and a separate bundled console worker; do not distribute the executable by itself. Windows executables must be built on Windows. The Linux executable's glibc requirements depend on its build host.\n\n\nThe **Native desktop releases** GitHub Actions workflow builds on Ubuntu 22.04\nand Windows Server 2022, runs regression tests, exercises real native tools, then\nruns the extracted GUI's frozen pipeline self-test. It publishes both platform\narchives, a source ZIP, validation receipts and SHA256SUMS only after both jobs\npass. Dispatch it with a new version such as `v1.0.0`.\n\nThe desktop pipeline stages files, selects partitions and constructs lpmake\narguments in Python. The original shell scripts remain for the separate firmware\nGitHub Actions workflow. See [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) for\ntool origins, versions and licenses.\n\n\n**Delete bloat** removes the image files required by the current selection and their unused download-cache copies from the selected bloat folder. A confirmation lists the device, region, folder and exact image paths. Other files remain in place; cache objects shared with another locally stored image are preserved. Deleting required files disables building until **Download bloat** restores them; OTA selection stays available. Delete\u002Frecheck controls are disabled during builds and downloads.\n","Flasher Builder 是一款面向 Android 设备固件开发者的本地桌面 GUI 工具，用于自动化构建定制化刷机包（如 ColorOS\u002FOxygenOS 的 OTA ZIP）。它支持设备、刷机工具类型与区域的组合选择（共 86 种配置），集成 aria2c（带断点续传与校验）、otaripper 3.5.0、lpmake 等原生工具，并提供离线文档浏览、本地环境自检与合成测试包生成功能。无需 WSL、Git Bash 或预装 Python（Windows 版已捆绑），适用于 Linux\u002FWindows 平台上的固件定制、ROM 分发准备及本地化刷机包打包场景。",2,"2026-11-24 04:50:23","CREATED_QUERY"]