Problem with connection - Xiaomi Mi 5 Questions & Answers

Hi. When I changed in settings network mode to 2G only, signal icon started to flicker. After reboot I have no signal at all (it is impossible to call, send/receive SMS, use data connection etc.). In info (*#*#4636#*#*) preferred mode is set to "WCDMA preferred" and I cannot change it - I can chose another value from list but changes are not saved.
In settings phone says that none of SIM cards are inserted - but I can now access SIM 1 settings. However, everything is blocked and beneath the network type there is a description: "Invalid Network Mode (-1). Ignore.".
It happend when I was on latest official CM 13.0 nightly but this is probably not ROM's fault. Problem didn't disappear after clean flash, after restore or even after flashing whole set of images with official MiFlash tool.
After some research I found that setting ro.telephony.default_network from 22,22 to 10,10 should work, as 10 is for "LTE/GSM auto" when 22 is incorrect value. Separated by comma for two SIM slots. Ok, so I tried to edit build.prop with some apps without luck - access denied (rooted). I tried to mount system rw from Root explorer - nothing happens, still ro. From ADB - no, "dev/block/bootdevice/by-name/system is read-only". I even tried to change SELinux to permissive but still nothing
Every idea is welcome, I just need to get my phone to work as a phone again

Related

NOTE4 - APN settings are not available for this user

I have seen meany forums ignore this one please help.
Device is T-mobile note 4
Rooted - I am using cyanogen mod - (trltexx) trltetmo does not work for my device.
( cm-12.1-20150808-NIGHTLY-trltexx.zip )
I get an MD5 error? but it installs anyway
There is no cellular service.
Everything works except my sim card. It wont detect it and my APN settings page says.
"APN settings are not available for this user"
Things I tried repeatedly as suggested by google searches
I tried each one with a clean rom install
1. - manually input APN settings (it wont save them)
2. - Reboot 5 times
3. - Remove the sim card before first boot
4. - Use wifi first to "warm up network"
5.- Wait 3 days for cellular tower to send me signal
6. - Wait 5 min
7. - Try a different rom (same problem with apn settings)
8. - let phone cool down with full battery
9. - Dial *#*#4636#*#* turn off radio?
10. - cry
I remember back when I had an HTC evo 4G everything was so simple...
I installed ROMs like crazy with no errors.
can anyone help me get my cellular service working?

Wifi won't authenticate after unlocking and installing cm13

Hi all,
After unlocking my phone which is a global version 64gb model, I had installed CM13. Wifi was working fine previously. After CM was installed I cannot get wifi to connect. It will show authentication failed and obtaining ip but won't obtain. It shows its mac address and scans wifi just fine. I can run wifi analyzers but it just won't connect. I have tried installing other roms, even installing the original roms and re-locking the device to stock with no success. I have reset my router and verified other devices can connect as well as trying other open wifi ssid's. I have also completely formating the whole phone and reinstalled roms from scratch, again no success. I have been searching through forums for about 2 weeks now and every recommendation has not worked. I love this phone but not having wifi is killing me. I am experiencing no other issues. One clue I do have which google is not providing answers to is the error i got when CM first installed and other times which i can't determine the scenarios to recreate which is
E:Unable to write to ums lunfile '/sys/module/g_android/parameters/file'
Unable to locate storage device.
Any help would be greatly appreciated.
Thanks Much
I have the same problem. I've installed CM 21.11 and gaaps stock via TWRP 3.0.2.0 and after this wi-fi can't authenticate. I did the same steps as topic starter and also tried different wi-fi settings in router and wi-fi without pass. Nothing helped
Please help! Any thoughts can be helpful.
I have exactly same issue as OP. I did everything like him and got no result.
Please help someone. I love my MI5 but i need wifi.
I have exactly the same issue and posted about it just a little earlier
http://forum.xda-developers.com/mi-5/help/wifi-connectivity-problem-t3517777
The difference being that the WiFi was working just fine even when I installed CM 13.1 for the first time. WiFi stopped to connect when I did a full Swipe in TWRP (all partitions).
It would be great if someone could help...
Try to give a chance to CM14.1 installed after a full wipe, I am using WiFi every day with wpa2 shared key and also radius auth 2.4 and. 5 GHz without problems and the overall performances are good
I have CM 14.1 at the moment and the problem is the same.
I'm no specialist but it doesn't seems to be a ROM related issue.
In this case I would try with stock MIUI after a full format and wipe, then in case of success again with CM14.1. Format is important because with encrypted data wipe isn't enough
matteo.gspace said:
In this case I would try with stock MIUI after a full format and wipe, then in case of success again with CM14.1. Format is important because with encrypted data wipe isn't enough
Click to expand...
Click to collapse
Thanks for your assistance.
Done that but didn't solve the issue...
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
I'm on MIUI EU 8.1.70 Nougat then i fastboot flash or recovery mode to MIUI Global 8.1.2.0 Marshmallow WIFI NOT WORK
But,
I managed to get the wifi working again with edl mode flashing with MIUI Global 8.1.20.
I will try to move to CM again, maybe this time wifi will work..
Wish me luck, will post the result later
RESULT:
Not Worked.
---------- Post added at 12:03 PM ---------- Previous post was at 11:23 AM ----------
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
This method work, thanks a lot.
But, for me it's required a valid MAC-address
Pekkuky!
Thank you for your time sharing your knowledge on this topics many days old.
Awesome! You made my day. It work.
I just want to add my experience that might be useful for others.
I tried with a automatically generated MAC and it didn't work.
I followed your advice and repeated with a MAC address of an old e-reader and it worked instantly.
Thanks again!
Pekkuky, thanks a lot. Now I can use CM derived ROMs, great.
Later on after trying solution by Pekkuky, i have problem in turning on hotspot tethering and usb tethering. Anyone can confirm this or this is just me.
Hotspot tethering is working on mine. Before this fix it didn't.
Haven't tried usb tethering though.
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
I was really thinking I would have to throw away the phone. Love for you, really, worked flawlessly. Used this website to generate a MAC http://www.miniwebtool.com/mac-address-generator/
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
works like a charm
thanks mate, u saved my phone! :highfive:
using this website for generating an mac-adress too
http://www.miniwebtool.com/mac-address-generator/
Thanks Pekkuky for the trick. This problem appeared after flashing lineage os 14.1 using twrp. Then I tried different versions of global stable/developer roms (both fastboot and recovery) but nothing worked. Finally this trick worked Used the miniwebtool site for generating mac-address.

wcdma only automatic turn on preferred on reboot

hi,
i've got a problem that occurs with all the rom i've tried (omni, cm and resurrection).
i set the network as wcdma only, but when i turn off and on the phone it changes automatically on wcdma preferred.
can it be solved ?
Thanks !
edit:
i've tried to modify the lines in the build.prop that cahange the network setting, but these lines there aren't
ro.telephony.default_network=xx

Lineage OS 04.04.17 wifi won't connect

Hello there
I finally completed installing Lineage OS to my Mi5 today, following all the official instructions on the Lineage os page.
Everything installed without error - however I can't connect to wifi!
When choosing the wifi network it says "Connecting" quickly followed by "Saved". Occasionally it will say "Authentication failed" or "Disabled".
I can't get it to connect to either 2.4ghz or 5ghz, and both of these were working fine in Miui Global stable rom.
Any insight would be wonderful.
Cheers!
Edit: solution down the thread.
Hi!
Have you tried to reflash rom?
Are you using stock LOS kernel ou another kernel?
Yes I did reflash the ROM once. I assume I'm using the default kernel, I haven't gone to any efforts to use another (I'm a noob )
Solution
Follow up - after much pulling out of hair and freaking out, this solution finally did the job:
https://forum.xda-developers.com/mi-5/help/wifi-connectivity-problem-t3517777/post70408866
All hail Pekkuky!
"This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF4
Intf1MacAddress=957FDC328BF5
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem. "

SIM2 disabled in LOS 16, stuck like that in 17.1

Hi All,
TLDR:
- LineageOS 16, Dual-SIM
- Deactivated second sim in the settings
- Updated to LOS 17.1
- SIM is still deactivated, no button to enable
- Looking for ways to remove SIM card settings
before upgrading from LineageOS 16 to 17.1, I had my second sim card disabled via the general slider (it's my business sim, and I was on vacation). This slider feature now seems to be gone in LOS 17 but the sim is still in a disabled state, meaning LOS is not even asking me for a pin on boot, instead I receive a message saying "Adroid System" / "There's an internal problem with your device. Contact your manufacturer for details". I can still see the sim in the settings (which actually freeze if I try to change carrier settings), and the sim is visible in the top bar with zero reception and the "x". I can still use the sim card in other phones, but the OP3T seems to have memorized the sim card settings somewhere, regardless of which sim slot I use. My solution would have been to delete the per-sim settings, that LOS seems to be storing somewhere, but I have no idea where they could be located.
Any pointers or other ideas would be much appreciated. Thanks!
Same issue here:
System:
- Hardware: OnePlus 3T
- Firmware: 9.0.3
- Recovery: TWRP 3.3.1-1
- Software: LineageOS April 25, 2020
Symptom:
Dual SIM issue: SIM1 (in slot1) works as expected. SIM2 (in slot2) never connects to its network. I use SIM1 mainly for calls, SIM2 mainly for data.
Tried:
- to update firmware to 9.0.6, no change
- to swap SIM1 and SIM2, SIM1 still works in slot2, SIM2 does not work even in slot1, no change
- to remove SIM1 and keep only SIM2 (slot1 or slot2), no change.
- to use different bands GSM/WCDMA only for SIM1 (was GSM/WCDMA/LTE) and LTE only for SIM2 (was GSM/WCDMA/LTE), no change
Hints:
- when I installed LOS17.1, SIM2 was probably locked (I only unlock it when I used mobile data)
- at boot, only PIN1 is asked, not PIN2
- in SIM2's menu, choosing "Advanced > Access point names" crashes `Settings`.
- when SIM1 is not inserted, only SIM2, the `Mobile data` icon in `Quick tiles` does nothing
I looked in this XDA thread dedicated to LineageOS 17.0/17.1 on OnePlus 3/3T, and found several messages complaining about SIM cards not being detected. The problem seems different and the solution suggested is outdated, since the line is now already in `init.qcom.rc`.
The most similar issue is this thread, I cross posted in reddit. I searched gerrit for `dual sim` in the lineage-17.0 and lineage-17.1 branches as well `sim` in the oneplus_oneplus3 tag, without success.
Any idea?
Summary: `/data/system/radio` seems to be broken. Should be replaced with the same directory from a clean install. This breaks PIN auth, which means that
`/data/system/locksettings.db` has to be removed as well, and the PIN reconfigured.
Steps:
0. reboot in TWRP
1. backup broken `data` partition
2. wipe data partition
3. adb sideload `lineage-17.1-20200423-nightly-oneplus3-signed.zip` and `open_gapps-arm64-10.0-nano-20200516.zip`
4. reboot in system
5. make sure that both SIM cards are unlocked and working
6. reboot in TWRP
7. backup working `data` partition (or copy `/data/system/radio` somewhere)
8. restore broken `data` partition
9. move `/data/system/radio` to `/data/system/radio_broken`
10. put instead `/data/system/radio` extracted at step 7, either by gunzip/untar backup, or from the "somewhere" you selected
11. delete `/data/system/locksettings.db`
12. reboot into system
13. unlock both SIM cards
14. set a PIN
Done
why are the devs unable to solve that with an update or flashable zip?
Notor1ouS- said:
why are the devs unable to solve that with an update or flashable zip?
Click to expand...
Click to collapse
Clean flashing on major version bumps will always avoid this issue in the very first place. In my opinion there are much more important topics for a dev to focus on then getting dirty upgrading major versions fool-proof as long as clean flashing works flawlessly and fool-proof.
i disagree on that. a competent dev should be able to do that.
but that's going nowhere anyway, so I'm out.
Notor1ouS- said:
i disagree on that. a competent dev should be able to do that.
but that's going nowhere anyway, so I'm out.
Click to expand...
Click to collapse
If you have the competences and the knowledge to fix issues from dirty upgrading, go ahead, dirty upgrade and fix the issues.
If you don't have the competences and the knowledge to fix issues from dirty upgrading, go ahead and clean flash as recommended on major version bumbs.
If you don't have the competences and the knowledge to fix issues from dirty upgrading and you are resistent to recommendations, blaming the devs as incompetent will polish your ego but don't fix the issue.
For a community driven open source project, you can easily push a fix instead of blaming the devs as incompetent!
Be a user - not a customer.

Categories

Resources