Change Wifi Direct name and password on Android 9? - Android Q&A, Help & Troubleshooting

Before I upgraded to Android 8 or 9 I was able to edit a file
p2p_suplicant.conf to change Wifi Direct name and passwords.
That's not the case on Android 9.
Where can I change these values?

I am running Android 10 on GP 3aXL. I have two Devices A and B connected via Wi-Fi direct. On device A, i have a proxy server running. I want to share my internet connection with device B. When i scan wifi on device B, I see SSID with the name of the remembered group on device A. I try to connect and it is asking me for the password. Where is this password info located? Tx.

m4f1050 said:
Before I upgraded to Android 8 or 9 I was able to edit a file
p2p_suplicant.conf to change Wifi Direct name and passwords.
That's not the case on Android 9.
Where can I change these values?
Click to expand...
Click to collapse
How?? What do you have to change in p2p_supplicant.conf to change Wifi direct username and password?
I'm trying to tether wifi using wifi direct, I looked into this 2 yrs back, did everything I could to change pass so that, I get a fixed pass everytime, not a randomly generated one, but I couldn't get anything to work, I thought it's not possible and gave up
You're saying you've done that, I really want to know

Related

Clone MAC address

Hi,
I have strange internet provide that lets only one MAC address on network. Long story short, I have to change a Wifi MAC address on my 8525. Any ideas?
I would prefer something simple, maybe a simple aplication to do so.
I have read post like
http://forum.xda-developers.com/showthread.php?t=322225
but, it is complicated, since I need to be able to change it back to original on daily bases with no access to external computer.
Thanks
sadik007 said:
I have read post like
http://forum.xda-developers.com/showthread.php?t=322225
but, it is complicated, since I need to be able to change it back to original on daily bases with no access to external computer.
Thanks
Click to expand...
Click to collapse
Sadly that's the only way it can be done; the WLAN MAC address is stored at a fixed offset within the ROM - the post you mention above is a guide to patching the ROM to update it with the required MAC address.
Mark.
Mark Crouch said:
Sadly that's the only way it can be done; the WLAN MAC address is stored at a fixed offset within the ROM - the post you mention above is a guide to patching the ROM to update it with the required MAC address.
Mark.
Click to expand...
Click to collapse
1 thought as my cable provider is like that to a certain regard,
Get a wireless router. then register the mac of the router with the provider, everything else is transparent to the provider as it would appear to come from the router ans is all ip based, aqs no Mac based services ( ie: netbios ipx/spx ) are used on the internet only on local network
hope this helps

[HOWTO] Rhodium, WEP, and You

(this item also posted on PPCGeeks)
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)
Go to Settings->Wireless & Networks -> Wi-Fi settings
Turn on Wi-Fi if it is not enabled
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"
Turn Off Wi-Fi
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.
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
}
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)
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.
Place your edited wpa_supplicant.conf file in the /data/misc/wifi directory on your device
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.
lol, thanks for this. Now I just need to figure out how to communicate with my device using telekinesis....
I don't use WEP, but the masses that seemingly need it will love you for this. Still not sure how we're going to commit it .
Great work, thanks a lot!
So if I'm understanding this right, this modification is specific to an individual WEP access point, and has to be made once for each new WEP access point you come across? I wonder where we could make a change so that XDAndroid will make this change automatically.
I was trying to get WEP working earlier too, and I noticed that by using a different wpa_supplicant (not conf) file, I was able to connect to WEP access point and send and receive data, but for some reason DNS just wouldn't work.
manekineko said:
Great work, thanks a lot!
So if I'm understanding this right, this modification is specific to an individual WEP access point, and has to be made once for each new WEP access point you come across? I wonder where we could make a change so that XDAndroid will make this change automatically.
I was trying to get WEP working earlier too, and I noticed that by using a different wpa_supplicant (not conf) file, I was able to connect to WEP access point and send and receive data, but for some reason DNS just wouldn't work.
Click to expand...
Click to collapse
You are correct - the configuration is handled on a per-network basis. Remembered networks will be stored in that file, so a wpa_supplicant.conf can contain multiple network={ ... } structures, and each structure could contain an auth_alg line.
I don't know the status of other devices, and forcing it to write a specific value might break ones that are currently working.
There is speculation that a newer version of wpa_supplicant (we're running 0.5.x as is my understanding) may be able to handle the conf file the way it is currently written. The fact that a you used a different version and were able to connect would tend to confirm that.
Do you happen to know what version of wpa_supplicant you were using when it did connect?
Pohket said:
You are correct - the configuration is handled on a per-network basis. Remembered networks will be stored in that file, so a wpa_supplicant.conf can contain multiple network={ ... } structures, and each structure could contain an auth_alg line.
I don't know the status of other devices, and forcing it to write a specific value might break ones that are currently working.
There is speculation that a newer version of wpa_supplicant (we're running 0.5.x as is my understanding) may be able to handle the conf file the way it is currently written. The fact that a you used a different version and were able to connect would tend to confirm that.
Do you happen to know what version of wpa_supplicant you were using when it did connect?
Click to expand...
Click to collapse
Here's my post on it:
http://forum.xda-developers.com/showthread.php?p=11016773
I believe this was using wpa_supplicant v0.5.11.
Hehehehe, WEP works. Thanks for the tip.
this is bigger for me than gettin the cam working.
thx
its great but sorry i dont know how to mount it and where plz help ?? thanks in advance
wifi-ace
I'm using wifi-ace (android market or here: code.google.com/p/android-wifi-ace/) and wep is working fine.
Found it during my search for the hidden network problem.
You are able to adjust everything with this app.
So you don't need to change the "wpa_supplicant.conf", the app
does it for you.
My hidden network at home is working fine now
ohh i dont know how to use this program plzz anyone tell me how to mount this ???
ammmma2 said:
ohh i dont know how to use this program plzz anyone tell me how to mount this ???
Click to expand...
Click to collapse
Download it from the Market.
NO WIFI
Pohket said:
(this item also posted on PPCGeeks)
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)
Go to Settings->Wireless & Networks -> Wi-Fi settings
Turn on Wi-Fi if it is not enabled
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"
Turn Off Wi-Fi
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.
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
}
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)
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.
Place your edited wpa_supplicant.conf file in the /data/misc/wifi directory on your device
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.
Click to expand...
Click to collapse
I do not understand how do I get to this file? I tried to use wifiace and terminal emulator but still no connection only scan, connect, and disconnect. I put my ssid and password in correctly but it still shows the lock symbol and also I can put any number in and it doesn't change just remembered, secured with wep! Any help and I really don't understand the Android SDK usage! thanks again!
SteelLife said:
I do not understand how do I get to this file? I tried to use wifiace and terminal emulator but still no connection only scan, connect, and disconnect. I put my ssid and password in correctly but it still shows the lock symbol and also I can put any number in and it doesn't change just remembered, secured with wep! Any help and I really don't understand the Android SDK usage! thanks again!
Click to expand...
Click to collapse
If you have any choice in the matter, please, please use WPA, or better yet WPA2 with AES.
WEP is ridiculously insecure, and only slightly better than running a completely open network.
If it's not your AP, and you have no choice... wifi-ace works great. Much easier than this method, although this method does work.
With previous experience in network security, a WEP key can be broken in as little as 2-5 Minutes. 30 Minutes with no prior knowledge and just following a guide.
For security sake, use WPA or WPA2 with either encryption, they are equally difficult to break the key.
Cracking a WEP key is as simple as collecting enough unique IVs and running it against a cracking tool.
Cracking a WPA/WPA2 key is not so simple, you need a handshake packet, then you need to run the handshake packet against a dictionary attack (that can last 30 minutes with a big dictionary on a good computer) until you find the word, if it is not in the dictionary it will have to be brute-forced requiring 7392 days on a very very good computer for a key that is 8 random characters. Hackers purely wont waste their time.
WPA/WPA2 is safe, for now. Use that.
arrrghhh said:
If you have any choice in the matter, please, please use WPA, or better yet WPA2 with AES.
WEP is ridiculously insecure, and only slightly better than running a completely open network.
If it's not your AP, and you have no choice... wifi-ace works great. Much easier than this method, although this method does work.
Click to expand...
Click to collapse
I have no choice! I tried the wifi-ace but it only scan connect disconnect. I don't know! Is there away to erased my SSID so I can start over!
Finallly online!
Ok, Im online had to put password in one of the key management thru wifi-ace!
thanks all!
SteelLife said:
I have no choice! I tried the wifi-ace but it only scan connect disconnect. I don't know! Is there away to erased my SSID so I can start over!
Click to expand...
Click to collapse
Do you not own the WAP? You should get rid of WEP at all costs.
arrrghhh said:
Do you not own the WAP? You should get rid of WEP at all costs.
Click to expand...
Click to collapse
Building share and want to stay on wep for whatever reason I don't know!
SteelLife said:
Building share and want to stay on wep for whatever reason I don't know!
Click to expand...
Click to collapse
Tell them anybody with a laptop and basic knowledge can hack into it no prob. Then not only could they potentially steal your internets, they could also easily get into your machines, as the intruder is now on your LAN.
Meh, do what you gotta do. Just be wary of the consequences for choosing poor security methods.
arrrghhh said:
Tell them anybody with a laptop and basic knowledge can hack into it no prob. Then not only could they potentially steal your internets, they could also easily get into your machines, as the intruder is now on your LAN.
Meh, do what you gotta do. Just be wary of the consequences for choosing poor security methods.
Click to expand...
Click to collapse
I know have been telling them for 6 months to change too no prevail!

[GUIDE] WIFI revere TETHER over Ad-hoc for WINDOWS and UBUNTU

This guide teaches you to reverse tether your Android phone via WiFi. That is, it allows you to use your Ethernet connection of PC on your Android phone. It is useful for those who do not have WiFi routers and data connection. So if you have unlimited data plan for your computer, why not share the connection with your phone?
I am not the developer of the files supplied
Requirements:-
1.Rooted Phone
2.Wifi enabled Laptop or PC
3.Root explorer or any other application which gives system access
4.File in the attachement
Procedure :-
Phone:
Download Wpa_supplicant.zip and extract "wpa_supplicant" from it, save it on your SD card.
Open Root Explorer, and grant it superuser access when asked for.
Navigate to system -> bin and long press on wpa_supplicant; Select copy, and paste the file into any folder on your SD card.
Now navigate to the file you downloaded, copy it in same way, and paste it back to system -> bin. Note, you might need to mount the system as R/W instead of R/O by pressing a button on the top just before pasting the file.
Reboot.
▬▬Ubuntu (Must work for other Linux Distros too)▬▬:
Open Network Connections
Goto Wireless tab, select add, and set the following:
SSID: <Any_name_you_like>
Mode: Ad hoc
Leave other things unchanged, and go to Ipv4 settings tab
Set method to Shared to other computers
Go to Wireless security tab and set Security to WEP 40/128 bit key and set key to a numeric password (or hexadecimal one).
Check the connect automatically box on top of the tabs and press Save.
Your Android phone must now detect this network, and you can establish the connection by using your security key.
▬▬Windows XP, Vista, 7▬▬
Download and Install Connectify from www . connectify.me/download-lite/
Start Connectify Hotspot by giving a name and password to your hotspot and selecting the Ethernet connection to share. Make sure the security type is WEP or Open.
Disable your firewall (Simply adding it to exceptions doesn't work for AVG at least)
Now your phone should be able to see the hotspot and establish the connection using the password set.
Known Issues :
1.Random disconnections (Very less frequency)
2.Disconnections due to screen lock / sleep on laptop
3.For me Security mode does not works
HIT THANKS IF IT WORKED
ENJOY
For windows, "virtual wifi router" -> Download is free, and imho better..
Do not download the installer version though
it doesn't work, my wifi is broken. When i turn it on, it does nothing, no scanning for network whatsoever and after a few second it turns off by it self. please help..
imkid5359 said:
it doesn't work, my wifi is broken. When i turn it on, it does nothing, no scanning for network whatsoever and after a few second it turns off by it self. please help..
Click to expand...
Click to collapse
I tried it ....It WORKS...may b yu wuld hav bricked your phone deleting sm files...thats y its always adviced to do a backup!
HitMaN/ said:
I tried it ....It WORKS...may b yu wuld hav bricked your phone deleting sm files...thats y its always adviced to do a backup!
Click to expand...
Click to collapse
i think the problem is "wpa_supplicant" file. i moved my backup "wpa_supplicant" back to system/bin and now wifi works fine..
There is a much simpler way to reverse tether. Just search for the app in the play store. It's name is “reverse tether" it costs $4.99 but there's a trial version for testing purposes.
Samson1433 said:
There is a much simpler way to reverse tether. Just search for the app in the play store. It's name is “reverse tether" it costs $4.99 but there's a trial version for testing purposes.
Click to expand...
Click to collapse
please read the thread before you post. That app works only on usb connection. and the op is discussing wireless tether. i don't think anybody would like to spend 5 dollars and then be physically tethered to the pc.
Also, this sites name is xda-developers, we are here to develop and find solutions. If you just wanted to buy 5 dollar apps, then why visit here?
so other people can get it to work? i wonder why doesn't it work for me, tried it again but still facing the same problem, i'm on arconium gb 8.2 and doom kernel v22 :/
HitMaN/
u r attaching the binary file
i tried this several times with several file source ALWAYS FAIL(i didn't try yours)
maybe the the wpa_supplicant.conf file , that located in /etc/wifi/
or the other one located in /data/misc/wifi
r regenerating the binary file the wrong way so it overwritten
is it possible to attach above mention file so we can follow same
NOTE:THIS FILE CONTAIN UR WIRELESS NETWORK PASSWORDS U CAN REPLACE IT WITH *****
Why not just use connectify?
Sent from my LT18i using Tapatalk 2
imkid5359 said:
it doesn't work, my wifi is broken. When i turn it on, it does nothing, no scanning for network whatsoever and after a few second it turns off by it self. please help..
Click to expand...
Click to collapse
it happened with me too . Then i delete the file which i paste it and return the original one to let my wireless work again . Any help
can be used in 4.0.4?
Why not just use connectify?<br />
<br />
Sent from my LT18i using Tapatalk 2
Click to expand...
Click to collapse
Im traveling a lot an on the beginning I'm use connectify also but after a couple of updates it doesn't runner well anymore!!!!!
Then I'm switching to #Virtual Wi-Fi Router# ( to use on W7)
It runns well.
But I'm.never installed everything different on my phone???? Try it first without any change................
Sent from my LT18i using xda premium

[TRICK] Blocked on WiFi Network (root only) (Finished)

Hey guy/gals, I've got a nifty little trick here for you. Now, the trick I'm about to explain is a rather low-level trick that most of you may know, but its for those who don't or are new. So, at the school i attend, they have wifi throughout the school. They make the password something simple like "internet", and then wait for someone to figure it out and tell everyone. Once everyone start joining the network and using it, they just go through and blacklist (ban) the MAC addresses that aren't pre-approved. This was a huge mistake on their part. So here is a method that allows you to spoof your MAC (ghosting) address and regain access to the network.
Method 1: Go to the market and download 2 apps, "BusyBox" and "MAC Spoofer (changer)". Install BusyBox and run it to give it SU permissions. Then run MAC Spoofer and give it permissions. Turn on your wifi and try to connect to the desired network. If you are blacklisted, it will just loop over and over trying to connect. Don't stop it from looping. Press the home button and then open MAC Spoofer. Now, when you run MAC Spoofer there will be a black box in the center of the screen and it should say ">CHECKING FOR ROOT PERMISSION AND WIFI FILE: OK!" then on the next line it will show your original MAC address and your current one. In the entry box between the black box and the spoof button, you can enter your desired address and press "Spoof my MAC". It will then say ">ATTEMPTING TO MODIFY MAC ADDRESS:" and on the next 2 lines it will show your original and current MAC. On the last line it should say "**SUCCESS** MAC OF INTERFACE wlan0 CHANGED TO: (Whatever you chose)". Now you can exit the app and go back to your wifi network selection. Select the network you were trying to join and it should connect.
I hope this works for you all. If you have any questions or issues, just reply to this thread. Don't forget to give me a thanks!
Note: Your MAC will reset to the original MAC when you turn off your wifi or if your reboot your phone.
Note: I am running ME7 with 4.2.2 JellyBean and stock rom.
(Deleted)

How To Change My Device name

Hi everyone.
How to chane my device name on wi-fi connection.
My device name is android-xxx13bc etc.
Do you know it ?
Also I use stock rom.And My device is new
If there is no option in stock room I can root my device but no room.Maybe there is an app.​
What you want to exactly change?
If you want to change your hotspot name...
then go Settings>Wireless and network More..>portable hotspot>Set up wifi hotspot
You can change the name of your hotspot.
Press Thank if i help you
Thats the unique hardware id of your phone, if u want to change it, search in some options with WiFi direct.
But this is a name which you can see when your device is connected to hotspot huh?
Open WiFi.
Go To WiFi Direct.
Click the settings button.
You'll get the option to rename the device.
....you're welcome.

Categories

Resources