strange hosts file in custom rom - Galaxy Tab Q&A, Help & Troubleshooting

i had overcome 1.4.2 rom and when i checked /etc/hosts file i saw many sites was pointed to localhost. now i am on stock rom and hosts file is clean. on custom rom i had common apps not sth weird.
why is it like that in custom rom ? is it a security feature or a security hole?
Sent from my GT-P1000 using XDA App

Those are primarily anti-spam and anti-ad corking.
Sites that are used to host ads and spam are aliased to localhost, so that they do not unsolicited incur network traffic (that is probably EXPENSIVE).

ok thank you
Sent from my GT-P1000 using XDA App

Related

Rocket rom v7 PROBLEM cant open 'adf. Ly' or google ads....

Hey guys i just flashed rocker rom v7 on my note and i am impressed with its performance but there is one big problem i cant open 'adf . ly' or google ads on my note..
Whenever i tried to get access in these sites it always shows web page note available and pages with Google ads it also shows the same thing in a small area
Its working fine on stock and cm9 so help me anyway to acess these sites
I used these browsers but nothing worked
Google default browser, google chrome, dolphin browser hd
Help me plsss
Here is a sceernshot of the error
Sent from my GT-N7000 using xda premium
Turn off any ad-blocking app if you are using one..
You can go into your root explorer and edit the 'hosts' file located at '/system/etc' folder and remove the adf . Ly entries in that file..also as suggested you can remove the adblocker app that you might have installed..but i would go with editing the hosts file cuz other annoying ads from apps r removed with that! hope this does it!!
Sent from my GT-N7000 using Tapatalk 2
I don't have any ad blocker app
And there is no adf . Ly in the system/etc
Sent from my GT-N7000 using xda premium
Its the "hosts" file that will be there in "/system/etc" which can comtain the 'adf . Ly' entries
Sent from my GT-N7000 using Tapatalk 2
Ok i found host file in system/etc but there is no entry about adf. Ly
I reflashed rocket rom v7 but the problem is still here
Sent from my GT-N7000 using xda premium
Odd...i read the changelog of rocketrom v7 n it says edited some system files for better performance...can u ask the dev what files under 'system' were edited which is causing this issue...n also try using a diff browser
Sent from my GT-N7000 using Tapatalk 2
Same problem with criskelo rom 10.1
Can't access adf. Ly
Sent from my GT-N7000 using xda premium
Finally found the solution
I just moved hosts file to any other location from system/etc
And now i can acess adf. Ly
Sent from my GT-N7000 using xda premium
Great info!!
Sent from my GT-N7000 using Tapatalk 2

Tablet cannot download any type of file?

First note that I am on official 4.0.4 USA rom (USA model) that is stock but rooted.
Downloads from any browser won't work (chrome/stock/firefox) but I can download off say Tapatalk or within apps. So long as the link isn't to a mirror (file sharing website) it seems that is has something to do with the "downloads" app. As if it won't accept downloading through that app. Anybody else have similar problema/found a solution.
Also if somebody doesn't mind posting the downloads app (for stock 4.0.4 p7310) and see if I can delete then install to see if that works.
Sent from my GT-P7310 using Tapatalk 2
Jameslepable said:
First note that I am on official 4.0.4 USA rom (USA model) that is stock but rooted.
Downloads from any browser won't work (chrome/stock/firefox) but I can download off say Tapatalk or within apps. So long as the link isn't to a mirror (file sharing website) it seems that is has something to do with the "downloads" app. As if it won't accept downloading through that app. Anybody else have similar problema/found a solution.
Also if somebody doesn't mind posting the downloads app (for stock 4.0.4 p7310) and see if I can delete then install to see if that works.
Sent from my GT-P7310 using Tapatalk 2
Click to expand...
Click to collapse
I once had that prob on a froyo rom on other device. Maybe the file u r dwding isnt supported by the device. I think dolphin browser can handle this bug. It has an external dwd manager.
Sent from my GT-P7300 using xda app-developers app
The files are there. It's just the Download app doesn't know that they are. Use a file explorer to look in /sdcard/Download
panpjp said:
I once had that prob on a froyo rom on other device. Maybe the file u r dwding isnt supported by the device. I think dolphin browser can handle this bug. It has an external dwd manager.
Sent from my GT-P7300 using xda app-developers app
Click to expand...
Click to collapse
boscorama said:
The files are there. It's just the Download app doesn't know that they are. Use a file explorer to look in /sdcard/Download
Click to expand...
Click to collapse
Thank you both for replying. After flashing a rom and still not being able to download stuff I done some cleaning up I my sdcard partion. I Found a "file" called downloads.txt. After deleting the file downloads can now happen. I believe the problem is caused but how Android manages downloads. As the was no directory for downloads it was trying to download items into /sdcard/downloads. As that directory was a file (not even sure how that one happened) and not a folder it would attempt then fail.
You should change. txt to the original file extension e.g. zip
Sent from my GT-P7300 using xda app-developers app

Ad Away not blocking ads on HTC One

Obviously most are aware Google Play have blocked any ad blocking apps but i had an apk. of AdAway from my Galaxy S3 so i installed it on my One but it does not appear to block all ads like it used to even when i manually update it and reboot there's always ads in certain apps, am i using an older version of this apk. or does anyone else have an alternative apk'. of any ad blocking app i could use, or is it something to do with the phone itself?
Cheers
unless you're running a modified kernel with the protection of /system partitions disabled, your host file gets replaced by default every time you reboot.
I've adblock 2.3 and it works fine, i don't have ads in apps
Which version do you have?
And see if you aren't running a custom kernel with /system partition protection disabled.
Have Trickdroid on my phone so I choose stock kernel as it's the most stable i believe, not ready to flash custom kernel yet as development is still in the early stages, running same version as above stated and not sure it blocks any ads, any other way around this without flashing a custom kernel?
Sent from my Nexus 7 using xda app-developers app
There's a mod that removes the protection from the stock kernel. It's in the development section.
gunnyman said:
unless you're running a modified kernel with the protection of /system partitions disabled, your host file gets replaced by default every time you reboot.
Click to expand...
Click to collapse
But only on full boot, no problem if you have fast boot enabled... Works fine for me without kernel mod in that basis
Only problem was I needed to install Ad away with titanium backup as it did not show up in the market for some reason
melando said:
But only on full boot, no problem if you have fast boot enabled... Works fine for me without kernel mod in that basis
Only problem was I needed to install Ad away with titanium backup as it did not show up in the market for some reason
Click to expand...
Click to collapse
As i mentioned in the OP Google play no longer allow apps like ad away and similar ad blocking apps, ridiculous but what can you do.
I actually don't have fastboot enabled, I'll do that now and try again and report back.
Sent from my Nexus 7 using xda app-developers app
gunnyman said:
There's a mod that removes the protection from the stock kernel. It's in the development section.
Click to expand...
Click to collapse
I'll keep this in mind cheers
Sent from my Nexus 7 using xda app-developers app
Ok enabling fastboot hasn't made any difference, rebooted and ads are still showing in apps.
@ gunnyman what's the name of this thing I need to look out for in development section, I'll give this a go.
Sent from my Nexus 7 using xda app-developers app
http://forum.xda-developers.com/showthread.php?t=2230341
gunnyman said:
http://forum.xda-developers.com/showthread.php?t=2230341
Click to expand...
Click to collapse
Cheers mate but i wouldn't be totally 100% confident doing this in case I ****ed up again I'll ask if this be incorporated into Trickdroid.
Sent from my Nexus 7 using xda app-developers app
Adaway working fine here on ARHD8.0. Get f-droid apk, install, search for adaway, install, profit.
Sent from my HTC One using xda app-developers app
Is your phone rooted??
Sent from my MiniPro using xda app-developers app
Had better luck with adblock plus than adaway, might want to try that instead.
This was one of the first things I installed (all of yesterday, when I got it).
First thing to note is that you don't have to reboot the phone, despite what the app says. Just activate it and go back to Home screen. In fact, a reboot, as noted above, will undo the effects of Ad-away.
I did notice that it seemed to disable itself at one point today, unless my phone rebooted at some point in my pocket without my knowledge, which would be disconcerting.
akshaykishorchauhan said:
Is your phone rooted??
Sent from my MiniPro using xda app-developers app
Click to expand...
Click to collapse
I'm not being smart mate but I've already said I'm running Trickdroid which is a custom ROM so figure it out for yourself :-\
Sent from my Nexus 7 using xda app-developers app
Orcworm said:
Had better luck with adblock plus than adaway, might want to try that instead.
Click to expand...
Click to collapse
Do you have an up to date apk. for that mate?
Sent from my Nexus 7 using xda app-developers app
I just checked the "help" information in my AdAway app, it sets out instructions for a workaround for HTC S-on devices i.e. how to move the hosts file to data and put a symlink in system...
Think this answers the question in the OP
Per post 12 you can currently get AdAway here either directly or by installing F-Droid market (alternative to Play store)
jonny68 said:
Do you have an up to date apk. for that mate?
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Aye you can grab it here:
https://adblockplus.org/downloads/adblockplusandroid-1.1.2.apk
If you're on stock ROM and don't want to use any kernel patch to make your /system partition writable, you can flash this little zip through recovery (e.g. CWM) http://forum.xda-developers.com/showthread.php?t=2327934. Does exactly the same as the app (blocking hosts through system's hosts file) but applied via recovery

What's the difference between odex and deodex

What is the main difference?
Sent from my HTCONE using xda premium
In short the odexed firmware is faster and supposedly more secure (usually a stock build). A deodexed one gives more modification, themeable, and found in most custom roms.
In terms of user experience deodexed ROMs are only slower on first boot, after which they are or seem the same speed as the former odexed version/source.
Sent from my HTCONE using Tapatalk 2
Thank you for the explanation
Sent from my HTCONE using xda premium
justin24 said:
What is the main difference?
Sent from my HTCONE using xda premium
Click to expand...
Click to collapse
It means that any apps in /system have an accompanying .odex file which includes integrity information about its corresponding package. This prevents these packages from being modified, which theoretically means that a factory reset/uninstallation of updates should always yield a known working app. Since themes and many customizations work by modifying the apks in /system, they'll fail the check against the corresponding .odex file and cause problems.

Different version of kernel modules

Hi!
What is libra.ko and librasdioif.ko?
If I flash different version of kernel, which doesn't have those files, will those kernel modules still working with the new kernel?
The above files you said are generated while compiling the zImage. These modules may be related to wireless connections.(As found in wireless folder)
They are specific for each device.
Sent from my GT-I9500 using XDA Free mobile app
Mandark52 said:
The above files you said are generated while compiling the zImage. These modules may be related to wireless connections.(As found in wireless folder)
They are specific for each device.
Sent from my GT-I9500 using XDA Free mobile app
Click to expand...
Click to collapse
And why librasdioif.ko is located in the extras folder?
The librasdioif.ko is tied to the SDIO's chipset
support for both the SDCard mechanism and wireless. So you can say that it responsible for SD card I/O and also plays part in the wireless.
Sent from my GT-I9500 using XDA Free mobile app
Mandark52 said:
The above files you said are generated while compiling the zImage. These modules may be related to wireless connections.(As found in wireless folder)
They are specific for each device.
Sent from my GT-I9500 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks. Those modules present on all ROMs I installed. I'm wondering if those modules will still be working on different kernel version.

Categories

Resources