Protected variables

Dm114

Well-known member
Sometimes you may need to use important information you don't want to alter by accident. This macro allows you to manage (create, modify or delete) PROTECTED VARIABLES.

Each PROTECTED VARIABLE content/value is stored in a file located in this internal storage directory:
"MacroDroid /.ProtectedVars"

Every PROTECTED VARIABLE can contain either strings (with whatever characters, including emojis), numerical values (integer or decimal) or mathematical formulas/functions (integrated MD ones only)

ℹ️ To GET the content/value of a PROTECTED VARIABLE (such as a constant), replace the common MD Action "Set Variable" in your macros by the "🔐GetProtectedVar" Action Block call with its parameters (see this Action block for more details).

ℹ️ To CREATE or UPDATE a PROTECTED VARIABLE programmatically, use the "🔐PutProtectedVar" password protected Action Block to avoid erasing or updating a PROTECTED VARIABLE by accident (see this Action block for more details).

👉 HINT: to initiate 3 sample PROTECTED VARIABLES, you can run TstPutProtectedVar macro first. Then run this ProtectedVars macro.

_________________________________________

This macro shows how to call 🔐GetProtectedVar Action block to get the content/value of a PROTECTED VARIABLE.

See 🔐GetProtectedVar Action block description for further details.

_________________________________________

This macro initiates 3 sample PROTECTED VARIABLES.

For further information, look at explanations in:
• ProtectedVars macro
🔐PutProtectedVar Action block

 

Dm114

Well-known member
As I make severe allergy to G**gle policy and their new Android versions, I'm still working with an "old" v9 and have no particular trouble with WiFi settings, file management and other limitations for our... "best welfare"! 😉

So, macros and Action blocks above I've been using every day for months, work on my Android v9. Hope you won't have any trouble on your own Android versions. If so, tell me what happens and I'll try to fix it...
 

Endercraft

Moderator (& bug finder :D)
As I make severe allergy to G**gle policy and their new Android versions, I'm still working with an "old" v9 and have no particular trouble with WiFi settings, file management and other limitations for our... "best welfare"! 😉

So, macros and Action blocks above I've been using every day for months, work on my Android v9. Hope you won't have any trouble on your own Android versions. If so, tell me what happens and I'll try to fix it...
I worked with v6 before, so let's say restrictions were almost non existent :D however because it was Xiaomi there were still some annoying restrictions.
 
Top