Samsung Galaxy F62 removes permissions frequently

Sri

New member
Samsung Galaxy F62 removes the accessibility permissions granted to Macrodroid frequently and I have to set them on again every few days. How can I make the permissions permanent?
 

Attachments

  • 20220822_2.png
    20220822_2.png
    118 KB · Views: 7
  • 20220822_Accessibility1.jpg
    20220822_Accessibility1.jpg
    64.5 KB · Views: 7

Snurre

Well-known member
I made two macro's, one that gets enabled_accessibility_services from 'Secure settings' and one that enables it when MD shows notification that it needs it
First, when every service is enabled and everything is running, I run the macro with
Set var 'access=enabled_accessibility_services' from 'Secure settings'

Then I'm using this

Screenshot_20220823_084207_com.arlosoft.macrodroid.jpg
It's a good idea to run the first macro when another app is installed and also make use off accessibility settings
 

Andydroid

Member
Samsung Galaxy F62 removes the accessibility permissions granted to Macrodroid frequently and I have to set them on again every few days. How can I make the permissions permanent?
It's the same with my Samsung S21FE. Whenever Macrodroid unexpectedly terminates and restarts itself, which is every few days, it loses the permissions. It also loses its setting as the default device assistance app...
 

Sri

New member
I made two macro's, one that gets enabled_accessibility_services from 'Secure settings' and one that enables it when MD shows notification that it needs it
First, when every service is enabled and everything is running, I run the macro with
Set var 'access=enabled_accessibility_services' from 'Secure settings'

Then I'm using this

View attachment 3267
It's a good idea to run the first macro when another app is installed and also make use off accessibility settings
Thanks. Can you please provide the two macros?
 

vm53

New member
Coming soon in the next version is an option to auto re-enable accessibility services that like to turn themselves off. (ADB Hack is required for this)
How to do this adb hack? What instructions should I enter? It would be interesting to have a complete list of how to do all the adb hacks available, perhaps in relief. Thank you in advance!
 
  • Like
Reactions: Sri

Snurre

Well-known member
 

vm53

New member
Thanks for the answer, I had seen this page, but my question is how to do this specific hack "auto re-enable accessibility services that like to turn themselves off" thanks again!
 
  • Like
Reactions: Sri

Snurre

Well-known member
Yeah ok
When you have granted the permissions mentioned above, you give MD the opportunity to change different settings in the system
There are many actions that requires different permissions but it is not necessary to grant it to every action because it's already done if you have followed the above
Does this make any sense?
 
Last edited:
  • Like
Reactions: Sri

vm53

New member
.......Does this make any sense?
I connected the phone to the pc with usb debugging
I opened the command prompt on the pc
I ran the following commands:
adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant com.arlosoft.macrodroid android.permission.CHANGE_CONFIGURATION
adb shell pm grant com.arlosoft.macrodroid.helper android.permission.WRITE_SECURE_SETTINGS

Confirm? It didn't give me any errors :)
I didn't think it was that simple!
In 2 minutes I'm done.
Thank you very much
 

Sri

New member
Thanks. I have run all three adb commands with no error. (But the command prompt asked me to enter .\adb instead of adb). In the phone I have checked all the boxes. Now let us hope the accessibility permissions remain.
 

Sri

New member
Thanks. I have run all three adb commands with no error. (But the command prompt asked me to enter .\adb instead of adb). In the phone I have checked all the boxes. Now let us hope the accessibility permissions remain.
Today I got the warning 'check accessibility settings', but the permission remains.
 

Attachments

  • Screenshot_20220928-172424_Nova Launcher.png
    Screenshot_20220928-172424_Nova Launcher.png
    112.2 KB · Views: 6

Dimlos

Active member
If you are using v5.27.7, try checking the Keep Accessibility Services Running in Settings.
If you turn this feature on and it does not automatically recover, create a macro that sets the value of enabled_accessibility_services to none.
By setting it to none, it will be turned off and MacroDroid will turn it back on.
 

Endercraft

Active member
Today I got the warning 'check accessibility settings', but the permission remains.
That could actually be a bug, sometimes it says that accessibility is disabled even if it is enabled. If it was still enabled then it's a bug. Not really linked but worth telling if you experience it.
 

Endercraft

Active member
5.27.8 fixes loads of bugs, double check for updates.
Yes, I just updated and it looks like a lot of the bugs I discovered are now fixed. Also, I found a floating button configure issue where you just don't have to select a button in a macro (when there's more than 2 floating button trigger) so it crashes. Weird thing, I wasn't able to reproduce it on my cloned app.

Also I thought I posted that like 3 hours ago...? Did my finger not work ?
 
Top