Better HN
topnewbestaskshowjobs
Log inSign up

NotPractical

1,422 karma · joined May 19, 2020 (6y ago) · 451 submissions

Submissions

comment 4y ago · link · parent

Does this content really have a place on here?

comment 4y ago · link · parent

I agree. I want sandboxing technology that increases user control, not the other way around. I don't accept the trade-off you described and I don't think anyone else really wants to either, they're just forced to if they want to play the game. We shouldn't let this invasive kernel-level anti-cheat technology become normalized.

comment 4y ago · link · parent

I should rephrase: the user should have control over whether or not Riot is able to do stuff like this, and the operating system should enforce the user's decision.

comment 4y ago · link · parent

The operating system should not allow Riot to do stuff like this. Sandboxing on the desktop is badly needed. Flatpak may have its problems but it's probably the best effort so far.

comment 4y ago · link · parent

See also:

https://github.com/Anarios/return-youtube-dislike

https://wiki.archiveteam.org/index.php/YouTube#Removal_of_pu...

366.

YouTube-Dislikes Tracker(tracker.archiveteam.org ↗)

2 points · by NotPractical · 4y ago · 1 comment

comment 4y ago · link · parent

This project borrows some of the most important security/privacy features from GrapheneOS (verified boot, per-app internet permission toggles, sandboxed Play Services) while improving performance over the stock ROM and adding a few high-demand features (e.g. call recording), and it doesn't go overboard with tinfoil hat level hardening (which may come at the cost of reduced performance). It also has a friendlier-looking website and an easier-to-follow install guide than Graphene. Seems like an objective upgrade from the stock Pixel ROM to me, assuming the features work as advertised.

For the record, I personally only trust GrapheneOS at the moment and this is what I use on my phone. Additionally, Graphene's hardening currently has minimal impact on performance. App launch times used to be noticeably slower than the stock ROM, but this has been fixed. ProtonAOSP is still relatively new and has yet to establish trust within the community. But I wish them success and think it's great that there are more ROM options coming out with a focus on privacy/security (even if it's not the main focus, as with Proton). Hopefully they branch out to non-Google phones as well. (GrapheneOS and CalyxOS, the two most well-known privacy-focused ROMs, only support Google Pixels due to their consistently unlockable bootloaders, hardware security, and long-term firmware updates. While using a non-Pixel is probably a legitimate security downgrade in most cases, many people understandably refuse to purchase a Google phone... for privacy.)

368.

ProtonAOSP: Minimal Android fork(protonaosp.kdrag0n.dev ↗)

3 points · by NotPractical · 4y ago · 1 comment

comment 5y ago · link · parent

It's pleasant to see something like this on here mixed in with all the technical posts. Happy thanksgiving!

comment 5y ago · link · parent

There clearly is a need. It needs to be as easy as possible to switch away from Google, or developers won't do it. Additionally, an ecosystem where each developer is encouraged to go wild and implement their own notification system is not ideal. Sure, some of them will be competent enough not to deplete the user's battery within a few hours, but others will not be, and each individual app that does this contributes to battery drain in a tiny way, which adds up.

> Many platforms before Apple/Google worked like this

Mobile devices are an entirely different beast with strict battery life and data usage requirements.

Another factor to consider is that Android will kill long-running background apps unless you disable battery optimization for said apps through a convoluted process (even if you show a persistent notification). [1] It would be really inconvenient for users to have to manually disable battery optimization for every app that wants to send push notifications.

[1] https://github.com/gotify/android#disable-battery-optimizati...

comment 5y ago · link · parent

Restricting background apps by default is probably good. But Google didn't have to lock users in to their own service to provide a good push notification system on Android.

The correct solution here would have been a system-level, open source, provider-agnostic push notification API built into AOSP. The Web Push API is a great example of how a push API can be provider-agnostic: https://developer.mozilla.org/en-US/docs/Web/API/Push_API. It makes sense that push notifications should be consolidated to one provider -- this way, your device only needs to maintain one 24/7 TCP connection to a server which it receives all notifications from all apps through, rather than having each app run its own notification service in the background, killing your data and battery life.

Google's push service works by providing an HTTP endpoint to apps that they can use on the backend to deliver notifications. The Web Push API also works this way, but the returned endpoint can be for any provider. If you use Chrome, the domain will be `google.com`, but on Firefox, it's `mozilla.org`. But each provider's endpoint uses the same standardized API, so the backend doesn't have to care what the URL is. And this isn't a security risk, because everything sent through the service is encrypted.

This could have been done for Android, but that would have given Google much less control over the platform, so they decided to do it in a monopolistic way. This is one of the many ways Google aims to maintain their monopolistic control over "open source" Android. Another example is SafetyNet hardware-backed attestation.

Projects like GrapheneOS are really interesting because they are finally providing a real secure, private, de-Googled OS option, with excellent app compatibility thanks to sandboxed Play Services (which allows you to run Play Services without giving it root access to your device [1]). But will we ever be able to fully decouple Google from Android? I'm not sure. I expect most users of custom ROMs to continue installing Play Services on top of them for a long time, if they want something as basic as push notifications to work.

By the way, while I personally have qualms with Google, I believe users should have the choice to use Google apps, if they are comfortable with the inherit privacy risks. This belief is shared by the GrapheneOS developers. [2] My problem with Android is that it was not built to function without Play Services. Community projects that enable it to do so, like microG, will always be a cat-and-mouse game with Google. I think sandboxed Play Services is the most sane approach the problem of Play dependencies the community has come up with so far, but I think if we want real change to happen, we need to target app developers. Each developer has the choice of whether to include Google or not within their app. We just need to convince them that they don't need Google.

Google owns `developer.android.com` and points developers towards using Play Services APIs wherever possible. Perhaps the community should create their own open-source alternatives to the most commonly used APIs (e.g. push notifications) and developer documentation that provides instructions on how to switch from Google (ideally making the transition as easy as possible by emulating the Google API syntax). It would probably be possible to offer an installable platform-agnostic push notification API that developers can use. Providers could be installed as separate apps. Google could be one such provider. Perhaps we could implement a Web Push compatible API, and reverse engineer Chrome's Firebase integration to implement it as an option from the get-go, hoping other providers show up over time. We could perhaps allow users to self-host their push service as well. Modify Gotify, an open source self-hosted push server [3], to accept push notifications in the Web Push format.

In the hacker circles it seems there's two groups of people: those who think Android is a lost cause because it will always be controlled by Google, and think Linux phones are the only real alternative, and those who believe we can actually "steal" Android back from Google and make it into a true open source project. I fall into the latter, but I think a lot more work still needs to be done if we want to achieve this.

[1] https://grapheneos.org/usage#sandboxed-play-services

[2] https://grapheneos.org/features#features

> We aren't against users using Google services but it doesn't belong integrated into the OS in an invasive way. GrapheneOS won't take the shortcut of simply bundling a very incomplete and poorly secured third party reimplementation of Google services into the OS. That wouldn't ever be something users could rely upon. It will also always be chasing a moving target while offering poorer security than the real thing if the focus is on simply getting things working without great care for doing it robustly and securely.

[3] https://gotify.net

comment 5y ago · link · parent

Reading back through my comments, I'm realizing they come off as shilling for Google.

In my original top-level comment, I said "most" Android phones don't allow you to install a custom OS, which I still think is true, at least when talking about phones currently sold in the US. Google is a notable exception because they have a consistent track record of not impeding the user from installing a custom OS in any way. Every phone they've released has been easily unlockable, and their policy has always been that this doesn't void your warranty. OnePlus is another US brand that operates this way.

I was mostly just commenting on the sad state of industry that most vendors, if they don't completely disallow unlocking, at least put up various roadblocks to prevent most users from doing so. However, there are indeed good, non-Google options. GrapheneOS and CalyxOS currently only support Pixel phones due to their consistently unlockable bootloaders and security features, but hopefully they expand support to other phones. See the requirements for CalyxOS and GrapheneOS device support: https://calyxos.org/docs/guide/device-support#requirements-f... and https://grapheneos.org/faq#future-devices. LineageOS is not quite as secure but should still be perfectly adequate.

Giving money to Google might actually make it harder to de-Google your phone in the future, since they'll be throwing that money into developing """features""" like hardware-backed SafetyNet attestation.

You're right that from a different perspective (repair), Google phones actually offer you less control over your device than some of the competition. I don't think they've released a single phone with a replaceable battery, yet every phone Apple releases has one (though iOS will annoyingly warn you if you replace it yourself).

comment 5y ago · link · parent

Tragically, Google is gradually moving to hardware-backed attestation, which is nearly impossible to bypass in most cases: https://www.xda-developers.com/safetynet-hardware-attestatio...

SafetyNet is, of course, anti-user and unacceptable. Random developers on the Play Store have the audacity to demand that you use a Google-approved OS on your phone if you want to use their apps. But "Google-approved" just means "proprietary". For example, GrapheneOS is leaps and bounds more secure than any Samsung ROM, yet Samsung's ROMs are Google-approved, and GrapheneOS is not. Google also releases vanilla AOSP builds for Pixel phones without Google apps, but these are not "Google-approved" according to SafetyNet, either.

Besides, no corporation should get to influence what OS you choose to run on your device. As the user, you should make the decision whether to trust a custom OS or not on your own. That's how it works on PCs. You are warned of the risks at every stage of the process of installing a custom ROM, from the moment you enable "OEM unlocking" in developer settings. You're even greeted with a non-hideable warning to remind you that the OS is not OEM every bootup [1]. (I think this is good, by the way. It also protects those buying used phones, which is another silly argument I've heard in favor of SafetyNet. IMHO, if you continue using a phone that warns you every bootup that it's unsafe, you deserve to be hacked.)

Google says they're doing all this for the sake of user security, but I find it very suspicious that it also happens to make de-Googling your phone much harder (if you rely on apps that rely on SafetyNet, like most Android banking apps).

[1] https://source.android.com/security/images/boot_yellow1.png

comment 5y ago · link · parent

I pulled the OEM list from the source of the percentages that I cited. Also, I am not "complaining" about anything; I am simply sharing information. I can see how it could be interpreted this way, so if I could edit the comment, I would probably change it to something like "by the way, LG doesn't sell phones anymore".

Here's something else I said:

> most of the devices on that list are either old or not devices people actually want to use.

Since LG doesn't make phones anymore, all of their phones on the LineageOS list qualify as "old". This is what I was getting at; it doesn't matter much that they used to make some phones with unlockable bootloaders because they will soon be obsolete and the market share percentage will creep further and further down until it joins the "others".

comment 5y ago · link · parent

Can you please link to somewhere it says that OEMs can't prevent adb from disabling system apps? They obviously can't disable adb entirely (because it's useful to Android developers), but they can probably add restrictions on top of it.

comment 5y ago · link · parent

> Samsung

As I said, bootloader unlocking is not supported on any modern US Samsung phone with a Snapdragon SoC. [1] It is at least """nice""" that they allow unlocking the international models though. (Perhaps the EU legally requires this?)

> LG

The site you linked says this:

> we offer a method to unlock the bootloader on some of our devices

Looking at the list, we see that many LG phones are excluded for some reason. Also, LG doesn't sell phones anymore. [3]

> Lenovo/Motorola

That's nice, but unlocking the bootloader requires visiting this website, entering your serial number, and voiding your warranty, which means most people won't do it. Unlocking your Pixel phone's bootloader does not void the warranty, and all you have to do is enable "OEM unlocking" in developer options, rather than visit some website that tries its hardest to convince you that bootloader unlocking is scary and you shouldn't do it.

[1] https://forum.xda-developers.com/t/3902961/#post-78960111

(Spoiler alert: no, the US model S10 is not unlockable. [2])

[2] https://forum.xda-developers.com/t/4085447/#post-82345735

[3] https://arstechnica.com/gadgets/2021/04/after-a-decade-of-fa...

comment 5y ago · link · parent

That may be true, but most of the devices on that list are either old or not devices people actually want to use. Apple, Samsung, Lenovo (Motorola), and LG combined make up 94% of the market share in the US, while others make up only 6% [1]. Of these, only Motorola seems to allow bootloader unlocking. Samsung locks bootloaders on all US smartphones (though international versions reportedly aren't locked) and uses proprietary "download mode" instead of fastboot mode.

[1] https://www.counterpointresearch.com/us-market-smartphone-sh...

comment 5y ago · link · parent

Most of these devices don't "support" LineageOS though; rather, LineageOS supports them. As in, they are not designed to support custom OSes, but people make it work anyway through bootloader unlock exploits and other weird hacks, which may introduce security issues. Using hacks to install a custom open-source OS might be better than sticking with the proprietary one it came with, but ideally your device would natively support custom OSes.

comment 5y ago · link · parent

This is a step in the right direction for security/privacy, and I appreciate the effort, but ultimately you have no real control over your device if you are forced to use the proprietary OS that came with the phone. (Unfortunately this is the case with most Android phones, aside from the Google Pixel series, which allow custom versions of Android, like open-source GrapheneOS, to be installed.)

Fortunately, as of now, it seems most Android OEMs allow you to disable their bloatware with adb, but there's no reason they have to allow this, and they could easily block it with a software update.

380.

Removing Apple's "unable to verify genuine battery" warning [video](youtube.com ↗)

2 points · by NotPractical · 5y ago · discuss

381.

2021 MacBook Pro has a replaceable battery(ifixit.com ↗)

353 points · by NotPractical · 5y ago · 13 comments

comment 5y ago · link · parent

> I will continue to recommend those phones for most people (pending what they’re going to do with trying to incriminate you), but it’s not for me.

Why? Despite what Apple would have you believe, Pixel phones aren't "more complicated" than iPhones. They're just a little different. For example, I recently had to use an iPhone and the interface was difficult to use, coming from Android. Not because it was inherently confusing, but because I simply wasn't used to it. But I'm sure it would have only taken a few days to adjust.

comment 5y ago · link · parent

Precisely this.

I don't care what happens in the cloud. What bothers me is the precedent that Apple sets by shipping iOS with `scanPhotoForIllegalContent()` and `reportUserToPolice()` functions. This code is working against the user's interests. As of now, these functions only run on photos that have already been iCloud synced, and they only look for CSAM, but they could easily expand this later on by changing a few lines of code or adding to the hash database.

To be clear, I think CSAM is absolutely disgusting and I want those in possession of it to be prosecuted. But scanning local photos is crossing a line. (I'm sure they catch most pedos through server-side scanning already anyway.) Besides, the only reason Apple gets away with this is because iOS is closed source. If Google tried to pull this shit on a Pixel phone, you could just install a different ROM.

comment 5y ago · link · parent

It's extremely difficult (and risky) to replace the battery in any 2016+ MacBook Pro. In fact, it's so difficult, even Apple won't do it, so when you send a MBP in for a "battery replacement", they replace the entire top case instead of just the battery [1].

The Air models have different designs. As the other commenter pointed out, you're probably referring to the early 2017 Air, for which battery replacement is a breeze. The 2018+ Air has adhesive pull strips, making replacement relatively easy: https://www.ifixit.com/Guide/MacBook+Air+13%E2%80%9D+Retina+...

If Apple hasn't switched to adhesive pull strips for these models, it's very disingenuous to advertise that they were "Designed with the earth in mind" like this website says. The battery is the only "consumable" component in the laptop, so it's completely unacceptable for it not to be designed for replacement.

[1]

https://www.macrumors.com/2018/11/07/2018-macbook-air-batter...

> the battery can be individually replaced in the new MacBook Air [...] In all other MacBook and MacBook Pro models with a Retina display released since 2012, when a customer has required a battery replacement, Apple has replaced the entire top case enclosure, including the keyboard and trackpad.

This implies that (at least from 2016-2019) they were replacing the entire top case assembly in MBP.

comment 5y ago · link · parent

If there is a legal basis for this threat, I guess most browser extensions are at risk.

comment 5y ago · link · parent

iOS is probably not nearly as security-hardened as Graphene (or even plain AOSP). iOS relies mostly on "security through obscurity" rather than actual hardening. Apple hopes to maintain security by making the system so complicated and proprietary that it's difficult to understand, let alone find bugs in. Graphene/AOSP hopes to maintain security through real open-source improvements that can be independently verified. It's hard to find bugs there not because access to the sources are unavailable, but because there are usually less bugs in the first place. So, which approach is better? Well, critical exploits are discovered in iOS left and right, so that probably tells you something.

Also, I don't think it's fair to assume that Graphene is not playing some role in the slowness (though I don't believe most of the currently-implemented hardening is expected to create dramatic slowdown). Perhaps you should try running the stock ROM for a day or two (with the Google apps disabled in Settings, of course).

comment 5y ago · link · parent

I meant a permission to circumvent the W^X restriction.

> And it doesn't restrict any useful behavior. It does require some design burden to do properly, though, which not everyone is willing to do.

Do you know of any alternative approach to the gross APK packaging one? I would say it definitely restricts "useful behavior", unless you think Termux would be just as useful after API 29 compatibility were implemented (and I would disagree).

Besides, when thinking about implementing a security feature, the question "does this restrict behavior?" is important (and I think it does in this case), but not quite as relevant as the question "what actual extra security does this provide?", and I'm not quite sure how much extra security this provides.

Could someone provide a realistic attack scenario?

comment 5y ago · link · parent

If Tox ever wishes to target normal people (like Signal), this is completely unacceptable.
1
1213141516