G'day all, just wanted to share some custom tasks that operate in the background to supercharge your experience.
These work in tasker and macrodroid. I use macrodroid as I prefer the layout and setup of tasks.
I won't go into too much detail because each automation app has different implementations and layouts.
Some need root, others don't. I have my Fold 4 rooted so I'm unsure what doesn't actually require it.
My favourite is dismissing the lockscreen. I don't need a lockscreen because the way I see it is, when I pick up my phone, I intend to use it, so I find it utterly pointless having a lockscreen and time wasting to swipe it away everything I use my phone. I simply pick it up, double tap the screen or hit the power button, and it unlock instantly for me.
The task is simple... the trigger is when the screen turns on. The task itself is to activate the shell/terminal and use the following command: wm dismiss-keyguard. It's that simple.
The next is maps location. The only thing I used my location for is when using maps. The task is simple... when my maps app is launched, the location/gps is automatically turned on... and when I close the app, the location/gps is automatically turned off.
Doing this saves the battery by not having the location on all the time, and adds the convenience of turning the location/gps on/off so you don't have to.
Another is silent mode. I create a task to automatically put my phone on silent at 9pm and turns it off at 7am. You can set it to whatever you like. I know this can be done with things like Do Not Disturb but I like having all background tasks in one place, as opposed to some in macrodroid, others in Modes and Routines and others in Do Not Disturb.
The Fold 4 has 12GB of RAM on my 512GB model (I think the smaller storage options has less RAM, I could be wrong).
So there's 2 mods here. They help speed up the device by preventing continual compression and decompression on areas in RAM as well as faster app usage by disabling slow storage space that gets used as RAM instead of the much faster RAM itself.
The first one is by going to Settings>Battery and Device Care>Memory and turning off "RAM Plus".
What this is used for is when you have so much running, that your device uses part of your actual device storage as RAM. Doing this is much, much slower than only using RAM. The only case you'd need this enabled is if you're running a breathtaking amount of apps at once. I can be running a VPN, torrent downloads, cloud storage uploads, call of duty and a movie at the same time, all on Samsung DeX and only get to about 8 out of the 12GB used, so I know I'll never need RAM Plus.
The second one I know requires root. I flashed a Magisk root module called zRAM Swap Manager. Theres a shell command I have set up on macrodroid to run when the device boots up: zsm -f
What this does is disable RAM using compressed spaces to run apps. It speeds up usage and multitasking (most likely unnoticeably, but I like knowing it's disabled for performance sake).
Another 2 tasks I love is for VPN use. A lot of VPNs don't automatically reconnect when a connection is lost. I use IPVanish which is one that doesn't. I've also noticed that the VPN disconnects when starting and ending Samsung DeX.
I have two tasks set up. One is a series of UI interactions to take place upon VPN disconnect. It detects the VPN status then automatically launches my VPN app, clicks the connect button, then waits for it to connect before returning to the previous app I was in. If the screen is off at the time of disconnect, the task will turn the screen on, launch the app and connect, then go to the homescreen before turning the screen back off.
The second task is set up to run the above task whenever Samsung Dex is started or ended, as well as when the device boots up.
Another task I have set up is detect when a Bluetooth device is disconnected, wait 30 seconds, then turn the Bluetooth off. I have it set up to wait 30 seconds in case of the situation where I put my earbuds in their case, then want to connect to another device. It just saves me having to turn my Bluetooth back on after putting my earbuds away and that 30 seconds gives me time to take my time getting my phone out of my pocket, turning another Bluetooth device on then going to settings and connecting to it.
Another one is intruder selfies and location. If I have a pass code on and someone tries to get into my phone, it will take a photo of them then upload it to my online cloud, then also turn the location on and continually send coordinates to my best mate and my parents.
The one thing I hate about android is not being able to choose where media is saved. Like if I download photos from Reddit, Signal or my Web browser, I want to be able to have all my downloaded photos, videos and documents organised throughout my device. Same goes for camera videos/photos and screenshots/recordings.
I have tasks set up to run when certain apps are closed. For example, when I close my camera, the task will automatically move all photos and videos (if I've taken any) from the DCIM folder to a folder called Camera in either the Videos folder or the Pictures folder (depending if it's a photo or video being moved).
Same goes for screenshots and recordings. The app used on Samsung for screenshots and recordings is called Samsung Capture... so I have a task to run when Samsung Capture is closed that moves all screenshots and recordings from the DCIM folder to a folder in Pictures called Screenshots or a folder in Videos called Screen recordings.
Hope this is all of some interest to atleast someone
These work in tasker and macrodroid. I use macrodroid as I prefer the layout and setup of tasks.
I won't go into too much detail because each automation app has different implementations and layouts.
Some need root, others don't. I have my Fold 4 rooted so I'm unsure what doesn't actually require it.
My favourite is dismissing the lockscreen. I don't need a lockscreen because the way I see it is, when I pick up my phone, I intend to use it, so I find it utterly pointless having a lockscreen and time wasting to swipe it away everything I use my phone. I simply pick it up, double tap the screen or hit the power button, and it unlock instantly for me.
The task is simple... the trigger is when the screen turns on. The task itself is to activate the shell/terminal and use the following command: wm dismiss-keyguard. It's that simple.
The next is maps location. The only thing I used my location for is when using maps. The task is simple... when my maps app is launched, the location/gps is automatically turned on... and when I close the app, the location/gps is automatically turned off.
Doing this saves the battery by not having the location on all the time, and adds the convenience of turning the location/gps on/off so you don't have to.
Another is silent mode. I create a task to automatically put my phone on silent at 9pm and turns it off at 7am. You can set it to whatever you like. I know this can be done with things like Do Not Disturb but I like having all background tasks in one place, as opposed to some in macrodroid, others in Modes and Routines and others in Do Not Disturb.
The Fold 4 has 12GB of RAM on my 512GB model (I think the smaller storage options has less RAM, I could be wrong).
So there's 2 mods here. They help speed up the device by preventing continual compression and decompression on areas in RAM as well as faster app usage by disabling slow storage space that gets used as RAM instead of the much faster RAM itself.
The first one is by going to Settings>Battery and Device Care>Memory and turning off "RAM Plus".
What this is used for is when you have so much running, that your device uses part of your actual device storage as RAM. Doing this is much, much slower than only using RAM. The only case you'd need this enabled is if you're running a breathtaking amount of apps at once. I can be running a VPN, torrent downloads, cloud storage uploads, call of duty and a movie at the same time, all on Samsung DeX and only get to about 8 out of the 12GB used, so I know I'll never need RAM Plus.
The second one I know requires root. I flashed a Magisk root module called zRAM Swap Manager. Theres a shell command I have set up on macrodroid to run when the device boots up: zsm -f
What this does is disable RAM using compressed spaces to run apps. It speeds up usage and multitasking (most likely unnoticeably, but I like knowing it's disabled for performance sake).
Another 2 tasks I love is for VPN use. A lot of VPNs don't automatically reconnect when a connection is lost. I use IPVanish which is one that doesn't. I've also noticed that the VPN disconnects when starting and ending Samsung DeX.
I have two tasks set up. One is a series of UI interactions to take place upon VPN disconnect. It detects the VPN status then automatically launches my VPN app, clicks the connect button, then waits for it to connect before returning to the previous app I was in. If the screen is off at the time of disconnect, the task will turn the screen on, launch the app and connect, then go to the homescreen before turning the screen back off.
The second task is set up to run the above task whenever Samsung Dex is started or ended, as well as when the device boots up.
Another task I have set up is detect when a Bluetooth device is disconnected, wait 30 seconds, then turn the Bluetooth off. I have it set up to wait 30 seconds in case of the situation where I put my earbuds in their case, then want to connect to another device. It just saves me having to turn my Bluetooth back on after putting my earbuds away and that 30 seconds gives me time to take my time getting my phone out of my pocket, turning another Bluetooth device on then going to settings and connecting to it.
Another one is intruder selfies and location. If I have a pass code on and someone tries to get into my phone, it will take a photo of them then upload it to my online cloud, then also turn the location on and continually send coordinates to my best mate and my parents.
The one thing I hate about android is not being able to choose where media is saved. Like if I download photos from Reddit, Signal or my Web browser, I want to be able to have all my downloaded photos, videos and documents organised throughout my device. Same goes for camera videos/photos and screenshots/recordings.
I have tasks set up to run when certain apps are closed. For example, when I close my camera, the task will automatically move all photos and videos (if I've taken any) from the DCIM folder to a folder called Camera in either the Videos folder or the Pictures folder (depending if it's a photo or video being moved).
Same goes for screenshots and recordings. The app used on Samsung for screenshots and recordings is called Samsung Capture... so I have a task to run when Samsung Capture is closed that moves all screenshots and recordings from the DCIM folder to a folder in Pictures called Screenshots or a folder in Videos called Screen recordings.
Hope this is all of some interest to atleast someone
Last edited: