I've edited my hosts file, with various different methods... signed flash, rooted copy, adb push, move, and EVERY time, it is a partial success. ALL of the hosts in the file successfully direct to 127.0.0.1 when I ping them from Terminal Emulator. They show as they should from nano. However, when I try any and all of them in any browser (Safari, Opera Mini, Dolphin HD), it connects fine to everything in the file!
One of the blocks are suggestqueries.google.com - Since I have no choice, I use this to block Google search suggestions from the YouTube application. This does its job in YouTube, but you guessed it, I can connect (and get redirected) in the browser perfectly.
"Anything" browser related to my hosts file are not working. Namely, the one I want to block the most is clients1.google.com. It's in there in the hosts file, and pings back to 127.0.0.1, but of course, the browsers redirect this to Google.co.uk, and picks up suggestions normally. The same goes for all of the sites in the file.
DroidWall wouldn't solve this issue either as I can only block applications, not hosts. I tried fixing permissions, changing APN maybe it would clear DNS cache I don't know?? (if it really makes any difference). Tried with and without Adfree with/without symlink. The behaviour does not change. If it pings back to 127.0.0.1 and works for all other applications, I don't think there is anything wrong with the file or its operation. Can someone please advise me why this is happening and how to solve it? I've spent about a week searching, editing, flashing and more searching.
So I take it nobody knows? Is it supposed to be like this?
Sent from my HTC Magic/Dream using XDA App
Related
I have SKTools, Total Commander, and Registry Key Editors.
I tried setting up file associations to open URL files, but it doesn't work. Only PIE opens the URL files by default.
Can I get the instructions to open URL files with Opera Browser?
Bump, please help me.
This is my 1st bump.
Bump, please help me.
This is my 2nd bump.
As far as I know you can set up thatparameters typing opera:config on your device
Hope it helped,
So do you mean the file associations parameters should be "opera:config"?
URL associations are set up by the app you're using.
if opera is defined as your default browser any url you'll open will automatically pop opera up.
Okay, I am using File Explorer and Total Commander. I want to Open .url files with Opera, it opens with PIE instead.
How do I open it?
What is a "default calendar"?
When I set URL file association for Total Commander, the link does not go online, instead it brings me to an error page. Under the URL box in Opera Browser, it would not show www.google.com, instead it would show something like: storage card/%mystuff/%20favorite links
So if I copied a google.com url into my phone storage card, I want to open it and GO ONLINE with Opera Browser NOT PIE. How do i do this?
PLEASE DOWNLOAD THE ATTACHMENT, SO YOU GUYS KNOW WHAT KIND OF FILE I AM TALKING ABOUT.
meant browser.. not calendar.
when you setup a default browser it will open up all urls in it... automatically
nir36 said:
meant browser.. not calendar.
when you setup a default browser it will open up all urls in it... automatically
Click to expand...
Click to collapse
I used Xperia Tweak to setup Opera Browser as my default browser, I still open google.url and it opens with PIE.
My basic file program is Total Commander.
BTW I am not talking about Microsoft Windows. I am talkin about Windows Mobile, and the phone I use is the Xperia X1.
Why is everyone giving me confusing answers. I'm getting more and more confused.
I have looked extremely hard for file associations for opera browser, and this is what i got:
http://forum.xda-developers.com/showthread.php?p=1714441
I do not use morthscript though, and I'm afraid digging into will cause me to factory reset my phone again, and I have rest my phone 10 times already.
Please, tell me if there is any other way to Open URLs via Opera Browser.
I have this program which i downloaded ages ago. I cant remember where i got it from, so im just uploading it myself. Just to clarify, this is NOT my program.
You know how on a pc, you can right click and select "Open with"?
Well, this cab brings that to pocket pc's
Hope it helps
Yeah this is exactly what I was looking for. The thread link from one of my posts also talks about "open with" method. But I don't want to use mortscript.
If your cab is not going to work, I guess I will give up searching for a solution.
Anyways thanks, you are my miracle!.
Here is an update:
Nope... it opens Opera Browser but than it doesn't go to the website (the same exact thing happens if I set file associations for Opera, and the same exact thing still happens if I use the registry editor to change association values, xperia tweak doesn't work, total commander built in file associations doesn't work, sk tools file associations doesn't work either).
I GIVE UP
Registry settings
Hi
Registry settings where file defaults are is:
Hot Key Classes Root.
In this directory there are hundreds (or more) keys relating to all the different file extensions that are associated with programmes, etc. You need to look for:
.htm
.html
htmfile
htmlfile
There may be others. Basically if these keys exist the values you're looking for are the ones with the browser executable listed in them, for example opera9.exe/operaL.exe, iexplore.exe.
I hope that helps
andrew-in-woking
poetryrocksalot said:
I have SKTools, Total Commander, and Registry Key Editors.
I tried setting up file associations to open URL files, but it doesn't work. Only PIE opens the URL files by default.
Can I get the instructions to open URL files with Opera Browser?
Click to expand...
Click to collapse
as i see it you ar not talking of .htm or .html files.
You are talking off .url File's
normaly (xp) they are handled by the protocol handler
in wm6.1 there is no such thing and it is directly handeled by iexplore
opera wil not handle these i gues
you need to find a app that reads the urlfile an launh the app with the correct parrameters
you also need this
\hkcr\http,URL Protocol,
\hkcr\http\shell\open\command, ,"\windows\operaL.exe" %1
\hkcr\https,URL Protocol,
\hkcr\https\shell\open\command, ,"\windows\operaL.exe" %1
or you can try http://sourceforge.net/projects/jzsmartmort
(I posted about this last night, but the message got lost in some backup snafu. So I'll post it again. Apologies if they both end up here.)
I hacked together a solution to this problem, and posted it at ppcgeeks.
http://forum.ppcgeeks.com/showthread.php?t=62816
It involves installing Mortscript, and having it handle passing the links to Opera. Seems to be working perfectly for me so far. Hopefully my instructions are not too convoluted. Enjoy.
*edit- For some reason, this thread got posted in Android Software and Hacking general instead of Android apps and games :-|
Hey everyone, its me again.
I have recently been using an app called Paw Server for Android. Though it may seem stupid, this app can really come in handy. The app itself is a utility for managing messages, contacts ect.. But what many people do not realise is that you can host your own website on it, wherever you go. Though this will only work over wifi, you can optionally do some port forwarding to make the site accessible over the internet.
To put a custom website on the server, do the following
1. Install PAW Server for android.
2. Mout your phone's SD-Card On your computer
3. This step has two options:
A Website:
Put your website files in /paw/html/ and make sure the index.html is in this directory. (If you need help creating a site, please visit http://cyanstatic.com)
A File explorer:
If creating a website is too much of a hassle, you can just put some files that you would like to access from your browser in /paw/html/. I Put a couple of songs and videos in the folder and had no trouble streaming the files to my browser.
4. Now open PAW and press the 'Start" Button.
Congratulations!
Your website/chosen files should now be accessible from your browser
i use swiftp, does pretty much that, though it is dedicates to do so, so i think it's a bit more comfortable
This is a great tool
Will give it a shot
doenis said:
i use swiftp, does pretty much that, though it is dedicates to do so, so i think it's a bit more comfortable
Click to expand...
Click to collapse
Really? So can swiftp run a web server or just file services?
Wow amazing!
Sent from my HTC Vision using XDA App
I used PAW Server to host a WIKI on my Nexus One
I used PAW Server to host a WIKI on my Nexus One....
And it almost worked!
tiddlywiki (google it, I'm new and can't do links) is a one page wiki written in, I can't really tell because the tiddlywiki page doesn't do much about talking about how it works.
But PAW serves the pages, and some of the read/browse functions seem to work -- but I was unable to figure out how to edit a page -- and that could just be my fault.
And installing the wiki was pretty easy. I downloaded the zip file to my pc, moved it into my dropbox directory, unpacked it into a directory called wiki, and then on my phone, I synced drop box, and I moved the wiki directory into the paws/html directory. And it served up the page just fine.
But I couldn't edit it.
Why does it ask for permissions to everything? ie Camera, Vibrate, etc....
This maybe unintentional with the manifest, but it looks awfully rogue when programs look for permission to things they don't use.
Very cool thanks for the share! Tough it doesn't make much sense serving via mobile, but i might give it a shot and see if I can use some DNS servers too, starting with dyndns.org
Check out Wifi Remote Access for Windows Mobile: You can do the same thing, but it also comes with a whole range of other stuff.
To edit it, you just need to go into program file, and add a folder inside public (I think) with all your website files. Then change Wifi Remote Access's default.html to redirect you there,instead of to /fs/
mik101 said:
Why does it ask for permissions to everything? ie Camera, Vibrate, etc....
This maybe unintentional with the manifest, but it looks awfully rogue when programs look for permission to things they don't use.
Click to expand...
Click to collapse
This is because it comes with a site on it for managing your phone, like take pictures from the browser and send sms.
With the server it is also possible to develop web applications that use the Android API.
That's also a reason (apart from the web interface mentioned by GlobaL_TroTTer) why there are so many permission requested.
Great find! This is going to be very beneficial to me if I ever misplace my phone around the house or at school. It also has several features that are invaluable IMHO.
Great App - but not working on Verizon network
PAW Server is a real gem... it works great in a LAN/WiFi environment.
Unfortunately, it appears that Verizon Wireless doesn't route ANY traffic that is not initiated by the phone/user.
So thi nice little personal web server is unreachable over the air.
Same for Telnet, FTP, etc.
If anyone has a working app (on a Verizon network) - reachable FROM the net - please let me know!!
Android Port Forward?
GlobaL_TroTTer said:
*Though this will only work over wifi, you can optionally do some port forwarding to make the site accessible over the internet.
Click to expand...
Click to collapse
I'm trying to access the server without connecting through wifi. Is this even possible?
Thanks
I've played around with PAW Server. I like the PHP Plugin. I created an offline UPC scanner web app (for retail inventory) in PHP/JS/WebSQL which synched with a remote server. It eventually turned into a Phonegap app.
Directory Permissions
Does anyone have a link to some documentation regarding "Directory Protection" part of PAW?
It mentioned that granting permissions to certain folders must follow the following format
relative-directory:auth-type:realm:users
with a sample of
/test:basic:Test Real:user
But I don't know what auth-types are available. I'd like to grant a certain folder read permissions to everybody.
I just have to say that setting up my own website with PAW was super easy (10 easy steps):
1) Install PAW and start up server: google PAW android
2) Find external IP: google "what's my IP"
3) Go to router (192.168.0.1 or 192.168.1.1 ) and enable port forwarding to your android for the port you used.
4) Set up PHP: Use browser to hit server(192.168.1.?), sign in, go to add-ons, setup PHP, transfer unzipped folder to /sdcard/paw/html/app/plugins/ and restart PAW server
5) create file (mypage.php) with contents(<html><head></head><body><?php echo '<p>Hello World again</p>'; ?> </body></html>) and place it in /sdcard/paw/html/app/
6) Navigate to [myexternalIP]:[myport]/app/mypage.php (note requires login) Unless you changed the port number it defaults to 8080
7) Register for a free domain: no-ip.com
8) Modify host to have "Port 80 Redirect" to the port you configured (typically 8080)
9) Fix permissions on certain folders so joe blow can hit my server <---- How to do this part????
10) Profit!
Hey all, I'm new here, so I have no idea where to put this, but seeing as it's a question, I figured I'd post it in the Q&A section.
Anyway, I'm on an OPO running CM12 Nightly. The hosts file in /system/etc currently looks like this:
Code:
#127.0.0.1 localhost
#127.177.199.14android.clients.google.com
#127.80.226.156android.clients.google.com
#127.30.171.189android.clients.google.com
#127.30.171.189android.clients.google.com
#127.30.171.189android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#74.125.93.113android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
Initially there were no hashtags and the hosts file ended after the second line. However, I twiddled around a bit and figured out that putting a hashtag before the first line allowed me to sync my google account via settings>accounts (it didn't work before).
I discovered that my Snapchat didn't load anything every time someone sent something to me. An initial fix was uninstalling and reinstalling, but this became too much of a hassle. Sure enough, I checked the hosts file, added a hashtag to the second line (android.clients.google.com) and my problem was gone. I could load things from Snapchat again.
Now every time someone Snapchats me anything at all, the hosts file adds another line of code which will always end with "android.clients.google.com" that never fails to somehow block my connection to Snapchat servers and prevent me from loading things. Has anyone got a permanent fix for this?
P.S. I don't actually quite understand what the hosts file does, nor what the hashtags do.
Would love a answer too, as i am now trying to learn all about host blocking on android.
My friend, I am also having this problem.
I use AdAway blocker, downloaded by F-Droid store.
My problem started when updated to Android 5.0, which after a few days began to block snapchat and also access to the YouTube App.
When I delete all the apps Hosts file back to function normally, but after a short time he stopped again, and when I look at the file hosts it's already written some link again.
I do not know what else to do.
Already I uninstalled AdAway correctly and not solved.
Already deleted the hosts file and also to no avail.
Already I reinstalled the affected apps and the preblema still continues.
I wanted to find out what you're writing these links in my hosts file and why they are being blocked, even without the intalled AdAway.
Usually the link is like this: 127.191.186.155 android.clients.google.com
127.19.191.27 android.clients.google.com
My phone is a Samsung Galaxy S5 (Brazil) Android 5.0 ROOT.
I wait for a light to someone who can help solve!
Thanks.
zm8x87 said:
Hey all, I'm new here, so I have no idea where to put this, but seeing as it's a question, I figured I'd post it in the Q&A section.
Anyway, I'm on an OPO running CM12 Nightly. The hosts file in /system/etc currently looks like this:
Code:
#127.0.0.1 localhost
#127.177.199.14android.clients.google.com
#127.80.226.156android.clients.google.com
#127.30.171.189android.clients.google.com
#127.30.171.189android.clients.google.com
#127.30.171.189android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#74.125.93.113android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
#127.58.225.170android.clients.google.com
Initially there were no hashtags and the hosts file ended after the second line. However, I twiddled around a bit and figured out that putting a hashtag before the first line allowed me to sync my google account via settings>accounts (it didn't work before).
I discovered that my Snapchat didn't load anything every time someone sent something to me. An initial fix was uninstalling and reinstalling, but this became too much of a hassle. Sure enough, I checked the hosts file, added a hashtag to the second line (android.clients.google.com) and my problem was gone. I could load things from Snapchat again.
Now every time someone Snapchats me anything at all, the hosts file adds another line of code which will always end with "android.clients.google.com" that never fails to somehow block my connection to Snapchat servers and prevent me from loading things. Has anyone got a permanent fix for this?
P.S. I don't actually quite understand what the hosts file does, nor what the hashtags do.
Click to expand...
Click to collapse
Try setting permissions of the hosts file so that it can't be edited.
Make sure the do a nandroid.
I keep experiencing mysterious, extensionless files that appear in my downloads folder. Sometimes one, sometimes more. I have confirmed that they only appear after I open the Snapchat app, even for just a brief second.
When I open the files as text I get random Chinese characters that don't seem to want to be decoded.
What are these files? And how do I remove them for good? I can hide them, but they reappear under different names.
Is there any way to either
A) prevent an app from creating files in the download folder
B) change the directory where Snapchat creates these files
C) stop Snapchat from making these files altogether
I am using Snapchat Beta on an unrooted Droid Turbo 5.1
SOLUTION: Using es file explorer, I highlighted the unwanted files and selected Menu > Hide. They're gone now and they don't seem to be coming back even though I've been using Snapchat numerous times per day. Still, if anyone knows why these files exist, how to get rid of them, or how to prevent an app from creating a file like this in the first place, this information would be appreciated.
Thx bruhs
It may very well be spyware, like the one at mspy dot com, or a government spyware app distributed via Snapchat.
Based on the file sizes people are reporting and the way it changes, I'd say this file in particular is probably an encrypted log file for a key logger. That is: It is everything you've typed, and it's sent to the one who's spying on your phone activity.
Hint: Hiding the file won't solve the problem (for the person who's being spied on anyway...).
I am trying to mod a game so that the game doesn't block a vpn. I have looked at the dex files and I think the vpn block has something to do with a firebase file because the file was not there before the vpn and it appears in the versions after. I have looked at the files and have found discussions of vpn in a nimble folder, but when I replace the new nimble files with old ones to try to make it not detect vpn, it always still blocks vpn. Can anybody help me?