yashsingh1/xdaforums huggingface dataset:
[Redmi 7A Guides, News, & Discussion] slowboot:
TWRP not starting

Hi,

what went wrong if I have completed steps 1 to 9 of the first post but now I cannot push files to the device via USB or reboot into TWRP. Only fastboot is booting after the last step (9. Make the Data format, wipe System, Davlik / Cache).

How can this be fixed?

Edit: Solved it by flashing an original MIUI fastboot ROM, but had to test some. Permissiver_v4.zip flash failed also, but the phone boots now.
[Redmi 7A Guides, News, & Discussion] kra_ppo:
excuse my stupid question.

only with a patched MIUI Rom (11.0.7 global) I can install a GSI Rom. Right?

And since the 11.0.7 global is based on Android 9 I can only flash lineage 16 and NOT 17 over it. Correct?
[Redmi 7A Guides, News, & Discussion] Dujiro:
Hi there

No, you CAN in fact flash LOS 17 while in Android 9 without issues, however i've seen others advice to before flash MIUI 10.25 and then flash LOS 17

Hope that helps!
[Redmi 7A Guides, News, & Discussion] MDV106:
I havent posted here in a long time. My redmi 7A is still going strong running MigroG version of the android9 Phh treble rom.

What is the status on roms that run android 10? Any stable ones for this phone?
[Redmi 7A Guides, News, & Discussion] Murlidh:
About Android 10 : Havoc, Lineage, AOSP are rocking.

And How about Mokee! is simply fantastic.

There are a lot of ROMs which you can install. You can even install Ubuntu Touch GSI and AOSP Extended arm64_ab and dual boot.

I'm using it. It's great buddy.

:)

I'm ganna post a very stable ROM very soon for this device.
[Redmi 7A Guides, News, & Discussion] Murlidh:
I'm ganna release a stable ported ROM very soon, I'm working on it. It's working smoothly, I'm testing it. Just one zip flash and forget and enjoy.

---------- Post added at 06:55 PM ---------- Previous post was at 06:47 PM ----------

Install terminal app and open then type :

su (magisk will prompt for permission then grant)

Then type :

setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)

Then you'll find that your problem is fixed.
[Redmi 7A Guides, News, & Discussion] redminder:
Hey Zyxrhythm,

Thanks for the info. I tried this method with no success. I recently had to reinstall my rom and start over. I still can't get safetynet working. I can't use googleplay. I've got no GSF number. :(

Any ideas where I might have gone wrong on this? I'm stumped! My brain is a coffee soaked walnut at this point. :D...

Thanks in advance for any suggestions!

EDIT: Installed Gapps. All is working. Overlords win, but I have apps now. :D...
[Redmi 7A Guides, News, & Discussion] redminder:
Would someone please clarify this video fix process for me and others?

"Video recording fix:

put

media.camera.ts.monotonic=0

to /vendor/build.prop

Does not work "

Is "put" a command? Am I using fastboot or adb shell for this process?

Video through sms and system camera are the only things I was not able to get working.

-Also when setting file to read only, what is the process for that as well?

Thank you for your time!
[Redmi 7A Guides, News, & Discussion] favozaf:
Hello.

So I was trying to root my Redmi 7A - v10.2.1 with TWRP 3.3.1 but now I am stuck in a bootloop.

What I did:

1. Flash boot.img

2. Flash recovery.img

3. Flash vbmeta.img

4. reboot

Phone rebooted to system and TWRP was installed. ✔️

Then I booted to TWRP to install Magisk-v23.0.zip,

I went to Advanced Wipe, then wiped 'Dalvik / ART cache', 'System', 'Data', 'Cache'.❓

When I rebooted, it went into a bootloop, when I go to TWRP it says 'No OS INSTALLED". ❌

What did I do wrong? And how to recover?

Thanks.
[Redmi 7A Guides, News, & Discussion] mais 14:
The same vanilia with open gapps
[Redmi 7A Guides, News, & Discussion] RalphMalph:
Hmmm cannot get it to work unfortunately
[Redmi 7A Guides, News, & Discussion] Dang12920:
I followed the instruction but the phone doesn’t boot, it stuck at redmi logo. I tried phhusson one and RR but still got the same problem. Any solution guys?:(
[Redmi 7A Guides, News, & Discussion] mais 14:
Try format data from recovery

Or flash pixel plus gsi arm 64 ab

---------- Post added at 06:35 PM ---------- Previous post was at 06:31 PM ----------

Try flash the stock boot img. Fastboot flash boot

Img after flash the pacth again.
[Redmi 7A Guides, News, & Discussion] MDV106:
Followed the instructions and after flashing the vbmeta in the last step and rebooting, my phone reboots twice and then boots to TWRP. and it appears as though the GSI was not installed as it says there is no OS installed. How can I fix this?

---------- Post added at 11:13 ---------- Previous post was at 10:41 ----------

Okay ive managed to get it to boot by skipping the permissiver_v4 flashing step (not exctly sure what it is for). It booted but there several issues with AOSP vanilla rom. Wifi cant be turned on plus the brightness cant be controlled. it stays on maximum brightness no matter what.

---------- Post added at 11:31 ---------- Previous post was at 11:13 ----------

I am noticing that the IP address is not available and Wi-Fi MAC address is 02:00:00:00:00:00, which is clearly wrong.
[Redmi 7A Guides, News, & Discussion] RalphMalph:
Had the same that I couldnt turn on wifi.

I dont have a solution for it yet. But didnt try what mais was saying the last post
[Redmi 7A Guides, News, & Discussion] MDV106:
I tried what he suggested, which is to flash the stock boot img from the stock rom, then flash the patched one provided by the OP. It didn't work either. I posted on the AOSP rom thread, but haven't got replies yet.

All I need is a working clean stock rom, I'll add the fancy customization stuff on my own.
[Redmi 7A Guides, News, & Discussion] Luelu:
Thanks for all your help, i get all working, but wifi not, there´s a way to patch my img boot to work with magisk? because the patched in the post is not the same than my 7A, wifi not works :/
[Redmi 7A Guides, News, & Discussion] MDV106:
UPDATE: I was able to sussessfully boot dotOS GSI found here: https://sourceforge.net/projects/dotos-treble/files/arm_binder64_ab/

Everything works except for Wifi and brightness display control. Basically the exact same issues experienced with AOSP rom. Im starting to think this may be a hardware issue. the WIFI mac address is still displayed as 02:00:00:00.
[Redmi 7A Guides, News, & Discussion] MDV106:
EDIT: I fixed the wi-fi issue. Now wifi is working as expected.

Solution: boot to download mode/ bootloader. Get your stock boot image (I found mine by downloading a stock rom zip file and extracted the `boot.img` file from it). The type from commandline

`fastboot flash boot boot.img`

`fastboot reboot`

Then, viola! wifi works again. and the mac address is shown again in system settings. The downside is that you lose root if you had it before.

It seems like the patched boot img in the op does not participate well with the system.
[Redmi 7A Guides, News, & Discussion] Methanoid:
You mean this one? https://xdaforums.com/project-treble/trebleenabled-device-development/-t3831915/amp/ ???? Camera ok?? Have you tried his Android 10 image yet?
[Redmi 7A Guides, News, & Discussion] MDV106:
Confirmed working ROMS:

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

All of the above roms are arm32_binder64 for A/B devices. Nothing else will boot. do not bother with A only roms, they dont work.
[Redmi 7A Guides, News, & Discussion] Methanoid:
Thanks, so can I use Magisk with these and if so I assume I want the AOSP without Gapps and NoSU. Are there any recommended Gapps version I should use (smallest poss version)? I ordered the phone for the wife so stock Android with no root (visible to apps) is what we need.
[Redmi 7A Guides, News, & Discussion] MDV106:
Yes you can use them with Magisk but I found that you can only get magisk to work if you use the patched boot image in the Op, however that means your Wi-fi wont work anymore. If you use the a stock boot image wifi will work but root will not. So pick one.

The smallest possible gapps can be found here: https://opengapps.org/#downloadsection, choose the pico variant.
[Redmi 7A Guides, News, & Discussion] Methanoid:
Thanks for the help. I'll skip root then.... Wife with no WiFi is a no go!! Probably seems obvious but ARM not ARM64 for the OpenGapps too yes?
[Redmi 7A Guides, News, & Discussion] MDV106:
Correct, choose ARM -> 9.0 -> Pico option
[Redmi 7A Guides, News, & Discussion] RalphMalph:
Will try it in the morning
[Redmi 7A Guides, News, & Discussion] MDV106:
Here are screenshots of dotOS rom to show working wifi. Sadly i dont have root.
[Redmi 7A Guides, News, & Discussion] mais 14:
Your phone ship's with global rom international or

For eu something like this pcmeuxm eea if you remember. ?
[Redmi 7A Guides, News, & Discussion] MDV106:
I don't know. I didn't check when I had the stock rom, and now I already wiped it out. Do you have a way to verify? My assumption is that it is international rom since I don't live anywhere near Europe.
[Redmi 7A Guides, News, & Discussion] mais 14:
I found boot img patch for 10.2.5 glopal rom I believe the pacth from first post is for eu global rom if you see the name patch boot eu my phone ships with

Global eeu rom and working WiFi with magisk.

If you want to try this boot with your risk because I don't tested I don't know the result.?

---------- Post added at 03:07 PM ---------- Previous post was at 03:03 PM ----------

Your opinion maybe I was wrong ?
[Redmi 7A Guides, News, & Discussion] MDV106:
can you provide a link to the global rom patched boot? I want to try it out
[Redmi 7A Guides, News, & Discussion] mais 14:
Steps

Fastboot flash boot boot img

Reboot twrp flash magisk

Flash permissiver

https://drive.google.com/file/d/1ji1o80jaBcttUmLu8b8qqc6BiR6eAbOD/view?usp=sharing

Inform if working
[Redmi 7A Guides, News, & Discussion] MDV106:
Thank you so much, it actually worked So im guessing mine is the global rom and so I should not use the European patch. I now have wifi, TWRP and Magisk. See screenshot below.
[Redmi 7A Guides, News, & Discussion] mais 14:
I hope working for all with same problem

---------- Post added at 04:14 PM ---------- Previous post was at 03:55 PM ----------

Now you have root Fix brightness.

Only for aosp rom.

Open terminal from pc give

adb shell su

(give permisions magisk)

And

setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)

Reboot
[Redmi 7A Guides, News, & Discussion] MDV106:
WOW! I can't thank you enough for your contributions to this phone's stability. The above command did fix the brightness issue. Now I can control it as normal and there is no random flashing when the screen turns off. Thanks a lot!:good:
[Redmi 7A Guides, News, & Discussion] redminder:
Dios mio. Stuck in a twrp loop. reboots after loading home screen.

This is a really complicated root! any suggestions?

Thanks!
[Redmi 7A Guides, News, & Discussion] mais 14:
More details you try flash gsi or magisk with stok

Rom
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Recovery / Fastboot Loop

- I followed OP, except for 1 thing, I used the boot.img from mais14 https://drive.google.com/file/d/1ji1o80jaBcttUmLu8b8qqc6BiR6eAbOD/view?usp=sharing

and did not use the patched EU boot.img.

- And so far tried flashing the following:

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

#2 https://sourceforge.net/projects/do...4_ab-UNOFFICIAL-20190918-0616.img.xz/download

and both ends up with a loop.

#1 ends up with a Fastboot loop, I ended flashing stock back.

#2 ends up with a Recovery loop, and I ended flashing stock back again.

Global Version - MIUI 10.5.2.0
[Redmi 7A Guides, News, & Discussion] mais 14:
Flash permissiver
[Redmi 7A Guides, News, & Discussion] MDV106:
Did you flash the permissiver right after flashing the GSI on the system partition? Also did you wipe the system partition before flashing? did you reboot to the bootloader and flash vbmeta.img after flashing the permissiver? I would first use the patched european img first then patch the global one after you have confirmed the roms boot. I flashed the global boot img and patched it after I had a working system.
[Redmi 7A Guides, News, & Discussion] redminder:
Permissiver info please

[MENTION=1758781]mais1[/MENTION]4

[EDIT: Doh! permissiver in first post. I have information overload. Sorry!]

I cannot find info on that file or process. Would you be so kind as to link to that info or file please?

I was flashing magisk with stock rom global. i completely missed the permissiver step. :/

Since I'm in twrp loop and can flash, I'm wondering if it's too late to flash permissiver in the loop. Do I need to start with fresh stock rom again?

Thanks to all for putting the effort into opening up this hardware and educating the public on it!

IMO Redmi 7A is really good hardware, but miui is buggy, bloaty and laggy.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Yup. Flashed permissiver on both scenarios.

---------- Post added at 07:57 PM ---------- Previous post was at 07:52 PM ----------

Yup. Flashed permissiver after flashing the GSI.

Yup. Wiped the system partion before flashing.

Yup. Rebooted to bootloader then flashed vbmeta.img

Nope. I did not try flashing the european img first. (will try that later) :)
[Redmi 7A Guides, News, & Discussion] MDV106:
yeah just try do it the original way and use the patched EU img. then fix things after booting the rom by flashing the global boot img

---------- Post added at 14:02 ---------- Previous post was at 14:00 ----------

just flash the permissiver and dont forget to reboot to bootloader and flash vbmeta img file
[Redmi 7A Guides, News, & Discussion] mais 14:
First you don't need to flash stok rom every time you have loop

Try format Data if don't work

Download version without gaps

Download open gaps {Pico arm 9}

Flash recovery

Flash boot img

In twrp format data clear system cache and art cache

Flash system img

Reboot TWRP

Flash open gaps

Reboot twrp

Flash magisk and permissiver

Reboot fastboot flash vbeta

Reboot

---------- Post added at 01:42 PM ---------- Previous post was at 01:34 PM ----------

The boot img patches is only for root access .
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
"Download open gaps {Pico arm 9}

Download version without gaps

Flash open gaps"

I'll keep those in mind next time I get a recovery loop.

On fastboot loop, flashing boot and even recovery using ''fastboot on powershell' does not do anything at all.
[Redmi 7A Guides, News, & Discussion] mais 14:
Open powershell window in adb file copy all inside.
[Redmi 7A Guides, News, & Discussion] MDV106:
UPDATE: We have an addition to the arm32binder64 for A/B roms that can be run on this phone: AOSP with MicroG preinstalled. Here is the original post with the download link:

It would be great if someone tried it out and let us know if it works on their phone. :)

---------- Post added at 16:41 ---------- Previous post was at 16:37 ----------

Hve you considered trying another rom? AOSP with no gapps worked the very first time I tried it. I never tried the one with gapps but it seems to be working according to others. You could also try the one I just posted about above: AOSP with MicroG pre-installed.
[Redmi 7A Guides, News, & Discussion] redminder:
Im so close! Thanks [MENTION=9240109]mais 14[/MENTION] and [MENTION=9663492]MDV106[/MENTION]

Just need to fix wifi and screen flicker/brightness. Same progress point as MDv106

:D

Now i'm waiting to access mais 14 google drive for the global boot image.

I found a boot.img that I thought was correct from this file:

Xiaomi_Redmi_7A_V10.2.2.0.PFBMIXM_20190425.0000.00_Global_9.0_XFT

boot.img decompresses to an img file with size: 131072kb

-I get a fastboot flash boot error during 'writing'

FAILED (remote: 'size too large')

command failed

Any suggestions?
[Redmi 7A Guides, News, & Discussion] mais 14:
Try now
[Redmi 7A Guides, News, & Discussion] MDV106:
Im thinking you chose a boot image for an older rom version. The latest global rom version is V10.2.5 but you downloaded V10.2.2.0
[Redmi 7A Guides, News, & Discussion] redminder:
Thanks again!

I got the google drive access from [MENTION=9240109]mais 14[/MENTION] and found the correct version (I think). I flashed it but still wifi behaves the same. I must have missed something.

-Do I need to flash vbmeta.img each time I change the bootloader?

BTW this AOSP rom destroys imui! :D

I have Magisk and TWRP working correctly.

[MENTION=9663492]MDV106[/MENTION]

-Yes, you are correct. I was having trouble finding the correct newest release rom for the 7a bc I was on a third party site. :)
[Redmi 7A Guides, News, & Discussion] mais 14:
No you dont need flash vbmeta each time

dont need flash boot. Img each time.

If you want to flash another gsi flash system img.

Magisk and permissiver.

Flash the stock boot img after flash the pacth again
[Redmi 7A Guides, News, & Discussion] redminder:
Ok. I'm really stuck with wifi.

I was able to get the screen to stop flickering via [MENTION=9240109]mais 14[/MENTION] technique.

Superb! :)

No luck with boot.img flashing to fix wifi. I'm really lost here.

I did note that my device came with the previous release stock rom 2.0 not 2.5.

Anybody else stuck here with wifi or have some suggestions?

Thanks!
[Redmi 7A Guides, News, & Discussion] MDV106:
what did you do after flashing the stock boot img? did you boot back into twrp and flash both magisk and permissiver?

Are you sure your phone came with the global rom and not EU or Indian versions? cause maybe you are still using the wrong stock boot img version or type.

Suggestion: try stock boot images from version 10.2.2 both EU and world and another set from v10.2.5 and see which one works. One should work though.
[Redmi 7A Guides, News, & Discussion] redminder:
I think you see the problem clearly.... 'File version soup' in my root tools folder. :laugh:

I have both stock roms for v10.2.5 and this file for v10.2.2 global:

Xiaomi_Redmi_7A_V10.2.2.0.PFBMIXM_20190425.0000.00_Global_9.0_XFT_(by_xiaomistockrom.com)

Do you know where I can reliably find the 10.2.2 eu version?

Thanks so much!
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
If you mean put all files needed for the commands in one directory, specially the directory in which I have pulled up powershell. I already did.

And don't worry even if the files are scattered in all sorts of location, I can rule em out on the command line.
[Redmi 7A Guides, News, & Discussion] mais 14:
Find and download stock Fastboot rom from xiaomi 10.2.5 global or eu version flash with miu

Flash tool all rom dont lock bootloader after flash gsi rom with this instracions.

---------- Post added at 07:12 PM ---------- Previous post was at 07:00 PM ----------

What order did you stuck ? I didn't exactly understand your problem.
[Redmi 7A Guides, News, & Discussion] Luelu:
I already fix the brightness bug.

If you are with the boot.img with WiFi working, flash the patched and flash magisk, because you will need root.

So connect the phone on PC with the USB and open the ADB and type:

"adb shell"

"su"

"setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)"

For this solution, say thanks to YaAlex3.

We are all excited to news for our 7a, so let's wait a little more, more devs will come. :laugh:

(Sorry my English)
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Still No Luck

Have tried the following:

dotOS-P-v3.1.1-treble_a64_ab-UNOFFICIAL-20190918-0616.img

dotOS-P-v3.1.1-treble_arm64_ab-UNOFFICIAL-20190917-1197.img

Havoc-OS-v2.9-20190914-phhgsi_arm64_ab-Official.img

Phh trebles:

system-arm32_binder64-ab-gapps-su.img

system-arm32_binder64-ab-vanilla-nosu.img

PixelExperience_Plus-9.0-arm64_ab

Following "exactly" what is on OP, one step at a time.

With all recommendations and suggestions of [MENTION=1758781]mais1[/MENTION]4 and [MENTION=9663492]MDV106[/MENTION].

Before I went about doing all this I have an updated MIUI 10.5.2.0.

After the loops, and flashing base stock rom, it is MIUI 10.2.5, stock from here:

https://xiaomifirmwareupdater.com/miui/pine/

Im using Global Version.

The 32 GB 2 GB variant.

I get a new loop this time. Not a reovery loop nor a fastboot/bootloader loop, but also the 'loop' I know well from years of flashing phones ---- tada the 'logo loop' :D

Just a question though, vbmeta.img goes to what specific partition? Just curious.
[Redmi 7A Guides, News, & Discussion] mais 14:
For all this we have to thank you to yaalex3

---------- Post added at 07:45 AM ---------- Previous post was at 06:48 AM ----------

You can try to flash GSI rom without to use boot patch .img.flash with the stok boot img.
[Redmi 7A Guides, News, & Discussion] MDV106:
Updated: Another working rom for this device is the AOSP with MicroG pre-installed. I have it currently installed now and it is the most stable one i've used. It has no crashes and root and wifi work correctly. If anyone is interested in trying it see this thread for installation instructions (basically just backup your current installation via TWRP, wipe system, cache and data, flash the GSI, flash permissiver, reboot to bootloader and flash vbmeta then reboot to system :)): https://xdaforums.com/project-trebl...arm64aosp-9-0-0r21-microg-ufofficial-t3878115

The specific rom that works for this phone can be downloaded here: https://androidfilehost.com/?fid=1899786940962592691
[Redmi 7A Guides, News, & Discussion] redminder:
miflash weirdness

Has anyone else noticed that the miflash instructions from the xaiomi website references using an install file that doesn't exist in the official package? I also get driver errors inside miflash despite having adb connectivity in windows. When i try to install the mi drivers from within the miflash tool it searches for a directory that doesn't exist in its own install package and generates an error. :/

[IMG="mystery install file from xiaomi miflash install tut"]http://xiaomiflashtool.com/wp-content/uploads/xiaomi-flash-tool-extract.png[/IMG]

What a mess! :D

Eventually I may get more satisfaction from this device by running it over with my car. ;)

Is it necessary to use the official miflash tool to flash the stock rom? I get no love from the miflash tool.

-Probably I overlooked something obvious...

Thanks for all the help so far. Truly outstanding display of expertise in here. Do [MENTION=9240109]mais 14[/MENTION] or [MENTION=9663492]MDV106[/MENTION] have any pointers for me? If I'm asking an obvious question maybe you know a tut somewhere that can get me on track.

-I've tried various versions of the mi flash tool, all with the same result. the race is over, I'm still at the gate! Help!
[Redmi 7A Guides, News, & Discussion] mais 14:
You use fastboot file rom?

If yes your bootloader is unlocked.
[Redmi 7A Guides, News, & Discussion] redminder:
-I have the fastboot rom files.

-Bootloader is unlocked, Magisk is working, TWRP working.

-sim card comes up as recognized in AOSP, but does not function.

-wifi not functioning.

Screen doesn't flicker though! :D

My plan was to flash original shipped rom and start over. I cannot get mi flash tool to work though. Maybe there is a better solution?

Thank you
[Redmi 7A Guides, News, & Discussion] MDV106:
Why would you want to use miflash tool at this point when you have unlocked bootloader? There is no need. Just use TWRP to wipe phone and manually flash img files that you want.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Try the following links for rom and flashtool:

https://www.xiaomiflash.com/download/

https://xiaomifirmwareupdater.com/miui/pine/

The above is what I use to revive my 7A to stock after an epic failure.