Download MACROS to your smartphone, which will control automatic actions
. Open MACROS via the MacroDroid app (by clicking on the file, the smartphone itself will offer to open it via MacroDroid)
Save MACROS to MacroDroid. During the saving process, you will need to provide multiple accesses for the MacroDroid application. so that MACROS can perform automatic actions.