Flash Any ROM From Termux, No PC LineageOS 22 Demo Run
Part of POCO guides, LineageOS guides, 2025 guides.
You can flash a custom ROM from Termux on a second Android phone, without a PC in the room. The tool talks ADB and fastboot over a USB cable, checks that your phone is visible, reboots it to fastboot, pushes recovery to both slots, then handles the sideload. LineageOS 22 is just the demo subject here.
The video starts muted so it does not blast at you — tap the speaker to hear it, or open it on YouTube.
Your laptop is dead, you are away from home, or you need to flash a ROM on someone else's device and you are not installing ADB drivers on their machine. That is the situation this method is for. It is not really about LineageOS. LineageOS 22 is simply the ROM I used on camera to prove the route works.
The idea is simple. Termux on one Android device runs the tool. A USB cable connects that device to the phone you want to flash. From there you get a menu that speaks ADB and fastboot, and you do the same job a PC would do.
What the tool does
- Connects your phone to a second Android device over USB and talks ADB and fastboot.
- Checks whether the phone is visible before anything gets flashed, so failures show up early instead of halfway through.
- Reboots the phone into fastboot mode from a menu rather than a key combination.
- Flashes recovery to both slots, then handles the sideload, so the ROM install stays in one place.
- Uses the files already sitting in your Download folder.
What you need
- Termux set up on the flashing device, with the tool and the ADB driver inside it. This is the part that takes the time.
- A USB cable that actually carries data. Charge-only cables are a real thing and they will waste your evening.
- The ROM zip, the recovery image, and the right vendor files for your phone, already downloaded.
- An unlocked bootloader. This route does not do that part for you.
- A backup, because a clean install wipes the phone.
Step 1 - check the phone before you flash anything
Plug the phone into the flashing device with the cable and open the tool's menu. The first item checks the ADB device. Do that first, every time. If the phone does not appear here, nothing later in the menu will work, and you have saved yourself a failed flash.
Step 2 - reboot to fastboot from the menu
Pick the option that reboots the phone into fastboot. Using the menu instead of a key combo is the small quality-of-life win in this method, especially if the phone's buttons are stiff.
Step 3 - confirm the fastboot list
Once the phone is in fastboot, run the fastboot check in the menu. You want to see your device listed before you write anything to it. This is the second checkpoint, and it is the one that tells you whether your driver setup in Termux is right.
Step 4 - flash recovery to both slots
Flash the recovery image to both slots. On this phone there are A and B slots, and if recovery only goes to one of them, you land in the wrong one sooner or later.
Step 5 - sideload the ROM
The tool takes you into the sideload step. This is where you pick the ROM zip from your Download folder and let it push. Keep the cable still and leave the screen on.
Step 6 - first boot
Reboot to system from the menu and wait. The first boot after a clean install is slow. Let the phone settle before you decide whether the ROM is any good.
What this route does not do
- It will not unlock your bootloader. That still has to be done properly, first, and it wipes the phone when you do it.
- It will not fix a wrong vendor file or a ROM built for another device. Bad files stay bad.
- It will not skip the wipe. A clean install still means formatting data.
- It will not work without the ADB driver set up inside Termux. If your phone does not show up, the driver is the culprit far more often than the phone.
One honest paragraph
This is boring when it works and confusing when it does not. The tool removes the typing but not the thinking. Every checkpoint in the menu exists because I hit that exact failure while testing, so resist the urge to skip the first two checks to save thirty seconds. When your phone does not appear, it is nearly always the driver inside Termux rather than anything wrong with the phone or the cable.
Being able to do this from another Android device is genuinely handy. If your PC dies, or you are on the road, or you simply do not want to install drivers on a borrowed laptop, this route still gets a ROM onto the device. The same steps work on other Android phones as long as your files are right.
The Termux setup itself is a separate job with its own steps. Once that is in place, this is the everyday flashing route.
The free Rom Flasher tool is the same tool used on the PC side, and the Termux flash file in the downloads section is what you put on the flashing device.
Links / Downloads
- LineageOS 22 ROM (demo) — 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
Flashing a custom ROM from Termux on the POCO X7 Pro — the tool, the menus and the LineageOS 22 demo, done end to end without touching a PC.
Here's the honest version of this video. It's not really about LineageOS specifically — LineageOS 22 is just today's test subject. The point is the method: once Termux is set up, you can push a recovery and a ROM to your phone from another Android device, and that's a genuinely useful thing to have in your pocket when your laptop isn't around.
I walked through the tool's menu in the order I actually used it, checking the ADB device first, rebooting to fastboot, confirming the fastboot list, then flashing recovery to both slots before touching the ROM. It's boring when it works and confusing when it doesn't, so I kept the checks in the video. If you want the theory behind the setup, that's in the Termux setup video, linked below.
🎯 What It Does
- Connects your phone to a second Android device over USB and talks ADB and fastboot
- Checks whether the phone is visible before anything gets flashed, so failures show up early
- Reboots the phone into fastboot mode from a menu instead of a key combo
- Flashes recovery, then handles the sideload, so the ROM install stays in one place
- Works with the files you already have in your Download folder
💡 Best Part
The whole process runs off a phone in your pocket. If your PC dies, or you're away from it, or you just don't want to install drivers on someone else's laptop, this route still gets a ROM onto the device. I used LineageOS 22 as the demo, but the same steps work for other ROMs and other Android phones.
🚫 What It Doesn't Do
- It won't unlock your bootloader — that still has to be done properly first.
- It won't fix a wrong vendor file or a mismatched ROM. Bad files stay bad.
- It doesn't skip the wipe. A clean flash still means format data.
- It needs a cable and a working ADB driver in Termux, otherwise nothing shows up.
❓ Common Questions
Can I flash without a PC at all? Yes, that's the point of the tool. Termux does the flashing.
Why does my device not show up? The ADB driver inside Termux is the usual culprit, not the phone.
Is this only for Poco? No, it works across Android devices, as long as the files are right.
Common questions
Can I flash a ROM without a PC at all?
Yes, that is the whole point of this method. Termux on a second Android device runs the tool and does the flashing over USB, so no computer is involved.
Why does my phone not show up in the tool?
The ADB driver inside Termux is the usual culprit, not the phone. Check that the ADB device appears in the menu before you try anything else.
Does this work on phones other than the POCO X7 Pro?
Yes. The method works across Android devices as long as the ROM, recovery and vendor files are correct for the phone you are flashing.
Will this unlock my bootloader?
No. Unlocking the bootloader has to be done separately, and it is a step that wipes the phone. Do that first, then come back to this method.
Can I use files that are already on my phone?
Yes. The tool picks the ROM zip from your Download folder, so you do not need to move anything around before you start.
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