Password Protection for Macrodroid Toggle On/Off button

cristalcommons

New member
Hello, MacroDroid Devs! 😊


I have various Categories on MacroDroid.
There are categories that I need to keep blocked and have a lock.
But there are others that I would like to keep having constant access to for tinkering, editing, etc.

The problem is that if I can disable all Macros from the MacroDroid Main Menu button,
it doesn't do much to have Macro Categories with a lock anyway.


9CKeEHC.png


I know I could enable "Password Protection" in the Settings menu,
but that prevents me from being able to access other Macros that I do want to be able to fiddle with.


Suggestion
Could you change in the app Settings the "Password Protection" option to have 2 options?
Option 1: "When opening the app" (as it is now)
Option 2: "When enabling/disabling MacroDroid"

My idea was that if the user has enabled the "When enabling/disabling MacroDroid" option of Password Protection,
if they try to toggle On/Off button from the Main screen, they will be prompted for a password.
This behavior is similar to enabling/disabling Macro Categories that have a lock active.


I hope this suggestion makes sense.

Thank you so much for developing MacroDroid, you are so great guys.
Have a nice day.
 

JoeReMi

Member
Thirded. This would be amazing!

(I'm working on a macro that prevents access to the MacroDroid app at certain times of the day and this would simplify a lot of things.)
 

cristalcommons

New member
I'm glad you guys think it's a good idea.
For now, the macro I have to create to avoid turning Macrodroid off is detecting the text in the tiles and automatically closing the app, but I am usually faster at turning the switch off hahaha.
 

Winny57

Member
You already have password protection included in MacroDroid settings.

So no deactivation possible without access to the application.
 

JoeReMi

Member
You already have password protection included in MacroDroid settings.

So no deactivation possible without access to the application.
That's not what this is about. This is about preventing deactivation even when the app is accessible.

I'm glad you guys think it's a good idea.
For now, the macro I have to create to avoid turning Macrodroid off is detecting the text in the tiles and automatically closing the app, but I am usually faster at turning the switch off hahaha.
Have you considered using the "block screen touches" action?
 

cristalcommons

New member
That's not what this is about. This is about preventing deactivation even when the app is accessible.
Exactly!
Have you considered using the "block screen touches" action?
OMG, nice, it works! I was using a macro with "Read Screen Content" instead, lol.

EDIT: Could you please share your macro for this? I wanted to Block Screen Touches just on Macrodroid's main menu, but not in other Macrodroid screens or non-Macrodroid apps.
Thank you!
 
Last edited:

cristalcommons

New member
Worse than build in, but still better than nothing: https://www.macrodroidlink.com/macrostore?id=21608
Works by detecting, if you are in macrodroid and in the first tab by color of it. Locking down only part of the screen with "floating text" that after touching it requires password
Oh, thank you so much for sharing! I'm going to try it right now.
Tried it at first, but if you are trying to detect only by one text button, it's slow, and when you are detecting by multiple, it increases that it will be fired somewhere else in app
Totally! That was the problem, at least for me: it was slow because the macro had to read the names of two random button tiles to check that I was on that Macrodroid screen, lol.
 

cristalcommons

New member
Oh, could any of you folks who are reading this thread try to import the macro DonDemon has just shared?

It seems I can import other template macros from other people, but I cannot add this one in particular, and I don't know why.
I don't have any macro enabled that could be interfering.
I have deleted cache and storage in Macrodroid app, but the issue persists.

Could you reply to this thread and confirm if you could import DonDemon's template successfully?

Thank you 🙏
 

Qarboz

Well-known member
Oh, could any of you folks who are reading this thread try to import the macro DonDemon has just shared?

It seems I can import other template macros from other people, but I cannot add this one in particular, and I don't know why.
I don't have any macro enabled that could be interfering.
I have deleted cache and storage in Macrodroid app, but the issue persists.

Could you reply to this thread and confirm if you could import DonDemon's template successfully?

Thank you 🙏
Maybe you have a macro with the same name?
 

JoeReMi

Member
Exactly!

OMG, nice, it works! I was using a macro with "Read Screen Content" instead, lol.

EDIT: Could you please share your macro for this? I wanted to Block Screen Touches just on Macrodroid's main menu, but not in other Macrodroid screens or non-Macrodroid apps.
Thank you!
My two cents about the "Block screen touches" option:
  • I don't have a macro ready but I have noticed that you can set the area in which touches are blocked very precisely. So you can block touches in the on/off button area but still be able to touch (for example) the expand/collapse buttons in the Macro list.
  • After turning off the screen, this blocked area disappears. One way to prevent this workaround is to have MacroDroid close when the screen is turned off, and then have the blocked area take effect whenever MacroDroid is launched.
 

cristalcommons

New member
Oh, thank you DonDemon. There must be something weird happening with Macrodroid in my device. The app closes down when I try to open this macro.

@Qarboz , thank you for assisting me. No, I don't have any macro with the very same name, and most of them are disabled, so they aren't the cause. DonDemon's macro has not been imported still, so there aren't duplicates either. I guess I'll uninstall the app and I will only import the macros, but not the config. Ty.

@JoeReMi, thank you too, now I remember why the macro I personally created with the Screen Block action didn't work 😂 Hopefully DonDemon made a better one, if I only could open it lol.


EDIT: Fixed! I reinstalled Macrodroid and now it's working ☺️ Thank you guys!!
 
Last edited:
Top