• Hacker News
  • new|
  • comments|
  • show|
  • ask|
  • jobs|
  • RKearney 48 minutes

    "Before installing, please turn off all anti-virus and firewall software."

  • hadi77ir 1 hours

    I wonder if a website using leaflet.js has better or worse performance in the said case. If it does better, then maybe the problem is on OsmAnd's side?

  • aucisson_masque 8 minutes

    What is the point of this hardening feature if you got to disable it ?

    You can tweak Android as much as you want, the OS was not made to be private nor secure. App developers will never check if it breaks the grapheneos memory allocating feature (amongst others) so by default you disable it.

    Anyway it also requires the app to be able to even run on a rom that doesn’t respect play integrity.

  • hajjamixcv2012 13 minutes

    [flagged]

  • Groxx 2 hours

    Huh. Yeah, it is noticeably faster on my 9a with that disabled. I wonder what they're doing differently...

    WalterGR 1 hours

    https://news.ycombinator.com/item?id=45358216

    Groxx 32 minutes

    I mean OsmAnd - other mapping apps don't slow down anywhere near this much.

    OSM-rendering apps are a fair bit more computationally-expensive than many apps, so I do expect them to show the allocator's cost more, but OsmAnd stands out quite starkly against every other app on my phone.

  • perching_aix 2 hours

    If you have two apps, both maps...

    > The reason behind it is the hardened memory allocator, which seems to create a significant overhead for Osmand. That might be because scrolling a map requires constant loading and discarding of data.

    ... is this really the right hunch, over e.g. the OpenStreetMaps app lacking in discipline with its heap allocations?

    himata4113 2 hours

    Seems unlikely, it's java so this is likely related to loading large amounts of objects and having the GC thrashing.

    RedComet 1 hours

    The core is C++ afaik.

    someonebaggy 14 minutes

    C++ memory allocator choice probably wouldn't affect Java code, which has its own heap algorithms.

  • negative_zero 2 hours

    Odd. Google Pixel 7 with GrapheneOS here. OsmAnd works perfectly fine for me without disabling any exploit protection options.

    BlackRabbit1 1 hours

    CoMaps behaves very very weirdly on GrapheneOS. Same with OrganicMaps.

    Osmand and GMaps are working fine.

    Waze is almost melting the poor thing. Beside of that working fine.

    subscribed 35 minutes

    Osmand and OrganicMaps work flawlessly for me. Waze on 6 (not pro), works better than on my 9 Pro.

    ThePowerOfFuet 1 hours

    I use Comaps daily on GrapheneOS on a Pixel 8 Pro and it works great.

    broodbucket 1 hours

    Waze works perfectly fine for me

    DuncanCoffee 1 hours

    Anyone writing about apps compatibility should specify if it's with or without the play services

    DaSHacka 1 hours

    Can you even run Waze/GMaps without Play services?

    worldsavior 44 minutes

    Yes.

    Shared404 18 minutes

    For more precision:

    Waze is fairly easy to run without play services. GMaps I haven't yet found a way to run, but also haven't looked in quite some time.

  • pjmlp 2 hours

    Maybe the actual solution is to improve, replace the application.

    mohamedkoubaa 2 hours

    There needs to be a wall of shame for apps that abuse hardware owned by users

    yjftsjthsd-h 2 hours

    How's it abusing anything? It's an Android app that works fine with the default Android memory allocator.

    perching_aix 2 hours

    That doesn't necessarily mean it isn't being abusive, just that said allocator tolerates it okay.

    pjmlp 2 hours

    The AOSP memory allocator is seldom the one used by OEMs.

    rpdillon 1 hours

    Really? They're not using Scudo? The hardened_malloc used in GrapheneOS has a bunch of performance issues that were trade-offs against security. Every other major android distribution uses scudo as far as I know. Which OEMs are you thinking of?

    Edit: Did some research after writing this? It appears that Samsung may be still using jemalloc, albeit a newer version than the one from the Android 11 days.

    izacus 2 hours

    Or maybe there's a reason why the mainline Android OEMs don't ship that allocator by default.

    pjmlp 2 hours

    Because they cut costs on hardware and not all ship MTE enabled ARMs.

    palata 1 hours

    Maybe... legacy?

    Groxx 2 hours

    The fairly obvious answer here is "OEMs don't care about security because very few people will pay for it, either with $ or time". Benchmaxxing sells better.

    izacus 1 hours

    That's trivially provable as false.

    nvme0n1p1 1 hours

    If so, I'd love to know which OEM you're thinking of who ships an Android distro more secure than GrapheneOS.

    izacus 1 hours

    Let's first start with y'all providing any proof that it was "benchmaxxing" that causes OEMs not to ship hardened allocators (and not - for example - breaking compatibility with users' software).

    And then we can move the goalposts to "more secure distro with GrapheneOS" which isn't part of the conversation until you dragged it out.

    nvme0n1p1 36 minutes

    If you're expecting some leaked internal document that says "priorities: 1. benchmarks, 2. security", no, that probably doesn't exist. But their priorities are revealed by their actions.

    GrapheneOS typically ships security updates within a day. But most of Samsung's phones get quarterly security updates[1]. There will never be a primary source with a Samsung insider saying "we're fine with our customers being vulnerable to widely exploited security bugs for the next 89 days, in order to save our massive corporation a few thousand dollars a month." But their priorities are revealed by their actions.

    If the statement "OEMs don't care about security" is trivially proven false, as you said, then you should be able to prove it trivially by naming even just a single OEM whose update cadence matches GrapheneOS's.

    [1]: https://security.samsungmobile.com/workScope.smsb

    Groxx 27 minutes

    Also look at their advertising. Endless "X% faster" mentions that often get significant visual space, but when was the last time you saw "security updates 7 days earlier" or "tagged memory for better safety"? Even a single mention of "security" on a phone's manufacturer page is uncommon, and that's usually just mentioning a normal Android feature, or something like Knox or Secure Folder and not "we made choices that make a common class of attacks much more difficult or impossible".

    The numbers aren't zero, certainly. Nor does it imply directly proportional levels of effort. But they are incredibly obviously given wholly different levels of attention on nearly all phones, by nearly all phone manufacturers.