GrapheneOS – When an app is slow
Thread
Loading the complete thread in the background. This saved snapshot is available now. Refresh
Unofficial Hacker News client; not affiliated with Y Combinator.
GrapheneOS – When an app is slow
Loading the complete thread in the background. This saved snapshot is available now. Refresh
Unofficial Hacker News client; not affiliated with Y Combinator.
perching_aix · · focus · HN ↗
> 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 · · focus · HN ↗
RedComet · · focus · HN ↗
grapheneos · · focus · HN ↗
The hardened_malloc configuration used by GrapheneOS is very security-oriented including using a quarantine for freed slab allocations and it could provide a toggle to use a more performance-oriented configuration for an app instead of only being able to use the default allocator instead.
someonebaggy · · focus · HN ↗
cnrcode · · focus · HN ↗
[dead]
grapheneos · · focus · HN ↗
grapheneos · · focus · HN ↗
pjmlp · · focus · HN ↗
mohamedkoubaa · · focus · HN ↗
yjftsjthsd-h · · focus · HN ↗
perching_aix · · focus · HN ↗
pjmlp · · focus · HN ↗
rpdillon · · focus · HN ↗
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.
grapheneos · · focus · HN ↗
rpdillon · · focus · HN ↗
izacus · · focus · HN ↗
Groxx · · focus · HN ↗
izacus · · focus · HN ↗
nvme0n1p1 · · focus · HN ↗
izacus · · focus · HN ↗
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 · · focus · HN ↗
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 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 statements "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]: <a href="https://security.samsungmobile.com/workScope.smsb" rel="nofollow">https://security.samsungmobile.com/workScope.smsb
Groxx · · focus · HN ↗
The numbers aren't zero, certainly. But they are incredibly obviously given wholly different levels of attention.
izacus · · focus · HN ↗
(I'll let you find the others yourself.)
How did you think Pixels got features GrapheneOS needs if the OEM wouldn't care about adding the Titan chip, modem APIs and all the other security features that are featured on pretty much every launch doc?
Cut the crap already.
Groxx · · focus · HN ↗
The only "secure" stuff I see in there is for local AI stuff, encrypted folders, and securely managing other devices. Nothing at all about hardware security or updates or anything that Google has been adding to Android (which imo they're fair to claim! but nearly none do).
iPhones are similar: <a href="https://www.apple.com/iphone-18-pro/" rel="nofollow">https://www.apple.com/iphone-18-pro/ they have a small card to see Apple's general privacy policy near the bottom, but other mentions are stuff on the level of "it supports WiFi with passwords".
While there's tons about AI, cameras, and speed. Because those sell better.
Which is far beyond "a trend" and approaching "a truism" for phone sales pages. I challenge you to show even a single large-market-share phone sales page that makes a device security claim (niche ones do! but they're niche). The very first one I visited demonstrated my point just fine, as did the second.
Pixels actually do make some claims ("7 years of updates", Titan chip, etc <a href="https://store.google.com/product/pixel_11_pro?hl=en-US" rel="nofollow">https://store.google.com/product/pixel_11_pro?hl=en-US) and Graphene routinely holds them up as the sole manufacturer doing a good job (now hopefully two manufacturers, for at least some products).
nvme0n1p1 · · focus · HN ↗
OEM = original equipment manufacturer
equipment = the phone you physically hold in your hand
The OS is software, not hardware. The OS vendor is not the OEM.
Yes, Android does a lot of security work. No, it doesn't automatically mean Samsung cares about security, just because one of Samsung's many dependencies cares about security.
pessimizer · · focus · HN ↗
Your trivially proving things can't involve asking other people to prove the opposite of things. You've instantly backed down.
> And then we can move the goalposts
Why? You haven't done anything except ask others to do things. You've moved the goalposts from trivially falsifiable, and started begging.
izacus · · focus · HN ↗
pjmlp · · focus · HN ↗
palata · · focus · HN ↗
grapheneos · · focus · HN ↗
negative_zero · · focus · HN ↗
BlackRabbit1 · · focus · HN ↗
Osmand and GMaps are working fine.
Waze is almost melting the poor thing. Beside of that working fine.
ThePowerOfFuet · · focus · HN ↗
broodbucket · · focus · HN ↗
DuncanCoffee · · focus · HN ↗
DaSHacka · · focus · HN ↗
worldsavior · · focus · HN ↗
Shared404 · · focus · HN ↗
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.
grapheneos · · focus · HN ↗
Shared404 · · focus · HN ↗
I haven't looked at anything shim related in quite a while and am not super familiar with the notification stack for Android, so if that's a stupid question I apologize.
DaSHacka · · focus · HN ↗
<a href="https://plexus.techlore.tech/apps?q=waze" rel="nofollow">https://plexus.techlore.tech/apps?q=waze
Nux · · focus · HN ↗
subscribed · · focus · HN ↗
pizzaiolo · · focus · HN ↗
gunalx · · focus · HN ↗
methuselah_in · · focus · HN ↗
archturtle · · focus · HN ↗
grapheneos · · focus · HN ↗
Self-Perfection · · focus · HN ↗
[deleted] · · focus · HN ↗
[deleted]
grapheneos · · focus · HN ↗
OsmAnd has a massive amount of legacy C++ code which hasn't been heavily tested with HWASan and MTE. It has a history of having many memory corruption bugs discovered and reported by GrapheneOS users. That's the exploit protections in GrapheneOS working as intended and it's why there are per-app compatibility toggles to work around apps which can't be used due to memory corruption during regular use. It would be better if apps had higher quality native code and didn't need us to provide compatibility toggles but that's the way things are. It's much worse on desktop operating systems.
Groxx · · focus · HN ↗
WalterGR · · focus · HN ↗
Groxx · · focus · HN ↗
grapheneos · · focus · HN ↗
hadi77ir · · focus · HN ↗
speedstyle · · focus · HN ↗
RKearney · · focus · HN ↗
grapheneos · · focus · HN ↗
hajjamixcv2012 · · focus · HN ↗
[dead]
aucisson_masque · · focus · HN ↗
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.
progval · · focus · HN ↗
epihelix · · focus · HN ↗
?? GrapheneOS does respect horrid play integrity (it provides basic integrity only).
Not that this has any bearing on how an app runs performance-wise.
aucisson_masque · · focus · HN ↗
Basic play integrity doesn’t mean much, more and more applications are requiring full play service integrity.
grapheneos · · focus · HN ↗
aucisson_masque · · focus · HN ↗
You just need one app, that you really like and that doesn’t run on grapheneos to make a user leave.
grapheneos · · focus · HN ↗
It doesn't have to be disabled. Most users are saying OsmAnd runs fine for them with the default of hardened_malloc being enabled. There was no need to disable the other hardening features. A subset of users are experiencing slow performance in the OpenGL rendering mode with hardened_malloc enabled. It's likely due to the implementation in the app doing something quite inefficient which hasn't yet been identified. The hardened_malloc configuration in GrapheneOS is heavily oriented to security and has more overhead than the lite configuration. We could offer a performance vs. security mode for it but it usually makes no major difference and has a toggle for any case it does.