I have tried enabling WIFI channel 14 using the code below with no success. Channels 12-13 work fine though. I'm thinking country code JP might be wrong, any idea?
Code:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'JP');"
exit
Got the idea from this thread: http://forum.xda-developers.com/showthread.php?t=1067944
Related
This must be the most asked question I have googled in a long time
There are so many results but nothing that resolves my dilemma
Without any tweaks I can access channel 13 via the router with my Xperia Ray running the latest nightly CM10
So whats the issue you may be asking, well this is the strange part
If I turn off the SSID of the router so it no longer broadcasts its name then the issue starts
My mobile will not connect to channel 13 thereafter it just disconnects
HOWEVER I have no issues with channels 1 - 12 with the SSID turned off
and certainly had no issues with Miui v4 with the same kernel installed
I have seen this happen with a few tablets but once the tablet has seen the network on channel 13 it was fine and then I could turn off the SSID
SO why do I need to turn off the SSID - because I prefer it was off in an area high with WiFi activity that's all
and I need to use channel 13 because of the high volume of wifi traffic in the area constantly changing there channels
Wifi 13 seems more stable and quicker anyhow I am in the UK and the routers in our street are all set to auto channel???????!!! why I dont know, but none use channel 13
So is there a solution to this very bizarre issue or am I going to have to leave my SSID on
SOLUTION Found thanks sirkay
Thanks to sirkay I can now access any hidden non broadcasting SSID wifi network
http://forum.xda-developers.com/showpost.php?p=23564367&postcount=5
A simple script that is supposed to enable extra channels actually fixed my issue with a hidden SSID
-----------------------------------------------------
Channel 13 issues
[ SOLUTION: To Enabled Wifi Channels 12-14 ]
1. using Root Explorer, goto /system/etc/init.d
2. open one of your init.d scripts, i suggest first in the list (Menu > Open in text editor)
3. paste line below
Code:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'JP');"
4. close and save
5. reboot
note: to enabled channel 12-13 just change "JP" to "EU" or "ES"
-------------------------------------------------------------------------------------------------------------------------------------------
I created a fresh file called 10wifi
and add these lines
#!/system/bin/sh
#
# Fix wifi channels 12 - 14
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'EU');"
-------------------------------------------------------------------------------------------
I put the file into an install-able zip and added permissions to the update_script
set_perm(0, 0, 0777, "/system/xbin/10wifi");
NeilDownx said:
Thanks to sirkay I can now access any hidden non broadcasting SSID wifi network
http://forum.xda-developers.com/showpost.php?p=23564367&postcount=5
A simple script that is supposed to enable extra channels actually fixed my issue with a hidden SSID
-----------------------------------------------------
Channel 13 issues
[ SOLUTION: To Enabled Wifi Channels 12-14 ]
1. using Root Explorer, goto /system/etc/init.d
2. open one of your init.d scripts, i suggest first in the list (Menu > Open in text editor)
3. paste line below
Code:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'JP');"
4. close and save
5. reboot
note: to enabled channel 12-13 just change "JP" to "EU" or "ES"
-------------------------------------------------------------------------------------------------------------------------------------------
I created a fresh file called 10wifi
and add these lines
#!/system/bin/sh
#
# Fix wifi channels 12 - 14
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'EU');"
-------------------------------------------------------------------------------------------
I put the file into an install-able zip and added permissions to the update_script
set_perm(0, 0, 0777, "/system/xbin/10wifi");
Click to expand...
Click to collapse
I copied the script and saw that actually in my settings.db the value wifi_country_code is correctly added, but my galaxy tab s with Blisspop rom still doesn't see the 13th channel...
someone can help me please?
tribio said:
I copied the script and saw that actually in my settings.db the value wifi_country_code is correctly added, but my galaxy tab s with Blisspop rom still doesn't see the 13th channel...
someone can help me please?
Click to expand...
Click to collapse
Have a look in your build.prop file and amend as below
ro.product.locale.language=en
ro.product.locale.region=GB
ro.wifi.channels=13
now finally reboot and if it still fails you may need to change kernels......
I no longer have to bother with these settings as changing the kernel fixed my past issues
...Another solution
1. Turn off WiFi
2. Copy /data/misc/wifi/wpa_supplicant.conf to /sdcard
3. Rename /data/misc/wifi/wpa_supplicant.conf to /data/misc/wifi/wpa_supplicant.conf.old
4. Copy /sdcard/wpa_supplicant.conf to /data/misc/wifi
5. Edit /data/misc/wifi/wpa_supplicant.conf (using ES File Explorer) and remove the pmf=1 line
6. Save the file and make sure the permissions are appropriately set to rw-rw----, the owner is system and the group is wifi otherwise your WiFi will not turn on.
7. Reboot
8. Turn on WiFi
Found this solution on the CM12 errors list - lost of people having similar wifi issues
Tried to update build.prop and nothing change...
Opened wpa_supplicant.conf and there is not "pmf=1" written in the file..
I suppose I have to change kernels?
Thanks a lot for the help!!!
none of the above methods worked for me either
tribio said:
Tried to update build.prop and nothing change...
Opened wpa_supplicant.conf and there is not "pmf=1" written in the file..
I suppose I have to change kernels?
Thanks a lot for the help!!!
Click to expand...
Click to collapse
I seem to have the same problem. Did you resolve your issue? Thanks in advance.
nope!
working with CM12
tribio said:
nope!
Click to expand...
Click to collapse
I got fed up with this and decided to go all out and install Lollipop. I installed Installed Cyanogenmod (CM12) and then Temasek ROM port. I did this at home where the router is using a low channel number. I took the tablet to work and voila channel 13 was working. No need to mess with any wifi_country_codes. I am pretty sure it would work fine without the Temasek port. It might also have worked fine with CM10 or CM11. The disadvantage to this whole process is that I don't have the same spen functionality as stock. I'm still figuring out what apps to using for my "new" Note 10.1.
Dear sir,
I have Sony SL, actually i have a problem with wifi as inserting sim card. I read many topics to find that is a common issue.
Some member has a fix. I fllowed their instruction but to no avail.
As i run the script, this happen :
Error resolving interpreter: /bin/sh does not exist
Using default shell
Exec sh '/sdcard/fix_country_code'
Fix_country_code'
Error: unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file
Killed
Killed
Orginally posted by DKTigra:
I wrote a short script (tried to run as init.d - but it has no sense as country code is beeing read from simcard when all init.d scripts are finished), so i used free Script Manager - SManager (https://play.google.com/store/apps/d....scriptmanager) to launch script after boot.
That's script code (just changed wifi_country_code location):
Code:
#!/bin/sh
sleep 10
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO global (name, value) VALUES ('wifi_country_code', 'EU');"
svc wifi disable
sleep 10
svc wifi enable
Also i've added sleep for 10 seconds for ensure that sim data is already read, and added wifi down - sleep - wifi up for reestablish network connection (as i'm using n/g network for old devices, so Nexus is connected in g-mode to my router when script is executed).
Instruction:
1. Download sqlite3 binary from any source (I've got it from xda http://forum.xda-developers.com/show...29&postcount=2) and move it to /system/xbin, set permissions 755 (rwx-rx-rx)
2. Save script to internal SD-card, f.e. as "fix_country_code.sh",
3. Install script-manager, that is able to run scripts on boot, and set to execute script with root rights (like on screenshot if SManager is used). Also it's possible to test script w/o reboot
Please help me
jad.smoke said:
Dear sir,
I have Sony SL, actually i have a problem with wifi as inserting sim card. I read many topics to find that is a common issue.
Some member has a fix. I fllowed their instruction but to no avail.
As i run the script, this happen :
Error resolving interpreter: /bin/sh does not exist
Using default shell
Exec sh '/sdcard/fix_country_code'
Fix_country_code'
Error: unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file
Killed
Killed
Orginally posted by DKTigra:
I wrote a short script (tried to run as init.d - but it has no sense as country code is beeing read from simcard when all init.d scripts are finished), so i used free Script Manager - SManager (https://play.google.com/store/apps/d....scriptmanager) to launch script after boot.
That's script code (just changed wifi_country_code location):
Code:
#!/bin/sh
sleep 10
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO global (name, value) VALUES ('wifi_country_code', 'EU');"
svc wifi disable
sleep 10
svc wifi enable
Also i've added sleep for 10 seconds for ensure that sim data is already read, and added wifi down - sleep - wifi up for reestablish network connection (as i'm using n/g network for old devices, so Nexus is connected in g-mode to my router when script is executed).
Instruction:
1. Download sqlite3 binary from any source (I've got it from xda http://forum.xda-developers.com/show...29&postcount=2) and move it to /system/xbin, set permissions 755 (rwx-rx-rx)
2. Save script to internal SD-card, f.e. as "fix_country_code.sh",
3. Install script-manager, that is able to run scripts on boot, and set to execute script with root rights (like on screenshot if SManager is used). Also it's possible to test script w/o reboot
Please help me
Click to expand...
Click to collapse
Helpppp
Hello,
I have a rooted Archos 50c Neon with stock ROM on Android 4.4.2. I bought the phone in Germany where it is legal to use wifi channel 12 and 13, but unfortunately, I cannot get my phone to find my wifi -- which I put on channel 13. (I use that channel because it is the cleanest where I live.) When I use a channel between 1 and 11 the phone can connect to my wifi which is what I use as a workaround, but I would prefer if my phone found all wifis on channels 1 to 13.
I have searched quite a bit and have already tried to following modifications in vain:
Code:
adb shell
su
mount -o rw,remount /system
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'EU');"
reboot
Modifications in /system/build.prop:
Code:
ro.product.locale.region=EU
ro.wifi.channels=14
ro.wifi.country=EU
In addition I also tried DE as country code for Germany instead of EU. Does anybody have any suggestions?
I don't think Archos released any kernels for smartphones except 50 Platinum. You can try to download it's sources from Archos site and try to analyse it's wifi module.
Hi Guys,
I am stumped on this. I am trying to build in WiFi support for a Freescale IMX6 board running Android 4.2.2 via a RALINK USB WiFi Module. I was able to build the RALINK drivers from my kernel source and the device loads up just fine. I can bring the adpater "up" in netcfg and I can use the iwlist binary to see access points near me.
However, I cannot get Settings.apk to bring up the adapter. When I go to turn WiFi on, logcat shows the following:
E/WifiStateMachine( 2879): Failed to load driver!
E/WifiStateMachine( 2879): DriverFailedState
I can get WPA_SUPPLICANT started manually by running the following command:
wpa_supplicant -dd -Dnl80211 -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf
where /data/misc/wifi/wpa_supplicant has only two lines:
ctrl_interface=wlan0
update_config=1
I also set the following the props just to be sure:
setprop wifi.interface wlan0
setprop wlan.driver.status "ok"
I am stumped, because I am loading the driver manually first, I do not want wpa_supplicant or settings (whatever method it uses) to load any driver. I have rebuild WPA_SUPPLICANT binary with what I think are the correct board settings, but I always get the same error.
Can anyone help?
Since WifiStateMachine is giving the error, do I need to recompile and replace the Java framework on the device?
Is this a sign of WPA_SUPPLICANT not being built correctly?
Is there some other component I am missing??
Thank you!!!
Anyone?
Hi all,
In order to keep both WiFi and LTE connections working, I tried to start WiFi connections manually. I found following commands working successfully on a Nexus 4 with Android 4.3 (rooted, with busybox):
netcfg wlan0 up
cd /data/misc/wifi/.
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
dhcpcd wlan0
However, I met problems when attempting to apply the same methods on a Nexus 6P with Android 8.1 (rooted, with busybox). I run ifconfig instead of netcfg, but I am not sure about following steps.
Should I still use wpa_supplicant? I found it in /system/bin/hw rather than /system/bin. Besides, the configuration file wpa_supplicant.conf has a different format from Android 4.3 (no longer containing ssid and passwords). What is the correct way to assign wlan0 an ssid?
dhcpcd is not available as well. How should I request an IP address for wlan0?
Thanks!