i know the way android stores application config and so on makes it almost imposible to keep a real functioning dotfiles. but what is the closest you can get? is there a way to at least get a declarative list of apps to install or something? maybe some f-droid config at least or something?

  • ghost_laptop@lemmy.mlOP
    link
    fedilink
    arrow-up
    6
    arrow-down
    17
    ·
    2 days ago

    when i said dotfiles i meant a dotfiles repo, i think this is hugely obvious. not sure what part you don’t understand. and also, no, dotfiles are not necessarily text files.

    so i’m essentially asking if it’s posible to keep track of my android configs in some similar way.

    • IronKrill@lemmy.ca
      link
      fedilink
      arrow-up
      12
      ·
      2 days ago

      It might be hugely obvious to you, but in a generic sense “dotfiles” are just files preceded by a dot… I wouldn’t have guessed you meant a git repo but after searching it seems it’s a bit of a unixporn trend? Never heard of it until now.

      • YaBoyMax@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        I’ve personally only ever heard the term “dotfiles” used in the context of a collection of customized config files. To be honest I can’t remember ever hearing a term used for .* files/folders in general, outside of maybe “hidden directories”? Granted, it could also just be that we’re existing in different bubbles.

      • ghost_laptop@lemmy.mlOP
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        20 hours ago

        i’ve never heard of anyone using dotfiles in any other way, even thought yeah a hidden file/directory is a dotfile, people discuss much more in the way i mention it because it implies a lot more stuff. i agree with the other comment that when you refer to the individual file people call them hidden files, nautilus and other file managers do this. i guess my reply wasn’t the best but i thought they were being smug about it.

    • Kay Ohtie@pawb.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      There’s Termux on Android, which you could have ‘dotfiles’ for. There’s individual apps which sometimes have automated backups. And there’s applications that don’t have backups, or system-level settings. Being clear in your question goes a longer way than being sassy :3

      As to your actual question, that’s still rather vague, because the easy answer is “backing up your entire phone”, and the longer answer is “what are you backing up with regards to Android?” Android’s system settings, within the ‘Settings’ app, is broken out even over the ADB CLI over multiple different commands, so there’s no straightforward clear question or answer here.

      Your best bet is just picking apps to use that have an ‘export’ feature, and maybe using Syncthing to sync a folder with a server/computer and export the settings into that folder. I basically do that but with Nextcloud, exporting directly to a ‘Backups’ folder in my Nextcloud, sometimes with nested subfolders for grouping things. As long as Nextcloud is installed and signed in, it’s usually trivial to import them then into those apps.

      But again, that’s app choice, and per-app. I can export my settings for Material File Manager, but I can’t really export them for Tempus, nor, irritatingly, HeliBoard.

      If you’re rooted you might be able to set up some kind of per-app backup of their individual /data directories with something like Titanium.

      • ghost_laptop@lemmy.mlOP
        link
        fedilink
        arrow-up
        1
        ·
        20 hours ago

        i guess i was rather vague because i know that it’s essentially a mess and how much you can save depends largely on how the app decides to save its config and so on, on the manufacturer and hos the system settings are saved and so on. so i guess that my question was more like, has anyone managed to do android dotfiles in a meaningful way beyond termux? i agree i was sassy but i thought the previous comment was being smug. i have never heard of anyone mention dotfiles outside of this use, so i guess that’s a bad on me.

        i think the stuff i’d like to backup the most would be some sort of declarative list of installed apps, if possible some system wide settings althought with how messy phones are with settings i doubt it, and maybe a couple of special per app settings. do you know if this is easier of Oses like graphene o lineage?

        • Kay Ohtie@pawb.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          19 hours ago

          Installed apps is hard cause they could be from the Play store or from F-Droid or Obtanium or raw APK installs.

          Of those, Obtanium let’s you export things and import. Some F-Droid clients will do that too, but the stock one will only export – I don’t see a mechanism for import. Play store is usually automatic with their migration feature.

          So it sounds less like you want “dotfiles” and more you want a declarative Nix config for Android. Wildly different meanings. And neither really something Android does at all and isn’t built around. It’d be like trying to turn an average Ubuntu install with some third-party DEBs sans sources into Nix, except half your apps store their info in Root somehow and you don’t have root access.

          This is why stuff like Titanium Backup exists. Fundamentally, this is an X-Y problem presented – the assumption your stated method (Nixification and system settings) is the means to achieving an ends (backup you can transfer around, or to wipe of the same device).

          Unless Nixification itself is the sole goal for the sake of “project”, in which case, why be asking instead of making? X3 You might find something more like that in a Linux distro for a phone like Nura/postmarket or building one. But Android’s architecture is too weird for cleanly doing that.