Wireless Power Sharing

jralph23

New member
Is there a way to toggle Wireless Power Sharing through Macrodroid? I use a Samsung Galaxy s22. Obviously it's not available through the standard app actions, but is there a system setting or something else which might allow it?
Thanks.
 

dhj49er

Well-known member
Is there a way to toggle Wireless Power Sharing through Macrodroid? I use a Samsung Galaxy s22. Obviously it's not available through the standard app actions, but is there a system setting or something else which might allow it?
Thanks.
I have a S23 and unfortunately there is no system setting.

However, the attached screenshot shows a macro that can quickly toggle the wireless power sharing setting.

In order for it to work as shown, the wireless power sharing icon needs to added to the first "page" of quick settings.

On the S23 when the wireless power sharing setting is enabled a popup message is shown - see 2nd screenshot. Exit that screen and the wireless power sharing remains enabled or press cancel to disable the wireless power sharing setting.

Adding a wait and return to home screen actions to the macro would clear the popup to fully automate the toggle.
 

Attachments

  • Screenshot_20240109_120048_MacroDroid.jpg
    Screenshot_20240109_120048_MacroDroid.jpg
    311.7 KB · Views: 10
  • Screenshot_20240109_120219_Device care.jpg
    Screenshot_20240109_120219_Device care.jpg
    271.9 KB · Views: 10

dhj49er

Well-known member
I thought it would be useful to determine the state of the wireless power saving setting.

The attached screenshot shows the additional actions I've added after the collapse status bar action in the original macro.

The setting is stored in local Boolean variable WPS. However, this can be replaced with a global Boolean variable should you want to use the setting in other macros

The full macro is attached.

The read screen action populates a dictionary - WPSharing.

I'm not sure but the WPSharing dictionary content could vary across different devices. Consequently the dictionary Id used in the set variable Alert Title action may need changing - run the macro & inspect the WPSharing dictionary to find the correct id.
 

Attachments

  • Screenshot_20240110_084653_MacroDroid.jpg
    Screenshot_20240110_084653_MacroDroid.jpg
    478.4 KB · Views: 6
  • Wireless_Power_Saving_Toggle.macro
    12.3 KB · Views: 1
Top