Fix for no WiFi connection when Sim is active

Search This thread

dramon

Senior Member
Aug 14, 2011
62
6
0
I imported my HTC first from America and a major problem I found was that the WiFi didn't work. I was prepared to return my phone citing hardware problems but I waited and instead tried to find a solution by myself. I finally got it working.
This thread is for all others who have the same problem that I did.


Temporary Fix
1) unlock boot loader, root and do s-off
2) you must be running ruu 1.08.502.1
3) make your way to http://forum.xda-developers.com/showthread.php?t=1445766
There you can see many people have the similar problem.
Follow the instructions and install the app by the OP
(Make sure push the wifix app in the /system/app folder) verify the app is working properly by dialing the code given in the other thread. Open the wifix manager and set code to 'us'
4) if you read the thread you will see the app works for android 4.0 but most users having jellybean report it as not working
5) try the steps of post #250 (I used the AT&T code)
6) now whenever you restart make sure WiFi is switched OFF before reboot. When your phone boots up again make sure you're getting network signals, then open the market changer app and select AT&T. Then turn on the WiFi.
7) your Wi-Fi can see and connect to access points!




--------------------------------------------------------------------------------------------------------------------------

UPDATE 13/5/2014

WIFI NOW WORKS 100%

Ok with a lot of digging around I finally managed to fix my wifi. Sim inserted or not, wifi on/off at reboot or whatever, it doesn't matter because wifi always works. And no need for any annoying apps to run at boot!

For this method I had to endure a lot of headaches -_-
Had to search the whole internet, learn about adb commands, logcat, compiling .jar files etc

1) unlocked bootloader, rooted , s-off and running deodexed 1.08.502.4 . I did this on a clean install with no wifix/wifi codes/market unlocker

2)
First you have to learn how to compile and extract jar files:
http://forum.xda-developers.com/showthread.php?t=2251719

You just have to read "1. How to Decompile and Recompile *.jar file or classes.dex"

3) THIS STEP NO LONGER NEEDED *Removed*


4)
You need to read this too:
http://forum.xda-developers.com/showthread.php?t=2628707

modify "framework2.jar" which is present in /system/framework
And after you have decompiled, open on your PC
classout/com/android/internal/telephony/MccTable.smali
recompile framework2.jar , put it back in androids /system/framework and set permissions to Rw-r-r

Now we have to modify another file
This time its the /system/framework/framework.jar
after decompiling open in PC : classout/com/android/net/wifi/WifiStateMachine.smali
and edit as per the second post in the link, recompile and paste it back into system/framework,set permissions to Rw-r-r

Note : its best to use adb commands to copy and paste the framework files from android to PC and vice versa
(namely adb pull and adb push)

then do some extra steps:
"Extra step 1
click on "/system/build.prop" and open in any text editor(on android);
seek line
ro.product.locale.region=GB
and change GB to US; confirm OK for save file.
mount /system R

Extra step 2
because of first boots, in Settings database is written our country code,
which should be US.
for this: install "Sqlite Editor" (android app), run, grant ROOT access. after program finds
& lists databases, look for & open "Settings Storage" > settings.db > global:
find "wifi_country_code", select it and press menu button > Edit Record;
change value to US and press "save" "

Reboot.

Congrats!! Wifi now works no matter what you do!
(as long as your wifi is on channels 1-11 , if youre on channel 12 or 13 then I think you need to change wifi country code to an european country instead of 'us')

Note: Be sure to thank the original authors in the threads i've linked.

As usual, do these steps at your own risk, I am not responsible for your bricked devices. Do report if it worked for you.

Also I know i've made quite a bit of mess. Do tell if you have any problems with the steps. I was thinking about posting my own framework.jar and framework2.jar but i'm not sure if they are safe to share or they contain private data. I'll need to confirm from someone.
 
Last edited:

Optimus

Senior Member
Dec 22, 2007
106
9
0
I imported my HTC first from America and a major problem I found was that the WiFi didn't work. I was prepared to return my phone citing hardware problems but I waited and instead tried to find a solution by myself. It took me 4 days but I finally got it working.
This thread is for all others who have the same problem that I did.

Here is what I did:

1) unlock boot loader, root and do s-off
2) you must be running ruu 1.08.502.1
3) make your way to http://forum.xda-developers.com/showthread.php?t=1445766
There you can see many people have the similar problem.
Follow the instructions and install the app by the OP
(Make sure push the wifix app in the /system/app folder) verify the app is working properly by dialing the code given in the other thread. Open the wifix manager and set code to 'us'
4) if you read the thread you will see the app works for android 4.0 but most users having jellybean report it as not working
5) try the steps of post #250 (I used the AT&T code)
6) now whenever you restart make sure WiFi is switched OFF before reboot. When your phone boots up again make sure you're getting network signals, then open the market changer app and select AT&T. Then turn on the WiFi.
7) your Wi-Fi can see and connect to access points!

Well that's what I did. As usual, do these steps at your own risk, I am not responsible for your bricked devices. Do report if it worked for you


Salaam bro how are you?? i also found the solution but for me its Wificodes and Market unlocker both together and its done wifi working..but one thing is your GPRS working?
 

dramon

Senior Member
Aug 14, 2011
62
6
0
Salaam bro how are you?? i also found the solution but for me its Wificodes and Market unlocker both together and its done wifi working..but one thing is your GPRS working?

Lol that's exactly what I posted above.
No, I don't really use data and it isn't activated anyways. Why, does the gprs not work?

Sent from my HTC first using Tapatalk
 

Optimus

Senior Member
Dec 22, 2007
106
9
0
Lol that's exactly what I posted above.
No, I don't really use data and it isn't activated anyways. Why, does the gprs not work?

Sent from my HTC first using Tapatalk


well my wifi works now but GPRS on my warid doesnt connect may be its the settings i need to get them done by warid franchise?
 

dramon

Senior Member
Aug 14, 2011
62
6
0
well my wifi works now but GPRS on my warid doesnt connect may be its the settings i need to get them done by warid franchise?

I don't have gprs enabled, but when I get recharge my balance I'll activate a package and then update you

Sent from my HTC first using Tapatalk
 

imeicodes

Senior Member
Feb 24, 2010
271
5
0
i have same problem when i insert sim card i lose wifi after remove sim wifi working

i try some roms but no success

i read that thread write solution on first post

i try but not working there is any other solution i have 2 phone in my hand

thanks in advance
 

moonmoon8

Member
Feb 13, 2007
48
6
0
I imported my HTC first from America and a major problem I found was that the WiFi didn't work. I was prepared to return my phone citing hardware problems but I waited and instead tried to find a solution by myself. It took me 4 days but I finally got it working.
This thread is for all others who have the same problem that I did.

Here is what I did:

1) unlock boot loader, root and do s-off
2) you must be running ruu 1.08.502.1
3) make your way to http://forum.xda-developers.com/showthread.php?t=1445766
There you can see many people have the similar problem.
Follow the instructions and install the app by the OP
(Make sure push the wifix app in the /system/app folder) verify the app is working properly by dialing the code given in the other thread. Open the wifix manager and set code to 'us'
4) if you read the thread you will see the app works for android 4.0 but most users having jellybean report it as not working
5) try the steps of post #250 (I used the AT&T code)
6) now whenever you restart make sure WiFi is switched OFF before reboot. When your phone boots up again make sure you're getting network signals, then open the market changer app and select AT&T. Then turn on the WiFi.
7) your Wi-Fi can see and connect to access points!

Well that's what I did. As usual, do these steps at your own risk, I am not responsible for your bricked devices. Do report if it worked for you

Not Working...
 

imeicodes

Senior Member
Feb 24, 2010
271
5
0
same here not working i tried on both official and custom rom that solution but not working

any other solution or working kernel ?

with sim card wifi not work
 

Optimus

Senior Member
Dec 22, 2007
106
9
0
Wifi solution

Can you post here tested 4.2.2 rom link here that fixes the WIFI problem with SIM card?


Salaam, here is the link (http://forum.xda-developers.com/showthread.php?t=2023889&highlight=boot+img) but you should know how to root and then put a custom rom..furthermore this is a rom for AT&T htc one x + NOT for the international one ok..this rom worked for me since mine is AT&T version....i hope the same goes for u. dont forget to hit thanks :)...goodluck
 

..::Angel::..

Member
Jul 23, 2012
19
2
0
Karachi

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    I imported my HTC first from America and a major problem I found was that the WiFi didn't work. I was prepared to return my phone citing hardware problems but I waited and instead tried to find a solution by myself. I finally got it working.
    This thread is for all others who have the same problem that I did.


    Temporary Fix
    1) unlock boot loader, root and do s-off
    2) you must be running ruu 1.08.502.1
    3) make your way to http://forum.xda-developers.com/showthread.php?t=1445766
    There you can see many people have the similar problem.
    Follow the instructions and install the app by the OP
    (Make sure push the wifix app in the /system/app folder) verify the app is working properly by dialing the code given in the other thread. Open the wifix manager and set code to 'us'
    4) if you read the thread you will see the app works for android 4.0 but most users having jellybean report it as not working
    5) try the steps of post #250 (I used the AT&T code)
    6) now whenever you restart make sure WiFi is switched OFF before reboot. When your phone boots up again make sure you're getting network signals, then open the market changer app and select AT&T. Then turn on the WiFi.
    7) your Wi-Fi can see and connect to access points!




    --------------------------------------------------------------------------------------------------------------------------

    UPDATE 13/5/2014

    WIFI NOW WORKS 100%

    Ok with a lot of digging around I finally managed to fix my wifi. Sim inserted or not, wifi on/off at reboot or whatever, it doesn't matter because wifi always works. And no need for any annoying apps to run at boot!

    For this method I had to endure a lot of headaches -_-
    Had to search the whole internet, learn about adb commands, logcat, compiling .jar files etc

    1) unlocked bootloader, rooted , s-off and running deodexed 1.08.502.4 . I did this on a clean install with no wifix/wifi codes/market unlocker

    2)
    First you have to learn how to compile and extract jar files:
    http://forum.xda-developers.com/showthread.php?t=2251719

    You just have to read "1. How to Decompile and Recompile *.jar file or classes.dex"

    3) THIS STEP NO LONGER NEEDED *Removed*


    4)
    You need to read this too:
    http://forum.xda-developers.com/showthread.php?t=2628707

    modify "framework2.jar" which is present in /system/framework
    And after you have decompiled, open on your PC
    classout/com/android/internal/telephony/MccTable.smali
    recompile framework2.jar , put it back in androids /system/framework and set permissions to Rw-r-r

    Now we have to modify another file
    This time its the /system/framework/framework.jar
    after decompiling open in PC : classout/com/android/net/wifi/WifiStateMachine.smali
    and edit as per the second post in the link, recompile and paste it back into system/framework,set permissions to Rw-r-r

    Note : its best to use adb commands to copy and paste the framework files from android to PC and vice versa
    (namely adb pull and adb push)

    then do some extra steps:
    "Extra step 1
    click on "/system/build.prop" and open in any text editor(on android);
    seek line
    ro.product.locale.region=GB
    and change GB to US; confirm OK for save file.
    mount /system R

    Extra step 2
    because of first boots, in Settings database is written our country code,
    which should be US.
    for this: install "Sqlite Editor" (android app), run, grant ROOT access. after program finds
    & lists databases, look for & open "Settings Storage" > settings.db > global:
    find "wifi_country_code", select it and press menu button > Edit Record;
    change value to US and press "save" "

    Reboot.

    Congrats!! Wifi now works no matter what you do!
    (as long as your wifi is on channels 1-11 , if youre on channel 12 or 13 then I think you need to change wifi country code to an european country instead of 'us')

    Note: Be sure to thank the original authors in the threads i've linked.

    As usual, do these steps at your own risk, I am not responsible for your bricked devices. Do report if it worked for you.

    Also I know i've made quite a bit of mess. Do tell if you have any problems with the steps. I was thinking about posting my own framework.jar and framework2.jar but i'm not sure if they are safe to share or they contain private data. I'll need to confirm from someone.
    1
    Is this method still the best in 2016 to fix htc first wifi issue. I have at&t stock version using it in Pakistan (Pakistan frequency bands are similar to UK).

    It should still work.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone