Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vayu Utils

Device License Platform Repo Size Repo Size

A comprehensive, cross-platform toolkit for Xiaomi Poco X3 Pro (vayu)

From stock firmware flashing to advanced Android and Linux utilities

Features β€’ Installation β€’ Usage β€’ Roadmap β€’ Contributing


πŸ“– About

Vayu Utils is a curated collection of utilities, scripts, and firmware resources designed specifically for the Xiaomi Poco X3 Pro (codename: vayu). This project aims to be a one-stop solution for device maintenance, recovery, customization, and optimization across multiple platforms.

Why Vayu Utils?

  • 🎯 Device-Specific: Tailored exclusively for Poco X3 Pro
  • πŸ”„ Cross-Platform: Native support for Linux, Windows, and Android
  • πŸ›‘οΈ Safe & Tested: All tools thoroughly tested to minimize brick risk
  • πŸ“¦ All-in-One: Everything you need in a single repository
  • πŸ”“ Open Source: Transparent, community-driven development

✨ Features

Current Features

πŸ“± Stock Firmware Management

  • Complete firmware package (V14.0.3.0 Global)
  • Multiple flashing modes:
    • Clean flash (factory reset)
    • Dirty flash (preserve data)
    • Flash with bootloader relock
  • Cross-platform scripts for Linux and Windows
  • Automated process with error handling

🚧 Coming Soon

πŸ€– Android Utilities (Click to expand)
  • Custom recovery installation tools
  • TWRP/OrangeFox backup managers
  • Magisk/KernelSU integration scripts
  • Advanced partition management
  • ROM migration assistants
  • Boot image patchers
  • System debloating tools
  • Performance profilers
🐧 Linux Tools (Click to expand)
  • ADB/Fastboot installer scripts
  • USB driver configuration helpers
  • Device recognition automation
  • Linux-specific optimization tools
  • Udev rules generators
  • Kernel module managers
  • Performance monitoring utilities
πŸ”§ General Utilities (Click to expand)
  • Device diagnostics suite
  • Firmware integrity checkers
  • Batch operation tools
  • Backup/restore solutions
  • Log analyzers
  • Partition size calculators
  • Anti-rollback protection checkers

πŸ“‚ Repository Structure

vayu-utils/
β”œβ”€β”€ πŸ“ stock_partitions/          # Stock firmware & flashing tools
β”‚   └── V14.0.3.0_Global/
β”‚       β”œβ”€β”€ images/               # Partition images (boot, system, etc.)
β”‚       β”œβ”€β”€ flash_all.sh          # 🐧 Linux: Clean flash
β”‚       β”œβ”€β”€ flash_all.bat         # πŸͺŸ Windows: Clean flash
β”‚       β”œβ”€β”€ flash_all_except_storage.sh    # 🐧 Dirty flash
β”‚       β”œβ”€β”€ flash_all_except_storage.bat   # πŸͺŸ Dirty flash
β”‚       β”œβ”€β”€ flash_all_lock.sh     # 🐧 Flash + relock bootloader
β”‚       └── flash_all_lock.bat    # πŸͺŸ Flash + relock bootloader
β”‚
β”œβ”€β”€ πŸ“ android_tools/             # [Planned] Android-specific utilities
β”œβ”€β”€ πŸ“ linux_tools/               # [Planned] Linux system tools
β”œβ”€β”€ πŸ“ windows_tools/             # [Planned] Windows utilities
β”œβ”€β”€ πŸ“ scripts/                   # [Planned] Universal scripts
β”œβ”€β”€ πŸ“ docs/                      # [Planned] Detailed documentation
└── πŸ“ recovery/                  # [Planned] Recovery images & tools

πŸš€ Installation

Prerequisites

Before using any tools, ensure you have:

Requirement Description Link
Android Platform Tools Latest ADB & Fastboot Download
USB Drivers Proper device drivers installed Mi USB Drivers
Unlocked Bootloader Required for most operations Unlock Guide
Adequate Battery Minimum 50% charge -

Clone the Repository

git clone https://github.com/itachi-re/vayu-utils.git
cd vayu-utils

πŸ’‘ Usage

Flashing Stock Firmware

Step 1: Prepare Your Device

  1. Backup your data (clean flash will erase everything)
  2. Charge your device to at least 50%
  3. Enable USB Debugging (Settings β†’ About Phone β†’ tap MIUI Version 7 times β†’ Developer Options β†’ USB Debugging)

Step 2: Boot into Fastboot Mode

Method 1: Using ADB

adb reboot bootloader

Method 2: Hardware Keys

  • Power off device completely
  • Hold Volume Down + Power until Fastboot logo appears

Step 3: Verify Connection

fastboot devices
# Should output: [device_serial_number]    fastboot

Step 4: Execute Flashing Script

Navigate to firmware directory:

cd stock_partitions/V14.0.3.0_Global

🐧 Linux Users:

# Option 1: Clean flash (erases all data)
sudo chmod +x flash_all.sh
sudo ./flash_all.sh

# Option 2: Dirty flash (preserves user data)
sudo chmod +x flash_all_except_storage.sh
sudo ./flash_all_except_storage.sh

# Option 3: Flash and relock bootloader (⚠️ Use with caution)
sudo chmod +x flash_all_lock.sh
sudo ./flash_all_lock.sh

πŸͺŸ Windows Users:

# Option 1: Clean flash (erases all data)
flash_all.bat

# Option 2: Dirty flash (preserves user data)
flash_all_except_storage.bat

# Option 3: Flash and relock bootloader (⚠️ Use with caution)
flash_all_lock.bat

⚠️ Critical Warnings

🚨 READ BEFORE PROCEEDING

Warning Details
πŸ”’ Bootloader Relocking NEVER relock bootloader with custom ROMs or modified system. This will permanently brick your device. Only use flash_all_lock with complete, unmodified stock firmware.
πŸ’Ύ Data Loss flash_all scripts perform factory reset. All photos, apps, and personal data will be permanently deleted. Backup first!
⚑ Power Requirement Ensure minimum 50% battery. Device shutdown during flashing can cause hard brick.
🎯 Device Compatibility These tools are ONLY for Poco X3 Pro (vayu). Using on other devices will brick them.
πŸ“‘ Internet Connection Some operations may download additional components. Ensure stable connection.
πŸ”§ Anti-Rollback Check anti-rollback index before flashing older firmware. Mismatched ARB can brick device.

πŸ› Troubleshooting

Device not detected in Fastboot mode

Solutions:

  1. Try a different USB cable (use original if possible)
  2. Use USB 2.0 port instead of 3.0
  3. Reinstall USB drivers
  4. Run command prompt as Administrator (Windows)
  5. Check fastboot devices output
  6. Disable VirtualBox/VMware USB controllers
Permission denied error (Linux)

Solutions:

  1. Run scripts with sudo
  2. Add user to plugdev group:
    sudo usermod -aG plugdev $USER
  3. Configure udev rules:
    echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2717", MODE="0666", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/51-android.rules
    sudo udevadm control --reload-rules
  4. Reboot and try again
Flashing fails midway

Solutions:

  1. Verify bootloader is unlocked: fastboot oem device-info
  2. Check file integrity (re-download if corrupted)
  3. Ensure adequate free space on PC
  4. Try different USB port
  5. Disable antivirus temporarily
  6. Use minimal ADB & Fastboot tools
Device stuck in bootloop after flash

Solutions:

  1. Boot into recovery and factory reset
  2. Re-flash using flash_all.sh/bat (clean flash)
  3. Flash stock recovery first, then complete firmware
  4. Check if firmware matches your region
Anti-rollback protection error

Solutions:

  1. Do NOT flash firmware with lower ARB index
  2. Check current ARB version before flashing
  3. Only flash firmware with equal or higher ARB
  4. Contact community for compatible firmware versions

πŸ—ΊοΈ Roadmap

Phase 1: Foundation (Current)

  • Stock firmware collection
  • Cross-platform flashing scripts
  • Basic documentation
  • Firmware integrity verification tools

Phase 2: Android Tools (Q1 2025)

  • Custom recovery installers
  • Magisk integration scripts
  • Partition backup utilities
  • System debloater
  • Performance optimizer

Phase 3: Linux Tools (Q2 2025)

  • ADB/Fastboot auto-installer
  • Driver configuration wizard
  • Udev rules generator
  • Linux optimization suite

Phase 4: Advanced Features (Q3 2025)

  • GUI application (Python/Qt)
  • Firmware migration tool
  • Advanced diagnostics
  • Automated backup system
  • One-click root solutions

Phase 5: Community (Q4 2025)

  • Web-based tool dashboard
  • ROM compatibility database
  • Community script repository
  • Tutorial video series

🀝 Contributing

We welcome contributions from the community! Here's how you can help:

How to Contribute

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch
    git checkout -b feature/AmazingFeature
  3. πŸ’» Make your changes
  4. βœ… Test thoroughly on your device
  5. πŸ“ Commit with descriptive messages
    git commit -m "Add: New recovery flashing tool"
  6. ⬆️ Push to your branch
    git push origin feature/AmazingFeature
  7. πŸŽ‰ Open a Pull Request

Contribution Guidelines

  • Test everything before submitting
  • Document your code with clear comments
  • Follow existing code style and structure
  • Update README if adding new features
  • Include safety warnings for potentially dangerous operations
  • Specify compatibility (which firmware versions, etc.)

Ways to Contribute

  • πŸ› Report bugs and issues
  • πŸ’‘ Suggest new features
  • πŸ“ Improve documentation
  • πŸ”§ Submit new tools and utilities
  • πŸ§ͺ Test tools on different configurations
  • 🌐 Translate documentation
  • ⭐ Star the repository to show support

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

Third-Party Licenses

  • Stock firmware: Β© Xiaomi Inc.
  • Android tools: Β© Android Open Source Project
  • Platform tools: Β© Google LLC

πŸ™ Acknowledgments

  • Xiaomi for device firmware and documentation
  • Android Open Source Project for core tools
  • Linux community for invaluable utilities
  • XDA Developers for technical insights
  • Contributors who make this project possible
  • Testers who help ensure safety and reliability

πŸ“ž Support & Contact

Before Asking for Help

  1. βœ… Check Troubleshooting section
  2. βœ… Search existing Issues
  3. βœ… Verify you're using correct device (Poco X3 Pro - vayu)
  4. βœ… Include error logs when reporting issues

βš–οΈ Disclaimer

Important Legal Notice

This project is provided "as is" without warranty of any kind. The maintainers and contributors are not responsible for:

  • Bricked devices
  • Data loss
  • Warranty voidance
  • Any damage resulting from use of these tools

By using these tools, you acknowledge:

  • You understand the risks involved
  • You have backed up your data
  • You accept full responsibility for any consequences
  • Your device warranty may be voided

Always proceed with caution and at your own risk. πŸ”’


Star History

Star History Chart


Made with ❀️ for the Poco X3 Pro community

If this project helped you, consider giving it a ⭐ star!

About

tools and utilities for vayu (aka xiaomi poco x3 pro) and linux.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages