ysy950803 / FiveGSwitcher

给MIUI开发一个5G快捷开关。
GNU General Public License v3.0
133 stars 15 forks source link

Preferred network type not updated #9

Open andrea-musci opened 2 years ago

andrea-musci commented 2 years ago

Hi I'm using 5G switcher 2.0.2-new on a Mi 10 Ultra 13.0.5 (latest stable). I just noticed that preferred network type doesn't switch to the type select on 5g switcher, even if 5g is actually switched on or off correctly. So it is a graphical problem: preferred network type shows last manually selected value, even if 5g switcher is actually able to switch network type at radio level. I dont' know since which version it started to behave this way: I'm sure that network type and preferred setting were aligned in past version of the app or firmware. Maybe you can check. Thanks

andrea-musci commented 2 years ago

I just want to post an update on this issue: As I reported, when I use the switch, preferred network type is not changed accordingly: so the phone radio switches to the selected band, but the preferred network value is not changed. But I noticed also another problem: for 5g switcher to work, I have first to switch preferred network type manually once after reboot. If I don't switch manually from phone settings, 5g switcher doesn't work. If I switch manually once, then it works with the bug I reported. Maybe is this related?

ysy950803 commented 2 years ago

But I noticed also another problem: for 5g switcher to work, I have first to switch preferred network type manually once after reboot. If I don't switch manually from phone settings, 5g switcher doesn't work.

Thanks for your report. I have noticed that too. Because after a certain MIUI version, the related permission vulnerability was officially fixed. We have no way to directly call the system method, only through ContentProvider to modify the system settings, so when you have not opened the 5G settings page, there will not listeners registered for the provider.

andrea-musci commented 2 years ago

So there's no work around to bypass this? Neither with root access?