yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 6A Guides, News, & Discussion] Mehul695:
After using once Recovery is asking for password to decrypt the data can you tell me how to solve it
[Xiaomi Redmi 6A Guides, News, & Discussion] ThePain005:
fastboot format userdata

and flash data decryption patch
[Xiaomi Redmi 6A Guides, News, & Discussion] Binbin Qian:
The latest official version 12-25 does not support adb or MTP which bothered me several hours.

This one http://www.miui.com/thread-19006123-1-1.html adb works but MTP not.
[Xiaomi Redmi 6A Guides, News, & Discussion] Binbin Qian:
I tried pixel experience 9, the mobile network works, but can't receive sms.

BTW i also tried aosp 9, aosp 8, lineageos 8, none sms of these works.
[Xiaomi Redmi 6A Guides, News, & Discussion] JoeNakal:
Cant you teach me how to root my redmi6a not use pc?
[Xiaomi Redmi 6A Guides, News, & Discussion] sushmoyhossain:
I also wanna know
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Someone help me please, I flashed twrp and installed magisk. It seems fine at first but I noticed that my SIM cannot be detected. I even switched it on both slots but nothing happens. It is still undetected, how do I fix this?

Btw when I flashed magisk I wiped cache and dalvik? Is that maybe the possible reason?

It happened that when I checked the phone IMEI and IMEI SV has become unknown.
[Xiaomi Redmi 6A Guides, News, & Discussion] krish@365:
did you fix it?
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
Happened to me too. I just flashed twrp through adb and then installed the no-verity zip to make twrp stick. When I booted, sim can't be detected. Fixed it by using miflash then used the latest fastboot rom available. Don't forget to change to change CLEAN ALL in miflash instead of the default CLEAN ALL AND LOCK. So you won't have to unlock bootloader again.

After you restored your device, backup NVRAM/IMEI through ADB or using MTK Droid Tool. Then try flashing TWRP again. Restore IMEI data from the backup through ADB or MTK tool.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
wow thanks for the help. btw can you possibly provide the link for miflash and fastboot rom? I'm afraid i might flash the wrong firmware, you see im still noob for all these stuffs and i feared i might mess it up again. Thank you so much.
[Xiaomi Redmi 6A Guides, News, & Discussion] bagoesfat:
anyone can tell me custom rom stable for redmi 6a? i don't like miui. thanks.
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
I used this. The installer will error saying something about unverified, I just keep clicking intall anyway until it installs. Google the solution just in case it doesn't work for you. I believe you have to edit some windows file.

Download the FASTBOOT ROM here. Pick any version you want (Global Stable or Developer). Extract what you downloaded.

Your phone should be in fastboot.

Open Miflash. Look at the bottom and change it to CLEAN ALL. Click Select then find the path of the extracted folder. Click flash. Wait for the progress bar to turn green and say success.

Hope it works for you. :)

Edit: Anyone who has a rooted redmi 6a can find the location where nvram and nvdata is saved in the system? Thank you.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
update: I already fixed the baseband and unknown imei. Thank you.

my problem is how can i backup the imei # and the baseband version # so that if i am going to root the phone I would not lost its network comm functionality?
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
The methods I tried were unsuccessful too. Using MTK Tool didn't work. I don't think I can use SP Flash Tool since it needs authorized account file. So what I instead did to root was Magisk rooting through adb. There's still an error after startup saying something about the system but at least I am rooted and my sim is fine.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
That's great. I wanted to know where i could get the stock boot image for the firmware. The system message right after you booted the device might be alarming but I guess it's fine since you've already tested it.

Btw, I remember I've seen boot.img file in the firmware miui 10.2.5 I've downloaded when I extracted it. Is that also the stock boot image?
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
You can find the stock boot.img on the fastboot version of the ROM you want.

If only I can boot twrp.img via fastboot, it'll be easier. Unfortunately "fastboot boot twrp.img" doesn't boot me into twrp. I think the error in the system is because the data is encrypted and this modified the boot image. But everything works, it's rooted, network, wifi, etc works. The error appears after every reboot.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Thank you! It magnificently works. I will now be able to link/bind my apps to sdcard. Really thankful for your help. :o:good: Everything's fine so I'd just disregard what the system says after every reboot.
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
I found a problem while debloating. Titanium Backup or manually uninstalling it doesn't stick. I even removed the folders in /data/app. The only thing that worked was using the scripts here and flashing the zip in FK Kernel Manager. I think there's a magisk module but I didn't try it.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
I haven't tried debloating apps as it may cause some error but what I did is freezing the apps I dont need. Some apps I have frozen are, few google apps, mi music, file manager, mi drop etc. But I am looking forward to totally debloat the rom. If you find a method to fix those errors on debloating it would be as much helpful.
[Xiaomi Redmi 6A Guides, News, & Discussion] ThePain005:
Backup Nvram and Nvdata partitions using Partition Backup app (developed by Wanam)

Those partitions contain imei and other info
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Partition Backup App however needs root. So basically it's useless if one tried to back up before installing twrp and magisk in recovery.
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
I think they mean to backup the partitions now then try flashing twrp on a fresh install. There's an option to back it up as a .img. So after installing twrp, it can be used to restore the image. I'll try it next week, I need my phone at the moment and have no time to experiment.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
I did installed the app to backup nvdata & imei but it doesn't store the compressed file or even .img file on storage. I already granted it root permission but no luck.
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
Didn't work anyway. Restoring the 3 partitions nvram, nvdata, nvcfg did not fix the IMEI. Via TWRP or via the app.

Do people who have successfully flashed TWRP without problems have nvram folder visible on data/nvram? I can only see these folders in the root folder via twrp file manager. Using a file manager, it's invisible and I don't have any data/nvram folder.
[Xiaomi Redmi 6A Guides, News, & Discussion] ambyy:
I rooted with twrp and magisk v18.1 ignoring the error on startup.

Titanium backup crashes immediately i launch it. Has anyone experienced this?
[Xiaomi Redmi 6A Guides, News, & Discussion] nekodizzy27:
After mount system and vendor, install root(magisk 17.0) everytime boot up

Android system message

There's an internal problem with your device. Contact your manufacturer for details
[Xiaomi Redmi 6A Guides, News, & Discussion] SakikoX:
First a thanks to all the helpful members and developers.

So I got a new Redmi 6a, configured it, had to wait 360 hours to be allowed to unlock it with the Mi-Unlock tool.

Then installed the TWRP 3.2.3-20181227 via fastboot.

Got rid of the encryption problem with this hint:

https://android.stackexchange.com/questions/98228/removing-encryption-from-recovery

( The "If All Else Fails" version did work ) .

Then I wiped all data and installed the "Image for ARM64 A-only device with gapps" from https://xdaforums.com/project-treble/trebleenabled-device-development/lineage-phh-treble-t3767690

Now the device is stuck in the dreaded boot loop ...

Any other tips?

Thanks a lot!
[Xiaomi Redmi 6A Guides, News, & Discussion] Artiu123:
Redmi 6a is arm32 aonly devices. You choosed not correct rom
[Xiaomi Redmi 6A Guides, News, & Discussion] SakikoX:
Wonderful! Thank you.

But why is that? I was under the impression that the Redmi 6a is a 64bit device?

cheers!
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
SMS Working!

Hey guys, I've tried Phh's AOSP 9.0 v111. The incoming SMS bug has been fixed in the update...
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
Yes everything is working for me (SMS, call, USSD, wifi, bluetooth) too. Not sure about VoLTE since that's not available where I live yet. I was also able to solve my IMEI problem by backing up the nvram, nvdata, persist partitions with this GSI. I flashed stock fastboot rom to check and I was able to restore my IMEI data with TWRP.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Please provide a link for the gsi of AOSP 9.0 v111 for redmi 6a and a screenshot of it. I wanna test it out too. Thank you
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
Here's the link-

https://github.com/phhusson/treble_experimentations/releases/

I have attached the screenshots
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Which file should I download? Is it system-arm-aonly-gapps-su.img.xz?
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
Yes. Also, there's a lineageOS 16 that was just released. Also working for me. Read back on earlier pages for instructions on how to flash GSI.

To certify the device, download DeviceID.apk. Put it in a folder named DeviceID. Then with TWRP file manager, copy it to /system/priv-app/. You'll also need to move the setupwizard.apk (/system/priv-app/setupwizard) to another location. Then when you boot, turn on wifi, open DeviceID, wait GSF number to show up. I disconnect wifi immediately. You'll need to register the GSF number here. After that reboot, copy the setupwizard.apk back to its system folder.

For magisk to work in Phhtreble, you'll need to delete the supersu (forgot the name me.something.supersu) folder in /system/apps. Otherwise you are rooted but the the prompt that shows up to grant root to apps doesn't appear.
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Thanks. Which gsi do you prefer the most? Any known bugs for lineage OS 16? Does camera works?
[Xiaomi Redmi 6A Guides, News, & Discussion] autumnguardiANs:
Did you still required to flash magisk for rom to boot?
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
We don't need to do all that. Just don't include Wi-Fi or Mobile Data on first boot, then we can pass through the Setup Wizard and get our device certified from https://www.google.com/android/uncertified/

---------- Post added at 08:38 AM ---------- Previous post was at 08:35 AM ----------

Yes, but if you don't want magisk then flash this -

https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389

But I recommend keeping forceencrypt on, because without forceencrypt, the IMEI gets lost. Just remove the word forceencrypt from the file name...
[Xiaomi Redmi 6A Guides, News, & Discussion] autumnguardiANs:
If you flash magisk then the IMEI won't lost?
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
No, but if you disable forceencrypt by any other method, u will lose the IMEI code. And if you don't want magisk u can flash the zip file I mentioned in my previous post. Just remember to remove the word for encrypt from that zip file...
[Xiaomi Redmi 6A Guides, News, & Discussion] autumnguardiANs:
Ok, many thanks. I've been there too, lost IMEI. Gonna try AOSP again
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
Welcome, but there's an easy trick, just go to settings, security, encryption and encrypt phone. You will get your IMEI back...
[Xiaomi Redmi 6A Guides, News, & Discussion] paranoidmarvin42:
LineageOS build is based on Phhtreble vanilla anyway. For now I've opted for the Lineage build.

Unfortunately doesn't work for me since GSF number on Device ID doesn't show up without brief internet connection. Did you use adb to get GSF number?

_______

Here's a mirror for the latest TWRP-3.2.3-1020-OMFG-mod_b10 from 4pda.
[Xiaomi Redmi 6A Guides, News, & Discussion] Bit145:
After u are done with the setup wizard, u can use data or WiFi and then get the GSF number...
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
brother how did u intstelled GSI without base ROM like Mokee....????

i searched in Youtube about installing GSI ROMs so....they said that u need MOKEE ROM as base rom then only u can install it

please help i m desperate to install a GSI

---------- Post added at 12:22 PM ---------- Previous post was at 12:21 PM ----------

help me installing GSI ROM in my Redmi 6a please
[Xiaomi Redmi 6A Guides, News, & Discussion] Artiu123:
https://xdaforums.com/redmi-6a/development/share-twrp-3-2-3-redmi-6a-t3866971/page6
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
is SMS working on GSI ROMs ????
[Xiaomi Redmi 6A Guides, News, & Discussion] systremor:
Is it just me, or is every boot painfully slow? I've tried the PHH-treble A-only vanilla, the gapps version and LineageOS 16 and every single boot takes around 20-25 minutes... logcat shows some audio service restarting and a file related to MTK cam not found in /vendor... also I often get no SIM cards after some time while using the device

---------- Post added at 01:24 PM ---------- Previous post was at 01:21 PM ----------

Incoming SMS works on v111 PHH treble ROM, but the SIM cards get dropped after some time and there is no signal meter on 3G
[Xiaomi Redmi 6A Guides, News, & Discussion] RENigmaticX:
Me too, except slow boot. After rebooting, the imei seems to be fine and mobile data/signal is working. And then after some time, imei gets lost. No signal and can't activate mobile data. How to fix this? Need help. Thanks
[Xiaomi Redmi 6A Guides, News, & Discussion] Evvan69:
nice
[Xiaomi Redmi 6A Guides, News, & Discussion] davidhozic:
Glad to see the development finally starting
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
really ??

can u please elaborate ?

I mean Can u tell me more about it?

i am desperately waiting for a stable Cutom ROM for my Redmi 6a !!
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
hello brother , can u please share your Experience with GSI ??

like.....Bugs , performance , battery life , Network , wifi , camera workings and all??

and also please tell me how did u flashed it correctly and what are the thing to be taken care of during Flahing the GSI ......

please help me mate i am done with this MIUI and want to flash ROM ASAP ....

BTW i previoussly had a redmi 4a.........and i did flased pixyos official ROM in that and this is my first time i am flahing a GSI

thanks
[Xiaomi Redmi 6A Guides, News, & Discussion] Fax Max:
Relax............
[Xiaomi Redmi 6A Guides, News, & Discussion] atmouse:
I've test the phh's AOSP 9.0 v111 image, All work perfectly but VOLTE test failed!
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
Brother how is performance now??

is it Better than ****ty Miui??

and Is SMS working ??

how much time u have been using this ROM??

and please tell me What is overall Experience??

help me brother i desperate to flash GSI
[Xiaomi Redmi 6A Guides, News, & Discussion] bho500:
Help

after flashing majisk and data decrypt my device doesn't "see" the sim card. in addition nav bar doesn't work (gesture's too except the swipe to return in the home), plus volume buttons and power button dont work
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
Calm down dude.
[Xiaomi Redmi 6A Guides, News, & Discussion] Armaghan Ahmad:
Does it have password encryption?

After installing other twrp it always ask for password and if I skip it then its unable to wipe anything. If it'll not ask for password then only I'll try.

Please respond.

Thanks in Advance.
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
I'm using the phh-treble one here, I can say is better than miui in terms of performance, miui isn't "****ty", miui is really good.

SMS is working fine here, VoLTE is not working.

Overall experience is really good for a custom ROM, really stable to use as a daily driver. (If you don't care about VoLTE.)

I will test lineageos 16 treble later, I'm staying on phh-treble since it's being updated frequently.
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
Brother I tried PPH ROM everything is working fine but Wifi Hotspot is not Working . whenever I turn my hotspot ON.........it automaticlly gets OFF.
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
I tried Every GSI but Wifi Hotspot is not working............

Is There anyone whose Wifi Hotspot is working ???

did I made any mistake in flasing the ROM???

or.........any solution for this???
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
This is a known bug with Treble ROMs, i never used Wi-Fi Hotspot so i couldn't test it.

Seems that tomorrow a new build will be released.
[Xiaomi Redmi 6A Guides, News, & Discussion] himankk1998:
So.......can You please test it for me ? after you get Update.........i m using Lineage OS ROM right now

If u test it and.......if it is working.......then i will flash that ROM again......

please test it for me Brother !
[Xiaomi Redmi 6A Guides, News, & Discussion] Oriceles:
I am also facing the "Insert Sim Card" message here.
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
The new version is up.

Okay, there's a fix for USSD, i will test this later, Hotspot is still not working, VoLTE i can't test (not available here), i'll ask a friend to test it for me (probably is not working).

April Security Patch included.

For me, the AOSP 9.0 is really stable for daily use (if you don't care about Hotspot and VoLTE of course), at least is better than miui.
[Xiaomi Redmi 6A Guides, News, & Discussion] pandusetiawan:
Can you show me which patch?I have already try this way with lazyflasher-no-verity-opt-encrypt.zip, still got encrypted storage after boot.
[Xiaomi Redmi 6A Guides, News, & Discussion] kaszlak:
when using command:

fastboot format userdata

get error:

error: Cannot generate image for userdata

When i flash TWRP i cant mount System and data partition
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
Anyone managed t install this?

These are the steps o follow:

- Set phone in fastboot mode

- Install TWRP with 'fastboot flash recovery recovery.img'

- Boot into recovery

- Format data

- Install Force Encryption Disabler

- Reboot

After this, the phone is slower, crashes a lot and can't recognise the SIM card.

It eventually starts booting into TWRP directly, at which time i have to install factory image and start all over...

Anyone knows a better method of getting this to work?

Thanks.
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
Repeating again, DON'T DISABLE THE FORCEENCRYPT or you'll lose your IMEI/Baseband.
[Xiaomi Redmi 6A Guides, News, & Discussion] Fahad14687:
Is there are any gcam for redmi 6A??
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
My post already clearly states i know what i should not do, and what i (unsuccessfully) tried.

I'm looking for a kind soul who can explain to me what i do need to do.
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
Depends of what are you trying to do, if you just want to root your device, you don't need to install TWRP, if you want to install a custom rom, just disable the dm-verity , browse the previous posts in this thread.
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
I want to root my device so that i can debloat it and try it for a while.

But i also want to be able to install/switch custom ROMs at will... So having TWRP as a bootloader would also be nice.

If i understand correctly, i can't have both?...

If i want root:

-fastboot format userdata

-fastboot install recovery recovery.img

-boot into TWRP

-install Magisk or SuperSU

-reboot

If i want custom ROM:

-fastboot format userdata

-fastboot install recovery recovery.img

-boot into TWRP

-install Magisk or SuperSU

-install disable dm-verity

-install ROM

-reboot

The thing is, i can't even make TWRP stick.

After first boot, it gets replaced by the default boot loader...

I'm pretty sure i tried just rooting, but i'll give it another try...
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
You don't need to install TWRP to root your device, just a warning, magisk modules are NOT properly working on MIUI, to install magisk without TWRP, get the stock boot.img then use Magisk Manager to create a patched boot and then you flash the patched boot on Fastboot.

Custom ROMs are even more harder... most ROMs are full of bugs, so i recommend you to stay on stock for now.
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
So...

TWRP: not needed

Custom ROMS: unstable

Magisk: unstable

Do you know what is the best method to get SuperSU working without bugs, or the least possible?...
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
Nope, i usually don't like SuperSU because of safety net

Enviado de meu Redmi 6A usando o Tapatalk
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
So, Magisk is the way to go after all?

EDIT: or is there another way to root?
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
Yeah, use Magisk 17.1, not all modules will be available but it's better than nothing, Root works fine, MIUI is a bit weird but 17.1 is the best shot.

Enviado de meu Redmi 6A usando o Tapatalk
[Xiaomi Redmi 6A Guides, News, & Discussion] Ryu--X:
Hi Jonaa,

Since i have to wait for 2 weeks to unlock the bootloader and try phhtreble's android 9 rom (and hopefully lineage os), i would like to root the miui stock rom to install adaway and to be able to use a root explorer.

my question is : where could we find a procedure to patch the boot.img and also find ... a boot.img file ? :)
[Xiaomi Redmi 6A Guides, News, & Discussion] jonaaa:
I couldn't make LOS 16.0 work, it simply reboots back to TWRP, I'm actually using phh-aosp 9.0.

Anyway, you just need to download the latest fastboot stock rom, you can find it on the miui page and then get the boot.img and patch it with Magisk manager, if you're planning to Root your stock rom, don't disable the forceencrypt or the dm-verity, but the Magisk modules aren't properly working on MIUI, I recommend you to use 17.1 instead of 18.1 or 19.

Enviado de meu Redmi 6A usando o Tapatalk
[Xiaomi Redmi 6A Guides, News, & Discussion] nomadewolf:
I'll try it.

Thanks!
[Xiaomi Redmi 6A Guides, News, & Discussion] Ruskovskyy:
i flashed LineageOS 16.1 with magisk 18.1 and got stuck at the kernel. anyone got into that? any fixes?