LineageOS 22 on POCO X7 Pro Flash Without a PC (Termux)
Part of POCO guides, LineageOS guides, 2025 guides.
You can flash LineageOS 22 on the POCO X7 Pro without a PC, using Termux on a second Android device to run the recovery steps over USB. It works, but the whole job depends on the ADB driver inside Termux being right, and that is where most attempts fail.
The video starts muted so it does not blast at you — tap the speaker to hear it, or open it on YouTube.
You do not own a Windows laptop, or the one you have refuses to see the phone, or you just want to prove this can be done from a phone. Whatever the reason, flashing LineageOS 22 on the POCO X7 Pro from Termux is a real route, and I ran the whole thing that way.
The idea is simple. A second Android phone or tablet runs Termux, you connect the POCO to it with a USB cable, and the recovery tool in Termux talks to the phone over ADB and fastboot. No desktop, no platform-tools folder, no driver installer on Windows.
The catch is the same catch as always. When the device ID does not show up, that is almost never the phone. It is the ADB driver.
What you need
- Termux, plus the recovery tool, already set up and working on the second device.
- A second Android phone or tablet to run Termux. This is the device doing the flashing.
- The LineageOS 22 ROM zip and the vendor file for this device.
- USB debugging turned on, on the phone you are flashing.
- A cable that actually moves data. Charge-only cables are useless here.
- Your IMEI written down and your data copied off the phone.
That last point matters more than people think. Write the IMEI down somewhere you can find it. You cannot recreate it later.
Step 1 - prepare the phone you are flashing
On the POCO X7 Pro, enable Developer options and turn on USB debugging. Connect it to the Termux device with the cable and pick the option that checks the ADB device.
If that returns an ID, you are in business. If it returns nothing, jump to the troubleshooting section below before you go any further. Do not push on and hope.
Step 2 - reboot to fastboot
From the tool's menu, reboot the phone to fastboot. Then check the fastboot device list before you touch anything else. You want to see the ID listed there too. This is the checkpoint that saves you from a bad flash later.
Step 3 - put the files where the tool expects them
Move the LineageOS 22 zip and the recovery file into the Download folder on the Termux device, so the tool can find them without you typing long paths. This is boring and it is worth doing properly.
Step 4 - flash recovery
Flash the recovery image to the phone. The tool handles it, and you want it on both slots. If it does not offer that as a menu option, do it manually for each slot.
Step 5 - sideload the ROM
Boot into the LineageOS recovery you just flashed, format data, then use Apply update and Apply from ADB. Sideload the ROM zip and let it finish.
First boot after that takes a while. Leave the phone alone.
Where people get stuck
- The fastboot ID never shows up. Nine times out of ten this is the ADB driver inside Termux, not the phone. Reinstall the driver there and try again before you assume the device is dead.
- A cable that only charges. If the device list is empty no matter what you do, try a different cable before you reinstall anything else.
- Skipping the vendor file. The vendor file has to go on with the ROM. Without it the phone will not boot properly.
One honest note
Flashing from a phone is slower and fussier than from a PC. Every time something does not respond, you are troubleshooting two Android devices instead of one, and the tool's output on a phone screen is cramped. I checked the device at every stage rather than trusting the tool, because a tool that looks connected while your phone sits there doing nothing is the worst feeling in this hobby.
That said, it works, and it is a genuinely good option if a PC is not available to you. Just be patient with the driver step and verify each checkpoint before moving on. If you would rather do it from a computer, the free Rom Flasher tool covers the ADB and fastboot driver setup there.
Links / Downloads
- LineageOS 22 ROM — https://tmearn.net/link/rNS9yO7C
- Rom Flasher tool (free) — https://github.com/romflasher3419-spec/rom-flasher-tool/releases/latest
- Vendor — https://tmearn.net/link/wol2XX
- ADB & Fastboot Tool — https://tmearn.net/link/8kQcy
- ADB & Fastboot Driver — https://tmearn.net/link/PSM2
Use the file built for your exact model and region. A package for another variant is the quickest way to a phone that will not boot.
Full description from the video
LineageOS 22 on the POCO X7 Pro — flashed from Termux on another Android device. No laptop, no Windows, just the tool, the recovery and the ROM zip.
This one picks up where the Termux setup left off. You open Termux on the second Android device, paste the cd command, run the flash tool, connect the Poco with USB debugging on, and let the script do the parts you'd normally do from a PC. The tool lists your device, reboots it to fastboot where you ask it to, flashes the LineageOS recovery to both slots, and then you sideload the ROM.
I tested the device at every stage instead of trusting it, because the worst feeling in this hobby is a tool that looks connected while your phone sits there doing nothing. If the fastboot ID doesn't show up, that's almost always the ADB driver, not the tool — reinstall it inside Termux and try again before you assume the phone is dead.
🔧 What You Need
- Termux plus the recovery tool, already set up and working
- A second Android phone or tablet to run Termux
- LineageOS 22 ROM zip and the vendor file for this device
- USB debugging on, and a cable that actually moves data
- Your IMEI written down and your data copied off
📝 The No-PC Route
- On the phone you're flashing: enable Developer options and turn on USB debugging.
- Connect it to the Termux device and pick the option that checks the ADB device.
- When the ID appears, reboot the phone to fastboot from the tool's menu.
- Check the fastboot device list before you touch anything.
- Put the LineageOS zip and the recovery file in the Download folder.
- Flash the recovery to both A and B slots — if the menu has no A/B option, run the manual command.
- Reboot into the LineageOS recovery.
- Format data, then Apply update → Apply from ADB.
- Sideload the ROM zip, wait for it to finish, then reboot to system.
⚠️ Where People Get Stuck
- No fastboot ID — nine times out of ten it's the ADB driver in Termux, not the phone.
- Flashing the recovery to only one slot, then wondering why it boots back into the old one.
- Forgetting USB debugging after a reboot, because the toggle sometimes drops.
❓ Common Questions
Is a PC needed at all? No. Everything runs between two Android devices.
Do I lose my data? Yes, this route formats data, so back up first.
Why sideload instead of a normal install? That's how this recovery takes the ROM.
What if the ROM won't boot? Redo the vendor file step and check the build matches your device.
Common questions
Can I flash LineageOS 22 without a PC?
Yes. You can run the flash from Termux on a second Android device over a USB cable, using the recovery tool to handle the ADB and fastboot steps. It works, but the driver setup inside Termux has to be right first.
Why does the fastboot device ID not show up in Termux?
It is almost always the ADB driver rather than the phone. Reinstall the driver inside Termux and try again. Also check the cable, since a charge-only cable will never show a device.
Does flashing LineageOS 22 wipe the phone?
Yes. You format data as part of the install, and unlocking the bootloader wipes the phone as well. Copy your files off and write down your IMEI before you start.
Do I need the vendor file with the LineageOS 22 zip?
Yes. The vendor file goes on with the ROM and the build will not behave correctly without it. Get both files on the Termux device before you start flashing.
Why is there no fastboot device showing even though the cable is connected?
Check the cable first, then the driver inside Termux. A charge-only cable will never pass data, and a missing ADB driver looks exactly like a dead phone. Fix those two before you blame the ROM.
Before you flash
- Back up everything you would miss — unlocking and flashing usually wipe the phone.
- Check the file is built for your exact model and region.
- Keep a PC and a working cable around so a bootloop can be recovered.
More for POCO X7 Pro
Root POCO X7 Pro With Magisk No TWRP Needed — Full Steps
Rooting the POCO X7 Pro with Magisk — no TWRP, no custom recovery, just a patched boot image and a couple of fastboot commands.
TWRPPOCO X7 ProInstallPOCO X7 Pro · 12 Oct 2025HyperOS 3.0 for POCO X7 Pro Official Build Flash & First Look
HyperOS 3.0 for the POCO X7 Pro — the official build, what's inside, and the clean way to get it running on your phone.
HyperOSPOCO X7 ProFlashPOCO X7 Pro · 3 Oct 2025Project Infinity X 3.3 on POCO X7 Pro Android 16 Sideload Guide
Project Infinity X 3.3 on the POCO X7 Pro (Rodin) — an Android 16 build flashed with vendor_boot and ADB sideload, plus the known issues you should read...
POCO X7 ProPOCO X7 Pro · 20 Oct 2025LineageOS 20 Android 13 on Mi Pad 5 Fastboot Install Guide
LineageOS 20 with Android 13 on the Mi Pad 5 — a weekly test build, plus the fastboot install route it needs.
LineageOSXiaomi Pad 5FlashXiaomi Pad 5 · 19 Feb 2023LineageOS GSI on Xiaomi 11T Pro Android 11 Install Guide
LineageOS as a GSI on the Xiaomi 11T Pro — Android 11, the September security patches, and the fix in this build that finally kills the random livelock...
LineageOSXiaomi 11T ProFlashXiaomi 11T Pro · 19 Dec 2022PixelOS Android 15 on POCO X7 Pro Flash Without Errors
PixelOS with the latest Android 15 build is running on the POCO X7 Pro — this is the full flash, from vendor_boot to first boot, done without any errors.
PixelOSPOCO X7 ProFlashPOCO X7 Pro · 25 Sep 2025