Is it possible? Are there any APIs for this? I'm thinking to create an ad blocker. I've seen one on Android market and it creates a virtual proxy. I wanted to see if the browser itself has something in place for scanning / detection / blocking? Thanks!
Related
Currently, I am using both Internet Explorer 10 (Metro) and Nightly(Desktop Application) (unofficial firefox 64-bit latest version). I love IE10 but the reason i stick to Nightly most of the time is because i can add custom addons - my favorite being Adblock. this is basically the only reason i use nightly. is there a similar adblock extension for IE10? if so, please instruct me on how to install it so i can just dedicate my entire internet usage to IE10. Additionally, is there any way that i can make the metro version of ie10 show up on the desktop?
Thanks
you know nightly just refers to nightly builds, not just specifically firefox. Nightly builds exist for many software packages.
Metro IE on desktop, thats what desktop IE is for, they are the same render engine, just altered UI and more plugin support on desktop I think.
There are several ad-blocking extensions for IE. a quick search on "ad block ie" turns up a few of them. Some of them use AdBlockPlus filter sets, so you can use the same filters you use in Firefox.
However, there's also IE's built-in Tracking Protection filter. While technically not intended first and foremost as an ad blocker, it does the job well enough. Several popular Tracking Protection Lists, or TPLs, are available. The maintainers of EasyList (probably the most popular ABP list) build their list as a TPL as well, and there are several others that are highly rated. TP isn't quite as feature-rish as a dedicated ad blocker - for example, it won't hide the space where the ad *would* have loaded, and while you can turn it off per-site, you can't turn it off per-element - but it's built in, fast, carries no risk of malware, and I believe it works in Metro mode (I wouldn't actually know; I have no use for such a crippled browser mode).
thanks
GoodDayToDie said:
There are several ad-blocking extensions for IE. a quick search on "ad block ie" turns up a few of them. Some of them use AdBlockPlus filter sets, so you can use the same filters you use in Firefox.
However, there's also IE's built-in Tracking Protection filter. While technically not intended first and foremost as an ad blocker, it does the job well enough. Several popular Tracking Protection Lists, or TPLs, are available. The maintainers of EasyList (probably the most popular ABP list) build their list as a TPL as well, and there are several others that are highly rated. TP isn't quite as feature-rish as a dedicated ad blocker - for example, it won't hide the space where the ad *would* have loaded, and while you can turn it off per-site, you can't turn it off per-element - but it's built in, fast, carries no risk of malware, and I believe it works in Metro mode (I wouldn't actually know; I have no use for such a crippled browser mode).
Click to expand...
Click to collapse
Thanks! I installed the Quero ie tpl to block ads and then on top of that i added the easylist tpl all ads are now blocked :good:
Hi,
I was wondering if anyone sets user age / gender in their ad requests. This supposed to improve ad targeting and eCPMs (for correct settings obviously). Has anyone tried it? Almost all networks I checked allow it.
S1Droid said:
Hi,
I was wondering if anyone sets user age / gender in their ad requests. This supposed to improve ad targeting and eCPMs (for correct settings obviously). Has anyone tried it? Almost all networks I checked allow it.
Click to expand...
Click to collapse
Which network do you use? I use age targeted ad requests, but nothing special do not noticed.
Hi everybody,
one main reason I am staying on Kitkat and not switching to Lollipop is that it runs on Art and thus Xposed is not working (yet). I want it mainly because of XPrivacy to block internet access for certain applications.
Because that's the main reason to have XPrivacy I searched for an easier way (and maybe built-in) way to block internet access.
I finally found some time to dig into the AOSP source code and investigate how the app ops are implemented. I will first describe my development process and then give the code. If you're only interested in code go to the end of this post.
I noticed that it is rather simple to add a new toggleable permission to the AppOpManager (additionally I discovered this commit).
Well, adding a new operation does nothing by itself. The framework has to check somewhere if it is allowed to perform a specific operation.
In my investigations I discovered that nearly* all requests for a network socket pass the class java.net.InetAddress, namely methods lookupHostByName(String, int) and getByAddress(String, byte[], int).
* I say here nearly because I was not able to intercept the internet connection of the stock AOSP browser (XPrivacy has the same problem btw).
java.net.InetAddress is part of the standard Java implementation (platform_libcore) and thus cannot access framework classes and methods. I solved the problem by creating an interface and a static field holding an instance of the interface. Now this field has to be initialized so the method of the interface can be called.
The next step was to find the proper place where that initialization should take place. I chose a static initializer of the android.content.Context class.
Reasoning: every application runs in its own context. So when creating the context for an app the static field will be initialized. Otherwise I sometimes run into NPEs.
I also wanted to have consistent behavior between getting the connectivity state and the actual ability for accessing the internet. So I also changed the com.android.server.ConnectivityService.getNetworkInfoForType(int) method to fake no connection available.
Overall these changes included modifications in three projects which you can find in my Github. As a base I took the stock AOSP code at android-5.0.0_r7 so it is as developed and generic as possible.
platform_packages_apps_settings:
add op for internet access
platform_frameworks_base:
add op for internet access
block internet access if not allowed
fake no connection if internet access is not permitted
platform_libcore:
add an hook into methods that correspond to internet connections
All code is tested and working fine for me.
I hope some rom developers will read this post and apply these changes to their roms .
If anyone has suggestions on improvements or how to block apps like the AOSP browser please comment.
how can i block any specific app from access internet in aosp and where i can find API for Requesting internet
I want to customize os, there How can i restrict specific applicaion from accessing internet .
Actually i want to know where i can set network policy rule so that i can restrict internet.
please let me know if anone having any suggestion.
NetworkPolicyManager
ConnectivityManager
Inetd
It is neccessary to implement in all these or in any one to restrict internet ?
anu10121998 said:
I want to customize os, there How can i restrict specific applicaion from accessing internet .
Actually i want to know where i can set network policy rule so that i can restrict internet.
please let me know if anone having any suggestion.
NetworkPolicyManager
ConnectivityManager
Inetd
It is neccessary to implement in all these or in any one to restrict internet ?
Click to expand...
Click to collapse
I am running A11, Bliss (And I think its also in A8 Oreo). If you go into Settings>Apps & Notification>"see all apps">"App Name">Mobile Data & WiFi>Allow network Access ==>OFF This has worked a treat for me. The only caveat is that for the first week, internet content was sometimes being displayed, from what I can only assume was a cache. After a week, its as I expect.
ie No coding required. Interesting that android explicitly blocks removing the internet permission (but not other permissions) via a root shell, but works fine using the even easier GUI
Hi is there any way to granularly control which app can access the net (wifi/data)? In particular the following things:
1. Allow data access
2. Allow wifi access
There seems to be a default option to do this in the Oneplus 3T.
But there's nothing like that on my LG V20.
I'd much rather not install any additional apps to do something an OS should automatically have user controls for, but if there's no other way, I'd have to install a firewall.
How can I integrate eg. Bromite as the default renderer for news items?
Always opening them in an external browser is annoying, yet I strongly detest the autoplay "feature" in the normal chrome browser. Installing an old version on chrome might fix the autoplay issue, but might also remove useful features (eg. tab groups) and possibly introduce security vulnerabilities.
I'd prefer non-root/non-flash solutions, but if such options don't exist, I'm also interested in root/alternative rom solutions.
Is there another subforum where this question is more likely to be answered?