Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
0
votes
1
answers
585
views
Macrodroid: Handling notification
I have a macro which sets a notification. This notification should invoke a macro upon clicking. That macro should have the text of the notification available to it for further processing. The first image is the macro which creates the notification. Macro name = ```zzz test macro 1.1``` [![][1th]][1...
I have a macro which sets a notification. This notification should invoke a macro upon clicking. That macro should have the text of the notification available to it for further processing.
The first image is the macro which creates the notification. Macro name =
It's notification handler is shown in the second image.
This notification displays a text
How do I make the text
test macro 1.1


: test2
. It invokes a macro test macro 1.2
. As you can see, it tries to use the built-in variable {notification}
, but it didn't work.

: test2
available to macro1.2 when it is invoked by the notification?
EDIT :: The above is only a MWE. The first macro will be triggered by messages, GeoFence, location, cell connection, wifi or even other notification sent via HTTP. The notification sent by this macro will display something about the trigger and other information which is dynamic and differ from notification to notification. By the time any notification is clicked, several newer notification might already be displayed. The action undertaken by this click should be specific to only the current notification being handled. This is why a global variable will not work.
Any help would be greatly appreciated
magguu
(101 rep)
Jan 24, 2024, 12:44 PM
• Last activity: Jul 18, 2024, 09:55 AM
1
votes
0
answers
74
views
Automate Launch of Several Android Applications
Recently, I learned about Android Automatization (e.g., with Tasker, LLamaLab, and MacroDroid). However, several hours of Googling have not led to the desired automatization routine. Perhaps somebody has already observed a similar problem or challenge and has already found a solution. The configurat...
Recently, I learned about Android Automatization (e.g., with Tasker, LLamaLab, and MacroDroid). However, several hours of Googling have not led to the desired automatization routine. Perhaps somebody has already observed a similar problem or challenge and has already found a solution.
The configuration: Lineage OS 21, Pixel 4a, Not Rooted
The desired automated blocks are(without explaining why):
1. Download the Lineage OS update if it is available and install it. The problem with this step is that it requires a reboot.
2. Open the app store and update the apps and app store. Wait for completion, and close the app store. Note that I have several different app stores for different apps.
3. Open the antivirus, update the databases, scan everything, wait for completion, and close the antivirus.
4. Open Termux, update packages, synchronize some files with git, wait for completion, and close Termux.
5. Copy some files to Google Drive, wait for completion, and close Google Drive.
These steps are repeated weekly or monthly, so automating them would make things easier for me. If you have ideas on some particular steps but not for all, your response is appreciated regardless. Whether the approach requires root or not is important.
nekrald
(11 rep)
Jul 5, 2024, 12:11 AM
1
votes
0
answers
66
views
Does Macrodroid search ALL embedded folders in a directory or only the master?
Does Macrodroid search ALL embedded folders in a directory or only the master? I followed Reddy Lutonadio's instructions on https://android.stackexchange.com/questions/32731/auto-delete-certain-file-extensions-on-my-phone/211843#211843 My unwanted files were TXT files of the same name that tag along...
Does Macrodroid search ALL embedded folders in a directory or only the master?
I followed Reddy Lutonadio's instructions on https://android.stackexchange.com/questions/32731/auto-delete-certain-file-extensions-on-my-phone/211843#211843
My unwanted files were TXT files of the same name that tag along with downloads in my email downloads and NFO files. Wrote the script subbing my parameters and nothing happened to the NFOs in nested folders. Help Please. Is there a setting or option I am missing?
My phone is NOT rooted.
Cameron Starling
(11 rep)
Apr 16, 2024, 01:17 PM
• Last activity: Apr 16, 2024, 02:21 PM
1
votes
0
answers
230
views
How to put any app in a resizable (freeform, pop-up) window when it starts, from MacroDroid automation macro?
I want to find how to do the question title. - Any app (and Android launcher apps, to view my home screen shortcuts, on top of all apps). - MacroDroid can send activity intent commands to Android. I want to put an app in a resizable (freeform, pop-up) window *when a device action starts it*, in that...
I want to find how to do the question title.
- Any app (and Android launcher apps, to view my home screen shortcuts, on top of all apps).
- MacroDroid can send activity intent commands to Android.
I want to put an app in a resizable (freeform, pop-up) window *when a device action starts it*, in that automation app macro.
*Thank you for anything to help.*
----------
***I can use Taskbar .***
Edward J
(51 rep)
Mar 19, 2024, 04:33 AM
• Last activity: Mar 30, 2024, 07:08 PM
1
votes
1
answers
532
views
MacroDroid : Using password in Intent
I use [Adguard](https://adguard.com/en/adguard-android/overview.html) on my Pixel 6a. After a recent major upgrade, I noticed that the app is disabled erratically. Since this behavior is unpredictable, it is difficult to capture logs precisely for troubleshooting. I did manage once to capture and se...
I use [Adguard](https://adguard.com/en/adguard-android/overview.html) on my Pixel 6a. After a recent major upgrade, I noticed that the app is disabled erratically. Since this behavior is unpredictable, it is difficult to capture logs precisely for troubleshooting. I did manage once to capture and send them and they are taking too long to revert, so I thought of automation as an alternative.
[Adguard knowledgebase](https://adguard.com/kb/adguard-for-android/solving-problems/tasker/) suggests using Tasker set up as below. Adguard generates a password to authenticate the intent (preventing misuse by malicious apps) and this password needs to be a part of intent.
**Tasker Implementation**
**MacroDroid Implementation**
I tried replicating the pattern in Tasker above in MacroDroid unsuccessfully. Please note that the password, package name and class are correctly entered. The action I am trying now when Adguard is running is
>
The MacroDroid implementation does not work. **How do I fix this?**
Edit: If I change the target to *activity* instead of *broadcast*, I get this error in notifications

stop
stops the protection, no extra data required;


beeshyams
(41525 rep)
Aug 11, 2023, 07:18 AM
• Last activity: Aug 15, 2023, 09:57 PM
1
votes
0
answers
548
views
How do I create a macro to scan my phone screen for a specific color (Black and white) and then depending on the color click on the left/right side
I'm using the mobile app Macrodroid and I am having difficulty creating a macro that scans a specific part of the phone screen (the middle of the screen) for either the color black or white. Then if it returns that the color is black than I want it to click on the left side of the screen, but if it...
I'm using the mobile app Macrodroid and I am having difficulty creating a macro that scans a specific part of the phone screen (the middle of the screen) for either the color black or white. Then if it returns that the color is black than I want it to click on the left side of the screen, but if it returns as the color white then I want it to click on the right side of the screen.
I've thought of ways that it can do it for example taking a screenshot and than looking at that for the color, and I even found a plugin that can sort of do that, but I am unable to get it to work properly/know how to set it up. The plugin is called TouchTask.
Marcus Pence
(11 rep)
Jan 30, 2023, 03:02 AM
• Last activity: Jan 30, 2023, 03:05 AM
0
votes
0
answers
391
views
Macrodroid: how to check the level of brightness with "if-clause" (conditions/loops)
I would like to increase the brightness of the device from 0 percent to 100 percent if some trigger occurs (e.g. at volume button's long press). I have created a macro as follows but it does not work: when I press volume button's long press the brightness does not change from 0 to 100. More informat...
I would like to increase the brightness of the device from 0 percent to 100 percent if some trigger occurs (e.g. at volume button's long press).
I have created a macro as follows but it does not work: when I press volume button's long press the brightness does not change from 0 to 100.
More information:
- I am able to set the brightness to 100% outside of "if-clause" in Macrodroid.
- "Volume Down -Long press" works without problem as a trigger with other macros (if any).
- I have tested with or without option, "Alternative Android 9+ mode".
- The android version of the device is 12.
- I also tested with the option "Brightness Less than 1%" in "if-clause" without success.

Name
(109 rep)
Sep 8, 2022, 06:41 PM
0
votes
3
answers
1362
views
Mobile data is set to auto turn on with command but isn't working
I'm using 2 apps, "MacroDroid" and AutoInput", I set a command(Macro) that would turn on mobile data and location. But when I sent the text, it shows that mobile data and location are "on" but only location works. And when I try to manually turn on data it won't work unless I restart my phone. Why i...
I'm using 2 apps, "MacroDroid" and AutoInput", I set a command(Macro) that would turn on mobile data and location. But when I sent the text, it shows that mobile data and location are "on" but only location works.
And when I try to manually turn on data it won't work unless I restart my phone.
Why is this happening?
Edit : From comments. OP used [tag:adb] commands to give elevated privileges to an unrooted device for MacroDroid
Samurai
(1 rep)
Aug 24, 2018, 06:26 PM
• Last activity: Feb 3, 2022, 05:00 AM
0
votes
1
answers
1706
views
How do I assign an action to long pressing the home button?
I want to fix it so the home button long press kills a particular app. I can't see the option for home long press in Tasker or Macrodroid. Galaxy S5, rooted, CM Marshmallow, Xposed installed.
I want to fix it so the home button long press kills a particular app. I can't see the option for home long press in Tasker or Macrodroid.
Galaxy S5, rooted, CM Marshmallow, Xposed installed.
Ne Mo
(443 rep)
Aug 22, 2017, 06:32 AM
• Last activity: Dec 22, 2021, 01:05 AM
2
votes
1
answers
327
views
Audio recorder triggered by global long press gesture
A friend who has limited eye sight would like an audio recorder on his Samsung phone. Ideally it starts when he long presses the display anywhere after unlocking the phone. *Is that possible?*
A friend who has limited eye sight would like an audio recorder on his Samsung phone. Ideally it starts when he long presses the display anywhere after unlocking the phone.
*Is that possible?*
feklee
(510 rep)
Dec 4, 2021, 01:44 PM
• Last activity: Dec 17, 2021, 09:44 AM
0
votes
2
answers
3004
views
Automation - unable to turn hotspot on
I am using a device running on AOSP 8.1 Recently I wanted to automatically turn hotspot on when device boots but Macrodroid is unable to do so Help required!
I am using a device running on AOSP 8.1
Recently I wanted to automatically turn hotspot on when device boots but Macrodroid is unable to do so
Help required!
Pranjal
(91 rep)
Jan 31, 2018, 04:04 PM
• Last activity: Dec 15, 2021, 08:02 AM
1
votes
2
answers
1668
views
Macrodroid: I want a repeating alert when battery is less than/over than x%
I want a repeating alert when battery is less than/over than x%. I have a pair of alerts (Using MacroDroid) that are triggered by a battery level change. One of less than 35%, and one of more than 85%. It nicely runs a media sound file to alert me. (Ding!) I want them to *repeatedly* alert me while...
I want a repeating alert when battery is less than/over than x%.
I have a pair of alerts (Using MacroDroid) that are triggered by a battery level change. One of less than 35%, and one of more than 85%.
It nicely runs a media sound file to alert me. (Ding!)
I want them to *repeatedly* alert me while they are above/below the limit. Currently it only seems to do it once: at the moment that the percentage level drops or increases past each limit. How could I make it sound every (say 5 minutes) when it is above or below the limits?
I'm becoming obsessed with battery levels ever since I replaced my battery and I found it to be swollen like a rotten grapefruit! :)
Edit:
I've found some info that accessing the root (whatever that means) can give you access to the sys folder that can actuate the ability of the phone to either charge or not do so. I have done similar things with windows and the registry and feel confident doing these things with the Win OS in the Registry, but not with Android OS. If I access the sys folder and try to save changes it won't let me.
Chowzen
(133 rep)
Jan 12, 2019, 04:02 AM
• Last activity: Aug 6, 2021, 02:44 AM
2
votes
0
answers
758
views
How to switch default home launcher at macrodroid
I use several home launcher apps. At my school, i use system launcher.And at my home or any other cases,i use nova launcher. And,ther are secret apps that i don't want to show my friend in nova home. So,i want to swich default launchers automatically at a certain time. I think i can use macrodroid.B...
I use several home launcher apps.
At my school, i use system launcher.And at my home or any other cases,i use nova launcher.
And,ther are secret apps that i don't want to show my friend in nova home.
So,i want to swich default launchers automatically at a certain time.
I think i can use macrodroid.But I'don know how.
Are there any shortcut to swich default launcher in app?
(it's not good idea to touch the app icon to swich to go to nova or another home)
(I don't want to root if possible)--edited
sginshin
(21 rep)
Mar 12, 2021, 06:14 AM
• Last activity: Mar 12, 2021, 12:56 PM
1
votes
0
answers
824
views
MacroDroid - To only allow certain people to automatically answer calls
I'm trying to set up a macro using MacrdoDroid to automatically answer calls whenever they occur. However, I only want it to happen when certain people call me. I've tried adding the person's name to the left of the trigger "Incoming voice/video call", and setting the search term to exact instead of...
I'm trying to set up a macro using MacrdoDroid to automatically answer calls whenever they occur. However, I only want it to happen when certain people call me. I've tried adding the person's name to the left of the trigger "Incoming voice/video call", and setting the search term to exact instead of contains, and it just doesn't pick it up. It works fine if only "Incoming voice/video call" is there, but not when I add someone's name.
" class="img-fluid rounded" style="max-width: 100%; height: auto; margin: 10px 0;" loading="lazy">

panaijo
(11 rep)
Feb 23, 2021, 08:34 AM
• Last activity: Feb 23, 2021, 04:40 PM
1
votes
1
answers
3130
views
Volume control using Macrodroid
My friend has the same problem on his Samsung device as described here https://android.stackexchange.com/q/123150/131553 I showed him the solution and it worked beautifully for him. But he would like to make it work whether Google Play Music is in foreground or background, which beeshyams in his ans...
My friend has the same problem on his Samsung device as described here https://android.stackexchange.com/q/123150/131553
I showed him the solution and it worked beautifully for him. But he would like to make it work whether Google Play Music is in foreground or background, which beeshyams in his answer said is possible but perhaps didn't add as OP didn't ask for that.
I have Macrodroid installed ( learner ) and tried to modify that macro by the condition
While Google Play Music in foreground OR ( ) Background
and it didn't work
What am I doing wrong and how to achieve the Macro perform as required ?
AndroidNovice
(319 rep)
Jul 9, 2017, 03:04 PM
• Last activity: Jan 20, 2021, 07:56 PM
2
votes
1
answers
2839
views
MacroDroid asks for "Application Launched/Closed" accessibility permission constantly
I'm on non-rooted Android 8.1 Oreo with MacroDroid Pro v3.24.1. After I got a replacement phone and reinstalled MacroDroid, it constantly asks for accessibility permission: Application Launched/Closed. There are three accessibility permissions available: - MacroDroid - MacroDroid Fingerprint Gesture...
I'm on non-rooted Android 8.1 Oreo with MacroDroid Pro v3.24.1. After I got a replacement phone and reinstalled MacroDroid, it constantly asks for accessibility permission: Application Launched/Closed.
There are three accessibility permissions available:
- MacroDroid
- MacroDroid Fingerprint Gesture Detector
- MacroDroid Volume Button Monitor
I enabled the first and last and kept the fingerprint off as this disables drawer swiping. I don't get where to allow that accessibility permission it is asking for.
Any suggestions?
steros
(123 rep)
Jun 7, 2018, 06:32 AM
• Last activity: Jan 2, 2021, 08:21 AM
0
votes
1
answers
3079
views
Help with intents: MacroDroid
Further to this https://android.stackexchange.com/q/226362/131553, the solution in the accepted answer works but sadly only for the first time (app error) . I have [reported this to the developer](https://www.tapatalk.com/groups/macrodroid/viewtopic.php?p=33472#p33472) Meanwhile, I thought of trying...
Further to this https://android.stackexchange.com/q/226362/131553 , the solution in the accepted answer works but sadly only for the first time (app error) . I have [reported this to the developer](https://www.tapatalk.com/groups/macrodroid/viewtopic.php?p=33472#p33472)
Meanwhile, I thought of trying to see if a *broadcast* intent would solve the problem. Lacking understanding of how intents work, I tried this and other combinations (
Here is the Tasker intent that works
Request help in constructing broadcast intent.
NOTE:Please don't edit to make the images smaller for the sake of readability, let them be
ON
in square bracket, Action same as class) , but couldn't get it to work.


beeshyams
(41525 rep)
Jul 2, 2020, 06:53 AM
• Last activity: Nov 20, 2020, 02:08 PM
1
votes
1
answers
518
views
Macrodroid: Convert "+63" area code to "0"
So there is already a working macro that does the following: Whenever I dial/call a number with a prefix other than the ones I specified, a dialog box appears. I wanted to "filter" the numbers so I would be notified if I was to make a call to a number belonging to a different network/company. To cla...
So there is already a working macro that does the following:
Whenever I dial/call a number with a prefix other than the ones I specified, a dialog box appears. I wanted to "filter" the numbers so I would be notified if I was to make a call to a number belonging to a different network/company.
To clarify, there are two codes in the prefix. One is the country code and the other is the network code. For instance, country code is +63 and network (company) code is 945. Furthermore, the country code +63 is interchangeable with 0 and both valid are when making a call. So a +63945xxx number is the same as 0945xxx.
My current issue is that 4-digit prefixes (the ones starting with 0 like 0945, 0917, etc) are already "filtered" by the existing macro. However, 6-digit prefixes (the ones starting with +63 like +63945,+63917 are not filtered), hence 0945 and +63945 which are virtually the same will get different responses (One will prompt a dialog box and the other will not). What I am looking for is a way to first convert +63 to 0 so that it becomes a 4-digit number which the macro can filter.
Here is a link to my previous question which can be used as reference.
https://android.stackexchange.com/questions/228569/macrodroid-make-a-pop-up-message-if-about-to-call-area-codes-excluding-specifie
Also attached is the macro that currently filters 4-digit prefixes but overlooks 6-digit ones.
Edit: 8/15/2020 14:10
I started a new macro from scratch just to be sure. But result in log seems to be the same. Examples of numbers called would be +639451234567 and 09451234567. All numbers dialled prompted a dialog box. Here are the screenshots:
(https://i.sstatic.net/wksR0.png)
(https://i.sstatic.net/FJTtc.png)
(https://i.sstatic.net/y9Jqi.png)
(https://i.sstatic.net/qnwbm.png)
(https://i.sstatic.net/JTS76.png)
(https://i.sstatic.net/uBuJ8.png)
Edit: 22:30
Below macro given by beeshyams works well.
Kyle
(15 rep)
Aug 15, 2020, 04:04 AM
• Last activity: Aug 15, 2020, 03:34 PM
0
votes
1
answers
137
views
Make a pop up message if about to call area codes excluding specified
So I wanted a pop up message/dialog box to appear whenever I dial/call number with prefixes excluded from my list. To clarify, there are two codes. One is the country code and the other is the network code. For instance, country code is `+63` and network (company) code is `945`. Country code is only...
So I wanted a pop up message/dialog box to appear whenever I dial/call number with prefixes excluded from my list.
To clarify, there are two codes. One is the country code and the other is the network code. For instance, country code is
+63
and network (company) code is 945
. Country code is only one. While network code reaches like a hundred. I want a pop up message to appear when the prefix is other than +63945*
, +63917*
, +63906*
, and 20+ other numbers. In other words, there would be no pop up when the prefixes I set are being dialled/called while every other number would prompt a pop up message.
I used this macro but all the numbers I dial seem to activate the dialog box. The macro is working but there seems to be an error somewhere.
(Click to enlarge the images)
[](https://i.sstatic.net/w9wSx.png)
[](https://i.sstatic.net/Yce04m.png)
[](https://i.sstatic.net/q0lU5m.jpg)
[](https://i.sstatic.net/4BDRPm.png)
[](https://i.sstatic.net/cwMi5m.png)
[](https://i.sstatic.net/ukcMPm.jpg)
Kyle
(15 rep)
Aug 14, 2020, 11:06 AM
• Last activity: Aug 15, 2020, 06:57 AM
0
votes
0
answers
4525
views
Disable/enable second DualSIM card command
I use the MarcoDroid app to change phone settings depending on events. I want to turn on and off the second sim card depending on the event. I found a command option where I can type the command to enable/disable the second SIM card. I just don't know what the command will be for the Moto Z2 Play ph...
I use the MarcoDroid app to change phone settings depending on events.
I want to turn on and off the second sim card depending on the event. I found a command option where I can type the command to enable/disable the second SIM card. I just don't know what the command will be for the Moto Z2 Play phone?
The settings are shown in the print screen. Can anyone tell me how to search for a command and its parameters?
EDIT:
I found a command that you can use to change whether the phone is to be multisim or singlesim.
For dual sim:
su -c setprop persist.radio.multisim.config dsds
For single sim:
su -c setprop persist.radio.multisim.config none
The problem is that when I run the command to turn off the second sim card from the console, in the settings there is no option to choose which sim card should be responsible for what, but the card itself remains turned on. Incoming calls do not show up, but the caller has a call tone.
Maybe someone has an idea what other parameter in the console is responsible for turning off the second sim card?

Peter
(101 rep)
Aug 6, 2020, 02:37 PM
• Last activity: Aug 7, 2020, 01:55 PM
Showing page 1 of 20 total questions