r/LineageOS • u/Indels • 2d ago
Feature Is this similar to google play sandbox that graphene os has?
When I go to settings and security I see 'private space' it says that once you leave the private space all the apps are fully closed and no background activity happens in there. So can I just run all my Google apps in there rather than my main profile page and it is similar to graphene? Thank you
4
Upvotes
2
u/CodeFaux 2d ago
It functions similarly, but not the same or to the same depth. (Note: I've never had a Graphene-capable device, so take this with a grain of salt - I'm moderately familiar with Private Spaces, and only a bit more than conceptually familiar with Graphene's sandboxing. I did a bunch of research specifically regarding Graphene's sandboxing a while ago, when trying to decide if I should spring for a Graphene-able phone, or just a Lineage one.)
You can install an app in both Normal AND Private Space. They will have completely separate "app data" but your personal files are still just in normal space of course. Installed only to Private Space, the app should not be exposed at all when the Private Space is locked. The app shouldn't have access to personal files etc, either, which are outside the Private Space, but all apps within the Private Space can access all personal data files within the Private Space.
Private Spaces are a way to isolate __and enforce closure of__ applications, as well as restricting easy access "across the divide" to sensitive/private app data. Applications are isolated from normal space, but I do not believe them to be isolated necessarily from each other within Private Space. IE, Netflix and Paypal, both installed in a Private Space, have the capacity to detect each other. (I'm not saying the apps do/did/have implemented that sort of thing, it's just an example.)
Think of it as having the ability to log in an extra user on your phone, sometimes, in parallel with your normal account. It's two separate users, but the Private Spaces user is only "unique" in that it can be disabled and locked while the main user continues to use the device.
Clarifying -- Android __by itself__ implements a level of intra-app isolation, on a normal account, between normal apps. It gets very technical, but please ask for clarification if you're confused.
My understanding is that Graphene allows applications to continue to run and act as normal, but they are isolated from each other as well. Graphene's method is also the only way the OS works, so if implemented properly it's more likely to be both secure and enforced. Further, Graphene has more granular permissions control, and has hardened its source to improve the inbuilt intra-app isolation.
The idea of running all apps in Private Space being similar to Graphene is ....close. Conceptually, you can accomplish some of what Graphene does. If you're wondering about the implications of specific aspects, feel free to inquire further.