I think one the biggest sells, especially for these custom rom’s is privacy to be honest. I don’t really trust Google or Apple with the data they probably collect. During COVID parents were being reported to law enforcement for CSAM when sending pictures of there kids medical issues to doctors(Archive Link).
One I guess could argue that sure shit happens when it comes to that scenario, but with the political climate in America combined with the fact that some of the largest tech companies seem to be kowtowing to whatever the current administration is doing, probably makes a lot of people rethink privacy and to find alternatives.
Degoogled android has way more potential from what I can tell. Android has a solid ecosystem of apps while protecting security and privacy. Google is the core problem. Why throw away years of work on AOSP and F-droid.
Since the original user doesn’t actually know the answer to the question asked, its because
Mobile Linux doesn’t support any sort of verified boot like android does, leaving it open to evil maid attacks
Mobile Linux doesn’t sandbox applications as well as android, leaving it open to spyware (Think Facebook intercepting Snapchat DMs, not old school steal your credit card spyware)
and I feel like there’s a third major big thing but I can’t recall it at the moment. Android’s security model is genuinely one of the most secure out of any modern operating system. I’m all for Linux phones, but they need to prioritize parity with Android security before I daily drive one.
I mean if you want to get technical, KitKat (4.4 in 2013) introduced verified boot. So from Android 1 to 4.4, it took about 5 years. I believe some form of sandboxing has always existed in Android, but the earliest version I can find online was in Android 5.
I feel like with the backing of Google, they were able to implement such tight security in their mobile OS without much pushback. Mobile Linux in it current state is entirely hobbyists with very few daily drivers. Unless someone can release some stunning Linux mobile hardware that a lot more enthusiasts buy I don’t think we will see any sort of major progression in mobile Linux for some time, as the current method most mobile Linux uses is replacing the bootloader on the phone with an open source implementation which takes a lot of man power to achieve, and it would take even more to make it secure.
I would absolutely love to be proven wrong about the time frame however. The sooner secure Linux phones hit the market, the better the world will be.
Didn’t know/remember about KitKat verified boot, but the sandboxing thing was prob just to kernel & perhaps some system files, def not user or hardware such as cameras. Including between apps & phone contacts, etc.
And I totally agree about lack of Linux phones (as hardware), the phone market with its size & megacorp subsidies to preinstall spybloatware is a giant hurdle.
And the real reason for closed sauce drivers (as a practice, not as if they should open-sauce old hardware now - that’s a security risk for unsuspecting folk & iot … but we could def transition the practice).
I’m not really sure what about the sandboxing makes it difficult to use. Most of the permissions are switches you can just toggle on or off. You can also root phones that run custom Roms (which are the only phones that are worth a damn IMHO) if you really want access to the entire fs.
You’re more than welcome to use a less secure system, but most people would generally prefer a secure one.
The mobile linux tends to leave root access enabled plus it doesn’t sandbox apps in the same way as Android. If you visit a web page that manages to exploit your web browser all bets are off since lateral movement is trivial inside the OS.
Android on the other hand has strong sandboxing and permission control which means that a compromise in one place shouldn’t be able to jump to other places. Android also restricts filesystem access so even if an app is compromised it is difficult to maintain persistence.
Phones has lots of sensors and are great for tracking people. I would rather that my phones OS be extremely secure so that I’m not the victim of spyware.
There’s no “mobile Linux”. Linux supports Secure Boot just fine, and if a distro wants to sandbox applications that too is done by just configuring Linux to do so (after all, that’s what Android does).
Linux doesn’t have the same permission controls. SElinux profiles would need to be manually configured for each app which would take a lot of time.
Mobile linux also doesn’t support measured boot which is what is used to protect the system in the case of theft. Before I consider mobile Linux it would be nice if there was a detailed security review of the entire system.
You’re talking about specific distros as if they’re some specific variant of Linux. That’s not how it works. Linux is Linux, and if you want to sign your Ubuntu Touch image please go ahead.
Find me a phone that supports secure boot (which is not the same as verified boot btw), and a distro that will run on that phone that properly sandboxes applications (Flatpak does not count, as there are still many security flaws and missing xdg-portals in its implementation.)
Why? That has nothing to do with the topic we’re discussing. You can configure Linux as Android does it, or choose not to.
(Secure Boot is what enables “Verified boot” - which is just Android’s name for a common sense secure boot loader implementation which is the norm in well protected IoT systems etc)
/ex Sony Mobile dev, nowadays IoT hw/fw ethical hacker
Android boots in layers that are encrypted with different keys. The first key in the TPM enlocks the base OS up to the lock screen. From there a pin is entered and the rest of the system is decrypted.
If a compromise happened in the OS the phone would just fail to boot since the integrity of the system is validated by the TPM.
Linux security on phones is not equivalent due to these factors
but Linux supports these things which are either not exact equivalents or would take an entire Dev team with full time funding to do
Can you find me a phone & OS that meets those requirements
Why? that has nothing to do with the topic of Linux security on phones?
are you being serious with me right now? what about my question wasn’t “on topic”? If the hardware and software don’t exist, its not going to happen and you’re making a hypothetical argument to a factual statement.
I would love some more open hardware. I think it is possible for it to happen as long as there is a market for it. The difficult part is getting a 5G chipset that isn’t completely tied to a vendor kernel.
Linux does not suck on phones regarding security. Linux is what brings the security mechanisms faulty ascribed to as being “Android’s”. See previous posters claiming it was all “extensive modifications” by Android and not just Linux security mechanisms.
Feel free to get a Fairphone 4, sign your Ubuntu Touch image with keys supported by the chipset and off you go. The fact that no one is selling you that has no relevance whatsoever to whether “Linux” supports it.
One thing Google seems to be able to do right is security. Android has a strong security architecture that is highly robust. You can straight up download malware or lose your phone and everything stays safe.
I’m not saying it would be impossible to create a OS that is as secure as Android. However, it would take some very serious work and would likely mean building something from scratch with APIs for permission requests.
Linux phones tend to just be the desktop versions of desktops adapted for a smaller screen.
Android has well built ecosystem with strong privacy and security features not really found anywhere else. The entire system focuses on least privilege with strong security isolation so even if you do download something bad it will have a hard time doing real damage.
Errrrmmmm I think this is just an issue either with your choice of distro or your approach to security.
The Linux ecosystem has by far some of the greatest security technologies available for modern operating systems. Android is a Linux distribution after all.
Most of the issues with Linux on a phone so far is more the hardware and architecture to support and integrate the hardware.
Major mobile device manufacturers have secure enclaves, cryptographic co-processors, advanced face/depth cameras, fingerprint readers, etc. The system architecture needs to be tailored to the hardware and security architecture for the threat models mobile devices face that you want to mitigate.
iOS is Unix deep under the hood, Android is Linux deep under the hood. The issues here aren’t with the kernels, they’re with userspace, hardware selection, and perhaps the odd supporting driver, service, or interface.
Current Linux doesn’t come close to Android. I wish it did but you still need root access and permission controls leave something to be desired. I think that is mostly fine for desktop but on mobile the stakes are much higher since spyware could have much more access.
I’m not trying to be rude but none of these points are true. I imagine you’re confusing a single Linux distribution and their architecture with being representative of Linux as a whole. You can indeed spin an unprivileged, immutable distribution with SELinux for MAC, hardened kernel, and so much more, which would blow Android et al out of the water.
I’m basing this all on the Android documentation along with my experience on desktop Linux. I would love if there was a Linux system that was as solid as Android but I haven’t seen anything as of yet.
Build it. Gentoo, Arch, and any other minimalist distro where there’s less userspace fluff out of the box can easily be configured to be incredibly hardened.
Your looking for a desktop distribution that doesn’t really exist out of the box (perhaps Qubes). Android is a mobile OS for a reason and has a different architecture in userspace to accommodate for is threat model and use cases.
Just because desktop distros don’t typically lock down userspace out of the box doesn’t mean it’s not possible.
No specific sources as this is just generic Linux. Just look up hardening guides for various distros like Arch etc.
I’ve looked at a couple linux phones and those tend to be designed with hardware switches for antennas and cameras, which I would argue are more secure
“uses regular Linux security mechanisms” is true regardless of whether any distributions you use configure them the same way or not.
The Android platform takes advantage of the Linux user-based protection to identify and isolate app resources.
As part of the Android security model, Android uses Security-Enhanced Linux (SELinux) to enforce mandatory access control (MAC) over all processes, even processes running with root or superuser privileges (Linux capabilities).
Flatpak has promise but the sandbox much weaker than Android. I wouldn’t run anything untrusted with it as sandbox escapes are likely possible. Bubblewrap is highly portable at the cost of being less secure. Kernel level sandboxing such as SElinux and Namespaces are much more bulletproof since they leverage the kernel.
Honestly if you are building something from the ground up I would instead focus on virtualization since the Linux kernel isn’t exactly free of security issues.
Android has very strong security sandboxing and tight permission control. It also tracks the integrity of the system so it is very hard to tamper with the boot process. Everything is encrypted and the entire system is very hard to break into even with physical access.
Android is really impressive if you dig into the bolts. While I would love to see something on Linux do something similar I haven’t seen any OS come close.
One thing that is neglected with android vs Linux is the application style. Mainstream Linux distros direct compile from source, this means users can read the source code and report any malicious code which has happened, with incredible speed. We don’t have that with androids APK files, therefore android needs a much more robust security system. There are other reasons too, like google opening its flood gates to banking apps, if Linux is ever even semi successful (I doubt it will out compete apples or google) in mobile os, banking and high security commercial services will be relegated to the browser.
This is a frankly a bad take. Just because something is foss doesn’t mean that it can’t poss a risk. Software tends to have security vulnerabilities and supply chain attacks. From a security perspective you want to follow best practices such as least privilege and defense in depth. Blinding trusting software is not a good idea regardless of the source.
Linux sucks on ones especially from a security and usability perspective
Edit: For those down voting, what OS do you use on your phone? Everything I’ve tried has left a lot to be desired.
Linux runs on like 99% of the servers that power the internet, and can do so rather securely.
Maybe try that again.
A server isn’t a mobile phone though
I think one the biggest sells, especially for these custom rom’s is privacy to be honest. I don’t really trust Google or Apple with the data they probably collect. During COVID parents were being reported to law enforcement for CSAM when sending pictures of there kids medical issues to doctors(Archive Link).
One I guess could argue that sure shit happens when it comes to that scenario, but with the political climate in America combined with the fact that some of the largest tech companies seem to be kowtowing to whatever the current administration is doing, probably makes a lot of people rethink privacy and to find alternatives.
Degoogled android has way more potential from what I can tell. Android has a solid ecosystem of apps while protecting security and privacy. Google is the core problem. Why throw away years of work on AOSP and F-droid.
Would you care to elaborate with specific examples?
Since the original user doesn’t actually know the answer to the question asked, its because
Mobile Linux doesn’t support any sort of verified boot like android does, leaving it open to evil maid attacks
Mobile Linux doesn’t sandbox applications as well as android, leaving it open to spyware (Think Facebook intercepting Snapchat DMs, not old school steal your credit card spyware)
and I feel like there’s a third major big thing but I can’t recall it at the moment. Android’s security model is genuinely one of the most secure out of any modern operating system. I’m all for Linux phones, but they need to prioritize parity with Android security before I daily drive one.
Yeah, I though of those two & it’s just a thing that would get/will get developed if we get to daily drive Linux phones, imho.
Its not like it didn’t take Android years to get those two aspects covered.
I mean if you want to get technical, KitKat (4.4 in 2013) introduced verified boot. So from Android 1 to 4.4, it took about 5 years. I believe some form of sandboxing has always existed in Android, but the earliest version I can find online was in Android 5.
I feel like with the backing of Google, they were able to implement such tight security in their mobile OS without much pushback. Mobile Linux in it current state is entirely hobbyists with very few daily drivers. Unless someone can release some stunning Linux mobile hardware that a lot more enthusiasts buy I don’t think we will see any sort of major progression in mobile Linux for some time, as the current method most mobile Linux uses is replacing the bootloader on the phone with an open source implementation which takes a lot of man power to achieve, and it would take even more to make it secure.
I would absolutely love to be proven wrong about the time frame however. The sooner secure Linux phones hit the market, the better the world will be.
Didn’t know/remember about KitKat verified boot, but the sandboxing thing was prob just to kernel & perhaps some system files, def not user or hardware such as cameras. Including between apps & phone contacts, etc.
And I totally agree about lack of Linux phones (as hardware), the phone market with its size & megacorp subsidies to preinstall spybloatware is a giant hurdle.
And the real reason for closed sauce drivers (as a practice, not as if they should open-sauce old hardware now - that’s a security risk for unsuspecting folk & iot … but we could def transition the practice).
Thank GOD. Application sandboxing makes my Android phone UNUSABLE as a daily driver.
Let the people who can’t manage their own software vetting stay with Android and GIVE ME ACCESS TO MY FILE SYSTEM.
I’m not really sure what about the sandboxing makes it difficult to use. Most of the permissions are switches you can just toggle on or off. You can also root phones that run custom Roms (which are the only phones that are worth a damn IMHO) if you really want access to the entire fs.
You’re more than welcome to use a less secure system, but most people would generally prefer a secure one.
The mobile linux tends to leave root access enabled plus it doesn’t sandbox apps in the same way as Android. If you visit a web page that manages to exploit your web browser all bets are off since lateral movement is trivial inside the OS.
Android on the other hand has strong sandboxing and permission control which means that a compromise in one place shouldn’t be able to jump to other places. Android also restricts filesystem access so even if an app is compromised it is difficult to maintain persistence.
Phones has lots of sensors and are great for tracking people. I would rather that my phones OS be extremely secure so that I’m not the victim of spyware.
There’s no “mobile Linux”. Linux supports Secure Boot just fine, and if a distro wants to sandbox applications that too is done by just configuring Linux to do so (after all, that’s what Android does).
Linux doesn’t have the same permission controls. SElinux profiles would need to be manually configured for each app which would take a lot of time.
Mobile linux also doesn’t support measured boot which is what is used to protect the system in the case of theft. Before I consider mobile Linux it would be nice if there was a detailed security review of the entire system.
I think this will sort itself out quicker if you show me what “mobile linux” is.
A Linux distro made for mobile devices? Like Plasma mobile, or Ubuntu touch, or Sailfish os
Ubuntu Touch, Postmarket OS and others
You’re talking about specific distros as if they’re some specific variant of Linux. That’s not how it works. Linux is Linux, and if you want to sign your Ubuntu Touch image please go ahead.
Find me a phone that supports secure boot (which is not the same as verified boot btw), and a distro that will run on that phone that properly sandboxes applications (Flatpak does not count, as there are still many security flaws and missing xdg-portals in its implementation.)
Why? That has nothing to do with the topic we’re discussing. You can configure Linux as Android does it, or choose not to.
(Secure Boot is what enables “Verified boot” - which is just Android’s name for a common sense secure boot loader implementation which is the norm in well protected IoT systems etc)
/ex Sony Mobile dev, nowadays IoT hw/fw ethical hacker
Android boots in layers that are encrypted with different keys. The first key in the TPM enlocks the base OS up to the lock screen. From there a pin is entered and the rest of the system is decrypted.
If a compromise happened in the OS the phone would just fail to boot since the integrity of the system is validated by the TPM.
Yes, that’s how a normal bootchain works in every system ever - like the IoT device running Linux I’m right now working with.
It doesn’t though
Standard Linux doesn’t check for tampering since that requires hardware and firmware support.
are you being serious with me right now? what about my question wasn’t “on topic”? If the hardware and software don’t exist, its not going to happen and you’re making a hypothetical argument to a factual statement.
I would love some more open hardware. I think it is possible for it to happen as long as there is a market for it. The difficult part is getting a 5G chipset that isn’t completely tied to a vendor kernel.
Linux does not suck on phones regarding security. Linux is what brings the security mechanisms faulty ascribed to as being “Android’s”. See previous posters claiming it was all “extensive modifications” by Android and not just Linux security mechanisms.
Feel free to get a Fairphone 4, sign your Ubuntu Touch image with keys supported by the chipset and off you go. The fact that no one is selling you that has no relevance whatsoever to whether “Linux” supports it.
One thing Google seems to be able to do right is security. Android has a strong security architecture that is highly robust. You can straight up download malware or lose your phone and everything stays safe.
I’m not saying it would be impossible to create a OS that is as secure as Android. However, it would take some very serious work and would likely mean building something from scratch with APIs for permission requests.
Do you have examples where that isn’t the case?
Linux phones tend to just be the desktop versions of desktops adapted for a smaller screen.
Android has well built ecosystem with strong privacy and security features not really found anywhere else. The entire system focuses on least privilege with strong security isolation so even if you do download something bad it will have a hard time doing real damage.
Errrrmmmm I think this is just an issue either with your choice of distro or your approach to security.
The Linux ecosystem has by far some of the greatest security technologies available for modern operating systems. Android is a Linux distribution after all.
Most of the issues with Linux on a phone so far is more the hardware and architecture to support and integrate the hardware.
Major mobile device manufacturers have secure enclaves, cryptographic co-processors, advanced face/depth cameras, fingerprint readers, etc. The system architecture needs to be tailored to the hardware and security architecture for the threat models mobile devices face that you want to mitigate.
iOS is Unix deep under the hood, Android is Linux deep under the hood. The issues here aren’t with the kernels, they’re with userspace, hardware selection, and perhaps the odd supporting driver, service, or interface.
Current Linux doesn’t come close to Android. I wish it did but you still need root access and permission controls leave something to be desired. I think that is mostly fine for desktop but on mobile the stakes are much higher since spyware could have much more access.
I’m not trying to be rude but none of these points are true. I imagine you’re confusing a single Linux distribution and their architecture with being representative of Linux as a whole. You can indeed spin an unprivileged, immutable distribution with SELinux for MAC, hardened kernel, and so much more, which would blow Android et al out of the water.
Source?
I’m basing this all on the Android documentation along with my experience on desktop Linux. I would love if there was a Linux system that was as solid as Android but I haven’t seen anything as of yet.
Build it. Gentoo, Arch, and any other minimalist distro where there’s less userspace fluff out of the box can easily be configured to be incredibly hardened.
Your looking for a desktop distribution that doesn’t really exist out of the box (perhaps Qubes). Android is a mobile OS for a reason and has a different architecture in userspace to accommodate for is threat model and use cases.
Just because desktop distros don’t typically lock down userspace out of the box doesn’t mean it’s not possible.
No specific sources as this is just generic Linux. Just look up hardening guides for various distros like Arch etc.
Android is Linux, and uses regular Linux security mechanisms.
Sort of
It does use SElinux but the user space software is all Android specific.
That’s not the case. Android is extensively modified in order to have sandboxed applications only and restrictive hardware permissions.
Run any executable on Linux. Likely by default it can access ~/Photos and the webcam. Android doesn’t allow that
I’ve looked at a couple linux phones and those tend to be designed with hardware switches for antennas and cameras, which I would argue are more secure
A hardware switch for software accessing a directory?
“uses regular Linux security mechanisms” is true regardless of whether any distributions you use configure them the same way or not.
https://source.android.com/docs/security/features
Android also doesn’t require root for basic functionality
Flatpak?
And some level of immutability?
It doesn’t seem like much of a step for Linux distros to cover the “gap” if/when we get any sort of viable mobile options for eg 1% of the market.
Flatpak has promise but the sandbox much weaker than Android. I wouldn’t run anything untrusted with it as sandbox escapes are likely possible. Bubblewrap is highly portable at the cost of being less secure. Kernel level sandboxing such as SElinux and Namespaces are much more bulletproof since they leverage the kernel.
Honestly if you are building something from the ground up I would instead focus on virtualization since the Linux kernel isn’t exactly free of security issues.
Usability makes sense. Security is a real head scratcher here.
Android has very strong security sandboxing and tight permission control. It also tracks the integrity of the system so it is very hard to tamper with the boot process. Everything is encrypted and the entire system is very hard to break into even with physical access.
Android is really impressive if you dig into the bolts. While I would love to see something on Linux do something similar I haven’t seen any OS come close.
One thing that is neglected with android vs Linux is the application style. Mainstream Linux distros direct compile from source, this means users can read the source code and report any malicious code which has happened, with incredible speed. We don’t have that with androids APK files, therefore android needs a much more robust security system. There are other reasons too, like google opening its flood gates to banking apps, if Linux is ever even semi successful (I doubt it will out compete apples or google) in mobile os, banking and high security commercial services will be relegated to the browser.
This is a frankly a bad take. Just because something is foss doesn’t mean that it can’t poss a risk. Software tends to have security vulnerabilities and supply chain attacks. From a security perspective you want to follow best practices such as least privilege and defense in depth. Blinding trusting software is not a good idea regardless of the source.