(resolved)Revert to stock kernel - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Hey all, some guidance would be helpful with this. So to start off I have orange fox recovery, I am on xiaomi.eu 12.0.2.0.
I flashed a kernel but noticed there was a lot of bugs(screen was set to high brightness and can't be changed, and fp doesn't work) , currently there are no working miui 12 kernel and I need to revert back to stock kernel. How am I able to do this?

Related

[Help] [New] Miui 10 to Miui11

Hi all.
I've just bought this device. When I first launched it, it was on miui9, i updated to miui 10 stable 10.0.3.0 (8.1 Android) via ota. Then, I saw that I could also upgrade to miui 11. However, I've read that battery is worse than Miui 10 so I don't know If I should install it.
I've unlocked the recovery because I want to try some custom roms but I'm a bit scared of the anti-rollback.
Could you please tell me what should I do?
Thanks all.
Before you do anything you need to figure out which device you own. You bought it and you already unlocked the bootloader? That generally takes 360 hours, are you sure it wasn't already unlocked? If it was unlocked you probably have a Chinese device, and in that case be extremely careful about not relocking the bootloader. if the phone is not bound to your account ( linked to you personally) then you could brick it and have no recourse.
if you unlocked it yourself and you have a locked device , then don't worry about anti-rollback. So far it has not been implemented. Next, you heard wrong about Miui 11, its battery is equally as good. Although the best version of Miui and currently the most stable Android 10 overall is Xiaomi.EU which is a custom rom based on the china beta but globalised, with Google services.
Again do your homework, avoid extremely old posts that are no longer relevant. Never attempting upgrading your screen refresh and never flash someone else's persist image and you will be good. This community has tons of infor...read a lot and take your own notes.
tsongming said:
Before you do anything you need to figure out which device you own. You bought it and you already unlocked the bootloader? That generally takes 360 hours, are you sure it wasn't already unlocked? If it was unlocked you probably have a Chinese device, and in that case be extremely careful about not relocking the bootloader. if the phone is not bound to your account ( linked to you personally) then you could brick it and have no recourse.
if you unlocked it yourself and you have a locked device , then don't worry about anti-rollback. So far it has not been implemented. Next, you heard wrong about Miui 11, its battery is equally as good. Although the best version of Miui and currently the most stable Android 10 overall is Xiaomi.EU which is a custom rom based on the china beta but globalised, with Google services.
Again do your homework, avoid extremely old posts that are no longer relevant. Never attempting upgrading your screen refresh and never flash someone else's persist image and you will be good. This community has tons of infor...read a lot and take your own notes.
Click to expand...
Click to collapse
Hi Thanks for your reply.
My device is global version (not just global ROM, I do know the difference)
I am unlocked the bootloader using the Xiaomi official tool, i had to activate the developer tools on the device and check the bootloader status and the button which was there ( U know what I mean). Besides, when I turn on the device it says unlocked.
I've read that miui 11 has kinda bad sot because of miui and/or the bug with WhatsApp. So I don't know if I have to update via ota and If I do that I don't know if I will have any problems while trying to install a custom ROM.
I've had a Xiaomi before so I know that I shouldn't install strange zips.
Thank you
Boiisxu said:
Hi Thanks for your reply.
My device is global version (not just global ROM, I do know the difference)
I am unlocked the bootloader using the Xiaomi official tool, i had to activate the developer tools on the device and check the bootloader status and the button which was there ( U know what I mean). Besides, when I turn on the device it says unlocked.
I've read that miui 11 has kinda bad sot because of miui and/or the bug with WhatsApp. So I don't know if I have to update via ota and If I do that I don't know if I will have any problems while trying to install a custom ROM.
I've had a Xiaomi before so I know that I shouldn't install strange zips.
Thank you
Click to expand...
Click to collapse
Yes, the last build of Xiaomi.EU had worse SOT than usual ( about 5 hours. However, the issue was only with one of the weekly builds) I personally resolved that issue for myself by flashing the kernel from the previous build. Also, Xiaomi.EU is updated every Thursday so later today there will be a new build that will very likely resolve the issue. On the other hand the stable builds do not have an issue with SOT. At least not in my experience. I have averaged around 8 to 9 hours SOT.
I don't use Whatsapp, so I can't help you with that.
Since you were previously on stock you will need to backup your data, if you are still using stock, backup to MiCloud as well. This way if you use a Miui based rom you can quickly restored most of your data and partial settings. You will also need to format use storage (type yes, reboot to recovery)
tsongming said:
Yes, the last build of Xiaomi.EU had worse SOT than usual ( about 5 hours. However, the issue was only with one of the weekly builds) I personally resolved that issue for myself by flashing the kernel from the previous build. Also, Xiaomi.EU is updated every Thursday so later today there will be a new build that will very likely resolve the issue. On the other hand the stable builds do not have an issue with SOT. At least not in my experience. I have averaged around 8 to 9 hours SOT.
I don't use Whatsapp, so I can't help you with that.
Since you were previously on stock you will need to backup your data, if you are still using stock, backup to MiCloud as well. This way if you use a Miui based rom you can quickly restored most of your data and partial settings. You will also need to format use storage (type yes, reboot to recovery)
Click to expand...
Click to collapse
I see.
I've just updated to miui 11 stable via ota.
BTW, Is TWRP the best recovery for this device isn't it? I've read that exist other types of recovery (not CWM but someones).
And my last question, I cannot find which version of gcam fits on miui 11 (Android Pie). Is there any thread, telegram channel?
Thanks for all.
Boiisxu said:
I see.
I've just updated to miui 11 stable via ota.
BTW, Is TWRP the best recovery for this device isn't it? I've read that exist other types of recovery (not CWM but someones).
And my last question, I cannot find which version of gcam fits on miui 11 (Android Pie). Is there any thread, telegram channel?
Thanks for all.
Click to expand...
Click to collapse
Personally I use the TWRP that I posted here : I talked to a few friends / android developers on other devices and several of them believe that this a TWRP issue.
I have not had any more of these issues since using this TWRP https://forum.xda-developers.com/showpost.php?p=80952013&postcount=121
If using AOSP, you should use the official version.
The best Gcam ( I Think is by Sanity )
https://www.celsoazevedo.com/files/android/google-camera/dev-san1ty/
FYI the builds made for the Poco F1 and Razer 2 are also compatible.
tsongming said:
Personally I use the TWRP that I posted here : I talked to a few friends / android developers on other devices and several of them believe that this a TWRP issue.
I have not had any more of these issues since using this TWRP https://forum.xda-developers.com/showpost.php?p=80952013&postcount=121
If using AOSP, you should use the official version.
The best Gcam ( I Think is by Sanity )
https://www.celsoazevedo.com/files/android/google-camera/dev-san1ty/
FYI the builds made for the Poco F1 and Razer 2 are also compatible.
Click to expand...
Click to collapse
Thank for helping me.
As I've posted in the official twrp thread, I was able to install twrp and get to it but after power off the phone and try to get there again miui recovery was there instead.
I've installed the last build of twrp 3.3.1.1.
Maybe If I install magisk via TWRP I will have twrp *forever*.(?)
Thank you man
Boiisxu said:
Thank for helping me.
As I've posted in the official twrp thread, I was able to install twrp and get to it but after power off the phone and try to get there again miui recovery was there instead.
I've installed the last build of twrp 3.3.1.1.
Maybe If I install magisk via TWRP I will have twrp *forever*.(?)
Thank you man
Click to expand...
Click to collapse
No problem.
After installing TWRP, you must initially install Root and then reboot to recovery.
Often you will see a message asking if you want to install the TWRP manager, click those boxes and then proceed to rebooting to recovery.
If you are using the full stock Rom, you must have root, so anytime that you flash the official Global stable rom, or an update, flash root again...unless you see via the Recovery terminal that Root maintained it's persistence.
tsongming said:
No problem.
After installing TWRP, you must initially install Root and then reboot to recovery.
Often you will see a message asking if you want to install the TWRP manager, click those boxes and then proceed to rebooting to recovery.
If you are using the full stock Rom, you must have root, so anytime that you flash the official Global stable rom, or an update, flash root again...unless you see via the Recovery terminal that Root maintained it's persistence.
Click to expand...
Click to collapse
Okey, I'll try tomorrow again.
Thanks.

A few questions after installing a custom ROM

Ok so i managed to follow the guide for the whole process to get the pixel experience rom on my phone, i did the full thing> Unlock bootloader, Orange Fox, DFE, Magisk and flash the rom etc.
The questions i have now that ive had it running for a few days, there was no default sounds set, is that normal?
How come it says pixel 2 in certain situations, is it based on a pixel 2 version of android 10 or just some kind of placeholder?
And do i need to flash manually to update or is it OTA? do i just flash the rom through orange fox? ie whats a basic procedure when a new rom is released, i was pretty confused with the guide on the correct process for simply updating a rom if your staying on a particular custom rom.
thanks.
Default sounds are usually never set, you can set them tho in the sound settings
As far as I know the ROM shows your original device model to every apps, except Google (I'm on Evolution X and it shows Pixel 4 for Google)
I think Pixel Experience has OTA, however to my knowledge, it won't work if ur decrypted and orangefox is not compatible with OTAs (not sure tho, but I know twrp is).
If OTA is not working, you can download the latest version from the site and dirty flash (no wipes, just flash the ROM on top of the already installed PE)
Magisk will be lost tho when you update
Hope I helped, hit the thanks if I did
Thanks, thought it was strange no default sounds were set, the last custom rom i used was on the Nexus 6 so its been awhile.
Good to know i just need to flash an updated rom over the top of it glad to clear that up, thanks for your help its appreciated.

Issue with calls after Android 10 update

I posted this in the Q&A thread but it looks pretty dead, I can delete that if needed but hoping to get some help on this one.
I had an Android 10 update this morning, and ever since the person on the other end cannot hear me at all. No way to fix, reset etc.
I don't think I can roll back right? My only solution might be to unlock BL and flash custom, because I cannot wait for a patch to fix this.
Anyone have this same issues? Is there an alternative to going custom? If I do go custom what is the closest to stock that actually fixes this?
This sounds like the problem I have been having since December with still no permanent fix. A temporary fix is to turn on the loudspeaker and then back off and the other caller can hear you. Seems the bug will never get fixed after waiting 3 months now for a fix now.
I decided to use a custom Rom (Ion OS is what I'm using, but any AOSP Rom will do), which fixes the issue altogether. Or you could downgrade back to MIUI 10, which I can confirm it also fixes the call audio issue. So, yes you'll need to unlock the bootloader. I tried other MIUI Roms like Mi-globe, Xiaomi.EU, and ROS-MIUI, and all give the same issue. Well, the ones that's base on android 10 give the call audio issue, the ones based on android 9 don't.
Ok I fixed this yesterday on my own, here's what I did:
1) Back everything up that i needed, then unlocked the BL.
2) booted into TWRP, then flashed TWRP, then flashed the disable verity zip
3) Tried a few ROMs, all had the same issue, and other issues
4) Finally downloaded a ROM I "built" from mi-global, https://mi-globe.com/miui-firmware-rom-builder/
5) Once the ROM was built (I included Magisk, removed some bloatware etc), I flashed it, I intentionally used about a month old build since the the current stock one is what borked me. Mic problem still evident.
6) So finally I removed the modem.img file from the ROM zip and went into fastboot and manually flashed the modem image, rebooted, and that fixed it.
No matter what you have to be BL unlocked to flash files in fastboot, but I think just flashing the older modem.img would have fixed it, but I am better for it because now i have a stock android 10 ROM with bloat removed, and root permissions.
orangekid said:
Ok I fixed this yesterday on my own, here's what I did:
1) Back everything up that i needed, then unlocked the BL.
2) booted into TWRP, then flashed TWRP, then flashed the disable verity zip
3) Tried a few ROMs, all had the same issue, and other issues
4) Finally downloaded a ROM I "built" from mi-global, https://mi-globe.com/miui-firmware-rom-builder/
5) Once the ROM was built (I included Magisk, removed some bloatware etc), I flashed it, I intentionally used about a month old build since the the current stock one is what borked me. Mic problem still evident.
6) So finally I removed the modem.img file from the ROM zip and went into fastboot and manually flashed the modem image, rebooted, and that fixed it.
No matter what you have to be BL unlocked to flash files in fastboot, but I think just flashing the older modem.img would have fixed it, but I am better for it because now i have a stock android 10 ROM with bloat removed, and root permissions.
Click to expand...
Click to collapse
I might have to give that a try then. Glad you have yours working, hope that's the problem I'm having too with the modem.img.
Edit: Tried your steps, but what I get is complete silence now on both ends of a call. Used a modem from the 11.0.6.0.PEAMIXM (android 9) stable build.
Tried V11.0.3.0.QEAMIXM (android 10) firmware and it just brings back the buzzing/static muffled sounds. Shame I can't find why I can't use MIUI 11 without getting this issue.
orangekid said:
Ok I fixed this yesterday on my own, here's what I did:
1) Back everything up that i needed, then unlocked the BL.
2) booted into TWRP, then flashed TWRP, then flashed the disable verity zip
3) Tried a few ROMs, all had the same issue, and other issues
4) Finally downloaded a ROM I "built" from mi-global, https://mi-globe.com/miui-firmware-rom-builder/
5) Once the ROM was built (I included Magisk, removed some bloatware etc), I flashed it, I intentionally used about a month old build since the the current stock one is what borked me. Mic problem still evident.
6) So finally I removed the modem.img file from the ROM zip and went into fastboot and manually flashed the modem image, rebooted, and that fixed it.
No matter what you have to be BL unlocked to flash files in fastboot, but I think just flashing the older modem.img would have fixed it, but I am better for it because now i have a stock android 10 ROM with bloat removed, and root permissions.
Click to expand...
Click to collapse
Hello orangekid, am on the same situation as you was. The 2 mic Works flawlessly when i rec a vidéo or audio memo but when its on call other hear me with buzing and muffling sound.
I am on custom rom Android 11 (EvolutionX 5.3).
Can u plese give me a link to the modem that you flashed in order to ride off this issue.
Thanks in advence
Sld_Ultra said:
I might have to give that a try then. Glad you have yours working, hope that's the problem I'm having too with the modem.img.
Edit: Tried your steps, but what I get is complete silence now on both ends of a call. Used a modem from the 11.0.6.0.PEAMIXM (android 9) stable build.
Tried V11.0.3.0.QEAMIXM (android 10) firmware and it just brings back the buzzing/static muffled sounds. Shame I can't find why I can't use MIUI 11 without getting this issue.
Click to expand...
Click to collapse
Hello sld ultra, did u find a solution for the mic problem since ? Its really annoying.
Sindalf said:
Hello sld ultra, did u find a solution for the mic problem since ? Its really annoying.
Click to expand...
Click to collapse
The problem went away after updating to a MIUI 11 build a month later, can't remember which one. Ever since then, the mic problem hasn't come back and had no problems with MIUI 12.
I'm now using Evolution X 5.3 since the Mi 8 stop getting MIUI updates. Now the only time the mic problem comes back is is when I flash ZenX OS ROM, none of there builds work for me. I don't know why, I just decided that my phone hates what ever setting or config that's in the ROM. From the maintainer's view, I missed up something on my phone, yet other custom and MIUI ROMs work fine.
Back to your question, I didn't find a solution to the problem, it just went away after an update. Now ZenX OS is the only ROM that brings back the problem. Plan to try their A11 build when it comes out, if the problem is still there I'll just move back to Evolution X. Are you using the latest MIUI 12 build? Global stable or xiaomi.eu beta?
Thanks for
Sld_Ultra said:
The problem went away after updating to a MIUI 11 build a month later, can't remember which one. Ever since then, the mic problem hasn't come back and had no problems with MIUI 12.
I'm now using Evolution X 5.3 since the Mi 8 stop getting MIUI updates. Now the only time the mic problem comes back is is when I flash ZenX OS ROM, none of there builds work for me. I don't know why, I just decided that my phone hates what ever setting or config that's in the ROM. From the maintainer's view, I missed up something on my phone, yet other custom and MIUI ROMs work fine.
Back to your question, I didn't find a solution to the problem, it just went away after an update. Now ZenX OS is the only ROM that brings back the problem. Plan to try their A11 build when it comes out, if the problem is still there I'll just move back to Evolution X. Are you using the latest MIUI 12 build? Global stable or xiaomi.eu beta?
Click to expand...
Click to collapse
Thanks for the reply, i was with official MIUI 12 globale version , now i am using évolution x 5.3, i have also replaced my screen and only some twrp Works.. the issue it not related to hardware because when i rec a vidéo or audio memo its Works normally, but when calling the sound is muffled and buzing.. i will try to get back to an android 9 rom ? I will try and will see

Need help in flashing cutom roms

I got my device yesterday and today i have been trying to flash legion os 2.11 but i always keep getting error 7 even tried by installing global rom through mi flash tool but still got error 7 from twrp and oxfox both.
Can someone just guide me clearly on flashing roms on this k20 pro.
Currently i using global miui 11 11.0.4.0 rom but want to try other custom roms as well..
Ezio553 said:
I got my device yesterday and today i have been trying to flash legion os 2.11 but i always keep getting error 7 even tried by installing global rom through mi flash tool but still got error 7 from twrp and oxfox both.
Can someone just guide me clearly on flashing roms on this k20 pro.
Currently i using global miui 11 11.0.4.0 rom but want to try other custom roms as well..
Click to expand...
Click to collapse
Try the latest TWRP from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
If you still get the same problem, report back in this thread.
Robbo.5000 said:
Try the latest TWRP from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
If you still get the same problem, report back in this thread.
Click to expand...
Click to collapse
yeah finally the twrp 3.4 unofficial worked fine from global miui 11 rom i wiped everything and flashed indian vendor-firmware file and then flashed rom with fcrypt zip file nd worked fine...
Thanks for suggesting this file i was using youtube videos as guide and everyone was using oxfox or older twrp..
Ezio553 said:
yeah finally the twrp 3.4 unofficial worked fine from global miui 11 rom i wiped everything and flashed indian vendor-firmware file and then flashed rom with fcrypt zip file nd worked fine...
Thanks for suggesting this file i was using youtube videos as guide and everyone was using oxfox or older twrp..
Click to expand...
Click to collapse
I've got a bit more time to reply now.
OFox is really designed to be used with MIUI. The majority of it's extra features are specific to running MIUI. I would only recommend it if you decide to stick with MIUI in the long run.
The TWRP I pointed to is from the dev who maintains the official TWRP for our device. The unofficial version you've installed is identical to the official version, but with the TWRP app removed. If you intend to stick with custom ROMs, I recommend you stick with TWRP from mauronofrio.
If you prefer to have your phone encrypted, then there was no need to flash fcrypt/DFE. There are a small number of users that continue to insist that we need to disable encryption, but it is not needed.
Having the phone unencrypted does make life a little easier when flashing, but if you prefer the security and want to know about living with an encrypted phone, reply back and I'll give you more details.
Robbo.5000 said:
I've got a bit more time to reply now.
OFox is really designed to be used with MIUI. The majority of it's extra features are specific to running MIUI. I would only recommend it if you decide to stick with MIUI in the long run.
The TWRP I pointed to is from the dev who maintains the official TWRP for our device. The unofficial version you've installed is identical to the official version, but with the TWRP app removed. If you intend to stick with custom ROMs, I recommend you stick with TWRP from mauronofrio.
If you prefer to have your phone encrypted, then there was no need to flash fcrypt/DFE. There are a small number of users that continue to insist that we need to disable encryption, but it is not needed.
Having the phone unencrypted does make life a little easier when flashing, but if you prefer the security and want to know about living with an encrypted phone, reply back and I'll give you more details.
Click to expand...
Click to collapse
I tried Legion Os which is Aosp based and it installed fine but then i tried Masik X 16 which again said this isn't for your device so had to make changes in updater script then it flashed fine.
Also i would like to know about decryption of storage and would it cause any issues in flashing roms again nd again..
Ezio553 said:
I tried Legion Os which is Aosp based and it installed fine but then i tried Masik X 16 which again said this isn't for your device so had to make changes in updater script then it flashed fine.
Also i would like to know about decryption of storage and would it cause any issues in flashing roms again nd again..
Click to expand...
Click to collapse
If you want to be permanently decrypted, then you will not have any problems flashing ROMs. However, whenever you need to update the vendor and firmware, you will also need to flash the DFE script again.
If you want to be encrypted, then the best thing to do, every time you flash, is to temporarily remove encryption by removing all lockscreen security just before flashing, then once you've finished, restore encryption by adding back lockscreen security. However, if you restore MIUI, then choose to go to another custom ROM, you will need to format the data partition when flashing over MIUI, even if you've removed lockscreen security first.
Robbo.5000 said:
If you want to be permanently decrypted, then you will not have any problems flashing ROMs. However, whenever you need to update the vendor and firmware, you will also need to flash the DFE script again.
If you want to be encrypted, then the best thing to do, every time you flash, is to temporarily remove encryption by removing all lockscreen security just before flashing, then once you've finished, restore encryption by adding back lockscreen security. However, if you restore MIUI, then choose to go to another custom ROM, you will need to format the data partition when flashing over MIUI, even if you've removed lockscreen security first.
Click to expand...
Click to collapse
Ok that means going from miui to aosp & vice versa - format data needed.
So this should similarly apply to all Miui based roms like xiaomi.eu or masik x or it is just for stock miui.
Ezio553 said:
Ok that means going from miui to aosp & vice versa - format data needed.
So this should similarly apply to all Miui based roms like xiaomi.eu or masik x or it is just for stock miui.
Click to expand...
Click to collapse
As far as I know, you only need to format data when flashing over official MIUI. I don't know the details, but it is my understanding that encryption on MIUI does not follow standard practice, which is why it it's necessary to format data when flashing over MIUI. I don't believe this issue exists with MIUI based custom ROMs, or when reverting back to MIUI.
Though, there may be occasions, when flashing from one AOSP ROM to another, and the phone is encrypted, when you may get a bootloop. In this case booting to TWRP and formatting data, will fix the problem. This is why I earlier recommended temporarily removing lockscreen security, if you choose to have an encrypted phone, even though this is a rare occurrence.
Robbo.5000 said:
As far as I know, you only need to format data when flashing over official MIUI. I don't know the details, but it is my understanding that encryption on MIUI does not follow standard practice, which is why it it's necessary to format data when flashing over MIUI. I don't believe this issue exists with MIUI based custom ROMs, or when reverting back to MIUI.
Though, there may be occasions, when flashing from one AOSP ROM to another, and the phone is encrypted, when you may get a bootloop. In this case booting to TWRP and formatting data, will fix the problem. This is why I earlier recommended temporarily removing lockscreen security, if you choose to have an encrypted phone, even though this is a rare occurrence.
Click to expand...
Click to collapse
Thanks for the info.
I tried custom miui rom and well flashing dfe worked fine so i think its just for official miui.

Anti-RollBack problems

Hi!
Recently updated my Moto G9 Plus to A11, but is laggy and buggy as hell in matter of emulation, when A10 doesn't have this problems. So I intented to downgrade to A10 but at the flashing moment (fastboot with stock rom A10) fails at some point (vbmeta). It boots anyway, but breaks NFC module, so can't use it until upgrade to A11 again.
Cause of this, tried some custom roms like Lineage that I found in Telegram room. Didn't realize that i've installed an A12 rom, that I do not knew how to add Gapps. So, when tried the A11 one, the recovery doesn't allow me to install it because of the Anti-RollBack function. Then I give up and tried to go back to A10 stock, and had a bootloop as a result. Then flashing A11 solve the problem, so I have to stay in that f***ing OS...
I'm kind of new in this, besides i've done some things like this before, but I do not have any clue on how to procede... Really want to switch to A10 or A11 custom like Lineage, but don't know how... Any help you can give me?
PD: Sorry, I'm Argentinian, gave the best of me to make this understable

Categories

Resources