FORUMS

WiFix - Fixes regional Wi-Fi problems in Android 4.0

92 posts
Thanks Meter: 306
 
Post Reply Email Thread
21st January 2012, 04:38 PM |#41  
OP Member
Thanks Meter: 306
 
More
Quote:
Originally Posted by gregferns

Saw it and edited my post.... But as i said above,, changed settings dont stick... so cant connect...

OK -- Finally did something and got it working

Using WiFix should give you exact same effect as it's changing the WiFi country code (by interacting with secure settings provider.)
I think I should also release the debug version to see what's the problem (the day after tomorrow maybe.)
21st January 2012, 08:47 PM |#42  
Senior Member
Flag Mumbai
Thanks Meter: 137
 
More
Quote:
Originally Posted by fardjad

I can't do it right now (I'm busy with... errh, exams!)
These kinds of problems require extended discussion though.
After a few days maybe

Man,, take care of your studies first... You'll be very happy later.
And modding will always happen... Bet of luck..

btw, your Wifix had not worked when i tried first hence i had written the
lnog post,, but i will try again over the weekend...

regards
greg
22nd January 2012, 08:45 AM |#43  
tytung's Avatar
Senior Member
Thanks Meter: 15,080
 
More
Quote:
Originally Posted by redbaron

Just used sqlite editor from Market (any would work) and changed in /data/data/com.android.providers.settings/databases/settings.db value "wifi_country_code" to EN for example and that's it. And you need root for this. But change it every time after reboot.

I created a flashable zip file which using init.d/99_wifi_country_code_fix to fix "wifi_country_code" value at boot.
Please flash WiFi_country_code_update_for_ICS.zip and see if it works or not.
I don't have this SIM-card related WiFi issue, so someone needs to help test it.

The content of init.d/99_wifi_country_code_fix is as follows.
Code:
export DB=/data/data/com.android.providers.settings/databases/settings.db
sqlite3 $DB "update secure set value='en' where name='wifi_country_code' and value='';"
22nd January 2012, 08:56 AM |#44  
Member
Flag Tbilisi
Thanks Meter: 12
 
More
Thumbs up
Quote:
Originally Posted by tytung

I created a flashable zip file which using init.d/99_wifi_country_code_fix to fix "wifi_country_code" value at boot.
Please flash WiFi_country_code_update_for_ICS.zip and see if it works or not.
I don't have this SIM-card related WiFi issue, so someone needs to help test it.

The content of init.d/99_wifi_country_code_fix is as follows.

Code:
export DB=/data/data/com.android.providers.settings/databases/settings.db
sqlite3 $DB "update secure set value='en' where name='wifi_country_code' and value='';"

Thanks, my device doesn't support flashing zip file (I think so), can I put this script to init.d using root explorer?
22nd January 2012, 09:19 AM |#45  
tytung's Avatar
Senior Member
Thanks Meter: 15,080
 
More
Quote:
Originally Posted by redbaron

Thanks, my device doesn't support flashing zip file (I think so), can I put this script to init.d using root explorer?

Yes, you can.
Your device must support busybox run-parts /system/etc/init.d method and have sqlite3 in /system/xbin/ folder.
I think all rooted device supports busybox.
You also need to set the permissions once you copy them to your device. (Do it only once.)
Code:
chown 0:2000 /system/etc/init.d/99_wifi_country_code_fix
chmod 755 /system/etc/init.d/99_wifi_country_code_fix
chown 0:2000 /system/xbin/sqlite3
chmod 755 /system/xbin/sqlite3
755 means changing permissions using root explorer
Owner: Read, Write, and Execute
Group: Read and Execute
Others: Read and Execute

0:2000 means changing the file owner using root explorer to "0 - root" and "2000 - shell".
The Following 3 Users Say Thank You to tytung For This Useful Post: [ View ] Gift tytung Ad-Free
22nd January 2012, 09:38 AM |#46  
OP Member
Thanks Meter: 306
 
More
Quote:
Originally Posted by tytung

I created a flashable zip file which using init.d/99_wifi_country_code_fix to fix "wifi_country_code" value at boot.
Please flash WiFi_country_code_update_for_ICS.zip and see if it works or not.
I don't have this SIM-card related WiFi issue, so someone needs to help test it.

The content of init.d/99_wifi_country_code_fix is as follows.

Code:
export DB=/data/data/com.android.providers.settings/databases/settings.db
sqlite3 $DB "update secure set value='en' where name='wifi_country_code' and value='';"

Before I start making WiFix, I tried setting wifi_country_code with an init.d script and this ain't gonna work for these obvious reasons:
  1. WiFi country code is set after boot completed and init.d scripts are executed very soon for this. (a workaround would be to add a 120 sec. dealy with sleep, but it doesn't look clean however…)
  2. Whenever the network state changes (well, most of the times, specially when you go into airplane mode and go online again) , WiFi country code changes.
  3. Also in your script, you used UPDATE statement which fails because WiFi country code column doesn't exists at the time of script execution, INSERT is a more reasonable thing but won't work as I explained.

These are exactly why I made this application instead of a flashable init.d script

Anyways thanks for your contribution, and also for your kernel (I'm currently using tytung_ICS_Beta8 on my HD2)
22nd January 2012, 09:52 AM |#47  
Member
Flag Tbilisi
Thanks Meter: 12
 
More
Quote:
Originally Posted by fardjad

Before I start making WiFix, I tried setting wifi_country_code with an init.d script and this ain't work for these obvious reasons:

  1. WiFi country code is set after boot completed and init.d scripts are executed very soon for this. (a workaround would be to add a 120 sec. dealy with sleep, but it doesn't look clean however…)
  2. Whenever the network state changes (well, most of the times, specially when you go into airplane mode and go online again) , WiFi country code changes.
  3. Also in your script, you used UPDATE statement which fails because WiFi country code column doesn't exists at the time of script execution, INSERT is a more reasonable thing but won't work as I explained.

These are exactly why I make this application instead of a flashable init.d script

Agree it didn't worked I'll wait for apk
22nd January 2012, 09:57 AM |#48  
tytung's Avatar
Senior Member
Thanks Meter: 15,080
 
More
Quote:
Originally Posted by fardjad

Before I start making WiFix, I tried setting wifi_country_code with an init.d script and this ain't work for these obvious reasons:

  1. WiFi country code is set after boot completed and init.d scripts are executed very soon for this. (a workaround would be to add a 120 sec. dealy with sleep, but it doesn't look clean however…)
  2. Whenever the network state changes (well, most of the times, specially when you go into airplane mode and go online again) , WiFi country code changes.
  3. Also in your script, you used UPDATE statement which fails because WiFi country code column doesn't exists at the time of script execution, INSERT is a more reasonable thing but won't work as I explained.

These are exactly why I make this application instead of a flashable init.d script

Anyways thanks for your contribution, and also for your kernel (I'm currently using tytung_ICS_Beta8 on my HD2)

OK.
Thanks for the detailed explanation.
25th January 2012, 07:54 AM |#49  
OP Member
Thanks Meter: 306
 
More
Update
Sorry for begin late, the new version uploaded

Change log:
  • Changed minimum SDK version and API Level to 3
  • Minor layout changes
  • Minor bug fixes

If you're updating via WiFix Manager you may have to remove WiFix first and then update.
It's highly recommended to upgrade WiFix Manager as well.

I also added 4EXT Touch Recovery support to recovery flashable zip, but I can't test it.
Someone please confirm if it's working (and report if there's a problem.)
25th January 2012, 02:14 PM |#50  
Senior Member
Thanks Meter: 6
 
More
Quote:
Originally Posted by fardjad

Sorry for begin late, the new version uploaded

Change log:

  • Changed minimum SDK version and API Level to 3
  • Minor layout changes
  • Minor bug fixes

If you're updating via WiFix Manager you may have to remove WiFix first and then update.
It's highly recommended to upgrade WiFix Manager as well.

I also added 4EXT Touch Recovery support to recovery flashable zip, but I can't test it.
Someone please confirm if it's working (and report if there's a problem.)

The zipped version does not work on HTC Sensation ICS. Installing through clockwork fails. I am using 4EXT. The apk seems to work. Also the display looks weird when you open the application, it looks like the UI does not fit the resolution, previous version looked ok.
The Following User Says Thank You to Blaze7 For This Useful Post: [ View ] Gift Blaze7 Ad-Free
25th January 2012, 07:14 PM |#51  
OP Member
Thanks Meter: 306
 
More
Quote:
Originally Posted by Blaze7

The zipped version does not work on HTC Sensation ICS. Installing through clockwork fails. I am using 4EXT. The apk seems to work. Also the display looks weird when you open the application, it looks like the UI does not fit the resolution, previous version looked ok.

Thanks for testing
Actually recovery flashable is working fine in ClockworkMod on my device.
Could you please post the 4Ext recovery error message and a screenshot from WiFix manager?
Post Reply Subscribe to Thread

Tags
country code, fix, ics, wifi, wifix

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes