News for hackers. Stuff that matters.
Re:Pi-hole – A black hole for Internet advertisements by JoshMnem on Monday March 13, 2017 @12:14PM (#13859108)
Google makes efforts to prevent ad-blocking:

- Google Chrome for mobile doesn't allow add-ons so you can't install ad-blockers. (You can install browser extensions with Firefox for Android.)

- Google Chrome uses a dark pattern where the address bar tends to send users to the Google search results page instead of to their final destination (compare the behavior with Firefox's). That means that even if you have an ad-blocker, many users are likely to click on Google ads on the way to the destination site, even if they are blocked on the destination site.

- Android doesn't provide fine-grained permissions control or root access, so users can't block ads.

- Some of their content is designed to coerce users to buy restricted Android-based content-consumption devices. For example, you can't buy movies on YouTube and watch them HD in Google Chrome (at least on my computer). You have to buy another computer that doesn't have root access (an Android device) in order to consume the videos in HD. Once you're on the restricted device, it's harder to block ads.

- Google introduces projects like AMP that try to convince webmasters to restrict their monetization options and make it easier to appify the WWW. AMP even serves your content from Google's servers. The more control of the content they have from server-to-eyeball, the more options they have for stopping ad-blockers (and the worse it is for open technology).

Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @01:26PM (#13860060)
> - Android doesn't provide fine-grained permissions control or root access, so users can't block ads.

One caveat here - Google devices are probably some of the most allowing of root access and full device ownership - easily unlocked bootloaders basically allow it to be a one button process.

Some manufacturers make you put your device on a shitlist with them before they'll give you a key to unlock the bootloader and root it - others, like Apple, won't allow you to at all.

Once you are rooted, you do have full ability to block everything and get fine-grained permission control via XPrivacy for example. Android devices are actually some of the best here mostly due to strong community support. You can't even get this control if you want it on many mobile devices these days.

Re:Pi-hole – A black hole for Internet advertisements by foodstances on Monday March 13, 2017 @01:57PM (#13860471)
And yet Apple introduced a first-class ad blocking mechanism into iOS that even works in 3rd party apps (using SFSafariViewController). There are dozens of ad blocking apps available on the App Store, which are much more accessible to the average user than having to root your device and install apps that have full root privileges.
Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @01:59PM (#13860490)
Yeah, that's definitely a step in the right direction, I certainly wouldn't say that Google does nothing to protect their interests in advertising - especially given their recent actions on the Chrome store with AdNauseum.

However, what I'm trying to get at is that, for example on iOS you still can't block in-app non-Safari ads at all. On Android you can do that if you want to, and a lot more, you can also block specific connections, block device-specific identifiers, APN lists, accelerometers, wake state, etc - it's a better compromise for someone concerned about privacy than other platforms even with this considered right now.

Re:Pi-hole – A black hole for Internet advertisements by toyonut on Monday March 13, 2017 @02:42PM (#13860960)
I would guess that is because Apple doesn't rely on advertising revenue. If they block some ads they just hurt revenue for their competitors.
Re:Pi-hole – A black hole for Internet advertisements by JoshMnem on Monday March 13, 2017 @01:42PM (#13860244)
I've never seen a way to root my phones without some risk of turning them into bricks. How would I quickly and safely get root access to a Galaxy Note III without risking the destruction of the device?
Re:Pi-hole – A black hole for Internet advertisements by cyphar on Monday March 13, 2017 @01:53PM (#13860410)
Samsung is an example of a manufacturer that doesn't make it easy. Oppo, One Plus and Google (LG) all have very easy to unlock bootloaders that have "official" instructions from the manufacturer (and it's two commands away).

Can you still brick it? Yes. Is it likely if you type the two commands as you're told to on the website? No.

Re:Pi-hole – A black hole for Internet advertisements by JoshMnem on Monday March 13, 2017 @04:32PM (#13862062)
Thanks, I will look into one of those phones when I replace the Galaxy Note.
Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @01:55PM (#13860434)
The Note 3 is not a Google-made device, it's made by Samsung. Google's own Nexus and Pixel devices allow it in a single button press, I'm unsure of other manufacturers except OnePlus which does the same as Google. As I said in my post, some devices are a lot better than others when it comes to this.

Also, bricking doesn't just happen, if you understand what you're doing you'll be fine. That "some risk" isn't random, it's in the case that you do something incredibly stupid. Get a custom recovery on there as soon as possible and you can pretty much recover anything.

Re:Pi-hole – A black hole for Internet advertisements by amadorbatista on Monday March 13, 2017 @06:26PM (#13863095)
This is simply not true. I've spent 3 years flashing and messing with my phone in many ways.I've hard bricked it only once. When it was updating my phone froze. I didn't do anything stupid. It simply froze and messed with all partitions. It's hard to fuck your phone but it's a possibility.
Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @09:48PM (#13864319)
Sorry, but "froze and messed with all partitions" makes it sound more like you fucked up and flashed the wrong rom or something - flashing an update should never mess with all partitions - only /system and /data really.
Re:Pi-hole – A black hole for Internet advertisements by JoshMnem on Monday March 13, 2017 @04:32PM (#13862058)
Thanks for the info. I will check out those devices when I replace this one.
Re:Pi-hole – A black hole for Internet advertisements by snaky on Tuesday March 14, 2017 @07:14AM (#13866517)
> Google devices are probably some of the most allowing of root access and full device ownership

Did you hear about SafetyNet? https://koz.io/inside-safetynet/

Re:Pi-hole – A black hole for Internet advertisements by problems on Tuesday March 14, 2017 @08:19AM (#13866861)
Someone else already commented on it, see that thread. It's trivially bypassed using current tools.
Re:Pi-hole – A black hole for Internet advertisements by kuschku on Monday March 13, 2017 @01:46PM (#13860312)
Not anymore.

On Android devices with unlocked bootloaders, a great amount of apps won't work.

Android Pay, Snapchat, Pokémon Go, etc.

Google has tried to fight rooting as much as possible.

Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @01:50PM (#13860360)
Use magisk or suhide and they'll work just fine. When you have access to the bootloader, there's nothing they can do to stop you - any attempt will ultimately be futile.
Re:Pi-hole – A black hole for Internet advertisements by kuschku on Monday March 13, 2017 @09:49PM (#13864322)
Actually, they now check a fuse on the device to verify if you unlocked the bootloader – if you have, on some devices, safetynet will fail.

So, yes, they can do something: blow fuses in the fucking system.

Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @10:23PM (#13864451)
From what I've seen, there are no actual cases of this in practice at least not on Google devices - Google devices don't even have such a fuse. Maybe some Samsung stuff - but that's an easy fix, don't buy from Samsung. Also, it does not fail SafetyNet even on those Samsung devices, just some Samsung-specific stuff.

From what I've seen the only mention of such fuses on Google devices is one that enables secure boot from factory and forces you to run the unlock command as I mentioned to reflash your bootloader - nothing to do with safetynet or anything similar.

Let me know if I'm missing a device which does actually do this. Yes, it's theoretically possible, but requires sufficient crypto hardware and protection to make it significant and it'd be a significant shift in direction for Google to go this route currently in my opinion.

Of course a full safetynet emulation that would spoof the check as a different device would also be an option... but it'd be a pretty big undertaking, but one which I'm sure would happen if this ever became a remotely significant threat.

Re:Pi-hole – A black hole for Internet advertisements by CannisterFlux on Monday March 13, 2017 @12:29PM (#13859303)
Here's another one I spotted recently:

- Android apps like YouTube and Google News use a built-in browser frame to show navigated-to web pages, rather than opening them in an external browser. The built-in frame uses Chrome tech, without add-ons. They used to allow you to open links by default in an external browser, but not any more.

Re:Pi-hole – A black hole for Internet advertisements by arthurfm on Monday March 13, 2017 @12:45PM (#13859524)
> The built-in frame uses Chrome tech, without add-ons

To block ads in Chrome Custom Tabs [1][2] you can either use Chromer [3] to change the custom tab provider to Brave [4] or use the article mode in Chromer.

[1] https://developer.chrome.com/multidevice/android/customtabs

[2] https://www.reddit.com/r/Android/comments/5ahlfq/dev_psa_chr...

[3] https://play.google.com/store/apps/details?id=arun.com.chrom...

[4] https://play.google.com/store/apps/details?id=com.brave.brow...

Re:Pi-hole – A black hole for Internet advertisements by retSava on Monday March 13, 2017 @02:22PM (#13860766)
Just a happy user and not affiliated, but Brave was a hallelujah-moment for me. Never got Firefox to be especially fluid, not even close to Chrome. But Brave, IIUC, takes Chromium and adds some adblocking. It's not perfect, and some ads makes its way in, but it removes quite a lot while still being very snappy. To the best of my knowledge and experience, I can really recommend it.

Now I just hope that Brave doesn't turn out to be too evil :S.

Re:Pi-hole – A black hole for Internet advertisements by ehsankia on Monday March 13, 2017 @12:54PM (#13859645)
That's for faster loading, and can be disabled.
Re:Pi-hole – A black hole for Internet advertisements by mintplant on Monday March 13, 2017 @02:08PM (#13860593)
How?
Re:Pi-hole – A black hole for Internet advertisements by ggoss on Monday March 13, 2017 @12:52PM (#13859613)
Ad-Away (installable via F-Droid if you are rooted) allows you to block ads at the hosts-file level, which will work in Chrome and in other apps that display ads.

Before anyone chews me out, as this effectively renders many free apps equivalent to their premium (ad-free) counterparts, I usually pay for said premium versions to compensate their developers.

Re:Pi-hole – A black hole for Internet advertisements by problems on Monday March 13, 2017 @01:18PM (#13859955)
The catch here is that it isn't as good - using uBlock in FF for Android for example will properly block all ad frames.

Using adaway or a pi-hole for that matter will not - they will only cause ad loading to fail (in some cases) - which sometimes results in frames showing errors on the page instead of a clean rendering of nothing with ad divs removed.

Personally I wind up using several methods - AdAway to kill most app ads, uBlock for web and Xposed to kill YouTube ads since the hosts-based methods seem to work rather poorly for them as their subdomains change all the time.

Re:Pi-hole – A black hole for Internet advertisements by majewsky on Monday March 13, 2017 @05:54PM (#13862814)
DNS-level blocking is, IMO, only a second line of defense. Nice to have for all those devices and applications where you cannot have a proper ad/tracking/malware blocker.
Re:Pi-hole – A black hole for Internet advertisements by literallycancer on Monday March 13, 2017 @02:08PM (#13860598)
>Xposed to kill YouTube ads since the hosts-based methods seem to work rather poorly for them as their subdomains change all the time.

That's weird, I didn't get any Youtube ads in quite a long time, and only use AdAway.

Re:Pi-hole – A black hole for Internet advertisements by dredmorbius on Monday March 13, 2017 @06:50PM (#13863278)
Belt ans suspenders.

Defense in depth.

Re:Pi-hole – A black hole for Internet advertisements by ehsankia on Monday March 13, 2017 @12:52PM (#13859610)
> You have to buy another computer that doesn't have root access.

It's called HDCP, and I believe it's a combination of your GPU, monitor and cable between it supporting it. Netflix and most other online streaming services do this too. It has nothing to do with root access.