Getting a true open-source only OS running on a phone? Android?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I've read a lot, and heard both sides, but still slightly in the cloud when it comes to android. Android is a open source OS, but when I buy a phone, it comes preloaded with google services and apps that are clearly not open-source, and are integrated at such a level a cannot remove them. Only "disable" them.



If android is truly open source, can I compile my own image and flash it to my phone so that I am running a 100% open-source code OS on a mobile platform?



(I'm thinking in the mindset of Debian, where all code is open source and available to the end user)







share|improve this question





















  • ".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
    – Ignacio Vazquez-Abrams
    Jun 14 at 2:01










  • This is probably better suited for android.stackexchange.com
    – Patrick
    Jun 14 at 3:21














up vote
1
down vote

favorite












I've read a lot, and heard both sides, but still slightly in the cloud when it comes to android. Android is a open source OS, but when I buy a phone, it comes preloaded with google services and apps that are clearly not open-source, and are integrated at such a level a cannot remove them. Only "disable" them.



If android is truly open source, can I compile my own image and flash it to my phone so that I am running a 100% open-source code OS on a mobile platform?



(I'm thinking in the mindset of Debian, where all code is open source and available to the end user)







share|improve this question





















  • ".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
    – Ignacio Vazquez-Abrams
    Jun 14 at 2:01










  • This is probably better suited for android.stackexchange.com
    – Patrick
    Jun 14 at 3:21












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've read a lot, and heard both sides, but still slightly in the cloud when it comes to android. Android is a open source OS, but when I buy a phone, it comes preloaded with google services and apps that are clearly not open-source, and are integrated at such a level a cannot remove them. Only "disable" them.



If android is truly open source, can I compile my own image and flash it to my phone so that I am running a 100% open-source code OS on a mobile platform?



(I'm thinking in the mindset of Debian, where all code is open source and available to the end user)







share|improve this question













I've read a lot, and heard both sides, but still slightly in the cloud when it comes to android. Android is a open source OS, but when I buy a phone, it comes preloaded with google services and apps that are clearly not open-source, and are integrated at such a level a cannot remove them. Only "disable" them.



If android is truly open source, can I compile my own image and flash it to my phone so that I am running a 100% open-source code OS on a mobile platform?



(I'm thinking in the mindset of Debian, where all code is open source and available to the end user)









share|improve this question












share|improve this question




share|improve this question








edited Jun 14 at 9:27









user2066657

379110




379110









asked Jun 14 at 1:57









TrevorKS

1068




1068











  • ".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
    – Ignacio Vazquez-Abrams
    Jun 14 at 2:01










  • This is probably better suited for android.stackexchange.com
    – Patrick
    Jun 14 at 3:21
















  • ".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
    – Ignacio Vazquez-Abrams
    Jun 14 at 2:01










  • This is probably better suited for android.stackexchange.com
    – Patrick
    Jun 14 at 3:21















".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
– Ignacio Vazquez-Abrams
Jun 14 at 2:01




".. and are integrated at such a level a cannot remove them." Sure you can; root the phone.
– Ignacio Vazquez-Abrams
Jun 14 at 2:01












This is probably better suited for android.stackexchange.com
– Patrick
Jun 14 at 3:21




This is probably better suited for android.stackexchange.com
– Patrick
Jun 14 at 3:21










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Yes and no.



You could run https://www.lineageos.org/ to have a completely FOSS operating system. You would still want some sort of app marketplace. You can put "gapps" on your LineageOS phone, or you could use https://f-droid.org/.



However, "thinking in the mindset of Debian," this is like running Linux on a laptop in 2001: you may still need closed-source components for firmware or hardware drivers.






share|improve this answer





















  • That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
    – user2066657
    Jun 14 at 5:44

















up vote
0
down vote













There are several aspects to consider...



  1. Yes, Android is open source, at least as provided by the Android Open Source Project. However as you mention more and more of the platforms’ features are provided as non-open source components, e.g. in Google Services; this includes somewhat basic features such as the swiping keyboard, and more complex subsystems such as Android Auto. And most phones’ kernels include proprietary modules whose source code isn’t available...


  2. Yes, you can rebuild your own version of Android. See for example the LineageOS build instructions (look up any supported device there, and you’ll find build instructions).


  3. Whether you can flash your build onto your phone depends on the specific model of phone you have. Many phones attempt to prevent their operating system from being replaced by images which aren’t signed by the manufacturer; flashing those relies on someone finding a hack. LineageOS also has instructions for supported devices, and you’ll find others on Android forums.


The result is rarely fully open source: as mentioned above, the kernel typically includes proprietary blobs, which means you’re often stuck on whichever version the manufacturer shipped, and there’s usually a number of pieces of proprietary firmware (including the boot firmware). There are projects which attempt to address this, such as Replicant (an Android variant with the emphasis on freedom and security) and postmarketOS (an Alpine Linux-based phone-optimised distribution with reverse-engineered support for a surprising amount of hardware); both of these target older phones so they might not be relevant for you.



On the application side, F-Droid documents how to build all the hosted applications.



So it is certainly possible to run a largely open source system on many phones, but in the vast majority of cases it’s still a compromise. In particular, the security story on phones is really bad; LineageOS used to try to track relevant CVEs on supported devices, but there are thousands and they’ve stopped for the time being.






share|improve this answer























    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449705%2fgetting-a-true-open-source-only-os-running-on-a-phone-android%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Yes and no.



    You could run https://www.lineageos.org/ to have a completely FOSS operating system. You would still want some sort of app marketplace. You can put "gapps" on your LineageOS phone, or you could use https://f-droid.org/.



    However, "thinking in the mindset of Debian," this is like running Linux on a laptop in 2001: you may still need closed-source components for firmware or hardware drivers.






    share|improve this answer





















    • That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
      – user2066657
      Jun 14 at 5:44














    up vote
    1
    down vote













    Yes and no.



    You could run https://www.lineageos.org/ to have a completely FOSS operating system. You would still want some sort of app marketplace. You can put "gapps" on your LineageOS phone, or you could use https://f-droid.org/.



    However, "thinking in the mindset of Debian," this is like running Linux on a laptop in 2001: you may still need closed-source components for firmware or hardware drivers.






    share|improve this answer





















    • That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
      – user2066657
      Jun 14 at 5:44












    up vote
    1
    down vote










    up vote
    1
    down vote









    Yes and no.



    You could run https://www.lineageos.org/ to have a completely FOSS operating system. You would still want some sort of app marketplace. You can put "gapps" on your LineageOS phone, or you could use https://f-droid.org/.



    However, "thinking in the mindset of Debian," this is like running Linux on a laptop in 2001: you may still need closed-source components for firmware or hardware drivers.






    share|improve this answer













    Yes and no.



    You could run https://www.lineageos.org/ to have a completely FOSS operating system. You would still want some sort of app marketplace. You can put "gapps" on your LineageOS phone, or you could use https://f-droid.org/.



    However, "thinking in the mindset of Debian," this is like running Linux on a laptop in 2001: you may still need closed-source components for firmware or hardware drivers.







    share|improve this answer













    share|improve this answer



    share|improve this answer











    answered Jun 14 at 2:26









    Jon Wolski

    1962




    1962











    • That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
      – user2066657
      Jun 14 at 5:44
















    • That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
      – user2066657
      Jun 14 at 5:44















    That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
    – user2066657
    Jun 14 at 5:44




    That's a great last comment, @Jon. It's important for Trevor to decide, if it comes down to it, whether he wants a phone that works or an open-source flag to wave; for just because open-source code is in the base , doesn't eliminate the potential need for drivers on top which are definitely closed. So the "do I want to be a purist or do I just want to make a phone call today" question may become relevant.
    – user2066657
    Jun 14 at 5:44












    up vote
    0
    down vote













    There are several aspects to consider...



    1. Yes, Android is open source, at least as provided by the Android Open Source Project. However as you mention more and more of the platforms’ features are provided as non-open source components, e.g. in Google Services; this includes somewhat basic features such as the swiping keyboard, and more complex subsystems such as Android Auto. And most phones’ kernels include proprietary modules whose source code isn’t available...


    2. Yes, you can rebuild your own version of Android. See for example the LineageOS build instructions (look up any supported device there, and you’ll find build instructions).


    3. Whether you can flash your build onto your phone depends on the specific model of phone you have. Many phones attempt to prevent their operating system from being replaced by images which aren’t signed by the manufacturer; flashing those relies on someone finding a hack. LineageOS also has instructions for supported devices, and you’ll find others on Android forums.


    The result is rarely fully open source: as mentioned above, the kernel typically includes proprietary blobs, which means you’re often stuck on whichever version the manufacturer shipped, and there’s usually a number of pieces of proprietary firmware (including the boot firmware). There are projects which attempt to address this, such as Replicant (an Android variant with the emphasis on freedom and security) and postmarketOS (an Alpine Linux-based phone-optimised distribution with reverse-engineered support for a surprising amount of hardware); both of these target older phones so they might not be relevant for you.



    On the application side, F-Droid documents how to build all the hosted applications.



    So it is certainly possible to run a largely open source system on many phones, but in the vast majority of cases it’s still a compromise. In particular, the security story on phones is really bad; LineageOS used to try to track relevant CVEs on supported devices, but there are thousands and they’ve stopped for the time being.






    share|improve this answer



























      up vote
      0
      down vote













      There are several aspects to consider...



      1. Yes, Android is open source, at least as provided by the Android Open Source Project. However as you mention more and more of the platforms’ features are provided as non-open source components, e.g. in Google Services; this includes somewhat basic features such as the swiping keyboard, and more complex subsystems such as Android Auto. And most phones’ kernels include proprietary modules whose source code isn’t available...


      2. Yes, you can rebuild your own version of Android. See for example the LineageOS build instructions (look up any supported device there, and you’ll find build instructions).


      3. Whether you can flash your build onto your phone depends on the specific model of phone you have. Many phones attempt to prevent their operating system from being replaced by images which aren’t signed by the manufacturer; flashing those relies on someone finding a hack. LineageOS also has instructions for supported devices, and you’ll find others on Android forums.


      The result is rarely fully open source: as mentioned above, the kernel typically includes proprietary blobs, which means you’re often stuck on whichever version the manufacturer shipped, and there’s usually a number of pieces of proprietary firmware (including the boot firmware). There are projects which attempt to address this, such as Replicant (an Android variant with the emphasis on freedom and security) and postmarketOS (an Alpine Linux-based phone-optimised distribution with reverse-engineered support for a surprising amount of hardware); both of these target older phones so they might not be relevant for you.



      On the application side, F-Droid documents how to build all the hosted applications.



      So it is certainly possible to run a largely open source system on many phones, but in the vast majority of cases it’s still a compromise. In particular, the security story on phones is really bad; LineageOS used to try to track relevant CVEs on supported devices, but there are thousands and they’ve stopped for the time being.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        There are several aspects to consider...



        1. Yes, Android is open source, at least as provided by the Android Open Source Project. However as you mention more and more of the platforms’ features are provided as non-open source components, e.g. in Google Services; this includes somewhat basic features such as the swiping keyboard, and more complex subsystems such as Android Auto. And most phones’ kernels include proprietary modules whose source code isn’t available...


        2. Yes, you can rebuild your own version of Android. See for example the LineageOS build instructions (look up any supported device there, and you’ll find build instructions).


        3. Whether you can flash your build onto your phone depends on the specific model of phone you have. Many phones attempt to prevent their operating system from being replaced by images which aren’t signed by the manufacturer; flashing those relies on someone finding a hack. LineageOS also has instructions for supported devices, and you’ll find others on Android forums.


        The result is rarely fully open source: as mentioned above, the kernel typically includes proprietary blobs, which means you’re often stuck on whichever version the manufacturer shipped, and there’s usually a number of pieces of proprietary firmware (including the boot firmware). There are projects which attempt to address this, such as Replicant (an Android variant with the emphasis on freedom and security) and postmarketOS (an Alpine Linux-based phone-optimised distribution with reverse-engineered support for a surprising amount of hardware); both of these target older phones so they might not be relevant for you.



        On the application side, F-Droid documents how to build all the hosted applications.



        So it is certainly possible to run a largely open source system on many phones, but in the vast majority of cases it’s still a compromise. In particular, the security story on phones is really bad; LineageOS used to try to track relevant CVEs on supported devices, but there are thousands and they’ve stopped for the time being.






        share|improve this answer















        There are several aspects to consider...



        1. Yes, Android is open source, at least as provided by the Android Open Source Project. However as you mention more and more of the platforms’ features are provided as non-open source components, e.g. in Google Services; this includes somewhat basic features such as the swiping keyboard, and more complex subsystems such as Android Auto. And most phones’ kernels include proprietary modules whose source code isn’t available...


        2. Yes, you can rebuild your own version of Android. See for example the LineageOS build instructions (look up any supported device there, and you’ll find build instructions).


        3. Whether you can flash your build onto your phone depends on the specific model of phone you have. Many phones attempt to prevent their operating system from being replaced by images which aren’t signed by the manufacturer; flashing those relies on someone finding a hack. LineageOS also has instructions for supported devices, and you’ll find others on Android forums.


        The result is rarely fully open source: as mentioned above, the kernel typically includes proprietary blobs, which means you’re often stuck on whichever version the manufacturer shipped, and there’s usually a number of pieces of proprietary firmware (including the boot firmware). There are projects which attempt to address this, such as Replicant (an Android variant with the emphasis on freedom and security) and postmarketOS (an Alpine Linux-based phone-optimised distribution with reverse-engineered support for a surprising amount of hardware); both of these target older phones so they might not be relevant for you.



        On the application side, F-Droid documents how to build all the hosted applications.



        So it is certainly possible to run a largely open source system on many phones, but in the vast majority of cases it’s still a compromise. In particular, the security story on phones is really bad; LineageOS used to try to track relevant CVEs on supported devices, but there are thousands and they’ve stopped for the time being.







        share|improve this answer















        share|improve this answer



        share|improve this answer








        edited Jun 14 at 5:09


























        answered Jun 14 at 4:50









        Stephen Kitt

        139k22301363




        139k22301363






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449705%2fgetting-a-true-open-source-only-os-running-on-a-phone-android%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay