wpa_supplicant file stores saved wifi data? - Motorola Photon 4G

On the HTC Evo 4G, the wpa_supplicant file is where the saved wifi passwords were.
On my rooted Photon, I've checked both
/etc/wpa_supplicant.conf
and
/system/etc/wpa_supplicant.conf
Both are like generic description files. Where is the actual updated one stored on the photon? Or is it a diff file?

Ah I had the wrong location..
It's in
data/misc/wifi/wpa_supplicant.conf

Related

[Q] How to use hosts file to block ads

Adfree seems to not working anymore and i saw you can redirect ads to pull up blank webpages and such but i am still confused on the whole process.
How do i correctly place a host file on my phone?
how do i add a specific address for ads to use?
ray5780 said:
Adfree seems to not working anymore and i saw you can redirect ads to pull up blank webpages and such but i am still confused on the whole process.
How do i correctly place a host file on my phone?
how do i add a specific address for ads to use?
Click to expand...
Click to collapse
Create a text file. Name it:
hosts
No extension.
Popoulate it like this:
127.0.0.0 www.someaddy.com
The first is the IP associated with the url that follows it. That specific IP refers to the localhost, or your phones IP. Thus preventing the add from showing up because the app thinks the add url is localhost.
Put the file on your sd card and use any file explorer to put it in: /etc
Set permissions as 644.
XDA thread is:
forum.xda-developers.com/showthread.php?t=509997
XDA Premium via GingerTh3ory
My host file if you wanted one to go off of https://gist.github.com/543651c8d3bb7992f2be
It's a compilation of various adhosts found from sites and ones I found on my own.
Some of them I got from here: http://pgl.yoyo.org/adservers
I use 0.0.0.0 instead of 127.0.0.1 because 0.0.0.0 is an invalid address and will kill ads faster instead of clogging up your loopback address and timing out. I used to use 127.0.0.1 but it isn't as fast if you try timing both.
Also, you can block ads the same way on linux PCs and osx (/etc/hosts) or on windows (/windows/system32/drivers/etc/hosts). Also works on linux based routers or aftermarket firmware, but it's a PITA to permanently on a router since it wipes /etc/host changes every reboot (but how many times do you reboot a router anyways). Doing it on a pc you no longer need adblock in your browser.
Also, if you copy over your existing list, you might want to change back the owner/group and permissions to what they were. The default owner/group is root and permissions were 644. You can do that via the command line (using chown/chgrp/chmod) or via something like root explorer.
yareally said:
I use 0.0.0.0 instead of 127.0.0.1 because 0.0.0.0 is an invalid address and will kill ads faster instead of clogging up your loopback address and timing out. I used to use 127.0.0.1 but it isn't as fast if you try timing both.
Click to expand...
Click to collapse
+1
Nice tip, I'll try it.
XDA Premium via GingerTh3ory
+1 very nice
Thanks for the tip
Thanks, alot + 1 for the both of you
I have a big list of hosts in the hosts file of /etc and I'm still getting ads now. Any advice?
Mustang302LX said:
I have a big list of hosts in the hosts file of /etc and I'm still getting ads now. Any advice?
Click to expand...
Click to collapse
which list? the one I gave that I use or yours?
it's the list of thousands and thousands from the adfree app. I'd think with the app being uninstalled the hosts file should still work. But I'll try your list now too.
So once I download the file I can just place it on my SD card and place it in the /etc folder replacing the current hosts file and all should be good?
Edit: I just did that and still have ads. *sigh* oh well I guess.
Might have to restart your phone. Generally you dont have to do something like that, but you might have to clear out your dns cache to have it work. You can test to see if it's working for sure by adding in your own made up host for something. For example, add the following to the host file:
74.125.225.80 my.test.url
then open up your web browser and type http://my.test.url
if it goes to google.com, your host file is blocking ads (74.125.225.80 is the url for google.com). Make sure the url is exactly like that, some browsers might want to attach .com or whatever to it.
EDIT: I also updated the list above too. https://gist.github.com/543651c8d3bb7992f2be
md5 sum: c5d52a08166ff912702414ce4188dab8
If I remember or someone reminds me, I'll push updates to it every now and then when I add to my list via git, since github is nice and lets you do that and continuously update the gist link.
Also if you're on windows and you copied that list there first, make sure you change the line endings to unix type. It wont work on your phone if you don't. Any decent editor will allow you to change it (something not notepad from microsoft). http://www.flos-freeware.ch/notepad2.html
I downloaded it to my mac to unzip the file. Then i placed it on my SD card and moved it to /etc overwriting the hosts file and changed the permissions. Have rebooted and all sorts of stuff. I didn't modify the file though on my mac though.
Mustang302LX said:
I downloaded it to my mac to unzip the file. Then i placed it on my SD card and moved it to /etc overwriting the hosts file and changed the permissions. Have rebooted and all sorts of stuff. I didn't modify the file though on my mac though.
Click to expand...
Click to collapse
Macs screw up line endings too with \r instead of \n. Might want to open it in a text editor that allows you to switch between line endings just to be sure. It might have overwrote them when downloading. The file size of it should be around ~607KB unzipped if it's correct. Something like textmate or maybe the built in text edit should have the ability http://macromates.com/
You can also doublecheck the file with md5sum. The unzipped file should be c5d52a08166ff912702414ce4188dab8
Had to come into work so no access to my computer till later tonight. I fixed my market issue by switching ROMs so I'll try this later. I originally downloaded the file to my phone but it was a zip file so I couldn't extract it. So I figured I'd extract on my computer and just transfer over but apparently that doesn't work lol. Thanks for putting up with my saeemingly idiodic questions!
No problem, lol. Just make sure the line endings are in unix (\n) format.
Added around 300 or so more adservers to the list just now.
https://gist.github.com/543651c8d3bb7992f2be
Anyone who finds anymore, feel free to post and I will add them
That list is more geared towards mobile, but I also have a more desktop geared list without the added mobile ad servers if anyone is interested.
I would imagine you started with or imported all the ones from MVPS.org? Considering it's probably the most common used hosts file resource on the interwebz although mainly for desktops.
http://winhelp2002.mvps.org/hosts.txt
Absolute_Zero said:
I would imagine you started with or imported all the ones from MVPS.org? Considering it's probably the most common used hosts file resource on the interwebz although mainly for desktops.
http://winhelp2002.mvps.org/hosts.txt
Click to expand...
Click to collapse
Not that particular site, but same concept. I used http://pgl.yoyo.org/adservers/ + ones ive added in the past 5 or so years. I'll do a sort -u on it and see if I have any missing though.
edit: that site seems to be having issues 503 error
My list for the desktop though:
https://gist.github.com/8b5325d5150977e28152
Added the list (removing any duplicates) given by absolute_zero from http://winhelp2002.mvps.org/hosts.txt
thanks!
https://gist.github.com/543651c8d3bb7992f2be (mobile host blocking)
https://gist.github.com/8b5325d5150977e28152 (desktop host blocking)
yareally said:
Added the list (removing any duplicates) given by absolute_zero from http://winhelp2002.mvps.org/hosts.txt
thanks!
https://gist.github.com/543651c8d3bb7992f2be (mobile host blocking)
https://gist.github.com/8b5325d5150977e28152 (desktop host blocking)
Click to expand...
Click to collapse
Thanks man. They should sticky this.
Sent from my HTC Thunderbolt
@yareally - Thanks for the kick ass host blocking, I have a question, How do I update host once a week. I mean, and I don't want copy and paste seems too much hassle for me.
Does the adfree app have ability add the url link to download from your website?

EVO 4g EPST

Does anyone know where I can find this or an EPST that has the ##775# (PRL changing code)?
Try this one
http://db.tt/amnZ960a
It's in a zip so you have to extract it. Then make a backup of your current epst apk with root explorer. Then c&p the extracted epst to /system folder and change permissions then reboot. Hopefully it works for you. If not let me know.
#Root-Hack_Mod*Always\

[Q] What files does android use to determine network location

Hi,
having problems with my phone not showing the right location in google maps and other apps, this only happens on the mobile network really and in new areas i goto.
It always fixes to one location i have never been to,
What files can i change or check for errors ? i have replaced the network location apk in the system/app directory with one that worked on my old phone, should i run and install this apk ??
Thanks
the ability to fetch location is hardcoded in apps and gps_config.xml so swap these
Thanks for the reply,
I have replaced all the gapp files,
The only gps config file i can find is in System/etc but is called gps.conf
What app files should be replaced ?
Thanks for the help
It looks like its picking up the wrong cell ID from the tower perhaps ??

Unwanted wpa_supplicant.conf overwrite on Android 5.*

On Android 4 I could alter the wpa_supplicant.conf file (WiFi configuration file), reboot the wifi and the WiFi driver would adopt the changes in wpa_supplicant.conf. In Android 5, however, it seems that each time I reboot the WiFi, the wpa_supplicant.conf file is restored to the configuration it had before closing down. So all the changes that I make in wpa_supplicant.conf are overwritten by something.
Who is restoring the wpa_supplicant.conf? And how can I disable that?
I browsed through the Android source code and saw indeed backup calls for wpa_supplicant.conf file in IWiFiManager, but I didn't get any wiser than that :s I understand that this could be good for security reasons, but I am testing WiFi connections and I don't have a need for this wpa_supplicant.conf auto backup...

Titanium Backup Multiple Profiles Help

If this is the wrong subforum please direct me to the correct one. I need to find out how to get to the profiles stored by TB in order to edit a specific file for each profile. Exmaple I have 3 profiles for one app. In that app I need to edit a preference.xml file for each profile. Switching to each profile via TB and then editing the file does NOT work for this. Im guess I need to find where TB actually stores the profile when inactive and edit the files there. I did a lot of searching but couldn't get the right keywords to find an answer.

Categories

Resources