cristalcommons
New member
Hello, pals
I want to find a way to prevent uninstalling certain apps without having to grant them Device Admin permissions.
My idea for that was a Macro that:
Current macro
TRIGGER
About Regular Expression
But I don't know how to make Macrodroid detect the name of the app and the word 'Uninstall', as they are part of a different string.
Also I would like the RegEx to be case insensitive, because Google Play uses 'Uninstall' (case) and Package Installer uses 'uninstall' (no case).
I don't know RegEx, this is my first time using it, so my ideas for it to make it work are probably very bad:
If this can be done, could you please help me set the RegEx code right?
Thank you.
Have a nice day!
I want to find a way to prevent uninstalling certain apps without having to grant them Device Admin permissions.
My idea for that was a Macro that:
- T - Detects the name of the app and the word 'Uninstall' in Google Play and Package Installer apps
- A - And then immediately closes those apps before I could press the Uninstall button.
Current macro
TRIGGER
ACTION
- Screen Content (On Screen)
- Applications: Google Play Store, Package Installer
- Type: On Screen
- Match Option: Text content
- Text to match: ???????
- Enable regular expression matching: Yes
- Kill Application
- Select Application: Google Play Store, Package Installer
About Regular Expression
But I don't know how to make Macrodroid detect the name of the app and the word 'Uninstall', as they are part of a different string.
Also I would like the RegEx to be case insensitive, because Google Play uses 'Uninstall' (case) and Package Installer uses 'uninstall' (no case).
I don't know RegEx, this is my first time using it, so my ideas for it to make it work are probably very bad:
Code:
(?i)StayFree+desinstalar
Code:
(?i)StayFree+[\n\r]*desinstalar
Code:
(?i)(?=.*StayFree)(?=.*desinstalar)
If this can be done, could you please help me set the RegEx code right?
Thank you.
Have a nice day!