Yes, Android has issues but what I’m saying is that so far Linux on phones really hasn’t been able to compete. No one want’s a phone with no camera, no GPS, no apps and terrible battery. Making Linux phones is just super difficult and sadly I don’t see it happening anytime soon. Android is a good platform with lots of hardware and apps. You have Fairphone offering long tern support, f-droid offering privacy oriented apps and LineageOS offering stable OS. Getting more phoes to support it is a better bet than getting Linux to properly work on modern phones.
Can you put this in a npm package so I can use it in my project, please?