Battery save noroot

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
Koshon
Posts: 2
Joined: 04 Jan 2019 18:41

Battery save noroot

Post by Koshon » 05 Jan 2019 17:58

Hi. Can anyone help me with next?
I need enable battery saver without root.
I used a flow "variable logger" and now have this

Code: Select all

 [{item_count=-1, scrollable=false, from_index=-1, source_class_name=com.letv.leui.widget.LeSwitch, event_type=1, enabled=true, app_name=Диспетчер телефона, content_description=null, to_index=-1, label=null, fullscreen=false, password=false, scroll_y=-1, checked=false, triggertime=1546710190214, before_text=null, package_name=com.letv.android.supermanager, scroll_x=-1, removed_count=-1, text=, added_count=-1, source_bounds=[906, 1099, 126, 72], current_item_index=-1}]
But what should do with this - i don't know. Default flow or script? Which function? I think this is a setWidgetElementProperty(String widgetName, String elementName, String property, Object value) but what with string property? This is how it looks like in attached file. Sowwy if my English is broken.
Attachments
Screenshot_2019-01-05-21-37-42.jpg
Screenshot_2019-01-05-21-37-42.jpg (377.81 KiB) Viewed 686 times

User avatar
Desmanto
Posts: 1810
Joined: 21 Jul 2017 17:50

Re: Battery save noroot

Post by Desmanto » 06 Jan 2019 12:41

You want to interact with the UI element, in terms of clicking it right? You should use Action Control UI, not Trigger UI Event. Tutorial on using Control UI is here : viewtopic.php?f=6&t=7320

You can look at the video tutorial too : https://www.youtube.com/watch?v=4HmNBfrw4Yk
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190512, Pie 9.0, Rooted.

Koshon
Posts: 2
Joined: 04 Jan 2019 18:41

Re: Battery save noroot

Post by Koshon » 11 Jan 2019 14:10

I don't need this thru the UI, cuz 1screen need to be activated, 2unlocked and 3the user interface must be showing on screen. This is not what i need.

User avatar
Desmanto
Posts: 1810
Joined: 21 Jul 2017 17:50

Re: Battery save noroot

Post by Desmanto » 11 Jan 2019 17:25

I don't know if it works at yours, you can try to use action Set System Setting. At mine, RR 6.2.0, Oreo 8.1; the Extreme battery saver mode is located at Global - low_power. When set to 1, this activate the battery saver mode, 0 to back to normal mode.

You have to grant Automagic - Write Secure Setting Permission in adb at PC. Be careful when playing with the value, wrong setting can cause bootloop.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190512, Pie 9.0, Rooted.

Post Reply