How can I convert this flow?

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Taomyn
Posts: 5
Joined: 22 Aug 2019 06:01

How can I convert this flow?

Post by Taomyn » 26 Aug 2019 08:32

Hi,

I'm new to Automagic and I'm trying to migrate away from Automate and stuck on how to convert this block:

Screenshot_20190825-164325.png
Screenshot_20190825-164325.png (68.72 KiB) Viewed 8167 times

With Automate I had to use their "App decision" block because the normal one "Start activity" would, due to a bug apparently, not populate the source application name and so my OpenVPN app would set the trusted app name to "nul". It seems the "Start activity" in Automagic suffers the same way. Here is where I reported the issue https://github.com/schwabe/ics-openvpn/issues/1018 and this is what happens, note there is no mention of Automagic:

Screenshot_20190826-102524.png
Screenshot_20190826-102524.png (78.82 KiB) Viewed 8167 times

So can anyone help me with how to do this correctly in Automagic?

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

Re: How can I convert this flow?

Post by Desmanto » 26 Aug 2019 18:53

Oh, this is different version of openvpn than the more famous one.

Action : android.intent.action.MAIN
Package : de.blinkt.openvpn
Class name : de.blinkt.openvpn.api.ConnectVPN
extras :

Code: Select all

putString("de.blinkt.openvpn.api.profileName", "Star-One VPN");
But it seems the app implement restriction using AIDL. I don't know how to grant it properly except from the openVPN app itself. I will try and see if it can be done.
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
Taomyn
Posts: 5
Joined: 22 Aug 2019 06:01

Re: How can I convert this flow?

Post by Taomyn » 27 Aug 2019 05:56

Desmanto wrote:
26 Aug 2019 18:53
Oh, this is different version of openvpn than the more famous one.
For me as an advanced user I think it's a better application: http://ics-openvpn.blinkt.de/FAQ.html#f ... ents_title
Desmanto wrote:
26 Aug 2019 18:53
But it seems the app implement restriction using AIDL. I don't know how to grant it properly except from the openVPN app itself. I will try and see if it can be done.
I think I found it, by also ticking the box "Wait for result" the subsequent execution caused the pop up to appear with the name correctly showing, and now it's registered as an allowed app:

Screenshot_20190827-074716.png
Screenshot_20190827-074716.png (114.2 KiB) Viewed 8135 times
Many thanks for the help, and now I can move on migrating more of my flows.

Post Reply