yashsingh1/xdaforums huggingface dataset:
[Redmi 7A Guides, News, & Discussion] amrhelmy2004:
Very Good, Thanks A Lot

Every thing work good on Global Version

tested lineage-16.0-20190910-UNOFFICIAL-treble_a64_bvN

also system-quack-arm32_binder64-ab.img v200.d booted successfully

just noted that with Android 10 , TWRP can't read internal memory of the device
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Hey y'all. Were really doing something aye but have anyone tried restoring backup via TWRP?

Last time I checked here TWRP cant restore backups resulting to fastboot loop.
[Redmi 7A Guides, News, & Discussion] YaAlex:
Make system image backup, not system
[Redmi 7A Guides, News, & Discussion] extab:
Yes, I did it several times. Sometimes it works, sometimes not. In fact, every time I really wanted to restore, I finally did it after some tweaking. I always backed up system, boot and data partition, but in most cases I recovered only data partition. I had two problems:

1. I use screen lock with a pin number. In such a case the data partition is encrypted, and the pin number is the encryption password. TWRP asks for this password on startup.

2. In cases when restore failed and I ended up in a bootloader loop, I (1) installed the stock rom via fastboot, (2) installed a clean version of the same system under which I made the backup (3) rebooted to the clean system to setup the screen lock (4) rebooted to twrp and recovered my backup.

---------- Post added at 09:01 AM ---------- Previous post was at 08:51 AM ----------

Do you have google apps on your device? Have you registered your phone with google? Does your device pass the safetynet test (you can check it with MagiskManager)?
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Have you tried it personally?
[Redmi 7A Guides, News, & Discussion] YaAlex:
Yes.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Whats the procedure for restoring a system image backup sir?
[Redmi 7A Guides, News, & Discussion] YaAlex:
Just make a system image backup in twrp and restore as usual backup

System image, data, boot.
[Redmi 7A Guides, News, & Discussion] xontax:
Hello YaAlex3 and welcome to xda. Glad you take track of this device. I'm afraid that something is missing from the instructions due to translation/missinterpretation.

You can reach out to me any time via PM.

Best, xontax
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
So a new update is available (11.0.2.0)

Does this affect the installation of patched boot img? The uploaded boot imgs. Here are version 10.2.5.

Thanks!
[Redmi 7A Guides, News, & Discussion] Klouk75:
As long as you didn't update, no.

If you updated you need a new patched boot.img, which you can create yourself.

In my opinion there is no need to update as MIUI 11 for 7a is still based on android P and you plan to use GSI based roms.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
boot.img goes to the goes to /boot - which basically is responsible to start the system - if you have updated your firmware, usually the /system partition is simply updated.
[Redmi 7A Guides, News, & Discussion] Jazzda:
I don't think so. My miui was updated (automatically) from 10 to 11 and I successfully installed LineageOS 16 after that
[Redmi 7A Guides, News, & Discussion] MDV106:
How is the LineageOS build for this phone? What works and doesnt work?
[Redmi 7A Guides, News, & Discussion] amrhelmy2004:
Safety Net Check Success

ctsProfile: false

basic Integrity: True
[Redmi 7A Guides, News, & Discussion] Jazzda:
Everything is working. I installed GMaps and GBoard from APKPure and they are working fine. A few more apps like Cx Explorer and Neffos meteo and that's it.

The original launcher is good enough, but I installed Evie Launcher just because I like it.

No accounts created with google or whoever.

But Device ID reports GSF not found, and MAC address for both Wi-Fi and Bluetooth are 02:00:00:00:00:00. Wi-Fi works, tho.

I'll try to solve these small glitches in the weekend and report back if successful.

EDIT: I forgot to mention that it seems there is some problem with lock/unlock. I don't use locking now.
[Redmi 7A Guides, News, & Discussion] pepsibr:
I'm having trouble with LineageOS, after I set a PIN and then I try to unlock the phone with the same PIN it says that it is incorrect, I tried formatting Data via TWRP and other stuff, can someone help me?

Just tried with dotOS and the same thing happened, even after Wiping and Formatting the whole phone it still saves some information that causes this kind of error.

edit: I don't understand what happened but after I flashed the stock rom with the flash and lock option, then unlocked the bootloader again and then flashed LineageOS the error stopped and I could setup a pin.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Curious but how do you boot to TWRP? I have read that there's no Recovery partition (A/B system type).
[Redmi 7A Guides, News, & Discussion] Jazzda:
Yes, it happened to me too with a pattern and after posting in Lineage thread someone suggested to delete /data/system/locksettings.db but I only read it after reinstalling. Now I don't use any lock. I don't need it anyway.
[Redmi 7A Guides, News, & Discussion] YaAlex:
I made bootimgs for 11 recently.

Here is my cloud with patched magisk boot imgs, everything there. https://drive.google.com/open?id=1NrBnNxJ875E79eKmy7yOOylhrD5691ew

---------- Post added at 10:25 AM ---------- Previous post was at 10:23 AM ----------

You can't make patched boot image yourself, lmao

As long as you ask me how to.

---------- Post added at 10:27 AM ---------- Previous post was at 10:25 AM ----------

Flash twrp by LRTeam, flash stock fastboot and redo everything, but don't flash noverity encrypt

---------- Post added at 10:29 AM ---------- Previous post was at 10:27 AM ----------

We have A only system as root layout.
[Redmi 7A Guides, News, & Discussion] Klouk75:
You think you are the only genius?

Ah well, dream on.
[Redmi 7A Guides, News, & Discussion] jimbojumbo12:
I tried following the conflicting guides in this thread and now I am stuck with access to fastboot.

MiFlashTool doesn't recognize my phone anymore.

All the TWRPs showed the same "could not mount /data" error.

Can someone please for the love of god post a concice guide ?

EDIT: I reverted to stock rom but this was indeed frustrating. Would really appreciate a better guide.
[Redmi 7A Guides, News, & Discussion] YaAlex:
Okay, you always can try to make it work another way, I will only say thanks. Sorry if that post was offensive.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Try This.

1. Download ( TWRP.zip, Magisk.zip, boot.img, GSI-ROM.img, vbmeta.img, permissiver.zip),

best to put TWRP.zip, Magisk.zip, boot.img, GSI-ROM.img, permissiver.zip on your external SD card (make sure the SD card formatted to FAT32).

And I suggest: have all/multiple of the boot.img in this thread for experimentation ( the multiple variants of TWRP as well - try em out, and also multiple versions of Magisk ), and have multiple GSI.'img' on the SD card.

2. On your computer (As per OP) using 'fastboot' flash TWRP.img.

(You can skip the flashing of boot.img - you can use TWRP to flash it)

(As per OP you can flash vbmeta at this point -- as I mention below, I flashed this once and did not flash it ever again - )

3 . Reboot to TWRP

4. On TWRP :

Wipe > Format Data > yes

Wipe > Advanced Wipe

put a check on

/System

/Dalvik/ART Cache

/Cache

> Swipe to Wipe

5 . back to the Main Menu of TWRP > Reboot > Recovery

6. Install > boot > select a boot.img > swipe to flash

7 . back to the Main Menu of TWRP > Reboot > Recovery

8. Install > system > select a GSI.img > swipe to flash

9 . back to the Main Menu of TWRP > Reboot > Recovery

10. Install > Magisk.zip > swipe to flash

11. back to the Main Menu of TWRP > Reboot > Bootloader

12 on fastboot (Bootloader): as per OP flash vbmeta.img then reboot -- as per OP you can start to flash this at the start of it all. (IDK if this is a must, I flashed this only once, I have tried about 5 GSI roms now without flashing it again)

-If you end up on recovery loop :

flash GSI.zip again via TWRP to /system:

back to the Main Menu of TWRP > Reboot > System

-If you end up on a Logo loop (The phone reboots on some ROM then boots the system correctly - allow the phone to reboot at least 3x before declaring it is on a Logo Loop):

you flashed the wrong GSI variant (use Arm32 Binder 64 variant)

-If you end up on a 'fastboot loop':

reflash the whole rom via xiaomi flashtool

-If 'wifi' 'sd card access' and 'google login' does not work well:

reboot to recovery and flash permissiver.zip
[Redmi 7A Guides, News, & Discussion] jimbojumbo12:
Thank you for this. Were you at any point incapable of formatting /data ? I ran into this issue on all three TWRPS.

As for GSI I only tried system-arm32_binder64-ab-vanilla-nosu.img from github.com/phhusson/treble_experimentations/releases/tag/v119 because at the end of the day I just want a minimal android with pico

open gapps and maybe magisk.
[Redmi 7A Guides, News, & Discussion] frijolito18:
Finally got rid of MIUI. I managed to install PixelExperience_Plus-9.0-a64_ab.img and everything seems to be working great. Stock Android feels so much smoother than MIUI. Just have a question. How Is security with this roms not being certified by Google?
[Redmi 7A Guides, News, & Discussion] YaAlex:
One important thing. To fix 'Device is not play protect certified' easily, just flash this zip.

https://drive.google.com/file/d/1DTGpGrcjweZbN9wUdSSq8uQTmgxf0aD2/view?usp=drivesdk
[Redmi 7A Guides, News, & Discussion] mais 14:
Any radio app for pixel experience rom?.
[Redmi 7A Guides, News, & Discussion] YaAlex:
oh, I don't think there is any radio app that will work. I can only say that you should move to online radio, that's way better:)
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
You do mean reboot to recovery WHILE in recovery after every flashing? Well thats new.

Also thanks, this guide is really clear and do mentions about basic troubleshootings.

How do you fix blinking screen problem on descendant gsi rom though? And it will be really appreciated if you can give a rom that youre using as a daily driver now. Thanks!
[Redmi 7A Guides, News, & Discussion] francescod:
[MENTION=9182160]YaAlex[/MENTION] Hello, is it ok to flash your custom kernel r2 over the 10.2.5 Global base and Los Gsi September build?

Can you share it here? Thanks.

If I find time (device is not mine) I'll plan to update also Los Gsi to latest October build, and why not, try even other Gsi found here :D https://sourceforge.net/projects/developerluke-roms/files/GSIs/

Unfortunately I've read latest Miui11 base breaks functionalities, I hope you'll fix that.
[Redmi 7A Guides, News, & Discussion] YaAlex:
I guess you should stick to my patched stock kernels, because xiaomi's public kernel source has issues and small things they forgot to include there (example- double tap to wake.)

also I can't fix that xiaomi broke

they won't update kernel source as usual for new miui. that happens with every device.
[Redmi 7A Guides, News, & Discussion] ElFanta:
I saw many people with errors in the installation of roms, I am new to this. I would like to know how to install an Android stock rom without errors or as little as possible in the global version ( MIUI GLOBAL 11.0.2.0 ), I would appreciate if you could take a few steps clearly. Thanks :D!

---------- Post added at 06:40 PM ---------- Previous post was at 06:09 PM ----------

I'm going to use this image patched_boot 11.0.2MI from [MENTION=1901169]yoalex[/MENTION], any rom recommended? and would you make me an easier guide please xD?
[Redmi 7A Guides, News, & Discussion] fazzito:
Hello brothers, im trying to install a custom ROM for my friend's redmi 7A, he has the 2/16gb model, the only problem he's having right now is the low storage, he bought an 32gb sd card, hoping to format it as internal storage and expand it, but the miui(11) rom does not have this capability. he did remove some bloatware but he almost ran out of space again..

I dont understand much about this GSI ROMs nor how they work.. if he has success installing this ROMs he will have the option to format his sdcard as internal storage?

many thanks, hoping the development for this phone grow larger in time.
[Redmi 7A Guides, News, & Discussion] francescod:
Thank you for the answer. Since my friend won't use for sure dt2w, can I ask you if there are any other noticeable issues with that r2 kernel? I'm curious to try it, cause if it's less bloated, debugged and updated, I'm sure it will be fine. Thanks for working on Pine, let's hope something bigger will come :fingers-crossed:
[Redmi 7A Guides, News, & Discussion] YaAlex:
then take it

https://drive.google.com/file/d/1-4MVCIPXI6BgUDq-t4YyBs8SL5CFr88K/view?usp=drivesdk
[Redmi 7A Guides, News, & Discussion] MDV106:
https://sr.rikka.app maybe that can help
[Redmi 7A Guides, News, & Discussion] francescod:
Thanks so much! I hope I'll can test it asap.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Yeah, so far, Descendant ROM is the best of all I have tried. And that issue you are experiencing is the very reason I ditched it.

---------- Post added at 08:05 PM ---------- Previous post was at 07:42 PM ----------

If you see '/data' and not '/Data' - that means on that current TWRP session you have already formatted it.

Just simply go back to main menu - then Reboot > Recovery.

---------- Post added at 08:27 PM ---------- Previous post was at 08:05 PM ----------

Recovery goes to /boot
[Redmi 7A Guides, News, & Discussion] YaAlex:
Nope, we have separate recovery partition
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
My bad.

So 7A is not A/B?

Definitely not an A right?

or somewhat an hybrid?

On this XDA article:

https://www.xda-developers.com/how-...ess-updates-affect-custom-development-on-xda/

It says that A/B devices have their recovery on /boot. I might have missed something.

Does the 'ab' and 'a only I see on GSI threads not refer to the partitioning schemes? Oh my, can you point me to a link to better understand A and AB then. Thanks.
[Redmi 7A Guides, News, & Discussion] extab:
In fact, it does not. You can find some explanation in github.com/phhusson/treble_experimentations/wiki (see the question "Why should I use GSI for A/B devices to some A-only devices?"). As I understand it, "ab" in the image type of a GSI image stands for "system-as-root", and not for partition type. Historically, before Android 9, A/B partition type and system-as-root meant the same, but now it does not. Redmi 7a is definitely an A-only device, but it is "system-as-root" so it must use ab-type of a GSI image.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
I'll definitely look into that. Thanks.
[Redmi 7A Guides, News, & Discussion] jimbojumbo12:
What twrp are you using ?
[Redmi 7A Guides, News, & Discussion] YaAlex:
me personally now on TWRP by LRTeam, best one imo, even my ofrp build is worse.
[Redmi 7A Guides, News, & Discussion] Jazzda:
I'm giving GSI another chance so I installed V119system-arm32_binder64-ab-ufOfficial-nosu again.

Apart from the usual google login problems that I will try to solve later, I have now only 4Gb in the internal storage. How can I reclaim my 16Gb back?

Thanks
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Have you flashed permmisiver.zip?
[Redmi 7A Guides, News, & Discussion] Jazzda:
Google login is solved, thanks. And I have now about 11Gb after wiping a few things from within twrp. I'll try to wipe a few more things after sleeping a bit :victory:
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
How did you solved the google login bug? also is gapps included in the rom that you flashed?
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
System as root is completely different from 'A' and 'A/B' based on the link you have provided. And is irrelevant to my quest to know more about this new 'A and A/B' stuff. The link I have provided on my previous post stills stands, A and A/B is basically 'partitioning scheme' implemented on devices.

If [MENTION=9182160]YaAlex[/MENTION] say we have a separate partition for recovery on 7A - then 7A could be an A (still tentative).

BUT according to the link you have provided, and the question you have quoted "Why should I use GSI for A/B devices to some A-only devices?"

--> we need to flash A/B to 7A because we are working with Android 9 (PIE)
[Redmi 7A Guides, News, & Discussion] YaAlex:
Its all because Google's new requirements and stuff

We are A only system as root

As most cheap phones with 16gb emmc launched on pie

---------- Post added at 07:32 AM ---------- Previous post was at 07:29 AM ----------

Of course, otherwise you will have bootloop on bootanimation.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Curious but the BitGapps that is linked in the first post is for arm64 (link: https://forum.xda-developers.()com/android/software/arm64-bitgapps-pie-9-0-0-t3828515)

but this is the BitGapps for arm32 (link: https://forum.xda-developers.()com/android/software/arm-bitgapps-variants-t3959373)

which one we really use? i thought our device is an arm32 right? so why arm64 is linked in the first post?
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
That settles it then - 7A is A.

And basically, A and A/B are partitioning schemes.

And the reason why we flash A/B on our 'A' 7A is because we are working with PIE.

---------- Post added at 03:29 PM ---------- Previous post was at 03:27 PM ----------

Get gapps here: https://opengapps.org

Choose:

-ARM not ARM 64

-9.0

-pico (or whatever you want)
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
when can you flash gapps? after everything?
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Yes flash gapps after everything.

Then certify gapps as per OP.

Or you can try [MENTION=9182160]YaAlex[/MENTION]'s flashable zip.

Not sure if "How to certify a device for GSI " on OP is also what the zip from YaAlex on #237 is trying to resolve.
[Redmi 7A Guides, News, & Discussion] extab:
No. If that was true, there would be no Pie GSI images for aonly devices. But they do exist, like Phhusson's system-arm-aonly-gapps-su.img.xz. The reason why we flash A/B on our 'A' 7A is because we are system-as-root. Google's requirement is that all devices delivered with Pie (not to be confused with "upgraded to Pie") must be system-as-root. So another (less precise) explanation why we flash A/B on our 'A' 7A is that it was shipped with Pie.
[Redmi 7A Guides, News, & Discussion] Jazzda:
I used twrp to install the zip that YaAlex provided in post #237, and no, gapps is not included. From google I think there's only Play Store
[Redmi 7A Guides, News, & Discussion] extab:
These are two different ways to resolve the certification problem. The OP suggests to register your modified device with google. On the other hand, the zip from YaAlex on #237 copies build properties from the vendor partition, so it pretends that the device is not modified.
[Redmi 7A Guides, News, & Discussion] jimbojumbo12:
How do I disable the rounder corners ? ( using the 11.0.2 global boot.img from the YaAlex google drive link )
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
"The reason why we flash A/B on our 'A' 7A is because we are system-as-root." >>>>> "Thing that started with PIE" '

On the article you have posted : "Android 9 must use "system-as-root". >>>> "Android 9 is PIE right"

IDK what your point is, really - you seem to be confused. I understood the article you have posted.

'--> we are working with "PIE".' -- are we not?'

-- or GSI really is "Gingerbread Super Ice cream sandwich"

-- oh so now I get it, the GSIs we are working with in this thread are for JB KK MM NOUGAT OREO or 10 or perhaps super beta of 11 and 12 , glad to know. I'll be noting that. Thanks.

Don't worry if I will be "working" with Android 10+ / Android 8- in the future I'll triple quote it in the post for you.

---------- Post added at 09:24 AM ---------- Previous post was at 09:22 AM ----------

Good to know. Coz I did not try that zip yet from [MENTION=9182160]YaAlex[/MENTION]. Thanks for the clarification.
[Redmi 7A Guides, News, & Discussion] YaAlex:
Use miui 10 base

Gsi on miui11 base is broken
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Tried flashing pixel experience without flashing GApps.

Problems are theres not much google apps and there is no gboard, gallery app and music app, forced me to sideload it. Stock camera quality is bad (?), videoplayback and videos by camera are buggy. Battery life is also noticeably draining faster compared to stock MIUI, also theres not much customization present but its a really smooth rom.

have anyone here tried AEX?

EDIT:

Flashed MSM_Xtended-201900828-a64-ab.img.xz, boots up with no major problems but no gapps. flashing OpenGAPPS-arm32-pico results in error because of the lack of space in system partition. An attempt to flash 32bit BitGApps results in a classic bootloop (no signs of booting up stuck in msm extended loading screen).

If someone can link a proper GApps it would be great!
[Redmi 7A Guides, News, & Discussion] jimbojumbo12:
Is this also why I'm having "google play something" spamming the **** out of my notifications regarding my device not being "registered with google play protect" ? ( I can't recall the exact notification, I flashed stock after some 5 minute of not knowing what to do about those corners"
[Redmi 7A Guides, News, & Discussion] extab:
There are several guides in this thread how to flash gapps, but my impression is that nobody really flashed them. I think I tried most of these guides and none of them worked for me (e.g., I succesfully resized the system partition when it was too small, flashed gapps, rebooted successfuly, but gapps were not working). Searching through this thread I could not find a single report on successful flashing gapps. Some people reported having gapps, but it seems that in all cases they were already installed in the gsi image. For me the most stable version was Phhusson's AOSP 9.0 system-arm32_binder64-ab-gapps-su.img.xz - here I did not complain about gapps, but it had other issues (with safetynet: I could not use my banking app).

I would love to hear a report on successful flashing GApps.
[Redmi 7A Guides, News, & Discussion] YaAlex:
I always succeeded in flashing gapps

Flash gsi, go to wipe, advanced wipe, select system only, tap on Repair or change filesystem, then on Resize, and swipe to confirm

Then flash OpenGapps arm 9.0 pico/nano
[Redmi 7A Guides, News, & Discussion] extab:
Thanks, but this is exactly what I did. Which gsi image did you use? Which device (global/eu/...)? Maybe I'll give it another try
[Redmi 7A Guides, News, & Discussion] YaAlex:
I tried many of them and everywhere worked perfectly
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
I've flashed 3 different GSI ROMs already and all of them cant detect my headset/headphones. Is anyone facing this problem?
[Redmi 7A Guides, News, & Discussion] MDV106:
Not me. All gsi's I used work fine.

Ive been daily driving AOSP 9 with MicroG for over a month now and faced zero problems. Ita now my work phone and the battery lasts 3 days.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Does the screen lock work?

---------- Post added at 12:31 AM ---------- Previous post was at 12:06 AM ----------

I have used Descendant with flashed pico Gapps. for 3 days now.

BTW the screen flickers, UI elements acting up and are gone - flashing the patch 10.2.25 from mais14, permissiver and the adb code for brightness issue on OP

Just use the descendant ROM posted on previous posts.

Sadly all ROMs I have flashed so far cannot set a PIN, pattern or password lock. Even the stock MIUI ROM .

---------- Post added at 12:37 AM ---------- Previous post was at 12:31 AM ----------

The problem on my 7A is always SD card access.

ROMS cannot mount my 3 partition SD card .

And this is sometimes resolved by the permisser.zip on OP.

Though I always see the 20:... wifi mac - wifi and hotspot seem to work.

Did not experience any issues with the headphone port.
[Redmi 7A Guides, News, & Discussion] MDV106:
Yes, it works fine for me. See screenshot below