Wi-Fi not working after flashing stock MIUI - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Hey everyone, I'm having a issue as with getting Wi-Fi to work in MIUI after flashing stock with MIflashtool. As you can see it boots perfectly but It goes into setup and as soon as I get on the "connect to network" screen it crashes and takes me to the home screen. I go into settings and everything works and but as soon I go into Wi-Fi settings it crashes and goes to home screen. BT and 4g/lte and other communications hardware work but not Wifi for some reason. I'm just using Lineage for now because wifi works there and other roms i've tried so it got to be a MIUI issue. I want to go back to stock because i've been getting some performance drops and other minor problems. Any suggestions would be appreciated and btw wifi did work when I got my phone brand new on miui w/ locked bootloader. Btw I used MIUI 10.3.11.0 global on Xiaomi MI 9T. Thank you!

I have the same problem.

Boot TWRP
-Mount /persist
-Use TWRP File manager
-Delete /persist/wlan_mac.bin
-Reboot

Tshuvro said:
Boot TWRP
-Mount /persist
-Use TWRP File manager
-Delete /persist/wlan_mac.bin
-Reboot
Click to expand...
Click to collapse
Really its so simple? ? I need to test it today.
Got the same problem and I really want to send for warranty repair ?
Edited:
Confirm! Working good now!

Tshuvro said:
Boot TWRP
-Mount /persist
-Use TWRP File manager
-Delete /persist/wlan_mac.bin
-Reboot
Click to expand...
Click to collapse
is there anything for widewine L1 as i had it before and after flashing some custom roms and coming back to miui i lost it now its L3

I have a issue that when I flash stock miui 11.0.2 . After opening my phone I can't turn on WiFi and hotspot on my phone. What's the solution??

cracker911181 said:
I have a issue that when I flash stock miui 11.0.2 . After opening my phone I can't turn on WiFi and hotspot on my phone. What's the solution??
Click to expand...
Click to collapse
i no longer have the phone, but when I was having issues with MIUI , i sideloaded twrp, formatted ALL partitions then formatted data, then re flashed using the tool. On first flash do not lock the bootloader, let it boot and see if it works, then reflash and lock if you want to.

Tshuvro said:
Boot TWRP
-Mount /persist
-Use TWRP File manager
-Delete /persist/wlan_mac.bin
-Reboot
Click to expand...
Click to collapse
same goes for bluetooth
i have the same problem to bluetooth
which file do i need to delete

canofcall said:
same goes for bluetooth
i have the same problem to bluetooth
which file do i need to delete
Click to expand...
Click to collapse
Wlan_mac.bin, you quoted it

Related

Creating modified boot.img and enabling adb during first boot.

Modified boot.img of a rom is required to be flashed on that rom so that it works with TWRP.
Enabling ADB during first boot creates a way out in case your phone bootloops or stuck at MI logo and also hardbricked.
Many people hardbricked their phone while flashing MIUI based roms through TWRP, and they had to test-point to bring their phone back to life, my mod enables adb during boot and so people who used my mod and hardbricked their phone can access adb when their phone is stuck at MI logo or bootlooping and thus revive their phone.
Tools needed:-
1)Notepad++ (google it and download)
2)Android Image Kitchen(AIK) http://forum.xda-developers.com/attachment.php?attachmentid=3638835&d=1454959265
Steps:-
1)Download the required rom and extract its boot.img
2)Copy the boot.img to AIK folder and drag boot.img and drop it on unpackimg.bat
3)Open ramdisk folder and look for default.prop , open them with Notepad++
4)Editing default.prop Note:- This will enable adb at first boot
5)Change
Code:
ro.secure=1 to ro.secure=0
ro.adb.secure=1 to ro.adb.secure=0
ro.debuggable=0 to ro.debuggable=1
persist.sys.usb.config=none to persist.sys.usb.config=adb
delete the line ro.secureboot.devicelock=1 if present
OR (Alternate way)(recommended)
open ramdisk and look for fstab.qcom, open with notepad++ and search for ",verify" (without quotes) and delete it and save.
6)Now execute repackimg.bat, a image-new.img file will be compiled.
7)Flash the image-new.img through TWRP or through fastboot using "Fastboot flash boot image-new.img"
That's all
P.S:- Remember only use Boot.img specific for the miui version you wanna run, boot.img version not matching with MIUI version
will cause the Wifi to stop working.
Press thanks If this helped.:good:
Any queries feel free to ask me.:laugh:
Does the modified boot.img procedure need to be done for every ROM or just for the MIUI ROMs? I want to install the AOSP ROM and later CM 13 but I'm still not sure about the whole flashing process.
Sent from my Redmi Note 3 using XDA-Developers mobile app
SkinCoffin said:
Does the modified boot.img procedure need to be done for every ROM or just for the MIUI ROMs? I want to install the AOSP ROM and later CM 13 but I'm still not sure about the whole flashing process.
Sent from my Redmi Note 3 using XDA-Developers mobile app
Click to expand...
Click to collapse
modified boot.img is only for official MIUI roms, all other roms doesnt need it
Rajdip said:
modified boot.img is only for official MIUI roms, all other roms doesnt need it
Click to expand...
Click to collapse
So if I'm on Miui Official Global ROM 7.2.3 all I have to do is flash TWRP through fastboot, boot into it and flash the new ROM+GApps through it?
SkinCoffin said:
So if I'm on Miui Official Global ROM 7.2.3 all I have to do is flash TWRP through fastboot, boot into it and flash the new ROM+GApps through it?
Click to expand...
Click to collapse
exactly
Rajdip said:
exactly
Click to expand...
Click to collapse
Thank you! I just did it. It has booted and almost over in the "Optimizing apps" window. Thing is, I did forget to wipe system, data and cache before flashing, should I do it again or will it be fine like this?
EDIT: I rebooted the phone into recovery, wiped system, data and cache, flashed the ROM zip and wiped cache and dalvik cache. I booted the phone and it showed the Mi logo, then 4 circles screen flying around (green, red, blue and yellow) and it has been like this for like 5 min now.. Did I do something wrong? I'm starting to worry to be honest.
SkinCoffin said:
Thank you! I just did it. It has booted and almost over in the "Optimizing apps" window. Thing is, I did forget to wipe system, data and cache before flashing, should I do it again or will it be fine like this?
EDIT: I rebooted the phone into recovery, wiped system, data and cache, flashed the ROM zip and wiped cache and dalvik cache. I booted the phone and it showed the Mi logo, then 4 circles screen flying around (green, red, blue and yellow) and it has been like this for like 5 min now.. Did I do something wrong? I'm starting to worry to be honest.
Click to expand...
Click to collapse
it takes time to boot for the first time, did it boot now?
Rajdip said:
it takes time to boot for the first time, did it boot now?
Click to expand...
Click to collapse
Still hasn't booted. It has been on the flying circles screen for around 10 minutes now. Maybe fastboot twrp again and do the process all over again?
SkinCoffin said:
Still hasn't booted. It has been on the flying circles screen for around 10 minutes now. Maybe fastboot twrp again and do the process all over again?
Click to expand...
Click to collapse
Try again, goto TWRP, wipe system,data,cache,dalvik and flash the rom. Now reboot...
Rajdip said:
Try again, goto TWRP, wipe system,data,cache,dalvik and flash the rom. Now reboot...
Click to expand...
Click to collapse
So I shouldn't reinstall TWRP through fastboot?
EDIT: Ok so I restarted the phone and it booted normally into the ROM, everything seems alright. Will check if I have any problem, if I do I'll just reflash it.
SkinCoffin said:
So I shouldn't reinstall TWRP through fastboot?
Click to expand...
Click to collapse
No, first try what I said, dont wipe cache and dalvik after the rom is flashed
Rajdip said:
No, first try what I said, dont wipe cache and dalvik after the rom is flashed
Click to expand...
Click to collapse
Ok so I restarted the phone and it booted normally into the ROM, everything seems alright. Will check if I have any problem, if I do I'll just reflash it.
SkinCoffin said:
Ok so I restarted the phone and it booted normally into the ROM, everything seems alright. Will check if I have any problem, if I do I'll just reflash it.
Click to expand...
Click to collapse
okay
i do exactly like your tutor...i edit boot.img n delete ",verify"
repack than delete original boot.img, than use moded boot.img... but wifi doesn't work...
where my mistake...?
Mayoz said:
i do exactly like your tutor...i edit boot.img n delete ",verify"
repack than delete original boot.img, than use moded boot.img... but wifi doesn't work...
where my mistake...?
Click to expand...
Click to collapse
are you sure you are using the boot.img of the MIUI version you are flashing? there is two 7.2.3.0 version of boot.img one for global and one for china. Anyway try this and see if wifi works, goto TWRP(I hope you've already deleted the emmc_appsboot file), select mount and then tick on mount system as read only. Then flash the rom. This method will replace TWRP with MIUI recovery but your wifi should start working.
Rajdip said:
are you sure you are using the boot.img of the MIUI version you are flashing? there is two 7.2.3.0 version of boot.img one for global and one for china. Anyway try this and see if wifi works, goto TWRP(I hope you've already deleted the emmc_appsboot file), select mount and then tick on mount system as read only. Then flash the rom. This method will replace TWRP with MIUI recovery but your wifi should start working.
Click to expand...
Click to collapse
yes using the boot.img of the MIUI version to flashing...from recovery rom stable 7.2.3.0 china....maybe my mistake i replace emmc_appsboot file from miui forum...not delete "will replace TWRP with MIUI recovery...' still can booting? i already UBL...
Mayoz said:
yes using the boot.img of the MIUI version to flashing...from recovery rom stable 7.2.3.0 china....maybe my mistake i replace emmc_appsboot file from miui forum...not delete "will replace TWRP with MIUI recovery...' still can booting? i already UBL...
Click to expand...
Click to collapse
I didnt get you, can you be more clear?
Do I need to use Windows 64bits to flash TWRP?
Thanks.
pepemonje said:
Do I need to use Windows 64bits to flash TWRP?
Thanks.
Click to expand...
Click to collapse
no need 32bit works
Hello, I've followed a certain tutorial and flashed a fastboot Rom with modified emmc file in attempt to unlock bootloader by force because, even after two weeks of trying, I can't get a confirmation SMS from xiaomi to confirm sending an unlock request. After doing it and flashing TWRP onto my device, I'm still unable to enter recovery. Just shows a picture of device and a disconnected usb cable. I need to flash SuperSU in order to get root access.
Because this device is getting me really confused, please answer a couple of questions for me.
If I flash a recently uploaded global stable ROM 7.2.3.0. and flash TWRP with a modified boot image from this tutorial, will I finally be able to enter recovery and install SuperSU?
Flashing will probably relock my bootloader. Is it possible for me to finally enter TWRP and flash SuperSU after flashing the new boot image?
I've thought that I could enter TWRP just by unlocking the bootloader but it seems that I've missed something. I can't remember last time a phone got me this confused.
My only goal here is being able to enter TWRP and rooting my phone, I gave up on unlocking the bootloader officially because I can't ever get that confirmation SMS.
I appreciate the help!! :fingers-crossed:

Issues Custom ROM

Hi Guys,
When i flash a rom it doesn't detect any sim card. But when i'm on stock rom i have my two sim card. I try all the tricks i can find. But nothing works...
I flash LineageOS, Cyanogen 13 and AOSP Extended.
I think i have a modem problem with custom ROM.
If you have any idea for helping me...
If you flash the aosip ROM, which is great BTW, you have to flash one zip file which enables the sims. Check the corresponding thread, keyword "aosip 6.1".
I try to flash AOSIP and the zip file. Still no sim detected.
I really don't understand why i can't use custom ROM. I make a clean flash at each install and my phone is compatible. The only clue i've is when i flash the stock rom modem i had one sim. But when Lineage try to install and update it reboot in recovery...
Deschayn said:
I try to flash AOSIP and the zip file. Still no sim detected.
I really don't understand why i can't use custom ROM. I make a clean flash at each install and my phone is compatible. The only clue i've is when i flash the stock rom modem i had one sim. But when Lineage try to install and update it reboot in recovery...
Click to expand...
Click to collapse
Do a clean flash with stock rom, then reflash your desired custom one
pijes said:
Do a clean flash with stock rom, then reflash your desired custom one
Click to expand...
Click to collapse
Just to be sure.
Clean Flash = -Boot in recovery (TWRP) Wipe-> Advanced Wipe -> Dalvik/art + System + Data + Cache + Internal Storage
-After that boot in bootloader and flash stock rom
-Reboot
-Debug usb
- Flash again twrp
-Install custom ROM
- Clean cache
-Boot Custom rom?
Deschayn said:
Just to be sure.
Clean Flash = -Boot in recovery (TWRP) Wipe-> Advanced Wipe -> Dalvik/art + System + Data + Cache + Internal Storage
-After that boot in bootloader and flash stock rom
-Reboot
-Debug usb
- Flash again twrp
-Install custom ROM
- Clean cache
-Boot Custom rom?
Click to expand...
Click to collapse
I always use rsdlite when going back to stock but that's just my preference. I had similar 'no sim detected' issue quite some time ago and going back to stock was the only fix for me
I have the same problem do you resolve the issue? Please a need my phone.
pijes said:
I always use rsdlite when going back to stock but that's just my preference. I had similar 'no sim detected' issue quite some time ago and going back to stock was the only fix for me
Click to expand...
Click to collapse
I try RSD Lite and he doesn't detect my phone. But i already back to stock rom with fastboot.
And nothing works in fact i don't have de sim card menu in Settings that's disturbing. But when i go back on stock everything is good.
Deschayn said:
I try RSD Lite and he doesn't detect my phone. But i already back to stock rom with fastboot.
And nothing works in fact i don't have de sim card menu in Settings that's disturbing. But when i go back on stock everything is good.
Click to expand...
Click to collapse
rsdlite has issue detecting phone in Windows 10, I only have windows 7 no issues with it
pijes said:
rsdlite has issue detecting phone in Windows 10, I only have windows 7 no issues with it
Click to expand...
Click to collapse
That's the source of the "(bootloader) slot has no count"? in cmd?
Win10 can cause bad flash of twrp? And all my issue come from that install?

Stuck in recovery with no image to flash

First of all, I read this thread, but no luck.
Situation:
* I unlocked bootloader, installed TWRP 3.1.1-1 and flashed Freedom OS, succeding.
* Then I decided to try the Oreo open beta, but had a problem (error 7 flashing it), so I wanted to get back to Freedom OS
* After flashing Freedom OS again (with success) I rebooted but I was stuck at boot logo.
* I decided to flash again OOS 4.5.14, but I misclicked something and I found my self in TWRP with no ROM to flash on SDcard (I think I have checked also internal storage while wiping).
* PANIC!
So, 3 questions:
1) given that I want to stay encrypted (if still possible at this point) should I decrypt data or not at TWRP boot?
2) if I chose decrypt with the unlock code (read that I did) I have to go with decrypt or formatting is enough to keep crypt?
3) MORE IMPORTANT: how do I get a ROM to flash into the phone. Reeboting in TWRP sometimes I see the internal storage, but when I drop a firmware in it I get the transfer windows stuck at 0% and it disappear after a few seconds.
Thanks in advance to who will help me!
this might help - https://forum.xda-developers.com/showthread.php?t=2318497
chris4500uk said:
this might help - https://forum.xda-developers.com/showthread.php?t=2318497
Click to expand...
Click to collapse
Thanks for the suggestion and... it's a beginning.
The problem is that if I sideload a small file like Magisk upload is ok, even if (obviously) it can't install.
When it comes to Oxygen OS I get I cannot read file error.
I doubleclicked the file and it opens in PC, so it isn't corrupted.
I'd be tempted to try another USB cable and maybe another computer if you have one. Failing that, if it's a problem with TWRP your last resort may be a complete low level flash. A good guide is here - https://forum.xda-developers.com/oneplus-5/how-to/unbrick-tool-oneplus-5-t3648169
Edit: I should say be careful if you do have connectivity problems, as flashing using unbrick tools while your connection is bad would not be a good idea at all since it could make things even worse (maybe even hard brick)
I finally got it working. I am a bit ashamed of what the problem was, but I share in case someone else does this stupid error.
The point is: I was formatting /data inside Advanced wipe instead of using "Format Data", so ( I think) I was not rebuilding the sd card allocation table.
After formatting with "Format data" I was able to put the firmware with drag and drop from the PC and I could finally have mu OP5 working again.
Can't you press reboot to recovery and decrypt with your code so your device gets mounted on a PC? Otherwise you can adb sideload the oxygenos file. I had the same error, but Google gave me this:
https://forum.xda-developers.com/showpost.php?p=69648733&postcount=47
Use the program on all the files in the adb directory and reboot.
Zocker1304 said:
Can't you press reboot to recovery and decrypt with your code so your device gets mounted on a PC? Otherwise you can adb sideload the oxygenos file. I had the same error, but Google gave me this:
https://forum.xda-developers.com/showpost.php?p=69648733&postcount=47
Use the program on all the files in the adb directory and reboot.
Click to expand...
Click to collapse
No; i couldn't. But I solved simply by using "Format data".
SOLVED
UncleDan said:
I finally got it working. I am a bit ashamed of what the problem was, but I share in case someone else does this stupid error.
The point is: I was formatting /data inside Advanced wipe instead of using "Format Data", so ( I think) I was not rebuilding the sd card allocation table.
After formatting with "Format data" I was able to put the firmware with drag and drop from the PC and I could finally have mu OP5 working again.
Click to expand...
Click to collapse
Format data is necessary on the OP5 when moving between Nougat and Oreo. I hope you flashed the Oreo Open Beta rather than Freedom. It's far superior.
jhs39 said:
Format data is necessary on the OP5 when moving between Nougat and Oreo. I hope you flashed the Oreo Open Beta rather than Freedom. It's far superior.
Click to expand...
Click to collapse
[O/T ON]
I didn't at the moment, but I did right now, reverting to stock recovery. Do you now if an Oreo-ready TWRP is around yet?
[O/T OFF]
UncleDan said:
[O/T ON]
I didn't at the moment, but I did right now, reverting to stock recovery. Do you now if an Oreo-ready TWRP is around yet?
[O/T OFF]
Click to expand...
Click to collapse
There are two with download links included in the instructions thread for flashing Oreo. I recommend the Blu Spark TWRP over the Chinese TWRP. It will be updated more often.

Help MI9T won't boot on my rom :(

Hi,
i've a problem since totay...my phone won't boot in my rom.
Offical ROM, no changes.
This morning i've just try to change my TWRP but doesn't work .. so i've reinstall this one twrp_davinci_3.3.1_12-08-19_blue_Ss_new.img.
But now, I can't boot in my rom.
Since TWRP, I've tried to installed a .zip like uninstaller magisk and i've an error like can't mount /system.
I've no directory /system, i've /sys and /system_root
Myabe it's a bad track.
What did you think ?
Thanks for your advices.
Spy20 said:
Hi,
i've a problem since totay...my phone won't boot in my rom.
Offical ROM, no changes.
This morning i've just try to change my TWRP but doesn't work .. so i've reinstall this one twrp_davinci_3.3.1_12-08-19_blue_Ss_new.img.
But now, I can't boot in my rom.
Since TWRP, I've tried to installed a .zip like uninstaller magisk and i've an error like can't mount /system.
I've no directory /system, i've /sys and /system_root
Myabe it's a bad track.
What did you think ?
Thanks for your advices.
Click to expand...
Click to collapse
How did you flash the ROM? What ROM was it?
Pupet_Master said:
How did you flash the ROM? What ROM was it?
Click to expand...
Click to collapse
This the official ROM MIUI 10 when I buy the phone 1-2 mounths ago on official website
So I d'ont flash the rom.
I've unlock phone, twrp and root sicne one month
Try flashing full fastboot rom via miflash tool (in fastboot mode)
SUMMERBREEZE said:
Try flashing full fastboot rom via miflash tool (in fastboot mode)
Click to expand...
Click to collapse
Sorry but i don't know what you mean ?
Hello, do you have to type storage password in TWRP?
Flash an another TWRP, like latest 4PDA TWRP => https://drive.google.com/drive/folders/1RXCY8_a2dwUXGF7uO5B3yg9Tu93hkRdR
And use "Reboot to System" in TWRP.
Micdu70 said:
Hello, do you have to type storage password in TWRP?
Flash an another TWRP, like latest 4PDA TWRP => https://drive.google.com/drive/folders/1RXCY8_a2dwUXGF7uO5B3yg9Tu93hkRdR
And use "Reboot to System" in TWRP.
Click to expand...
Click to collapse
Hello,
yes i decrypt partition sucessfully
I try all this one
twrp-3.3.1-3-davinci-mauronofrio.img
twrp_davinci_3.3.1_09-10-19_red.img
recovery-TWRP-3.3.1-0607-REDMI_K20-CN-wzsx150.img
but the only who work is
twrp_davinci_3.3.1_12-08-19_blue_Ss_new.img
I will try the latest 4PDA
I also try reboot to system by TWRP but it bootloop :'( :'(
Spy20 said:
Hello,
yes i decrypt partition sucessfully
I try all this one
twrp-3.3.1-3-davinci-mauronofrio.img
twrp_davinci_3.3.1_09-10-19_red.img
recovery-TWRP-3.3.1-0607-REDMI_K20-CN-wzsx150.img
but the only who work is
twrp_davinci_3.3.1_12-08-19_blue_Ss_new.img
I will try the latest 4PDA
I also try reboot to system by TWRP but it bootloop :'( :'(
Click to expand...
Click to collapse
I install this twrp-3.3.1-4-davinci.img and it's work and better desing than twrp_davinci_3.3.1_12-08-19_blue_Ss_new.img
but already not solved my problem. Sniff
I will try to hard reset my phone since TWRP
Format data from twrp...
Kidence said:
Format data from twrp...
Click to expand...
Click to collapse
Yes i do factory reset form twrp
and now i'm reinstalling MIUI10 with saves
and next finally upgrade to MIUI 11
thanks a lot for all you help and advices

Wifi and sim card not working

So recently I was having some fun with magisk modules. I was on pixel experience 11 plus and all worked fine but then I found a module for some photo processing . After reboot it started to boot loop. I wasn't worried it already happened couple of times. I did my buckup and reinstalled the rom. I did all good but I lt keeps on boot looping. I installed stock miui and it worked but the second it turned on it says android setup isn't responding. I couldn't turn on the wifi, sim card wasn't reading so I tried again to install pixel experience but it's the same thing. Can't use my phone and I tried a lot of things. Is there any way to repair this manually? Like copying some files?. Plzzzz help
What did you do already?
You messed your system. Make a full wipe, partiton and install stock rom.
When I had samsung it was caused by modem - you can try to flash only some modules, but it will take some time to sort things out
yaro666 said:
What did you do already?
You messed your system. Make a full wipe, partiton and install stock rom.
When I had samsung it was caused by modem - you can try to flash only some modules, but it will take some time to sort things out
Click to expand...
Click to collapse
I did all the wipes and yet nothing worked or I did it wrong.
Ive heard about this modem or nhlos files or something like that but I don't really know where to search for this stuff.
Ive rooted my phone to install root explorer. Now I know that installing another Rom wouldn't change anything and instead I have to find a right file to flash or copy. I will do an update if anything works. Thanks for respond
Corgar39 said:
I did all the wipes and yet nothing worked or I did it wrong.
Ive heard about this modem or nhlos files or something like that but I don't really know where to search for this stuff.
Ive rooted my phone to install root explorer. Now I know that installing another Rom wouldn't change anything and instead I have to find a right file to flash or copy. I will do an update if anything works. Thanks for respond
Click to expand...
Click to collapse
When switching ROM, you should Format Data, not just wipe (not the same thing in TWRP) - you can still do it now.
And flash the tgz MIUI firmware by XiaoMiFlash, not just the zip firmware by TWRP. Or, at least flash also the vendor zip firmware
zgfg said:
When switching ROM, you should Format Data, not just wipe (not the same thing in TWRP) - you can still do it now.
And flash the tgz MIUI firmware by XiaoMiFlash, not just the zip firmware by TWRP. Or, at least flash also the vendor zip firmware
Click to expand...
Click to collapse
I already used miflash for tgz and I did format data now I'm looking for different solutions
Corgar39 said:
I already used miflash for tgz and I did format data now I'm looking for different solutions
Click to expand...
Click to collapse
In not sure is it maybe in dtbo. Search the Net and if you have backup of dtbo, try with restoring
zgfg said:
In not sure is it maybe in dtbo. Search the Net and if you have backup of dtbo, try with restoring
Click to expand...
Click to collapse
Tried it. Didn't work unfortunately://
Corgar39 said:
Tried it. Didn't work unfortunately:// I don't think it's repairable
Click to expand...
Click to collapse

Categories

Resources