• Boost@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    10 hours ago

    Sorry for the novel.

    So the purpose of an operating system is to coordinate and manage the hardware on a computer. It provides a standardized service so that the software does not need to worry about the details of the hardware. So a program can ask for RAM or ask to write a file to the hard drive and the OS facilitates actually doing that, or denies the request.

    This is why software needs to be written for a specific operating system (android, windows, Linux, etc) but not for specific hardware. So my program needs to count on you running windows, but it doesn’t need to count on specific hardware, ie it doesn’t matter if you use an AMD or Intel cpu as long as it’s running windows.

    The OS, on the other hand, does care what hardware it’s running on. The OS needs to know how to command the hardware and there’s many many different brands and generations of hardware that all work a little differently. Cameras are a good example, there’s tons of different cameras that all work a little differently. The software that allows an OS to communicate with a piece of hardware is called a driver.

    Desktop hardware is pretty well defined at this point, and manufacturers are good about publishing drivers for most OSes for most of their hardware. And in the case of Linux, even if the manufacturer doesn’t do that, any nerd can write their own driver and publish it for everyone to use. This is a big part of the reason Linux has such good hardware coverage.

    In the case of phones, things are much more locked down. Phones are not an open platform like desktop PCs. The vast majority of phones (and their components) are made with a specific OS in mind. This is obvious with Apple products since the hardware and the OS are made by the same company. Android is a little more open, but even then most phones are made with a specific company’s special flavor of android in mind. Basically no phones ship with straight up vanilla android. The companies that make the phones would really rather you not run any other OS, so they will often do things like lock the bootloader which makes it more difficult to just install something else.

    So with that in mind, you can’t usually just boot into Linux on any old phone. All the drivers and everything else that Linux would need to know how to drive the hardware just isn’t available, or no one has bothered to write it. Fair phone has to facilitate that directly.

    In the case of graphene, it’s still android, so it can take advantage of existing android drivers. However, graphene also has specific hardware security requirements (that I’m not super familiar with tbh) and up until recently, Google was the only manufacturer making phones that met those requirements. So that makes compatibility difficult.

    Also, with phone cameras specifically, it’s actually usually not that hard to get them to work. You can get most phone cameras to produce an image relatively easily. The hard part is that Google and Apple do a ton of post processing on those images to make them look as good as they do. They pay a lot of talented people a lot of money for that. So a lot of the time it’s not that a Linux phone can’t get an image out of a phone camera, it’s that image looks like shit compared to what people are used to and it takes a lot of time and effort to get there.