Enabled flows list

Share and discuss your flows and ideas with other users.

Moderator: Martin

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Enabled flows list

Post by Rafi4 » 13 Apr 2020 11:03

Hi
With this flow you can get the list of enabled or disabled flows with category name And then you can enable or disable the selected flow.group name contains 👫👫.
At the end of the category value as --------.

Process as below 👉
1.install shortcut to home screen.
2.click on shortcut to start and wait for few seconds.
3.select disabled or enabled flows.
4.if you wish to change the status of the flow change status.

http://automagic4android.com/flow.php?i ... ed73197b90

From record4
Last edited by Rafi4 on 14 Apr 2020 03:04, edited 2 times in total.
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Yam
Posts: 54
Joined: 23 Nov 2019 09:07

Re: Enabled flows list

Post by Yam » 13 Apr 2020 13:48

Nice work!

Edit: I just realized you did categories! Wicked job


You inspired me to create a toggle version
http://automagic4android.com/flow.php?i ... 87f43ee398
Last edited by Yam on 14 Apr 2020 13:09, edited 2 times in total.
Every life altering decision you have made, has lead to you reading this.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 13 Apr 2020 14:29

Hi yam
Before saying something read the flow description first.
I have already mentioned that the flow contains categories, enabled and disabled flows are separated.

How can you say that my flow is wicked job?

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Yam
Posts: 54
Joined: 23 Nov 2019 09:07

Re: Enabled flows list

Post by Yam » 14 Apr 2020 12:55

😅 My bad. I misread an important word.

"Wicked job" = "Awesome Job"
Every life altering decision you have made, has lead to you reading this.

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

Re: Enabled flows list

Post by Desmanto » 15 Apr 2020 19:55

@Rafi4 : I also read that "wicked job" as "awesome" or "outstanding". Maybe I play game too much :D

@Yam : to get the list of all flow state, there is a faster way. cat the flows.xml file and use regex to read all the flow state.

Execute command

Code: Select all

cat /storage/emulated/0/Automagic/flows.xml
I use execute command, as my flows.xml is bigger than 1 MB (init variable text file limits at 1 MB).

Use script

Code: Select all

findex = indexOf(stdout, "  <flow type=");
ftext = substring(stdout, findex);

//the long regex for flow
find = findAll(ftext, '  <flow type="flow">\\r\\n    <name>(.*)</name>\\r\\n(?:    <group>(.*)</group>\\r\\n)?    <enabled>(true|false)</enabled>\\r\\n    <lastExecutionStartTime>(\\d+)</lastExecutionStartTime>\\r\\n    <lastExecutionEndTime>(\\d+)</lastExecutionEndTime>\\r\\n    <executionPolicy>(.*)</executionPolicy>\\r\\n(?:    <emergencyStopCount>(\\d+)</emergencyStopCount>)?', true);

//find is = all capture, flow name, group, enabled state, last execution start time, end time, execution policy, emergency stop.
Use debug dialog to inspect {find}. The state is stored at the find[3], which you can loop to extract it out. You don't need the whole regex, it is just part of my flow, so I just paste it here for completeness.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 15 Apr 2020 21:50

Hi Desmanto
Amazing . I have missed some of my flows in the find list.
How can I get all of them? One more thing the xml file bigger than 1 m.b.

Are you getting all of your complete flows in find list?

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

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

Re: Enabled flows list

Post by Desmanto » 19 Apr 2020 15:51

Yes, i get all my 300 flows, in a 3 MB flows.xml.

I think the regex might break if you have some non standard alphabet letter in the naming. Do all the flows those disappear have some pattern you can spot? I might need to change the regex to fit those. Maybe you can post some of those flows name, I will try to rename my flow to those and see if those disappear too.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 19 Apr 2020 20:49

Hi Desmanto
Here are all flows
Active flows, Apps ⏰ start, Apps Usage, Apps widget flow, Argb Colour, Argb Colour copy, Audio volume, Auto off, Automagic Startup, Automatgic notification, Backup, Battery, Battery condition, Battery duration, Battery full, Bluetooth profile, Bottom, Broadcast Receive, Broadcast Send, Calculator, Call incoming, Call Recording end, Call Recording start, Calls Export, Calls logging, Calls options, Clipboard options, Combine Images, Count device, Count file, Counts Add, Counts delete, COVID-19 Tracker v2.0, Create lists, Display off, Display off global, Display on, Display Timeout, Display unlocked, Enable disable text expansion, Enabled flows, Events Completed, Events notify, Events notify Delete, Events Options, Expansion state, Fake call, Fav calls, File Observer Text expansion, Files options, Flash light, Flow search, Flow1, Flow2, Flow3, Flow4, Game, Game reminder, global_values, Hide control, Keyboard, Keys view, Locked widget, Media volume, Mega clipboard, Memo, message create, Missed Calls Dialer, Missed Calls list, Mobile Data alert, Mobile data ⏰, Multi Flows, Multi Press(🔊), Multi state, My expansion, My Expansion click, New apps, Notes, Notification buttons, Notify home, Password, Porn videos, Poweroff, Privacy Photos, Privacy voice, Rename files, Scan Device, Security, Selfies, Set wallpaper, Shared content, Shop, Skip ads, Sms options, Text expansion, Text expansion app started, Text expansion hide widget, Text expansion startup, Text expansion timeout timer, Text expansion widget click, Toggle Expansion, Toggle Proximity, Tools widget, Unsplash, Update Text Expansion File, Video play, Voice typing, wall paper, Widget display, YouTube [480p]



from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

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

Re: Enabled flows list

Post by Desmanto » 20 Apr 2020 16:09

@Rafi4 : You have emoji in the flow name. I have tried to rename it with some emoji, the flow name still parsed properly by the regex. What is the flow name those disappear from the above list? Try to check the index or the length of the flow list, and compare it to function getFlowNames().
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 21 Apr 2020 14:51

Hi Desmanto
I don't have problem with emojis.

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply