Hi all
I am facing a problem with HyperDroid-CM7-v2.0.1 build. Its when I try to connect to wifi adhoc connection it says "not in range".
I reinstalled the ROM but no gain. Someone suggested to use correct recovery size and I did use 150Mb only and its fresh installed ROM there are no other programs in phone right now. So please guide me how to solve this issue. Any solution will be appreciated.
Thanks
I have the same issue in HyperDroid-CM7-v2.0.1 & TyphooN CyanogenMod 7 Nightly v3.2.9, with HyperDroidGBX-v12 everything works fine
Try installing the latest SuperUser app from the Android Market, maybe that will help. It fixed my none working HotSpot on HyperDroid-CM7-v2.0.1.
not working
I had to install a specific adhoc fix using clockwork, called: wpa_supplicant_adhocfix_v0.6.10ah_update.zip
There may be a new version but i don't know, do a search for the file above and install. This allowed my phone to connect to adhoc networks
Thanks for all of the answers, now I have already installed GBX ROM and its working fine with it.
Though I could not locate this wpa_supplicant_adhocfix_v0.6.10ah_update.zip file anywhere.
I found a way to solve this problem
1) ADD your ad-hoc connection (it will appear at the end of the list)
2) go to data/misc/wifi and edit the wpa_supplicant.conf file like this
ctrl_interface=eth0
update_config=1
ap_scan=2
network={
ssid="Ad Hoc name"
mode=1
scan_ssid=1
key_mgmt=your_password
priority=41
}
3) turn on your wifi
sorry for my bad English
WiFi error after changing the wpa_supplicant.conf file
Just in case anyone who goes through the same grief as I did with a wifi error after changing the wpa_supplicant.conf file as detailed above here is what my problem was and the solution:
Problem: I used droid explorer to copy the original wpa_supplicant.conf to my desktop as a backup and then edit it with notepad. I then copied it back to the device with droid explorer.
In doing this process I changed the group and the ownership of the file to 'root' rather than 'wifi'. The startup process 'wifi' couldn't do what it needed with the file because it was now owned by 'root' (which droid explorer uses)
Solution: To check if this is the problem go to a terminal and type:
su
cd /data/misc/wifi
ls -l
it should come out with something like
-rw-rw-rw- 1 root root *size* *date/time* wpa_supplicant.conf
to change it type:
chown wifi wpa_supplicant.conf
chgrp wifi wpa_supplicant.conf
it should come out with something like
-rw-rw-rw- 1 wifi wifi*size* *date/time* wpa_supplicant.conf
I hope this helps. It might be becuase I am a complete noob to android but if this post had of been here it would have saved me a lot of grief.
I'm trying to set up ad-hoc networking with a new Casio Commando. I have another embedded Linux box with a working ad-hoc network.
The Casio is rooted. I've "adb push'd" the wpa_supplicant.conf to the Casio. I added these lines to the beginning of the /data/misc/wifi/wpa_supplicant.conf on the Casio as follows:
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant
update_config=1
ap_scan=2
network={
ssid="Ad Hoc"
mode=1
scan_ssid=1
key_mgmt=NONE
priority=41
}
When I restart WiFi on the Casio, the "Ad Hoc" network appears in the list, but it also says "Not In Range".
I know the "Ad Hoc" network in my embedded Linux device is in range - its right next to the phone. What am I missing?
Permissions and ownership of the wpa_supplicant.conf is
rw-rw-rw system root
thx.
Related
Hey guys,
Since there's no way back from rooting the N1 at the moment I'm a little reluctant to do so. The main reason I want it is to be able to manually edit the wpa_supplicant file, as my work network is supported by Android, but not by the wireless settings GUI, so I have to enter the settings manually.
Is anyone aware of any tricks or apps that will allow me to edit this file without root access?
Thanks!
Editing wpa_supplicant.conf
snoopstah said:
Hey guys,
Since there's no way back from rooting the N1 at the moment I'm a little reluctant to do so. The main reason I want it is to be able to manually edit the wpa_supplicant file, as my work network is supported by Android, but not by the wireless settings GUI, so I have to enter the settings manually.
Is anyone aware of any tricks or apps that will allow me to edit this file without root access?
Thanks!
Click to expand...
Click to collapse
Looking at the this file in /etc/wifi and the fact that it commences with a # I'd say not. Like other Linux systems files, you need to be root to edit and save the file.
I guess you are on a 801.1x authenticated wifi network and want it to look like the following (or similar):
##### wpa_supplicant configuration file template #####
update_config=1
ctrl_interface=eth0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="SSID NAME"
scan_ssid=1
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="usuallyfullemailaddress"
password="MY_PASSWORD"
ca_cert="PATH_TO_USER_CERTIFICATE.cer"
priority=1
}
Pity this cannot be done with the SDK.
Hi guys,
I read that i need to change a line to wpa_supplicant.conf in order to be able to connect to ad-hoc networks.
First of all, my wpa_supplicant.conf file is not in /data (/data is empty), but it is in /etc/wifi/ & system/etc/wifi/
Secondly, i have no write access even though i have flashed with the aufs_overlay_rw patch.
Any input on how i can change my access to be able to save the config file?
Thanks
p0inte said:
Hi guys,
I read that i need to change a line to wpa_supplicant.conf in order to be able to connect to ad-hoc networks.
First of all, my wpa_supplicant.conf file is not in /data (/data is empty), but it is in /etc/wifi/ & system/etc/wifi/
Secondly, i have no write access even though i have flashed with the aufs_overlay_rw patch.
Any input on how i can change my access to be able to save the config file?
Thanks
Click to expand...
Click to collapse
You can boot into recovery and manually mount system and data and so on there , then either push/pull stuff with adb , or go in there with adb shell and for instance copy the file to sdcard (don't forget to mount it in that case 8)
Id don't know if tha file requires you to chmod or anything though , maybe someone else can help you there.
I had to chmod framework-res.apk on my X10mini. You might have luck if you google it or search all of the subforums here.
Well, thanks to HDCR.Jacob & danne_jo and their hard work on the WildFire v8, ad-hoc support comes with the rom.
I guess that solves my problem
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
network={
ssid="myCorp"
key_mgmt=WPA-EAP
eap=PEAP
identity="xxxx"
password="yyyyy"
ca_cert="keystore://CACERT_my"
phase2="auth=MSCHAPV2"
priority=1
disable_pm=1
}
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
bobybc said:
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
Click to expand...
Click to collapse
I use peap at home and leap at work. No certs though. Get yourself WIFI Advanced Configuration Editor from the market. It has all those options. That's how I got leap to work.
I've used this editor too
but it seems that there is a bug with certificates :
code.google.com/p/android/issues/detail?id=8804
Click to expand...
Click to collapse
if someone can build wpa_supplicant with proposed patch ...
Anyone obtain the following files from Eclair 2.1 ?
/system/bin/wpa_supplicant
/system/bin/wlan_loader
/system/bin/wlan_cu
i can`t
i can`t! anydon try?
10x 2 Steve , we have fixed version, but unfortunately it doesn't work on my Archos
http://code.google.com/p/android/issues/detail?id=8804
Let someone else try and confirm pls :
download
just unzip and copy to /system/bin
Anyone tried?
Sent from my A70S using Tapatalk
finally i managed to get it working
with wpa_supplicant module from CyanogenMod for Motorola Droid - see it attached
just unzip and copy to /system/bin and delete /data/misc/wifi/tiwlan.ini
of cource you need root access
you need to delete tiwlan.ini on every restart, because it's been always recovered
wpa_supplicant.conf file looks like :
ctrl_interface=tiwlan0
update_config=1
network={
ssid="MYCorporate"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="XXXX"
password="YYYY"
priority=1
}
Click to expand...
Click to collapse
TL;DR: (story in second post)
As always, everything you do is at your own risk. I'm not responsible for your phone running away or any nuclear wars.
1. Edit the content of /persist/wlan_mac.bin using a file manager with root access (e.g. Solid Explorer) and change the first two lines to your desired MAC. It's a good idea to keep the first 3 bytes (the OUI), or bad things may happen.
2. Using a terminal emulator (e.g. Termux), execute the following commands:
Code:
su
chattr +i /persist/wlan_mac.bin
And done! You may have to switch airplane mode on and off.
I just got my new OnePlus 5T, and of course, one of the first things I want to do is to change my MAC address. I immediately spotted the file:
Code:
/persist/wlan_mac.bin
But even if I hadn't, tools like my overseer can find it automatically for us.
So the file is in a standard directory for Qualcomm chips. Using Solid Explorer (with root access), I modified the file's content to change the first two lines to my desired MAC address. I then switched airplane mode on and off and..... it didn't work? I quickly checked the file content again - it had reverted back. Ouch.
To combat this, I ran my overseer tool, but to no avail. There was no obvious file containing our MAC, only symlinks to this one. I then figured that maybe the system caches the value somewhere, and restores it when I toggle airplane mode (spoiler: it doesn't).
Well, the next attempt is mainstream: write-protect the file (set it to immutable). Using a terminal emulator (e.g. Termux), I executed:
Code:
su
chattr +i /persist/wlan_mac.bin
Airplane mode on and off... and it works! I restarted the phone and verified our success. Now, one last question burdened me. Was the system caching the MAC address? I removed the immutable attribute after the restart (so the new MAC would have been cached) and after I switched airplane mode -- original MAC was restored! So the system is doing something else to stop us.
Anyways, the current method works flawlessly and I shall refrain from digging any further just now.
Good luck!
i did whatever you mentioned here. after i set it to immutable, wifi wasn't working, mac address was 02:00:00:00:00:00 . i couldn't even edit the file because i set it to immutable. so i had to remove the immutation by using -i command. i still wanna know how to change my mac address. please help me out
aneesh12 said:
i did whatever you mentioned here. after i set it to immutable, wifi wasn't working, mac address was 02:00:00:00:00:00 . i couldn't even edit the file because i set it to immutable. so i had to remove the immutation by using -i command. i still wanna know how to change my mac address. please help me out
Click to expand...
Click to collapse
Hey,
You have to edit the file before you set the immutable flag, otherwise you'll get access denied just like you observed. Unless you messed up the content of the file I see no reason you are getting an invalid MAC. Make sure you preserve the first 3 bytes (the OUI) when setting a new MAC.
ViRb3 said:
Hey,
You have to edit the file before you set the immutable flag, otherwise you'll get access denied just like you observed. Unless you messed up the content of the file I see no reason you are getting an invalid MAC. Make sure you preserve the first 3 bytes (the OUI) when setting a new MAC.
Click to expand...
Click to collapse
is there no way to change the whole Mac address(including the OUI)?
aneesh12 said:
is there no way to change the whole Mac address(including the OUI)?
Click to expand...
Click to collapse
Sure you can, as long as you use a valid OUI. While using a made-up OUI won't affect you in the short-term, some (public) hotspots could block you.
okay, by your method, i could change the mac address but not completely, only the last 4 digits. i searched for woan_mac.bin . this is what i found. these files might be causing for you to reverting back to the original mac address after removing the immutation.
I tried to change mac address of my OP5T completely to my laptop's(lenovo thinkpad) mac address
system is reading that address in reverse fashion.
eg. i put Aa:Ba:Ccd:Ee:Ff at the first line of wlan_mac.bin then system is showing Ff:Eed:Cc:Bb:Aa as mac after airplan mod on/off
Hello. I have 285 different networks between the different campus apartments for which I am trying to add network profile information to a series of Lenovo Tab4 10 TB-X304F so they may connect without having our Apartment Managers carry around a list of wifi passwords.
So far, I have created a custom wpa_supplicant.conf file with all of the network blocks for each of the networks across the campus. I have rooted the device. I have pushed this custom file to /sdcard/TWRP. I then copied the file from /sdcard/TWRP to /data/misc/wifi.
Now we run into my issue, it appears that this file is stored in at least 3 locations which I have currently found, /etc/wifi, /system/etc/wifi and /data/misc/wifi. The other part of the problem is that these files appear to be rewritten/overwritten on boot. I have been trying to do my own research but everything I find is related to Raspbian or refers to a file structure which is different from this device's file structure.
Which of these file locations should I be updating with my custom wpa_supplicant.conf file? How do I stop the file from being rebuilt on boot? Or, how do I make the process, which builds the file on boot, build it with the networks I want added?
Am I missing any other steps?
I have also tried running " wpa_supplicant -iwlan0 -c/sdcard/TWRP/wpa_supplicant.conf -B " as a command in the adb shell with super user permissions and didn't receive any output or confirmation. What am I misunderstanding about the wpa_supplicant command?
Just in case here are the settings currently in /data/misc/wifi/wpa_supplicant.conf which I have copied into my custom file:
Code:
ctrl_interface=/data/misc/wifi/sockets
disable_scan_offload=1
driver_param=use_p2p_group_interface=1
update_config=1
device_name=LenovoTB-X304F
manufacturer=LENOVO
model_name=Lenovo TB-X304F
model_number=Lenovo TB-X304F
serial_number=<SerialNumber>
device_type=10-0050F204-5
config_methods=physical_display virtual_push_button
p2p_disabled=1
pmf=1
external_sim=1
tdls_external_control=1