yashsingh1/xdaforums huggingface dataset:
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Have anyone here restored a twrp backup using LRTeams TWRP(64mb)?

Tried to restore a backup (System image, data, boot) and an error "extractTarFork() error 255" (or something like that I can't remember) when trying to restore data.

An attempt restore system image and boot only results in flashing successfully but it boots back to TWRP. If someone can post a step by step restoring process here it would be helpful! Thanks!

UPDATE:

Restoring data seems to be the error (just in case my first post isnt clear enought) but formatting the data and restoring VIA OTG, the error is gone! But still it loops back to TWRP when rebooting to system. Also flashing system and boot only also loops me back to TWRP.

As a last resort I flashed the official 10.2.5 ROM via MiFlash and now im on stock 10.2.5 global. An attempt to restore a data backup via twrp loops me back to TWRP. I have also flashed permissiver and vbmeta on my third attempt but still no luck, it loops back to TWRP.

If someone can prove an actual workaround that actually worked for them, that would be appreciated. Thanks!
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
All the ROMS I have tried show the same issue. I'll be backtracking what went wrong then. Thanks.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Having the same device but producing different errors/bugs is quite new to me. While I'm having headset not being detected issues. You have lockscreen issues that isn't present with me.

But have you tried restoring a TWRP backup of miui? What are the procedures?
[Redmi 7A Guides, News, & Discussion] MDV106:
Why not just flash a fresh rom, then use titanium backup to restore the data that you want from the nandroid backup?
[Redmi 7A Guides, News, & Discussion] MDV106:
Oandbackup is another alternative
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Yep did that, did a lot of backup in Titanium fortunately, but what is it that is causing the TWRP backup to fail though?
[Redmi 7A Guides, News, & Discussion] MDV106:
Im not too sure honestly, i'd try the other option i posted in the screenshot above?

---------- Post added at 03:37 PM ---------- Previous post was at 03:35 PM ----------

BTW, does anyone have VOLTE activated on this phone with a custom rom? I remember seeing the volte icon once when i was using the stock miui rom. But i havent seen it using any custom rom though .
[Redmi 7A Guides, News, & Discussion] ElFanta:
could someone pass me this link again? I need it !
[Redmi 7A Guides, News, & Discussion] MDV106:
Read the whole thread. It was posted by me again at a later post.
[Redmi 7A Guides, News, & Discussion] ElFanta:
I used all the boot img of this thread and none worked for root and wifi, right now I am using the boot stock in system-arm32_binder64-ab-gapps-su if someone has another boot.img to test to publish it I need to fix the problem of brightness!
[Redmi 7A Guides, News, & Discussion] MDV106:
Obviously you didnt read all of this thread if you Still have brightness issues because the solution to that has been posted numerous times
[Redmi 7A Guides, News, & Discussion] YaAlex:
Use according to miui version you had before...
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
What Recovery are you using? There are 3 Recoveries on OP - have you tried using the recovery of LR Team?

That recovery is recommended by somebody in previous posts or some other place I could not remember, plus it looks promising when it comes to restorations.

Also in addition to flashing the system.img when you get into a recovery loop - you can try to

"Wipe > 'Format Data' > yes" then reboot.

I have not tried restoring backups yet. There is no reason for me to restore things as of now. The logic is, if what I'm about to restore is not even valuable, why restore it on the first place. I am still working my way to know 'how to' properly setup a ROM that I can use as a daily driver (STABLE and FUNCTIONAL) and add all other stuffs in, and everything SHOULD work. Until I have such method and ROM setup, restoration will not be my priority.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Greetings,

Sorry if its not clear but im using LRTeam's TWRP, also flashed the DXMod TWRP but unfortunately, DXMod cant read the LRTeam's backup.

Opened the folder but no partition to click on, meaning it cant read a backup of a different TWRP and there's a high chance that it is vice versa. (LRTeam TWRP cant read DXMod TWRP backup)

I have no problem flashing custom roms, in fact ive flashed a lot of custom roms but decided to revert back to stock because of not-so-good camera, video playback is bugged and headset doesnt get detected, also cant flash gapps nor make microG work.

Maybe will try to test stuffs once the restore problem is solved, cant risk flashing and testing a rom without a sure way to revert back to my backup as this is my only phone (flashing takes time but if restoring works itll be cool).
[Redmi 7A Guides, News, & Discussion] ElFanta:
before I had the version of miui 11 but I flashed the rom stock of 10.2.5 and tried all the boot img and nothing, I can't have wifi or root
[Redmi 7A Guides, News, & Discussion] ElFanta:
One question, if I install the rom with the patch boot (not Wi-Fi), fix the problem of the brightness with the root and flash the boot stock again to use Wi-Fi, will the brightness error continue?
[Redmi 7A Guides, News, & Discussion] YaAlex:
Just look at list

There is 10.2.5 global, 10.2.5 India, 10.2.5 europe
[Redmi 7A Guides, News, & Discussion] ElFanta:
I usted the v10.2.5 global with the boot patch global (v10.2.5) and nothing :/
[Redmi 7A Guides, News, & Discussion] YaAlex:
there is three and in setting they all called 'global stable'
[Redmi 7A Guides, News, & Discussion] YaAlex:
Video recording fix:

put

media.camera.ts.monotonic=0

to /vendor/build.prop
[Redmi 7A Guides, News, & Discussion] MDV106:
Worked like a charm, thanks.
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
The brightness but has been fixed. Look for the fix in the first post.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Everything I need works.

+More :laugh:

TWRP - cant restore backup, but I dont change ROM and do some 'possible bootloop' mods that often so it is ok. When I settle with a stable and functioning ROM for daily driver it might take a couple of months or perhaps a year or more for me to do anything drastic again.

ROOT - Magisk works perfectly.

GSI - ( Descendant ROM) everything on the ROM works except auto brightness. I need to manually change brightness every now and then.

Linux Deploy - There is a new change in Android that I don't get with my MM Samsung J2, the hotspot IP is always 192.168.43.1 on my J2, now it is a random number on the 4th octet of the IP address 192.168.43.xxx, guess I need to adjust scripts in order for my pocket sized website server to work with this new thing.

Drive Droid - "CD-ROM emulation" avalaible, wow just wow , I think this is more of a xioami thing not the ROMs.

Xposed - Lucky Patcher, AFWall+ and Greenify module works perfectly fine

Safety Net Passed + Fully Certified Playstore = I can use bank apps and the latest version of Netflix.
[Redmi 7A Guides, News, & Discussion] jmo707:
Thanks for sharing! I was waiting for a couple of "fully working daily driver" reports :p, but to be honest, I'll do it more out for sport than need. MIUI 11 is quite good on this phone, at least for the uses I give it.
[Redmi 7A Guides, News, & Discussion] MDV106:
Good to hear you finally got your phone to work as expected. Patience pays off:good:
[Redmi 7A Guides, News, & Discussion] YaAlex:
nah, it stops working after couple of hours
[Redmi 7A Guides, News, & Discussion] MDV106:
You're right, I didnt test it again after that first time.
[Redmi 7A Guides, News, & Discussion] mais 14:
With miu 10.2.5 vers for root i need flash only pacth boot img magisk and permisiver .i need something else.?
[Redmi 7A Guides, News, & Discussion] amrhelmy2004:
I have disabled encryption by using "Disable_Dm-Verity_ForceEncrypt" script tool

just to be able to test GSIs on Redmi 7A, because i don't want to format data partition each time i flash gsi

now twrp data restoration works

but screen lock didn't work, after i set up a pin , and lock the screen , phone says wrong pin,

problem solved by deleting /data/system/locksettings.*

any solution??
[Redmi 7A Guides, News, & Discussion] YaAlex:
don't decrypt data
[Redmi 7A Guides, News, & Discussion] M47Z:
what recovery?

Why is LRTeam's recovery twice the size, compared to DX mod?

Which one should I use?
[Redmi 7A Guides, News, & Discussion] jmo707:
I'm having a similar issue. If data has been decrypted already, can it be reverted?

Is there something else to do use the lockscreen?
[Redmi 7A Guides, News, & Discussion] regularfanb0y:
Do i just need to flash dm verity to make twrp restoration work?
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Auto brightness solved?

How is video recording?
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
I'm at miui 10.2.10 IN version and needed root only hence

1.unlocked bootloader

2.flashed twrp lrteam

But flashing patched boot image for miui 10.2.10 from [MENTION=9182160]YaAlex[/MENTION]3 drive link caused bootloops . Any solution?

Even tried permissiver and vbmeta but no success
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Auto brightness - still no good- still need to manually change brightness every now and then, which I don't mind at all, I am not a fan of auto brightness anyway =).

Video recording - good and well since day 1.
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Then why aren't you posting the guide of patching boot image???:confused:

Because your miui 10.2.10IN boot image causing bootloops to recovery. I didn't even install any custom gsi, want to have root in the stock miui
[Redmi 7A Guides, News, & Discussion] YaAlex:
Why you asking useless stuff? I'm working on my public patcher version and I will release it to xda as soon as I finish something interesting

If you boot loop to recovery go to wipe and tap format data (bottom right button iirc) and type yes

---------- Post added at 07:34 AM ---------- Previous post was at 07:27 AM ----------

I guess I should write a rooting guide, but I think will do that within my tool release day, and will describe all in one thread I think

Stay tuned!
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
You should've done this in the first place rather than being rude. :good:
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Installing Descendant

For those interested in running descendant ROM on their 7A and wants to know how I made it work:

First thing first: You will need your computer for 3 things:

1. Flashing the stock firrmware

2. Flashing TWRP

3. Fixing the brightness issue: ( cant dim the brightness ).

The Procedure:

Using your PC:

1. Flash the stock 10.25 ROM - https://xiaomifirmwareupdater.com/miui/pine/

using the flashtool - https://www.xiaomiflash.com/download/ ( dont forget to turn off "clean and lock" )

2. Flash TWRP (LR Team) - from OP - https://filehorst.de/download.php?file=cHyobAcd

Using TWRP:

3. Wipe : ---System ---Dalvik/ART Cache ---Cache

4. Flash patched 10.25 boot.img - https://drive.google.com/file/d/1sNHNeKnLlZZUjeC06Efd-l8MCeueLMQI/view?usp=sharing

and vbmeta.img - https://xdaforums.com/attachment.php?attachmentid=4816700&d=1567931119

5. Flash system.img (Descendant ROM) https://androidfilehost.com/?fid=6006931924117932459

6. Reboot back to recovery

7. Flash Magisk ( I used Magisk 19.4 back then) https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

8. Flash permissiver.zip - from OP- https://xdaforums.com/attachment.php?attachmentid=4816701&d=1567931295

9. Flash Open Gapps (ARM - pico - 9.0) - https://opengapps.org/

10. Flash YaAlex's zipped fix for google certification - https://drive.google.com/file/d/1DTGpGrcjweZbN9wUdSSq8uQTmgxf0aD2/view

11. Reboot to System

Important! After attempting to reboot to system and you end up going back to recovery,

On TWRP - Go to 'Wipe' - select 'Format Data' - type yes then swipe - once the format is completed Reboot to System

12. Once Descendant has booted - on Magisk Manager look for the "Riru Core" "Riru EdXPosed" and "Safety Patch" flash them, then reboot.

13. Download and Install the xposed apk - https://androidfilehost.com/?fid=11410963190603845164

Using your PC:

14. Enable USB debugging (should be enabled by default ) Connect your phone to PC and execute the following as per OP

adb shell

su

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

Done..
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Any way to have volte back?
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
How to add volte??? Any help...? I tried my best then found out that IMS app and imssettings app which I extracted from the stock firmware isn't able to install in the GSI roms I tried 2roms 1.dot os 2.evolutionX
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Does the screen lock work now with custom gsi? And how to do it?
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
I don't do 'old fashion voice calls' while using LTE so idk if VoLTE works on descendant ROM or even this device, non of my friends or family stays that long for the old fashion 'voice calls' anyway, and all contacts I have uses facebook messenger for texts(when we say text it means messenger message not the old 'sms' ) and calls(messenger voice call that is).

---------- Post added at 08:44 PM ---------- Previous post was at 08:39 PM ----------

Mostly everything on Descendant ROM works, including the screen lock.

Though I have not yet verified if VoLTE works, and currently "auto" brightness does not work, you need to manually change the brightness every now and then.
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
After flashing no verity opt encrypt i can't set password of lock screen but if i don't flash it then can't use magisk.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
why did you flash that? you can use magisk without that.
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
But for me it's not working for me...which version of magisk are you using it's showing me magisk not installed in the magisk manager app.....

In custom rom i don't need it,i verified so but in stock rom it's important to use no verity forced encrypt to make magisk work i think.
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
I see.

Try to flash a fresh stock ROM using the flash tool. And then install a ROM using the procedure I have posted on my recent 'walkthrough' post.

Before sealing the deal with Descnedant ROM, I tried multiple ROMs. And I get a lot of weird issues when flashing ROMs using TWRP, notably one of them is adding a screen lock.

I basically flash a ROM with TWRP and if Im not happy, I remove it using TWRP then flash a new one using TWRP.

All those issues went away after starting fresh with stock ROM flashed using the flash tool.

I tried 2 ROMs and 2 of them worked very well. (Descendant and AOSP)

BUT only if I start with a fresh stock ROM flashed by the flashtool, then install the GSI ROM.
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Couldn't understand brother. Is it possible to make magisk and lockscreen both work together??? Actually i followed your guide step by step but ended up with broken lock screen
[Redmi 7A Guides, News, & Discussion] djemilbakhti:
overlay for redmi 7a

put in /system/overlay/

and reboot

overlay features

- enable auto brightness

- remove rounded corners
[Redmi 7A Guides, News, & Discussion] jmo707:
This is amazing! I thought I would have to flash all over again to solve that someday, but your fix works like charm! :good:

Thanks!
[Redmi 7A Guides, News, & Discussion] boody shaban:
hi, the patched boot 10.2.5. Global Download file is named "magisk_patched" (14.5mb)

am i downloading the correct img?

my miui version is:

miui_PINEGlobal_V10.2.5.0.PCMMIXM_7380681456_9.0

thank you. :)
[Redmi 7A Guides, News, & Discussion] djemilbakhti:
I have a problem with android Q

recent button does not work after 3 to 6 hours

back and home working fine
[Redmi 7A Guides, News, & Discussion] jmo707:
I had the same problem in AOSP Pie. I use Xposed Gestures, and the navbar is usually disabled.

What I did was uninstalling and reverting anything related to the navbar, and then go back step by step to isolate the problem. Eventually, I had to reinstall Edxposed from Magisk, and it finally solved the problem.

Try that. Maybe you could tackle the problem too.
[Redmi 7A Guides, News, & Discussion] xsstest:
google cloud disk link 404, could share the boot.img to me ?
[Redmi 7A Guides, News, & Discussion] djemilbakhti:
redmi 7a patched boot image

her on 4pda.ru

https://4pda.ru/forum/index.php?showtopic=956662&st=80#Spoil-87630139-2
[Redmi 7A Guides, News, & Discussion] xsstest:
do u have a custom GSI firmware for the China stable version? In the China , When I flush global 10.2.5 ROM, the first time start the os after flush. it will check update ( updating...), may be China network ( because there have a GWF firewall in the China) could't connect some domain..so it is very slowly.
[Redmi 7A Guides, News, & Discussion] djemilbakhti:
check here for gsi on 4pda.ru

https://4pda.ru/forum/index.php?showtopic=964578
[Redmi 7A Guides, News, & Discussion] v3l0c1r4pt0r:
On LineageOS 16.0, I made this recording fix blindly, without checking if it is necessary and recorded video was broken (still image with last second recorded properly). Setting the value to 1, instead, fixed the problem. Both stock camera and gcam works well now.
[Redmi 7A Guides, News, & Discussion] boody shaban:
System partition size issues

Highly, so I followed these steps and it booted successfully when I flashed " havoc OS 3.0 " and vbmeta. Everything worked fine until I tried to flash gapps but it said " insufficient storage in system partition"

I tried almost everything to free storage in system but couldn't, the gapps I installed was "arm android 10 pico"

I don't remember that the system partition was that small on miui10,11 or mokee. All were sufficient.

Any help? :confused:

*It also doesn't boot magisk custom boot image, it loops. I tried su but needs binary update which doesn't work as well so I have no root*

Any help I'd appreciate it. I'm currently running havocOS TREBLE and its so smooth and stable, just missing gapps. Thanks in advance :)

---------- Post added at 04:58 AM ---------- Previous post was at 04:37 AM ----------

Hi, I wanna ask how you resized the partition since that I'm having the same issue. Please reply, thank you :)
[Redmi 7A Guides, News, & Discussion] extab:
It was explained earlier in this thread. In TWRP go to wipe, advanced wipe, select system only, tap on Repair or change filesystem, then on Resize, and swipe to confirm. Then flash the gapps.
[Redmi 7A Guides, News, & Discussion] v3l0c1r4pt0r:
How much space did the installer report? I had issue when installing gapps on LineageOS installed using the method described in the first post. It insisted that I have 0 bytes of space on /system. As far as I remember, booting freshly flashed OS was enough for the problem to disappear.
[Redmi 7A Guides, News, & Discussion] boody shaban:
Its fine now, I had like 17mb left so I resized the system partition as mentioned above and now its 3gb. "About 1.7gb free storage in system" and now it successfully installed lineage os Q with latest gapps and booted successfully. No bugs so far thanks :o

---------- Post added at 10:26 PM ---------- Previous post was at 10:24 PM ----------

Thank you so much. It worked :good:
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
when are you going to write the rooting guide and the tool you said about?

:rolleyes:
[Redmi 7A Guides, News, & Discussion] YaAlex:
actually thanks for reminding me about that, will test well and release forum thread in few days
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Is it done??
[Redmi 7A Guides, News, & Discussion] :
The file no-verity-encrypt-ysl.zip does the opposite of what the OP says.

It removes encryption and you won't be able to store any PIN, password, face/fingerprint unlock data anymore. At unlock screen Android will give you 'wrong pin' in case you set a PIN after you flashed that zip.
[Redmi 7A Guides, News, & Discussion] v3l0c1r4pt0r:
I flashed verity zip according to the instruction and am still able to set screen locking. I'm using Lineage 16 and have lock set to pattern. Lineage Trust claims that encryption is on. Have you tried to repeat the process once again? Maybe the issue with PIN is caused by the ROM you flashed? Which one did you use?
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
For me too
[Redmi 7A Guides, News, & Discussion] aday1:
sorry for my english.which one of these roms is 64 bit.I can't use gcam new versions on MIUI.I want to use gcam.thanks
[Redmi 7A Guides, News, & Discussion] v3l0c1r4pt0r:
Redmi 7A or at least MIUI that I flashed (V10.2.5.0) is 32bit. I haven't tested with V11, which is already available (anyway there is no root patch for V11).

If I understand the idea of project Treble correctly, ROMs that you can flash using OPs tutorial are only a kind of overlay on top of your original ROM, delivered by vendor, so Xiaomi. Kernel stays the same, so if it is 32bit, like in my case, there's not much that can be done. Out of curiosity, I checked what was the arch of ROM that I was flashing and it turned out to be A64. Don't know why and how it works, but is 32bit anyway.
[Redmi 7A Guides, News, & Discussion] samsungics1200:
how to fix no sound no wifi im using vendor 10.2.5 and patched boot.img provided from this post im using lineage os 17 andyan
[Redmi 7A Guides, News, & Discussion] kpratama24:
You need to use the same version of patched boot.img as your current firmware version. if it's MIUI 11, then you can't use 10.2.5 boot.img
[Redmi 7A Guides, News, & Discussion] nam108:
So there are Redmis 7A's with 32bit stock MIUI and some have stock 64bit?
[Redmi 7A Guides, News, & Discussion] Klouk75:
No all versions are 32bit
[Redmi 7A Guides, News, & Discussion] nam108:
Thanks.

I followed the OP instructions, but wasn't able to get working Lineage 16 nor 17.

Mokke however worked, so I wonder what am I doing wrong? (Mokke was zip, lineages are iso)
[Redmi 7A Guides, News, & Discussion] YaAlex:
patch any image to work with magisk.

http://patcher.yaalex.tk
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
Even after flashing certification patch and permissiver I'm still getting google play not certified

I'm on los 17
[Redmi 7A Guides, News, & Discussion] crossmanbx:
Me too, ctsprofile false and no googleplay certification
[Redmi 7A Guides, News, & Discussion] zyxrhythm:
Install EdXposed. Then install Hidden Core Module on EdXposed. You should get a safety net 'passed'.
[Redmi 7A Guides, News, & Discussion] crossmanbx:
Thank you ! I ll try it soon.
[Redmi 7A Guides, News, & Discussion] DebrupGhosh:
(deleted)
[Redmi 7A Guides, News, & Discussion] Iznogoud53:
Thanks

Thanks
[Redmi 7A Guides, News, & Discussion] zioNNN:
Have been trying to fix the brightness flickering with no luck. Both Magisk (recovery flash) and magisk manager (apk) installed and functioning, Root checker says there's root.

So how exactly should i perform it? From what i understood:

check USB debugging on

Phone powered on and running

Connect to PC, grant usb debugging permissions

open adb command prompt and enter:

adb shell su

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

Am i missing something?
[Redmi 7A Guides, News, & Discussion] 2TS Main:
Video recording fix:

put

media.camera.ts.monotonic=0

to /vendor/build.prop

Does not work
[Redmi 7A Guides, News, & Discussion] zioNNN:
It does for a while, but stops working after a while. You have to make sure vendor/build.prop is in Only Read mode after you made the changes.
[Redmi 7A Guides, News, & Discussion] jeeeu94:
Evolution X link please?
[Redmi 7A Guides, News, & Discussion] Omborkar:
Edit; sorry, wrong thread