RomFlasher
Rom Flasher tool

LineageOS 22 on POCO X7 Pro Flash Without a PC (Termux)

Rom Flasher · POCO X7 Pro · LineageOS · 26 Oct 2025 · 1480 views

TagsLineageOSPOCO X7 ProFlashInstallRecovery

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.

No PC in the room?The free Rom Flasher tool runs the whole flash from the phone in your hand — USB-OTG cable, no laptop, no command line.
Download the free Rom Flasher tool

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

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

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.

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

  1. On the phone you're flashing: enable Developer options and turn on USB debugging.
  2. Connect it to the Termux device and pick the option that checks the ADB device.
  3. When the ID appears, reboot the phone to fastboot from the tool's menu.
  4. Check the fastboot device list before you touch anything.
  5. Put the LineageOS zip and the recovery file in the Download folder.
  6. Flash the recovery to both A and B slots — if the menu has no A/B option, run the manual command.
  7. Reboot into the LineageOS recovery.
  8. Format data, then Apply update → Apply from ADB.
  9. 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.

More for POCO X7 Pro