A simple Python-based tool for interacting with Xiaomi devices in EDL mode and other useful functionalities like ADB and Fastboot operations. This tool helps in detecting Xiaomi devices in Emergency Download Mode (EDL), listing connected USB devices, and rebooting Xiaomi devices into EDL mode.
- Check Xiaomi Devices in EDL Mode: Continuously checks if a Xiaomi device is connected in EDL mode.
- List Connected USB Devices: Lists all connected USB devices using
lsusb
. - Restart ADB Server: Restarts the ADB server to ensure communication with the connected device.
- Reboot Xiaomi Device into EDL Mode (Fastboot): Reboots a Xiaomi device into EDL mode using Fastboot.
- Log Viewer: View logs for all operations in the tool.
This tool is designed to work with Xiaomi devices, particularly for detecting and interacting with devices in EDL (Emergency Download) Mode.
It uses a vendor ID (05c6:9008
) specific to Xiaomi devices in EDL mode.
-
Clone this repository:
git clone https://github.com/Nischal-Acharya/xiaomi-edl-tool.git cd xiaomi-edl-tool
-
Create a Python virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install required dependencies:
pip install -r requirements.txt
-
Dependencies:
subprocess
(for interacting with ADB and Fastboot)tkinter
(for the graphical user interface)lsusb
(for listing USB devices)- Python 3.x is required.
-
Make sure ADB and Fastboot are installed on your system:
- ADB: ADB installation guide
- Fastboot: Fastboot installation guide
-
Run the tool:
python edl.py
-
The graphical user interface will open, and you will see the following buttons:
- Check EDL Mode: Start continuous checking for Xiaomi devices in EDL mode.
- List USB Devices: List all connected USB devices.
- Restart ADB Server: Restart the ADB server.
- Reboot to EDL: Reboot a Xiaomi device into EDL mode via Fastboot.
- View Log: View logs for all operations performed.
- Stop Checking: Stop the continuous EDL mode checking.
This tool was developed by Nishchal Acharya (ME). It's built to simplify the process of managing Xiaomi devices in EDL Mode and to make working with ADB and Fastboot operations more accessible.
Feel free to contribute to this project! Fork the repository, create a branch, and send a pull request. Contributions are always welcome!
- Fork the repository.
- Create a new branch.
- Implement your changes or fixes.
- Test your changes.
- Create a pull request.
We appreciate your contributions!
This project is licensed under the MIT License. See the LICENSE file for more details.
- Creator: Nishchal Acharya
- Twitter: @nishchal_acc
- LinkedIn: Nishchal Acharya
- GitHub: Nishchal-Acharya
- Portfolio: nishchalacharya.com.np
No, this tool is specifically designed for Xiaomi devices. It detects EDL mode, which is unique to Xiaomi devices. For other Android devices, modifications are needed.
You need to install ADB and Fastboot on your system to use this tool. You can follow the installation guides linked above.
Yes, the tool is safe to use as long as you follow the instructions correctly. It does not modify your device permanently, but please use it responsibly when rebooting your device into EDL mode.