PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   [HOWTO] Rhodium, WEP, and You (http://forum.ppcgeeks.com/showthread.php?t=140532)

Pohket 02-03-2011 01:13 PM

[HOWTO] Rhodium, WEP, and You
 
1 Attachment(s)
(also posted at xda-developers)

I'd like to start by thanking arrrghhh and BoominSVX for running thru some tests to see whether or not I had actually found a working solution.

NOTE: This solution requires altering a configuration file. How you alter the file is entirely up to you (vi, desktop utilizing adb, telekinesis, etc.).
I recommend backing up any file that you plan to edit or replace prior to mucking about with it.


WARNING: Instructions will tell you to turn off or restart Wi-Fi.
This is to ensure that the changes you have made to your configuration files are reloaded by wpa_supplicant.
Simply changing the configuration file is not sufficient!

In addition, I am not responsible for any damage that these instructions may cause to your device, your data, and/or your well-being.

PERFORM THESE ACTIONS AT YOUR RISK


The following instructions will take you through the 'long' method:

Connecting to WEP-enabled Wi-Fi (Easy/Standard)
  1. Go to Settings->Wireless & Networks -> Wi-Fi settings
  2. Turn on Wi-Fi if it is not enabled
  3. Setup your Wi-Fi connection
    • If your AP shows up in the list, select it and type in your WEP key
    • If your AP does not show up, use the Add Wi-Fi network. On the popup, type your SSID, select 'WEP' for Security, and type your WEP key in the Password.

    NOTE: At this point, the Wi-Fi status will go from "Scanning..." to "Connecting..." to "Disconnected"
  4. Turn Off Wi-Fi
  5. Backup the following file: /data/misc/wifi/wpa_supplicant.conf
    • The file contents should be similar to this:

      Code:

      ctrl_interface=eth0
      update_config=1

      network={
              ssid="YOURSSIDHERE"
              key_mgmt=NONE
              auth_alg=OPEN SHARED
              wep_key0=YOURWEPKEYHERE
              priority=1
      }

      The priority=1 may or may not be present, based on whether you selected from the scan list, or added it manually.

  6. Edit /data/misc/wifi/wpa_supplicant.conf and remove either OPEN or SHARED from the auth_alg line. Which one depends on whether the access point is using OPEN, SHARED (if it's using both you can choose which one you prefer to use)
    • After editing, OPEN will look like this:
      Code:

      ctrl_interface=eth0
      update_config=1

      network={
              ssid="YOURSSIDHERE"
              key_mgmt=NONE
              auth_alg=OPEN
              wep_key0=YOURWEPKEYHERE
              priority=1
      }

    • After editing, SHARED will look like this:
      Code:

      ctrl_interface=eth0
      update_config=1

      network={
              ssid="YOURSSIDHERE"
              key_mgmt=NONE
              auth_alg=SHARED
              wep_key0=YOURWEPKEYHERE
              priority=1
      }

  7. Go to Settings->Wireless & Networks and turn on Wi-Fi.
    • Your Wi-Fi status should now show the following values:
    • "Scanning..."
    • "Connecting..."
    • "Obtaining an IP address YOURSSIDHERE..."
    • "Connected to YOURSSIDHERE"

    NOTE: If you fail to connect, return to step 4 and try using the other auth_alg value.
    Some routers may be configured to only support one authentication mode.

That's the long method - for people who have never connected to a Wi-Fi connection, or don't mind losing saved APs can do the following

Connecting to WEP-enabled Wi-Fi (Advanced)
  1. Create your own wpa_supplicant.conf file, either by hand, using the above code snippets, or one of the template files in the zip
    • Replace YOURSSIDHERE with the value of your ssid.
    • Replace YOURWEPKEYHERE with the value of your WEP key.
  2. Place your edited wpa_supplicant.conf file in the /data/misc/wifi directory on your device
  3. Restart/Turn on Wi-Fi

This method has been tested using FRX04 system image, with both Stock and F22's updated rootfs.img file, and against both FRX04 shipped and WisTilt2's debug kernels.

Feel free to share your success and/or failure stories in this thread.

adam1 02-03-2011 08:48 PM

Re: [HOWTO] Rhodium, WEP, and You
 
5.Backup the following file: /data/misc/wifi/wpa_supplicant.conf***

where i can find that file???

ndno 02-03-2011 11:20 PM

Re: [HOWTO] Rhodium, WEP, and You
 
Thanks for the tip; I'll give it a try.

arrrghhh 02-03-2011 11:30 PM

Re: [HOWTO] Rhodium, WEP, and You
 
Quote:

Originally Posted by adam1 (Post 2050521)
5.Backup the following file: /data/misc/wifi/wpa_supplicant.conf***

where i can find that file???

Within Android...?

Either in terminal emulator, or thru adb.

manekineko 02-03-2011 11:38 PM

Re: [HOWTO] Rhodium, WEP, and You
 
Quote:

Originally Posted by arrrghhh (Post 2050640)
Within Android...?

Either in terminal emulator, or thru adb.

Root Explorer should work too.

adam1 02-04-2011 05:56 AM

Re: [HOWTO] Rhodium, WEP, and You
 
dosnt work with me why??? :(

adam1 02-04-2011 06:07 AM

Re: [HOWTO] Rhodium, WEP, and You
 
NOW ITS WORK :D

thankx a million man :D

adam1 02-04-2011 07:48 AM

Re: [HOWTO] Rhodium, WEP, and You
 
mmmm my friend i got it work but when i restart the phone try to turn wifi on its says Error restarted again same problem how to fix that?? :(

ndno 02-04-2011 07:49 AM

Re: [HOWTO] Rhodium, WEP, and You
 
Works great!

OK. I found another method working off post #1 that may be easier for some. I downloaded wpa_supplicant.conf from post #1, then edited it for my WEP wireless network (change ssid, auth_alg, wep_key0 according to my wifi network), copied it my SD card, then added this to the end of conf/froyo.user.conf

Quote:

mount --bind /sdcard/wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
Now when I boot in Android, it just works!!! May be easier for those who don't have RootExplorer or ADB or AndroidExplorer

@Adam, try this to see if it works everytime you boot in. Seems to work for me :)

adam1 02-04-2011 08:53 AM

Re: [HOWTO] Rhodium, WEP, and You
 
Quote:

Originally Posted by ndno (Post 2050759)
Works great!

OK. I found another method working off post #1 that may be easier for some. I downloaded wpa_supplicant.conf from post #1, then edited it for my WEP wireless network (change ssid, auth_alg, wep_key0 according to my wifi network), copied it my SD card, then added this to the end of conf/froyo.user.conf



Now when I boot in Android, it just works!!! May be easier for those who don't have RootExplorer or ADB or AndroidExplorer

@Adam, try this to see if it works everytime you boot in. Seems to work for me :)

i did the same but still showing Erorr whats going on?? it was working good before....:angry7: :scratch:


All times are GMT -4. The time now is 02:12 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0