The future of selfhosted services is going to be… Android?

Wait, what?

Think about it. At some point everyone has had an old phone lying around. They are designed to be constantly connected, constantly on… and even have a battery and potentially still a SIM card to survive power outages.

We just need to make it easy to create APK packaged servers that can avoid battery-optimization kills and automatically configure an outbound tunnel like ngrok, zerotrust, etc…

The goal: hosting services like #nextcloud, #syncthing, #mastodon!? should be as easy as installing an APK and leaving an old phone connected to a spare charger / outlet.

It would be tempting to have an optimized ROM, but if self-hosting is meant to become more commonplace, installing an APK should be all that’s needed. #Android can do SSH, VPN and other tunnels without the need for root, so there should be no problem in using tunnels to publicly expose a phone/server in a secure manner.

In regards to the suitability of home-grade broadband, I believe that it should not be a huge problem at least in Europe where home connections are most often unmetered: “At the end of June 2021, 70.2% of EU homes were passed by either FTTP or cable DOCSIS
3.1 networks, i.e. those technologies currently capable of supporting gigabit speeds.”

Source: https://digital-strategy.ec.europa.eu/en/library/broadband-coverage-europe-2021

PS. syncthing actually already has an APK and is easy to use. Although I had to sort out some battery optimization stuff, it’s a good example of what should become much more commonplace.

cc: @selfhosted
#selfhosted #selfhosting

  • Björn Tantau
    link
    fedilink
    English
    178 months ago

    I feel like Android is adding some new power saving “feature” with every version to kill all the useful stuff I want to keep running in the background.

    Last stupid thing I remember was when it removed my CalDAV synchronisation because I haven’t been “using” the CalDAV app for some months.

    Not to mention all the times it decides to kill something you want to use because it thinks the RAM would be more needed elsewhere. Honestly my 128 MB RAM Nokia N900 could run more apps at the same time than my 4 GB RAM Fairphone.

    • @Buddahriffic@lemmy.world
      link
      fedilink
      English
      108 months ago

      Yeah, android is a lot like Windows in that they make choices that might benefit users who don’t know what’s going on but interrupts or harms things power users are doing. They are just better at not being as annoying with it and don’t beg people to use their default programs.

    • @trolololol@lemmy.world
      link
      fedilink
      English
      68 months ago

      You’re right, that’s a feature if you’re a regular phone user and a bug if you want it as a server.

      Also, even if the application is still running you can have the os almost fully shutdown even if it’s charging. Again, it’s a behavior tuned for a typical user.