I have a Galaxy S20 on Android 13.

  • 2014MU69
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    You can do this with Macrodroid.

    Macrodroid is an app that automates various tasks in your phone. It lets you create custom “macros” that trigger actions or sequences of actions in response to specific events.

    Follow these steps:

    0: Install and open the app 😆

    1: Press Add Macro

    2: Give it a name

    3: Triggers > Battery/Power > Power Connected/Disconnected > Power Disconnected > OK

    4: Actions > Screen > Screen On/Off > Screen Off > OK > Lock Screen > OK

    5: Constraints > Device State > Device Locked/Unlocked > Device Locked > OK

    6: Save

    That’s about it!

    You do need to give it device admin permission and make sure your os doesn’t kill the app to “save battery”.

    • Soullioness@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      You know, I have over 100 macros setup in MacroDroid but I didn’t think about using it for this for some reason! It’s an amazing app. Everyone should try automation apps.

      • Ⓑⓡⓞⓚⓔⓝ@lemdro.id
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I always install automation apps and get overwhelmed by the options/features available within them. What are your must used cases with MacroDroid?

        • Soullioness@lemmy.caOP
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          Automatically muting notification sound when in certain apps like video players, automatically adjusting auto rotate in certain apps, scanning NFC tags which I attached to the lids of my pill bottles so I can automatically add what I’ve taken, how much I’ve taken, and when I took it. And a bunch of other stuff I can’t think of off the top of my head lol

          I have over 100 macros and I’ve made an effort to use just about every feature in the app, feel free to ask me questions. MacroDroid also makes it really easy to share Macros which can help too.

          • Ⓑⓡⓞⓚⓔⓝ@lemdro.id
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 year ago

            NFC tags which I attached to the lids of my pill bottles so I can automatically add what I’ve taken

            Damn, this is awesome. I’ll give MacroDroid another try.

            • Soullioness@lemmy.caOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              Right. It took a while for me to get used to MacroDroid but it worth the effort! It’s super exciting to make all these macros.

        • Soullioness@lemmy.caOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Neat. I use an automation app to accomplish this already because I didn’t know about that option.

          • ladfrombrad 🇬🇧@lemdro.idM
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            Yeah I’m just been a little tongue in cheek and keeping your screen active would probably make Greta mad and possibly lead to burn in on your screen.

            Both of these are undesirable, and there might be something out there for ya. Gotta ask, why, do you want this specifically?

            Like I unplug maybe once a day so it’s not an issue here, but curious why it’s irking you?

            • Soullioness@lemmy.caOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              I plug in pretty often, and everytime I unplug face recognition unlocks my phone and the screen will stay on without me realizing it which has led to me being in apps basically pocket dialing. Also my Switch has this setting, which I like because I have to plug that in pretty often too and if the screen stays on it dies pretty quickly. It also lets me load it into to the bag quicker. But mostly I just like to customize and tinker.