If you own a Xiaomi smartphone and you notice a mysterious MyMacro program in the list of applications, but you do not understand what it is for, this article will help you understand. Immediately let us say: it is not a virus or malware, although some users mistakenly mistake it for one. MyMacro is a built-in tool for automating actions on devices running MIUI, which allows you to record and play sequences of touches, gestures and commands.
It's basically a desktop macro that's been brought to mobile, and with MyMacro, you can make it easier to do things like open a lot of apps quickly to get complex interface scenarios, but not everyone knows that it exists -- it's often hidden in the depths of the settings, or it only appears after the developer mode is activated, and then we'll go into detail about how the app works, where to find it, and whether it's worth using.
What is MyMacro and why is it needed by Xiaomi?
MyMacro (sometimes called MacroDroid in some firmware) is a system application for automating tasks on Xiaomi, Redmi and POCO smartphones. It allows you to record sequences (macros) that can then be played with a single click. For example, you can create a macro to:
- ๐ Quickly switch between frequently used applications.
- ๐ฑ Automatically turn on/off Wi-Fi or mobile data depending on location.
- ๐ฎ Simplifications of control in games (e.g., repeated combo strikes).
- ๐ Filling out forms or entering frequently used texts (e.g. email or address).
It is important to understand that MyMacro is not a standalone app that can be downloaded from Google Play. It is built into MIUI firmware and activated via Settings โ Additional โ Macros (the path may vary depending on the firmware version). In some models, such as Xiaomi 12T or Redmi Note 11, this tool is available by default, and in others it must be enabled manually.
MyMacroโs main advantage over third-party counterparts (such as Tasker or Automate) is its deep integration with the system, which can interact with MIUI settings at a level not available to most third-party applications, for example, you can create a macro that will automatically switch the theme from dark to light depending on the time of day, or run a specific application when you connect your headphones.
Where to find MyMacro on Xiaomi: step-by-step instructions
While useful, finding MyMacro isn't always easy -- it depends on the MIUI version and the smartphone model. Here are a few ways to find the app:
- Through System Settings: Go to Settings โ Additional โ Macros. If this item is not available, try the Settings path โ Special Features โ Macroses.
- Through Settings Search: Open Settings, tap the magnifier icon (search) in the top right corner, and type in "Macros" or "MyMacro."
- Through Developer Mode: Activate Developer Mode (7 times click on the MIUI version in About Phone), then find the Macrosa item in the developer settings.
- Through Launcher: On some firmware, the MyMacro icon appears in the app menu after first running through the settings.
If none of these methods worked, your firmware may not support this feature, in which case you can try upgrading MIUI to the latest version or using alternative automation applications like Tasker or MacroDroid (but they require root rights to work properly).
โ๏ธ Preparing for work with MyMacro
How to Create and Set Up a Macro in MyMacro
Making a macro in MyMacro consists of three main steps: recording actions, setting up triggers, and saving a script. Let's take a simple macro to automatically open YouTube and play your favorite playlist.
Step 1: Starting the macro recording
- Open MyMacro through settings or launcher.
- Click the button โCreate macroโ or โAddโ.
- Select the โWrite Actionsโ option (usually indicated by the circle icon or the record button).
Step 2: Performing actions to record
Now all your touches and gestures will be recorded.
- Open the YouTube app.
- Find the right playlist and click on it.
- Put the video on pause (this will be the final macro action).
- Return to MyMacro and stop the recording.
Step 3: Set up the trigger
Now you have to choose what will run the macro.
- ๐ Button on the screen โ a floating icon will appear for a quick start.
- ๐ In time, the macro will work at the specified hour.
- ๐ Location โ for example, when approaching the house.
- ๐ When connecting the device (earphones, charging, etc.).
Note that too complex scripts can work unstable, especially if the application interface changes between recording and playback (for example, after the YouTube update).
What happens if the macro is not reproduced?
Security and Risks of Using MyMacro
While MyMacro is Xiaomiโs official tool, it comes with some risks.
โ ๏ธ Note: Macros can record and play back passwords and pins, and if you create a macro to automatically log into a banking application, anyone who accesses your phone can play that macro and access your data. Never record activities related to financial information!
Other potential problems:
- ๐ Conflicts with other applications: Some macros may interfere with other automated tools (e.g. Google Assistant or Google Assistant) IFTTT).
- ๐ Increased battery consumption: Constant operation of background macros (especially with location triggers) can reduce battery life.
- ๐ ๏ธ System instability: macros that are too complex or incorrectly configured can cause freezes or reboots.
To minimize the risks:
- Do not use MyMacro to automate your actions in banking applications, messengers with important correspondence or systems with two-factor authentication.
- Check the list of active macros regularly and remove unnecessary ones.
- Limit the background activity of macros in the battery settings (Settings โ Battery โ Battery Optimization).
๐ก
If you're experimenting with macros, create a separate user on your phone (via Settings โ System โ Multiplayer) and test macros there. This will protect your core data from random errors.
How to remove or disable MyMacro on Xiaomi
If you decide you don't need MyMacro, you can disable it or delete it.
Option 1: Unsetting (without deletion)
- Go to Settings โ Applications โ Application Management.
- Find MyMacro on the list.
- Click "Disable" (if the button is active).
Option 2: Removal (requires root rights)
Because MyMacro is a system application, you can't completely uninstall it without root rights.
- ๐ฑ Hide from the menu with a launcher (for example, Nova Launcher).
- ๐ง Freeze through ADB (without root: adb shell pm disable-user --user 0 com.miui.macro
- ๐๏ธ Remove completely with root rights via Root Explorer or Titanium Backup.
โ ๏ธ Warning: Removing system applications can lead to unstable work MIUI. If errors occur after removing MyMacro (for example, gestures or settings do not work), restore the application via firmware or reset to factory settings.
Comparing MyMacro with other automation tools
If MyMacro doesn't work for you, there are alternatives, and here's a comparison of popular automation tools for Android:
| Annex | Demands a root | Integration with MIUI | Difficulty setting up | Free version |
|---|---|---|---|---|
| MyMacro | โ No. | โญโญโญโญโญ (full-fledged) | โญโญ (simple) | โ Yes. |
| Tasker | โ ๏ธ Partially. | โญโญ (limited) | โญโญโญโญ (difficult) | โ No (7-day trial) |
| MacroDroid | โ No. | โญโญโญ (middle-class) | โญโญโญ (moderately) | โ Yes (with limitations) |
| Automate | โ No. | โญโญ (limited) | โญโญโญ (moderately) | โ Yes. |
| IFTTT | โ No. | โญ (minimal) | โญ (simple) | โ Yes (with limitations) |
MyMacro beats competitors with deep integration with MIUI, but loses flexibility. For example, Tasker can automate almost any Android task, but requires root rights to work properly and has a complex interface. MacroDroid is a good compromise for those who want more features than MyMacro, but are not ready to understand Tasker.
๐ก
If you want simple automation of everyday tasks (opening apps, changing settings) MyMacro is the best option. For complex scenarios with conditions and branches, choose Tasker or MacroDroid.
Frequent MyMacro Problems and How to Solve Them
MyMacro users sometimes encounter errors, and here are the most common problems and solutions:
1. Macros is not reproduced
- ๐น Check if the interface of the application with which the macro interacts has changed.
- ๐น Make sure that there are no limitations in the MyMacro battery settings (Settings) โ Battery โ Optimizing the battery โ All applications โ MyMacro โ No restrictions).
- ๐น Reboot your phone โ sometimes helps to reset background processes.
2.The macro is not working properly (presses the wrong way)
- ๐ฏ Rewrite macros โ perhaps there were extra touches when recording.
- ๐ฏ Increase delays between actions in macro settings (if such option is available).
- ๐ฏ Check if the screen resolution or scale has changed.
3 MyMacro does not open or gives an error
- ๐ Update. MIUI last-minute.
- ๐ Clear the app cache (Settings) โ Annexes โ MyMacro โ Warehouse โ Clear the cache).
- ๐ If the error occurred after the firmware update, the feature may be temporarily disabled.
4.The macro starts on its own
- ๐ Check macro triggers โ you may have chosen a condition that is too broad (e.g., โany Wi-Fi connectionยป).
- ๐ Remove unnecessary macros that may conflict.
- ๐ Turn off auto-start for MyMacro in the application resolution settings.
If none of these methods worked, try resetting MyMacro to factory settings. To do so, delete all the macros you created and restart your phone. In extreme cases, you can reset MIUI settings (but this will delete all your data!).