yashsingh1/xdaforums huggingface dataset:
[Android Software Development] helpinterchange:
Hi,

Exist some way to install this apk and run without ROOT, only setting

adb shell pm grant "wifi fix apk" android.permission.WRITE_SECURE_SETTINGS

BR
[Android Software Development] fardjad:
Thanks, but someone here stated that he has the same issue with GB, I sent him a PM and am waiting for the response to see if it's a WiFi country code related thing or something else.
[Android Software Development] WaveMaster1406:
I'm in Côte d'Ivoire in West africa and get this pbm with Desire HD running ICS from Lord Clockan, WiFi turn on but can't find any network!!! :(

People says that this pbm can't be fixed.

I'm so excited when i think that your app can resolve (perhaps) this issue!! :D

I try it now and send you a feedback man!

AFTER TEST: Yeeeaah!!!! You have done bro' :D WiFi works well for me!

Thx man! God bless u ;)
[Android Software Development] haririan:
tested on sensation with insertcoin 4.3.2 android 4.0.3

it worked very good thank you

i used the recovery and apk version both worked fine thanks dud ;)
[Android Software Development] nerdslogic:
so is this helpful for the CDMA\LTE galaxy nexus?
[Android Software Development] :
Stupid question

What kind of wifi problems are we talking about here?

Just wondering because maybe I have some kind of problem and didn't notice it lol and maybe someone needs help and then I can send him here
[Android Software Development] fardjad:
As omar302 mentioned,

And as I said before, in some countries (Mainly those that are located in Middle-East and Africa), when you have SIM-Card inserted, due to incorrect (not set) WiFi country code, you can't find/connect to WiFi networks and this application fixes this problem by changing the WiFi country code when needed.
[Android Software Development] fardjad:
A simple try would be harmless :)
[Android Software Development] Rankiz:
I get this error on ICS using Saumsung Galaxy Nexus:
[Android Software Development] fardjad:
Not sure what is the problem, check downloaded files md5 sum:

WiFixManager: 1d786941bc6db2c922bc784d11a1308f

WiFixRecovery: 583b199b4042c7ad201cbabb38defd95

if you're using the recovery version, that might be not compatible with your device and your version of recovery, download and install WiFixManager.apk instead.
[Android Software Development] nathsgames:
OK so in my case, 90% of the time, WiFi works after a reboot, but as soon as the screen times out, the WiFi doesn't come back.

Sometimes toggling WiFi on and off will work, other times it crashes Settings?

Any thoughts? I tried your App but no better thanks.
[Android Software Development] fardjad:
It's most likely a ROM/Kernel/Configuration (ex. properties in build.prop) issue.

As said many times before this app can only fix the problems caused by the wrong (not set) country code when SIM is inserted.
[Android Software Development] gregferns:
WIFI not scanning

Hi,

I read up on your fix for the wifi issue. I think i have the same problem.

I am based out in Kinshasa in Africa, and i use my nexus one with CM7.

All is ok out there.. For the nexus one there are 2 ICS roms

TEaxasice and Medroid...

When i tried to use both these the wifi would not scan at all....

It would not even show me the neighboring wifi AP's.

I tried a lot but could not succeed.

Then @resar helped me on xda forums in texasice's thread,,,,

pls see this http://xdaforums.com/showthread.php?t=1366897&highlight=greg+framework&page=158 for post 1573.

He modified the framework.jar and gave me.. I tried it on texasice and it

didnt work.. But then he suggested me i try it on Medroid's ICS rom as he

had modified the file from Medroid's source and rom... THERE HIS FILE WORKED

AND NOW I HAVE WIFI... But i want very much to use texasice's rom.

Can you do help me out by seeing what changes he has modified in the framework.jar that he has attached ???

I am asking this because after this i found your solution and tried it on texasice's rom but it DID NOT WORK...

Don't know how you can help me out.

P.S. If you need any links or more info i can gladly give....

regards

greg
[Android Software Development] redbaron:
Same WIFI problem but on Honeycomb 3.2

Hello, I have same problems with my wifi after inserting SIM. If I change wifi_country_code manualy it works again. I wanted to install this apk on my tablet but it says "There is a problem parsing package".

How to install it and is it compatible? Can you help make another version for Honeycomb?
[Android Software Development] gregferns:
Hi,

You said "changed wifi_country_code manually"..

Can you please post how you did it ?

thanks in advance.

greg
[Android Software Development] 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.
[Android Software Development] gregferns:
Hi,

I tried this ,but in settings.db there is no section of 'wifi' at all...

Any ideas ??

Edit -- i got it,, but values dont seem to stick and i cant connect....

regards

greg
[Android Software Development] redbaron:
Forgot :) there is section "secure" and there is "wifi_country _code" in it.
[Android Software Development] 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 :):):)
[Android Software Development] 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 :)
[Android Software Development] fardjad:
Yes, it shouldn't be a problem.

I think I should only change the minimum SDK version.

I'll release an update soon.
[Android Software Development] fardjad:
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.)
[Android Software Development] gregferns:
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
[Android Software Development] 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.

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='';"
[Android Software Development] redbaron:
Thanks, my device doesn't support flashing zip file (I think so), can I put this script to init.d using root explorer?
[Android Software Development] tytung:
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.)

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".
[Android Software Development] fardjad:
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:

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…)

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.

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 :D (I'm currently using tytung_ICS_Beta8 on my HD2)
[Android Software Development] redbaron:
Agree it didn't worked :( I'll wait for apk
[Android Software Development] tytung:
OK.

Thanks for the detailed explanation. :)
[Android Software Development] fardjad:
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.)
[Android Software Development] 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.
[Android Software Development] fardjad:
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?
[Android Software Development] Blaze7:
Here is the screenshot from 4EXT as well as from the app.
[Android Software Development] telerian:
Not working for me. I am using a Chinese tablet with ICS 4.0.1. Wifi was fine until I inserted a 3G USB dongle and now wifi never works again until I do factory reset

I installed the manager and installed WiFix. The tablet is rooted (I can access the /system read and write) and su binary is installed

I am looking in catlog and I see the country being set to eg (Egypt) and a line like this

ActivityManager Start proc com.fardjad.android.wifix for broadcast com.fardjad.android.wifix/.EventReciver: pid=729 uid=10049 gids={1015}

and wifi still stuck on turning on wifi

Plz help

Latest update

You are app does set the value but for me incorrectly (select query output below)

222|wifi_country_code|EN

I did insert manually with US instead of EN and it works, can you make a version with US instead of EN (EN is not a country code) or better make an option to choose the value :D
[Android Software Development] fardjad:
Because of the API level and SDK version, the newer version looks a little bit different.

I will try to fix the Recovery flashable version and make the user interface better if possible as soon as I get home (Friday maybe) and borrow my cousin's Sensation.
[Android Software Development] telerian:
Hi fardjad,

Please help me. Make your app insert country code US not EN.
[Android Software Development] fardjad:
I will, be patient :)

Have got many things (not related to WiFix) to do, will release an update ASAP.
[Android Software Development] telerian:
Thx man. Can you release the code as open source?
[Android Software Development] redbaron:
Thank you for your app. It works on Android 3.2 and 3.1 now.
[Android Software Development] telerian:
Hi Fardjad,

I am really need the update badly, it is just one letter modification

Thx
[Android Software Development] fardjad:
Not exactly one letter :) way more...

Check the first post.
[Android Software Development] fardjad:
New version again :)

Change log:

Added custom country code support

Now you can set custom country codes in WiFix Manager, obviously you should update both WiFix Manager and WiFix.

Changed something in Recovery Flashable version, hope it works on 4EXT now. Someone please confirm this.
[Android Software Development] telerian:
Thx man, you're the best

p.s. the check for update says version 1.2, shouldn't it be 1.3 ?
[Android Software Development] fardjad:
You're welcome :)

No! WiFix is different from WiFix Manager, the former latest version is 1.2 and the latter is 1.3.

WiFix can be updated from WiFix Manager but WiFix Manager should be updated manually by user (I wanted to publish this App on Android Market but I decided not to do so for some reasons).

If you want to set custom country codes, you should upgrade WiFix Manager as well.
[Android Software Development] maenhadid:
It worked!

Amaaazing man!!! :D

It worked like charm!! :D

run the apk, install the fix and viola!! :D:D:D:D

Thaaaaaaaaaaaanks :D
[Android Software Development] pa64:
Thumbs up. Thanks!
[Android Software Development] asrock37:
@fardjad

Thank you very much, this could help, I will include this WiFix into my ASNET.MIUI.V4.i9000 rom.

Thanks again

Asrock
[Android Software Development] webmoly:
VPN

hi

I installed the application and it works fine but there is a problem..

I made a PPTP VPN but it couldn't connect to the server..

It freezes on Connecting...

Any Idea?

htc sensation / ICS 4.0.3
[Android Software Development] mifunetoshiro:
Hi. I have a rooted and unlocked HTC Desire HD (not yet S-OFF) and I have flashed the latest IceColdSandwich rom on it. Everything works fine except for wifi, which turned out to be a common problem for Ice Cream Sandwich.

I found the Wifix app and installed the latest version. Changed the country code to EU (I'm in The Netherlands, so maybe I should use NL or DU? Both don't work btw.). So nothing happens and I wonder why? Is there something I missed? Could I try something else? Really can't live without my wifi :)

Thanks in advance!
[Android Software Development] fardjad:
I'm not sure how this Developer Unlock thing works (maybe you need to S-OFF). Just make sure you have write access on your /system directory.

Sometimes you need to invoke WiFix manually by dialing *#WIFIX#.

Hope this helps :)
[Android Software Development] mifunetoshiro:
Hmm, no luck. Each time I try turning wifi on it says 'Wifi inschakelen' or turning on wifi in English. Nothing happens. Should I wait until it does something or is it suppose to connect in a few seconds?

Anything else I could try?
[Android Software Development] fardjad:
Turn off WiFi.

Restart your device.

Dial *#WIFIX# (and press the call button.)

Wait about 10 seconds.

Go to Settings/WiFi and check if it finds networks.

If not, try with different country codes (US works with most of the SIM-Cards.)

If it didn't fix the issue then, try removing the SIM-Card and see if it finds networks (if so, report here.)

If not, then sorry :) there might be other problems with your device/rom/configurations that this application can't fix.
[Android Software Development] mifunetoshiro:
Well, I took a drastic measure and downgraded my phone and rooted it again with the Advanced Hack Kit. Flashed IceColdSandwich over it and voila! A great working rom with wifi! Woohoo! Thanks for your help.
[Android Software Development] mosd:
this dont work for me? it say im connected but its dont load anything? same problem om my nexus s? Tried on my sgs2 now!
[Android Software Development] sohrab1985:
Thank you so much.

Works great on my Galaxy tab 7 running CM9.

I'm on CM9 for a while now and I've been struggling to make both GSM and Wifi work at the same time but I had no luck.

Now, thanks to you the problem is solved.

Thank you very very very much.
[Android Software Development] catalyst4you:
Wi-fi tethering..!!

I am really sorry for asking stupid question... but Please try to help me...

I have flashed IceCreamTosti 0.7a everything works fine... thanks to the cooker...

The only problem I face is... Wi-Fi Tethering... I am able to connect my phone to my PC... My PC shoews connected to My phone. The only problem is I am not able to connect internet on my PC... using my phone as wi-fi tether.

Help me ASAP. Thanks.
[Android Software Development] royalchild:
I couldn't connect. My phone finds routers but i can't connect.
[Android Software Development] vladimired:
I can't connect to my Access Point with this patch ( it helped me to see access point ) I get "Avoided Poor Connection Internet"

Didn't had any problem since 2.1 up to Gingerbread ( Nexus One) Only have problem with wifi on ICS.
[Android Software Development] TarekNajem04:
after dial *#WIFIX# and press the call button this msg is appear

"Connection problem or invalid MMI code".

and not shown any wifi.
[Android Software Development] droiduzr2:
wifi not working

I have the SAME problem.

I tried 3 roms and still no wifi.

I am about to try the stock Revolution ROM shortly, will let you know if it works.

This ROM:

http://xdaforums.com/showpost.php?p=23248161&postcount=1

I can make and receive calls.

I can surf with data connection.
[Android Software Development] TarekNajem04:
thanks you.

But I can't test this rom because my device is hd2
[Android Software Development] OmarBizreh:
I tried everything that was either mentioned in the comments or the app it self, and yet I can't see no Access points, only when I restart the phone I can see my Access point, but can't connect to it :(

Any idea what should I do?!

it all started out when I inserted the SIM card :S
[Android Software Development] kamranhaghighi:
dosen't work:(

i install and.... that when i add a network everything hide and network not in range

I TRYED EVERYTHING EVERY WAY don't know WHAT THE BIIIIIIB WHIT MY phone:((((((((!!!!!!!

sorry for my English
[Android Software Development] kamranhaghighi:
OOOO OOO OOO OOOO

FIXED WHEN I RESET ROUTER AFETR A MINS I JUST LOOKING MY PHONE AND CRYING..>!!!!!! :d:d:dd:d
[Android Software Development] zarhayda:
Thanks for apk but since i do not want to root my phone, can I go into the secure file settings and change the code myself? If so, how can i do it? If not, is there any alternative way without rooting?
[Android Software Development] acolwill:
Simple answer is no.

P.s. Do not quote the entire first post, that is considered to be spamming...
[Android Software Development] fardjad:
Technically you need one time write access on /system partition to install "WiFix.apk". There are various ways to do so (easy to hard):

1. Rooting and installing "WiFix.apk" via "WiFix Manager" (Recommended)

3. S-OFF/Developer Unlock and boot into a custom recovery (fastboot boot recovery.img) and flash the "WiFix Recovery" zip file.

2. S-OFF/Developer Unlock and boot the device with an unsecured kernel (fastboot boot boot.img), remount system partition as writable and push "Wifix.apk" to /system/app using adb or push "WiFix.apk" to "/data/local/temp" and write the file to /system/app/ by redirecting/writing cat, dd, etc. output to /system/app through adb shell.

"Secure System Settings" manipulation requires the application to be installed in /system/app. The settings sqlite3 database is located at /data and you can't access it without rooting.
[Android Software Development] DJSave:
Guys I have LG G2X SIM unlocked. on GB ROMS Wifi and SIM Card work perfectly but an any ICS ROM with my SIM card I can't see any networks.

Installed Wifimanager and engaged it with dial code. Now I can see networks, but when I try to connect to any of them, it goes in loop: authenticating, connecting, obtaning IP address... and then again.

any way to fix this?

===========================================EDIT===============================================

for everyone having similar issue:

Try this:

long press on your network you are trying to connect, then click modify network and set static IP, DNS and all the stuff

It worked for me!
[Android Software Development] Regii:
Have more or less the same problems, that's why I chose to leave WiFi on constantly. Also, after I enabled WiFix, I need to reset my connection and wait about 10 minutes until the connection is there again. No idea what's wrong with my WiFi, since I can't even download a simple Gameloft Game, with WiFix enabled even...
[Android Software Development] navidnouri:
After Installing the apk or using the zip in recovery i can access the WiFi AP but there is a problem with VPN after trying to connect i get "Unsuccessful" error immediately after connecting to VPN, i tried two different VPNs which worked in PC windows.

Tested in NexusHD2 ICS 4.0.3 v1.5 and v1.6, IceCream Tosti, AOKP Milestone5

i think that VPN could be some how country related too.

if you check this issue for me i would appreciate it
[Android Software Development] fardjad:
If I remember correctly, the NexusHD2 ICS cooker listed VPN in not working features in his thread. You can simply verify that by removing SIM and check VPN connection.

Edit:

I checked his thread again and it seems VPN is already fixed.

I can't check that right now (because I'm currently on WP7), just remove the SIM and report if it connects.
[Android Software Development] Deonix:
How to test actual performance?

I am running ICS CM9 on my Defy and wifi works. Just wanted to see if it could work better. I changed the country from US to RO. I live in Romania, Europe. Don't know if i changed anything. What tests should i run?

Thanks for the apps.
[Android Software Development] coyote968:
@ fardjad

thanks for your explanation, with your help I was able to connect wifi my Leo. :D :D

.

Cheers
[Android Software Development] PC400:
I still have problem with Wifi, can anyone help me?

This rom: http://xdaforums.com/showthread.php?t=1657447&page=12
[Android Software Development] vua777:
my one x wont work with wpa/wpa2, let me try this
[Android Software Development] Arfie12:
I just wanted to say thanks for this.

I am in Qatar and the ICS update broke my wifi which I reported to HTC on 2nd April, I'm still waiting for an answer from them.

I'd got sick of waiting for a fix so I read up about rooting etc and finally did it this weekend. I took the opportunity to play with a custom ROM but the main reason to root was purely to install WiFix.

I've had no problems since I installed it. The phone has been shutdown and restarted and the wifi is turned on and off by another app and none of these affect it. Wifi just works how it is supposed to.

Thanks again.
[Android Software Development] Nomad_KZ:
Thanks. After problems with root permissions finally have my WiFi working.

Sent from HTC Sensation XE
[Android Software Development] kamranhaghighi:
haha thank man u save my life :) ;) have fun
[Android Software Development] rvc:
Same Wifi Issue on ATT I717

Same Wifi issue;

ATT Galaxy Note I717

Rooted

Old Old 3G simcard, issued almost day one.

With "out of the box" Gingerbread 2.3.x, wifi worked completely correctly to include Wifi Hotspot.

With ICS 4.0.4 UCLE2 the inoperative wifi behaves just exactly as everyone has described.

Wifi "hangs" when being turned on and displays the message "Turning Wi-Fi on..." The message never changes.

None of the many published fixes have resolved this issue on this phone with this simcard.

WiFix 1.2/1.3 installed/operates exactly as published.

Wifix is behaving exactly as published, with the exception that when *#WIFIX#call is entered a long delay occurs followed by the message "Connection problem or invalid MMI code".

Since this Wifi worked as advertised on this phone, with this simcard, with Gingerbread loaded, it's hard to believe that it's a simcard issue.

Anyone, any ideas please.
[Android Software Development] fardjad:
Basically when you install WiFix Manager and Click Install WiFix it should extract it to /system/app/ after requesting root permissions. You should see WiFix version on screen then. Is that so?

Connection problem or invalid MMI code after dialing *#WIFIX# means it didn't install correctly.

Try installing recovery zip image or manually push WiFix.apk to /system/app/ and see if that works.