yashsingh1/xdaforums huggingface dataset:
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] Jrobah:
the command should be "Fastboot flash boot file.img" or "fastboot flash recovery file.img"
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] Jazzda:
It's my first smartphone so please forgive me for my lack of knowledge.

After digging around to learn a few things I could understand that XDA Developers it's where skilled (english sepeaking) people reside, so I'm humbly requesting a clarification about TWRP on Redmi 7A.

Is the info in the following link reliable?

Thanks

PS: Sorry, it would be difficult to make 10 posts without this info :angel:
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] GabbyWC:
Does the beta release of Magisk v19.4 bring us any closer to having root access on the Redmi 7A?

https://github.com/topjohnwu/magisk_files/blob/6510533d6a8bb751152539919f57bb616c2405af/notes.md
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] FredQ:
I could be way off (I'm waiting 168 hours to unlock my bootloader), but I'm pretty sure those who followed the instructions in the topic below have twrp, root and a custom rom installed?

https://xdaforums.com/redmi-7a/how-to/custom-gsi-firmware-t3965820

First few posts indicate magisk is working? If not I'll be disappointed in 168 hours lol
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] JarlPenguin:
Did you try patching the stock recovery image, flashing it to recovery and then booting to system through recovery?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
Following instruction in this thread: https://xdaforums.com/redmi-7a/how-to/custom-gsi-firmware-t3965820/post80246543#post80246543

I have managed to install two working GSI roms: AOSP and dotOS.

Magisk works fine and TWRP work too.....BUT there is no working WIFI

if I use the stock boot image instead of a patched one, Wifi works again but I permanently lose root.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] GabbyWC:
That's interesting but I'd only be willing to try a Pixel Experience custom ROM with its own XDA thread.

I submitted the bootloader unlock request for my mother's Redmi 7A weeks ago. Although the required wait time has passed, I haven't unlocked her phone's bootloader yet and probably won't do so until a Pixel Experience custom ROM is released for the device.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
It is true. Magisk and TWRP work fine when installing AOSP and dotOS roms, but using the patched boot img from that thread results in wifi not being able to turn on and your Mac address being wrong. So everything would be great if someone could find a way to make the wifi work in this instance.

Right now the only way to make wifi work again is to flash the stock boot img and that kills root but keeps TWRP.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Im a bit late but does TWRP works now? Ive read the entire thread but I havent read a reply that its working now (on stock rom ofcourse, i just want to install adaway to remove recommendations.) im not that good but i COULD be a tester too if twrp works for faster development. :D:D
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
It works fine on my device and im running dotOS Rom. I suppose it should work for stock rom too as long as you have an unlocked bootloader and download the recovery.img file posted in the thread I linked to above.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
EDIT: We finally have a working TWRP-Magisk-WIFI-Custom rom combo for this phone. For all details on how to achieve it please see the thread below:

https://xdaforums.com/redmi-7a/how-to/custom-gsi-firmware-t3965820

Screenshot: https://dl.xda-developers.com/4/8/2....png?key=1ekUjBzZxJkM8TRroYf-zQ&ts=1569250081
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
this is nice but im still lost with the GSI Roms. (Ive grown up using traditional rom zips where everything is included)

a question:

i can flash this boot.img and use any compatible GSI roms right?

AFAIK, GSI Roms only flashes system.img and you can retain the boot.img, root and twrp right?

(I am sorry if that sounds stupid, im trying to catch up to this GSI Roms):fingers-crossed::fingers-crossed::fingers-crossed:
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
Yes, you only have to flash system partition when using a GSI rom. But be cautioned that you have to wipe the system before flashing a new GSI so the installation has to be "clean".

Also the only GSI roms that work for this phone (so far) are ones that support arm32_binder64 for A/B devices (A only roms dont work), namely:

AOSP with gapps: https://github.com/phhusson/treble_...v119/system-arm32_binder64-ab-gapps-su.img.xz

AOSP without gapps: https://github.com/phhusson/treble_.../system-arm32_binder64-ab-vanilla-nosu.img.xz

dotOS without gapps: https://sourceforge.net/projects/do...4_ab-UNOFFICIAL-20190918-0616.img.xz/download

now, if one wants Gapps can be flashed via TWRP when the user wants. I have PICO Gapps running on mine since I couldnt get microG to work properly.

The precise instructions on how to go about doing all this are outlined in the thread I linked to in my previous post. I now have a permanent TWRP and root working while running dotOS custom rom.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
I think i get how GSI works now, thanks!

and also Ive just read the whole thread you linked, that was neat.

Big thanks to you and Mais. DOT OS, Wifi, TWRP and root sounds good, now with root and twrp enabled at the same time, testing would be easier. I hope it wont have any issues tho (dm verity stuffs.)

EDIT: Pico GAPPS is the best gapps package. I mean who uses any gapps package bigger than pico? kappa :laugh::laugh:
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] mais 14:
Also good rom pixel expiriance plus a64-a/b
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] GabbyWC:
Can you please provide a link to where you found this? I searched for it at 4PDA but was not successful.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
It can be found right here on xda. Just got to the treble development forum for A/AB devices. Here is the link for the rom https://github.com/EnesSastim/Downl...2019-08-24/PixelExperience_Plus-9.0-a64_ab.7z
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] mais 14:
Yes use this link.if you have any questions Post gsi

Rom.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
I think you need to edit and update this post since it's no longer true.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
It would be cool if someone can spend some time to compile the files here as the files are scattered through the whole thread.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
I share the same feelings here :) After several hours here are few thoughts, maybe will help someone :)

Managed to UNlock the bootloader (waited about a week), got TWRP but it needs to be redone after few reboots, Magisk could not get to work yet. Here is what i did, not sure if all is really required:

1) Start out with this Zip:

https://github.com/Saki-EU/XiaomiAD...ad/6.6.2/XiaomiADBFastbootTools-6.6.2-Win.zip

unzip, in the BIN directory there is 'adb' and 'fastboot' , these work with the Redmi 7a, other adb/fastboot binaries do not seem to work.

2) Also, followed guides like this: https://www.getdroidtips.com/twrp-recovery-redmi-7a-root/

3) Went into Developer options, enabled USB debugging, as well as Install via USB (requires wifi/network and Mi account), once both were enabled, rebooted into fastboot (vol DOWN).

4) Got latest TWRP from this thread:

https://doc-0g-ag-docs.googleuserco.../1WKqhlaY3CU8A-UHkroVZ-jTMUwyOhJL3?e=download

28.8MB, rename into the bin directory save as 'recovery.img'

5) Boot phone into fastboot mode (VOL DOWN), then type (phone connected via USB to PC):

c:\Programs\XiaomiADB\bin>fastboot flash recovery recovery.img
sending 'recovery' (29572 KB)... OKAY
writing 'recovery'... OKAY

6) Boot into recovery (VOL UP), should now show TWRP, selected to KEEP READONLY.

7) Now trying to add Magisk, from this: https://www.getdroidtips.com/download-latest-magisk-zip-magisk-manager-root-phone/

picked up magisk 19.4 zip : https://github.com/topjohnwu/Magisk/releases/download/v19.4/Magisk-v19.4.zip

loaded into phone, booted into TWRP Recovery, and installed this ZIP from TWRP, it printed:

Installing zip file ...
Magisk v19.5 Installer
- Mounting system
- Mounting vendor
- Device is system-as-root
- System-as-root, keep dm/avd-verity
...
...
- done

8) Rebooted phone, install magisk manager apk, 7.3.4, it installed OK. HOWEVER, it claims that Magisk (framework) is NOT installed, and offers to install v 19.3!!! (19300). No mention of 19.4, and it says Magisk Manager is up to date v7.3.4 (235)

Hopefully someone can shed more light.

I'm aware of: https://xdaforums.com/redmi-7a/how-to/custom-gsi-firmware-t3965820, but not sure if i must flash this boot img and do all the other things..

Thanks in advance, Stormy.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
Not to turn this thread into how-to-setup-Redmi-7a end-to-end, but here is another good pointer, go to this POST on another thread:

https://xdaforums.com/showpost.php?p=80362923&postcount=111

it has pretty good steps to get twrp/magisk/custom rom. Notice there are TWO different boot.img, one EU and one Global, you must flush the right one otherwise wifi and other issues happen. In my case once global boot.img flashed, then Magisk immediately started working!

I've not yet flashed other ROMs, but so far seems to work fine, also installed EDXposed:

Flash these 2 using TWRP:

magisk-EdXposed-YAHFA-v0.4.5.1_beta.4463.-release.zip https://github.com/ElderDrivers/EdX...dXposed-YAHFA-v0.4.5.1_beta.4463.-release.zip

magisk-riru-core-v19.5.zip https://github.com/RikkaApps/Riru/releases/download/v19.5/magisk-riru-core-v19.5.zip

see: https://xdaforums.com/oneplus-6/how-to/guide-edxposed-xposed-framework-android-t3912255

and after reboot, install this: EdXposedInstaller_v2.2.4-release.apk https://github.com/solohsu/XposedInstaller/releases/tag/Ed_v2.2.4

good luck!
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Cool thanks. Is TWRP now permanent? Because ive read some post in this thread that twrp sometimes goes away on its own, and that would really suck if ever i get some bootloop and im stuck with stock recovery.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
This thread is no longer relevant now that the Custom GSI firmware thread exists. TWRP and Magisk are permanent with instructions provided in the thread.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
So far TWRP disappeared for me only BEFORE flashing the boot.img, after flashing (the correct) boot.img, twrp seems to stick.

As for Custom GSI firmware, I'm not sure I'm ready just yet, so may take this route to try and Debloat the MIUI:

https://xdaforums.com/poco-f1/how-to/miui-10-debloat-systemless-tested-t3839641
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
You can still use the instructions in that thread without installing custom ROMs. Just flash the recovery img to get TWRP permanently and optionally flash the patched boot img (global or EU version) to get root. You can then keep MIUI after that and not install other OS if you choose.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
Not stating this as a hard-fact yet, just sharing, took a backup of entire 7A and restored shortly after, the device got into a FASTBOOT loop, meaning, it refused to boot into *anything* other than fastboot, which meant it had to factory/reset via ROM flashing.. I've not got the courage yet to try it again, just wondering if anyone did a full backup/restore and all is fine?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Do you really need a Simcard with Data to unlock bootloader? For starters I dont know how to unlock Xiaomis bootloader ?.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] maxareuos:
Had the same story. Endless bootloops after installing this version of TWRP. This is a brick trap for anyone who doesn't know how to recover from boot loops or reinstall the original firmware. Brick traps like those are responsible for the painful experience of almost any butt hurt android noob who got a brick.

Edit: The creator of this version and post didn't even have the device, he just changed a few lines of code, threw it here and forgot about its existence so don't get your hopes up.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
I hear you, [MENTION=4330327]maxareuos[/MENTION], still i am eternally grateful for whatever OP did to make even this limited release possible, b/c it did work in SOME capacity, bugs are there and always will be there..

Thanks for the confirmation now it feels a lot better, that I'm not alone :) :) went a bit nuts trying to make backup/recover work, but it did not (i think backup is ok, the restore might overlap on the writing and gets this fastboot loop). I've had issues with flashing magisk.zip using twrp, probably related, not sure, in any event, if there are newer versions I may be able to help test.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
the screenshot link is gone.

You do mean the EU boot.img in this thread right?

If yes, i suppose you can Flash that EU boot.img even when in stock rom right? i mean that boot.img has TWRP + MAGISK + WIFI and Calls enabled and will be no issue when used in stock rom.

Currently unlocking device with a 100+ waiting hours. Once its done I can be of help here for further testing. Please dont brick my device tho im a student kappa. :laugh::laugh::laugh:

---------- Post added at 04:35 AM ---------- Previous post was at 04:33 AM ----------

TWRP's Restore function doesnt work? What else doesnt work?

EDIT: What boot.img are you using and what TWRP?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
Titanium backup can restore from nandroid backups. Thats another option if you are able to use payed apps like it.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Do TWRP features works properly? (restore and backup)
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
The versions used are described in here (latest that i could find) as well as the inability to patch boot.img from stock image: https://xdaforums.com/showpost.php?p=80498891&postcount=179

I've taken a full backup of all partitions then attempted a restore, and got a fastboot loop, it was not possible to boot into ANY other mode other than fastboot, in which case the solution was to flash the stock rom, which reset the phone.. attempted another twrp restore (on same device), same loop, so something's going on there.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
I think the inability to patch stock boot.img is because our boot.img is global and something is wrong with global boot img. While the EU Boot.img works fine with any modifications right?

Correct me if im wrong but the TWRP provided here cant restore a backup? (it causes fastboot loop?) if yes then that would be troublesome for testing purposes. :(
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MDV106:
You can make backups with TWRP but it doesnt show the backup while i try to restore.

There is no need to go back to stock everytime you encounter a loop. Just boot back to TWRP and reflash your custom rom into the system partition. After booting into a clean OS, Then install titanium backup to restore the data from the nandroid backup you made using TWRP.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
my 7A is definitely Global, and so cannot say anything on the EU boot img, i do know that patching using magisk 19.3/19.4 did NOT work on the stock boot.img (global), HOWEVER, the provided global boot.img does WORK, so clearly [MENTION=9240109]mais 14[/MENTION] knows one thing or another :) :)

btw, noticed magisk 20 is available, but did not update yet :)

Correct, my two attempts to restore (to same device, resulted in boot loop, at first i've restored only 3 partitions, then someone said it might be due to some "checksum" that validates that all partitions are in "correct" "in-sync" state, so to remove that doubt, restored ALL partitions, with checksum validation, and in both cases it was a fastboot loop. [MENTION=9663492]MDV106[/MENTION], pls re-read what i wrote, fast boot loop, that does not allow to boot into any other mode, ONLY FASTBOOT, no matter which buttons are pressed, you get fastboot, so booting into twrp I'm afraid is not an option at that point. EDIT: even flashing just twrp.img/recover.img in fastboot did NOT allow twrp boot, only way out was flash to base rom.

I'm hoping to get another device soon, then will be easier to test... again, I'm not stating this as a hard-fact, that was MY experience, with the latest twrp and global boot.img patched by someone else :)
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Well that sucks, not trying to boss or demand anyone around here but we should try to fix our TWRP first in my humble opinion. That way, any modifications should be smoother and faster.

Cant do anything now because bootloader still locked, but ill try to help here as much as possible. (I was an active porter and a tester before and maybe I can be of help in testing but only if twrp works) ?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
right, twrp is foundation, one of first things to test on any new/blank phone, power on, change wallpaper or something, backup, reset, and restore.. this avoid surprises down the road.. if anyone has a blank phone, that would be great, i'll have one in few weeks :)
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Ill be unlocking my bootloader after some time, maybe a week. it was 100+ hours.

I propose that we make twrp work properly first, then that will attract some testers. A lot of testers. If that happens then maybe I can make a Step by step clear guide for rooting the phone. (The one in here is confusing for some)

I can test the TWRP maybe sometimes, its my only phone and important call and such. Cheers. :good:
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] blackstraykitten:
i managed to get twrp331pine to work on my 7a but still cant root magisk

im stuck and going through this thread didnt give me a clear idea how to get magisk work
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
maybe this post in this thread as well as the following one: https://xdaforums.com/showpost.php?p=80423123&postcount=95

you need to flash the patched boot.img that matches your rom (global, EU), good luck.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] sdnpandas:
Just tried to install magisk v20 on the V11.0.2.0.PCMMIXM version, but Magiskmanager states that v20 framework is not installed.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] FeepingCreature:
Since I bricked mine (flashed the wrong recovery image ... somehow), does anyone know where I can get a programmer mbn for the 7A? I can get into EDL mode, but I can't get on from there.

edit: I think I need a specific version of the stock rom, but since I never updated the phone, I don't know which I need to look for.

edit: Significant progress! I got to the "only nop and sig tag" stage... The programmer that worked is "prog_emmc_firehose_8937_ddr.mbn". Now to figure out how to get or make an unlocked version. Any idea if one even exists?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] blackstraykitten:
Saw and read https://xdaforums.com/redmi-7a/how-to/custom-gsi-firmware-t3965820 but im scared to go thru it since i dont know which ones are necessary or what others of the steps do

like the Permissiver, gsi when i just want to install magisk
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] wow suspect:
You should flash A/B GSI's on system-as-root devices.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] chancenvergeber:
Hi,

i rooted some phones before, but the Redmi 7a seems to be a little different.

If I am not mistaken, I need the TWRP recovery.img and a modified boot.img to root my stock MIUI.

But where to I get the boot image from? I need version 11.0.6.0 EU.

Thank you for your help.

chancenvergeber
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Quoting this because im just thinking if its possible for a working twrp and magisk for the latest miui 11.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] nghia432001:
you must flash new kernel. by command

fastboot flash recovery twrp.img

fastboot flash boot kernel.img

* on miui 10.2.5 global

I'm new user, link under. and my English is very bad

dr**google*com/open?id=1UUxEMFA0rNZSAgUerZtt4DFoa9wulhdK
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] ajejawa:
success on flashing twrp but fail installing magisk on miui 10.2.5 & 11, it says magisk is not installed after booting to system.
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] gifobey664:
Thanks for supportiing development even without having the device
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
Did you flash

did you flashed the patched bootimg?

what device variant are you using? (China, india, eu, global)
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] ajejawa:
Using miui 11.0.4 global version.

You right, I forgot to flash platched_boot.img

Magisk 19.3 is now installed on my device.

[IMG="Magisk 19.3 on Redmi 7a miui 11.0.4 global"]https://drive.google.com/open?id=1NlmUK_4X6kuLGEU74zq7-_Roq_ITeCJv[/IMG]
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MiuiQuest:
Is it possible to root Miui 11.0.6 eu? I've tried everything but no method worked. Wann stay at Miui don't want to use custom rom.

Please help!
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
You're using stock miui 11 and you flashed a 10.2.5 patched boot img right? Or am i missing something?

I wanna use Miui 11 with root and everything but the patched boot img here is only limited for 10.2.5 version. Thanks!
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] Aotera:
I have wrongly deleted the "system" and have not back up...........can someone upload a copy/back up of the ''system'' to me, please
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] Cusinatto:
Este funciona, TWRP, porem, não faz Root, nem pelo SuperSU, nem pelo Magisk.... :( ( language = portugues Brazil)

3w + xiaomifirmware = dot + com guides-and-tips/how-to-install-twrp-and-magisk-root-on-redmi-7a/
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MiuiQuest:
Thanks
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] MiuiQuest:
Create a magisk boot.img like in this tutorial:

3xw.romprovider.com/2019/01/create-pre-rooted-patched-boot-img-magisk/
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] stormy1777:
btw, if u manage to get the 7A MIUI 11 rooted, pls let me know, having a lot of difficulties, see thread: https://xdaforums.com/redmi-7a/help/unable-to-root-redmi-7a-miui-11-0-6-t4011525
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] KnowTheyself:
Hi,

I have a Xiaomi Redmi 7A and when I try to flash the TWRP it doesn't do anything. I go to the recovery menu in my phone and it still shows Xiaomi official recovery.

I followed the same several tutorials in the web but it doesn't work. How can all those tutorials be wrong? How to properly flash TWRP into Redmi 7A??
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] vwtc6yc8e:
where can i get a working build for twrp?
[Redmi 7A ROMs, Kernels, Recoveries, & Other Develo] regularfanb0y:
It is posted in project treble thread. Go look for it in this forum.