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.
So, just NAND flashed my HD2 over to DFT's .2 release of Android. This gave me the infamous MAC address issue of 00:11:22:33:44:55. Now according to a long searched for forum post if you go to:
/system/etc/ find file calibration and open it as view in text editor
in first line you will see the mac address
put your desired mac address,save and exit.
Now, for this you need Root Explorer. So I downloaded and installed Root Explorer. However when I run it, the program tells me I haven't granted the program super user access. Exact text: " Root access could not be obtained because su failed with the following message: permission denied Make sure you granted root permission when requested by SuperUser. If you did then try re-rooting your device. Root explorer will not continue in non-root mode." When I check in super user the page is BLANK. No programs have even requested super user access for me to give permissions to. I'm at a loss, either the version of Android isn't rooted, or the app isn't requesting SU access like it should. Either way I can't fix the MAC address issue. So, does anyone have an idea on how to fix either Root Explorer not getting SU access or the MAC address issue that doesn't require me to edit that file?
Download a program called "Z4Root" and run a Permanent Root, about 15 seconds after "Rebooting..." appears, restart your phone and try Root Explorer again and Allow it SuperUser Permissions
Got that to work last night actually! Now I'm just waiting to see what file should actually be edited as the calibration file isn't in system/etc.
My friend got the same problem (he got MAC adress like 00:00:00:00:00:00). Now i'm trying to find "adress" file in /sys/devices/virtual/net/eth0/ but nothing..
i flashed cm7 because i want to openvpn to make work beside from battery makes last...
now, can someone help me how to configure it?
thanks in advance guys...
Hi,
I've managed today to configure the openvpn client, and it's very simple.
First of all you have to pack client.crt, ca.crt and client.key into a single PKCS12 file. The command from linux to do this is :
openssl pkcs12 -export -in [PathToClientCert] -inkey [PathToClientKey] -certfile [PathToCACert] -name [FriendlyName] -out certs.p12
(Be sure to replace Path..... with appropriate path to your files)
If you don't have linux you should download openssl.exe , just google for it.
That file "certs.p12" you have to move to sdcard root and from the phone you should go to : Settings -> Location and Security and tap "Install from SD Card"
After importing the certificate you can go and create a new vpn connection
That's all
Also you should check carefully advanced options from openvpn gui by tapping "Menu -> Advanced settings"
faraonu said:
Hi,
I've managed today to configure the openvpn client, and it's very simple.
First of all you have to pack client.crt, ca.crt and client.key into a single PKCS12 file. The command from linux to do this is :
openssl pkcs12 -export -in [PathToClientCert] -inkey [PathToClientKey] -certfile [PathToCACert] -name [FriendlyName] -out certs.p12
(Be sure to replace Path..... with appropriate path to your files)
If you don't have linux you should download openssl.exe , just google for it.
That file "certs.p12" you have to move to sdcard root and from the phone you should go to : Settings -> Location and Security and tap "Install from SD Card"
After importing the certificate you can go and create a new vpn connection
That's all
Also you should check carefully advanced options from openvpn gui by tapping "Menu -> Advanced settings"
Click to expand...
Click to collapse
I'm trying to do this and when I try to import the .p12 file in Settings->Security, it says my password is wrong... I even used the same password for the export (the next thing it asks after you run that command) and the Android credential storage, so I couldn't confuse the two. What gives?
Since, I am rooted and I have several wifi password connected with it but later when I tried to see the pass from several wifi password apps and from the ES file explorer- data/misc/wifi- WPA_supplicant.conf it shows the long digit as password. Its in encrypted form and Now I am unable to read it out and connect to another device. Plz help me to decrypt or fix this issue!! Currently I am in Android 4.4.2 kitkat baseband XXUGNH6. -Thank you!!
I think it is impossible to decrypt passwords that are already stored in the wpa_supplicant.conf file. But you can edit your build.prop file (located in system folder) and change
Code:
ro.securestorage.support=true
to
Code:
ro.securestorage.support=false
Then reboot your device. By doing this, all stored passwords will be cleared and you will have to connect to Wi-Fi networks again. Therefore, you will be able to see passwords decrypted in your wpa_supplicant.conf file.
No sir! It didn't worked.. the password still SHOWING= 7a141b181315013c8684cbacfe71362d :'(
I tried it too. It didnt work.i have a galaxy j5 prime.
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