AirFirmware is a Python script that facilitates easy downloading and verification of firmware files for Earphones. The script automates the download process, calculates SHA-256 checksums, and compares them with expected values to ensure the integrity of the firmware.
- Downloading firmware files for various versions
- Automatic calculation of SHA-256 checksums
- Comparing calculated checksums with those of 100% functional firmware files
- Colorful and user-friendly console interface
- Support for multiple firmware versions
- Includes a
Firmware-backupfolder with pre-downloaded firmware bin files - Each firmware version in the
Firmware-backupfolder is accompanied by a checksum file for safety and integrity verification.
Check out this video to see how the script works:
- Python 3.x
- Libraries:
- requests
- tqdm
- colorama
- Clone this repository:
git clone https://github.com/Gostrdr1337/AirFirmwareDL.git - Navigate to the project directory:
cd AirFirmwareDL - Install the required libraries:
pip install -r requirements.txt
- Run the script:
python AirFirmwareDownloader.py - Enter the firmware version number you want to download (e.g.,
153for the latest version). - The script will download the files and display the checksum verification results.
- In addition to the automated download feature, this repository includes a
Firmware-backupfolder that contains pre-downloaded.binfirmware files. - Each firmware file is accompanied by a corresponding checksum file (
checksums.txt) that contains the expected SHA-256 hash for the firmware. - To ensure the firmware file’s integrity, you can verify the downloaded firmware’s checksum by using an online SHA-256 checker or any other checksum tool you prefer.
To verify the checksum:
- Open an online SHA-256 checksum tool such as this one, or use another checksum tool of your choice (e.g.,
shasumon macOS,sha256sumon Linux, or any other tool that supports SHA-256). - Upload or run the tool on the downloaded firmware
.binfile. - Open the
checksums.txtfile located in theFirmware-backupfolder. - Copy the checksum value from the
checksums.txtfile. - Compare the calculated checksum with the one provided in the
checksums.txtfile. If they match, the firmware file is safe to use.
AirFirmwareDownloader.py: Main scriptchecksums.json: File containing expected checksums for different firmware versionsFirmware-backup/: Folder containing pre-downloaded firmware.binfiles and corresponding checksum files (checksums.txt)README.md: Description filerequirements.txt: List of required libraries
- Ensure you have a stable internet connection when downloading files.
- The script creates separate directories for each downloaded firmware version.
- For added safety, always verify the checksum of your firmware files using a checksum tool and compare it with the checksum listed in
checksums.txt.
This project is available under the MIT License. See the LICENSE file for details.
For questions or issues, please create a new issue in this repository.
