[Xiaomi Redmi Note 4 Questions & Answers] BoundDroid:
Problem (symptomatic): Phone doesn't start, always boots into bootloader. Have to go into recovery (OrangeFox), flash an OS every time - only Lineage OS 17.1 and RR Pie start up. Logs into the introduction screen. Wi-Fi, hotspot, mobile data - nothing works - freezes UI. When I try rebooting the installed OS, Lineage OS and RR P both load for some(really-long)time and finally boot into recovery. Tried flashing RR Q - booted into introduction screen, then immediately shut off with the obvious text "Shutting Off".

Device: Redmi Note 4 MediaTek (mido) 2GB 32GB.

Investigation:

I think whatever is happening is because of one (or more) of the following reasons -​

I tried flashing Ethereal kernel (Ethereal-Clang12-Mido-20210102.zip) into the stock from TWRP Install. When it didn't work (or did, Idk) I actually flashed it two more times. I was trying to install RR Q initially, and it kept saying something like treble-version-incompatible.

Looking up, they said updating TWRP works. So I tried updating to 3.5.0_9-0 from 3.3.1.0. Idk if this is an unstable version but it asked for a password. I tried all passwords suggested on XDA, didn't work. I don't have encryption on my device and 3.3.1 never asked for a password. I finally decided to do a full wipe. Don't remember correctly but I think this is where from it just went downhill.

Installed RR Pie, wireless services (modem?) wouldn't work. Tried fixing kernel by installing boot.img from recovery. Wouldn't work. So now I decided to flash kernel into the boot partition from Fastboot using fastboot flash boot Ethereal-Clang12-Mido-20210102.zip.

Nothing worked anymore and I installed OrangeFox which is better but of no avail to my problems. To further understand my issues, I fastbooted and force wrote the boot.img from RR Q into my persist (a partition?) Yeah. I know. What can I say, I was just possessed by madness.

Now my persist is damaged.

I don't remember correctly, but if mobile data and those network thingies don't work, I'd assume I also tried flashing something incorrect into the modem image partitons...

What I tried doing:

Flashing boot.img of RR Q to fix kernel.

Flash multiple kernels on the inernet.

I think none of these work because these installs are supposed to be conducted as extensions or upgrades over the base framework. Which is gone I think?

So here's my remnant solution strategy:

I replace all of the files and directories in my / folder (the folder accessible only to the device; the base folder of a Linux system) with whatever came initially from some similar device.

I try option #1.

I honestly don't know what to do. If I copy all of the files in the / folder from some other similar mido phone using a recovery tool and paste it on mine:

Can I even do that?

Here's a logical deduction: while the recovery app works, some files should be in use. The system should thus not let me touch those specific entries. Thus I can't paste (but surely copy) those files from somewhere; but then I can't write them onto my device in recovery. Do I need to? If yes, can fastboot be used?

Are there particular files in the / folder that are device specific? Does that mean I'll have to use Terminal to change them?

Are there easier (or, depending on the gravity of the situation, existent-at-all) alternatives? Like images for every single partition (and some partitions aren't accessible to the installer I suppose. So I may have to use Terminal)? If no, can anyone provide me the files from /?

So that's it. Tell me what you think. Quick would be awesome; I'll totally do your laundry for a week.