Authorize automatically vpndialogs/.ConfirmDialog

Hello 

We're planning to integrate a VPN application (Zscaler). When it is initialized, we have an Android popup (see below) that the user must authorize by pressing the "OK" button. 
I'm looking for a way to automate this action. 

com.android.vpndialogs/.ConfirmDialog

We have a solution that uses a JS script (Mobicontrol) with the device.injectKey function to perform TAB, Enter and timers.
This doesn't seem 100% reliable to me, I'm afraid of having a lot of failures. 

Does anyone have a better solution to avoid this popup or to authorize it automatically ? 

Activity name Popup  : com.android.vpndialogs/.ConfirmDialog

This GitHub post explains the same problem, but ADB resolution is not remotely automatable...
https://stackoverflow.com/questions/67980851/grant-android-vpn-permission-via-command-line-using-adb

Thank you for your help

2 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
2 years ago

How do you povide the config?
I see this app has managed app config where i can see also "autoEnrollwithMDM" which sounds like a flag or so which maybe could avoid such a message. But as we don't use this app right now it'S on your side to check maybe.

But i found this in the documentation:

"autoEnrollWithMDM: If enabled, Zscaler Client Connector enrolls in the back end without any user interaction. "

NL
Nicolas Le Bihan
2 years ago

Hello Rafael,

I use APP Policies to install my application. I've seen this setting and I'm using it, unfortunately I don't see any change with or without this setting...
I've also tested it on different versions of Android 11 or 13, and the result is identical.
I've contacted the Zscaler editor, who tells me that this setting won't help me: "The AutoEnrollwithMDM setting allows the user to be automatically provisioned in Zscaler Internet Access, but cannot force the Zscaler application to accept system permissions".
That's why I'm turning to SOTI to try to accept this system permission request.

RS
Rafael Schäfer
2 years ago

Hmm, ok as i don't understand france, i haven't noted that this is a permission request from the OEM.

Then i don't know as there's no way to automate this as far as i know.
And i think the available VPN settings being able to set via profile to the device directly without an app between won't help you (version 2024.0 has more options than 15.X)?

M
MPMOD@SOTI
a year ago

Hi Nicolas,

Thank you for posting on SOTI Pulse! 

I do not think that there is another way that can possibly action this prompt. 

Please feel free to reach out to technical support and create a case to speak to an agent directly about this.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.netDiscussion Forum | Log a Case OnlineLinkedIn l