Xiaomi Pad 5 - WiFi country code


RageSmirk

Members
Sep 30, 2024
5
3
I need help my tablet can't connect to my 5GHz WiFi.
What can be done? I have access to ADB.
Can I fix this without wiping all my data?
 
Yes, my tablets supports 5ghz. The problem is that I can't change wifi country code
Yup, you can't change the country code for WiFi on official ROMs, at least not normally.
You can try the following ADB command:
Code:
adb shell cmd wifi force-country-code enabled XX
Replace XX with 2 uppercase letters of the country code of your choosing.
You might need root for that, not sure.
 
You can try the following ADB command
Code:
Exception occurred while executing 'force-country-code':
java.lang.SecurityException: Uid 2000 does not have access to force-country-code wifi command (or such command doesn't exist)
        at com.android.server.wifi.WifiShellCommand.onCommand(WifiShellCommand.java:432)
        at com.android.wifi.x.com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at com.android.server.wifi.WifiServiceImpl.handleShellCommand(WifiServiceImpl.java:4764)
        at android.os.Binder.onShellCommand(Binder.java:1107)
        at android.os.Binder.shellCommand(Binder.java:1054)
        at android.os.Binder.onTransact(Binder.java:882)
        at android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:2112)
        at android.os.Binder.execTransactInternal(Binder.java:1290)
        at android.os.Binder.execTransact(Binder.java:1249)
 
I'm able to run
Code:
adb shell cmd wifi get-country-code
And it shows my country.
However I can't get 5GHz channels 100+
Only 36-60 channels.
What's going on?
 
I'm able to run
Code:
adb shell cmd wifi get-country-code
And it shows my country.
However I can't get 5GHz channels 100+
Only 36-60 channels.
What's going on?
As I said, you might need root to use "force-country-code".
And I have no idea why you don't see those channels, you might want to ask Xiaomi support.