Unable to set ringer volume {vol_ring}

Steve M.

New member
I'm fairly new to MacroDroid. One of my macros tries to set the ringer volume when I get home, but when it runs I get the error:
Could not set 47: java.lang.IllegalArgumentException: You cannot keep your settings in the secure settings.

I have read the post about ADB Hack and have followed those instructions, apparently successfully, but this has made no difference. I have also read the post about MacroDroid Helper and tried to install it, but "App not installed as app isn't compatible with your phone." so that's not working.

I have a Samsung Galaxy S22 running Android 14

Can someone advise how I can get this to work? ringer volume doesn't really seem like it should be a protected setting!

I have attached the macro and log of testing it.

thanks
Steve
 

Attachments

  • Ring_when_at_home.macro
    1.4 KB · Views: 4
  • MacroDroidLog.txt
    496 bytes · Views: 1

Endercraft

Moderator (& bug finder :D)
You must install the helper app and tick the Use helper app checkbox inside the action configuration.
 

Romeo333

New member
Необходимо установить вспомогательное приложение и поставить галочку в поле Использовать вспомогательное приложение в конфигурации действия.
Необходимо установить вспомогательное приложение и поставить галочку в поле Использовать вспомогательное приложение в конфигурации действия.
Привет. На новые телефоны не подходит приложение помошник. Оно не написано под 64 битные архитектуры. Оно не подходит к вашему телефону.
 

Steve M.

New member
This is what happened when I tried to install the Helper app - as I said, my device refuses to install it. At no time did I get a warning message, just this refusal to install it.
 

Attachments

  • Screenshot_20240708_192622_Package installer.jpg
    Screenshot_20240708_192622_Package installer.jpg
    422.7 KB · Views: 6

Dm114

Well-known member
Привет. На новые телефоны не подходит приложение помошник. Оно не написано под 64 битные архитектуры. Оно не подходит к вашему телефону.
Please write in English.
 

Steve M.

New member
Translation: Hello. The assistant application is not suitable for new phones. It is not written for 64-bit architectures. It doesn't fit your phone.

I think he's referring to google assistant app??
It's a (slight) mis-translation - should be 'helper' rather than 'assistant' (synonyms).

This is what I thought, the Helper app is not compatible with my phone so I won't be able to use it. What a pain that Android system is shutting the door on an app setting things like ringer volume - in what way does that need to be "secure"?
 

Dimlos

Well-known member
Please read the following thread carefully on how to install Helper on Android 14.
 

Steve M.

New member
OK, I found my workaround: use the 'Volume Change' action and set the ringer volume level in that.
This does exactly what I want: to set the ringer volume to 50% when I get home.
So no need for the Helper app after all.
 

Steve M.

New member
Please read the following thread carefully on how to install Helper on Android 14.
I did all that (I used to work in IT support so I know to RTFM) - my device rejects it flat out, no option to say 'install it anyway' so I would have to use the ADB installation method in https://www.macrodroidforum.com/index.php?threads/installing-helper-on-android-14.5606/ (if you're going to tell me to read a post, at least send me to the most relevant one).

But as you'll see in my other reply I found an alternative to set the ringer volume (Volume Change action), which none of the experts on this forum suggested. That does not require me to go through hoops running the ADB installation method so it's preferable for me. Reading the replies there it's a bumpy road anyway so the simple solution is preferred.
 

Dimlos

Well-known member
No one could have predicted that you would create such a messed up macro.
When you attach a macro, be sure to attach a screenshot.
The thread I cited definitely explains how to install Android 14.
It also confirms that you can install it on multiple devices, so if you can't install it, then you must be doing something wrong.
 

Attachments

  • Macro.jpg
    Macro.jpg
    404.7 KB · Views: 4

md_sgf

Active member
OK, I found my workaround: use the 'Volume Change' action and set the ringer volume level in that.
This does exactly what I want: to set the ringer volume to 50% when I get home.
So no need for the Helper app after all.
I think you tried the workaround first! :LOL:

I've done some testing, and even after correcting your System Setting action (see below), it appears that this is one of those system settings that doesn't work via System Setting action. That is, the value of the key is set, but not the actual state. The value can be read but not written updated (in a timely fashion).
Or maybe the OS isn't aware that it's been changed, or something. Just did test now, and i can confirm it did work, after restarting phone, which is one time when OS reads & updates the status of things.

System Setting action correction:
removed the {}'s, and changed key to volume_ring_speaker (as on my phones at least, there is no vol_ring key, but is volume_ring, but unsure what that volume is)
 
Last edited:
Top