Lockdown menu item run file

Lockdown menu item run file

Hello,

 

I've managed to execute / run a file with:

File://%sdcard%/servers.2xc

In lockdown items, Having the file in the root of sdcard ofcourse.

 

But it requests which app it wants to use:

 

 Is there a way to choose a package file without the request?

Devices are Android 10 enrolled as device owner.
CK65 - honeywell.

5 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 08 March 2021

What type of file is that? A cursory Google indicates it might be for Parallels? Do you have a Parallels client installed on the device that has registered an association for that file type?

  • 0
  • 0
Wesley | posted this 08 March 2021

Hi Matt,

 

Sorry should've clarified that.
Yes the app is Parallels, in the image its the first item listed "client".

  • 0
  • 0
Raymond Chan | posted this 08 March 2021

Your device firmware hasn't been configured to associate  file with .2xc extension to be opened by what app ("com.parallels.client" in your case).  Choosing  "Always"  ("Altijd" in Dutch in your screenshot) once should just do so, and subsequent tapping on the kiosk item will not have the prompt for user to choose again.

 

As I don't have the app nor any relevant data file to do any test, I dont' know if the following intent kiosk item will work or not :

 

  intent:File://%sdcard%/servers.2xc#Intent;action=android.intent.action.VIEW;component=com.parallels.client;end

 

OR

 

  intent:File://%sdcard%/servers.2xc#Intent;scheme=application/2xc;action=android.intent.action.VIEW;component=com.parallels.client;end

  • 0
  • 0
Wesley | posted this 08 March 2021

Hi Raymond,

 

I actually figured it out thanks to the lines you showed me + HXlogger from Honeywell.
In the logs I found:

act=android.intent.action.VIEW dat=content://net.soti.mobicontrol.androidwork/app-shared/servers.2xc typ=*/* flg=0x17000001 cmp=com.parallels.client/com.parallels.access.ui.remote.shortcuts.LaunchShortcutActivity

Which eventually led me to:
intent:content://net.soti.mobicontrol.androidwork/app-shared/servers.2xc#Intent;type=*/*;action=android.intent.action.VIEW;component=com.parallels.client/com.parallels.access.ui.remote.shortcuts.LaunchShortcutActivity;end

 

Either way, this has taught me a lot.

  • 1
  • 0
Wesley | posted this 08 March 2021

Hi Raymond,

I actually figured it out thanks to the lines you showed me + HXlogger from Honeywell.
In the logs I found:

act=android.intent.action.VIEW dat=content://net.soti.mobicontrol.androidwork/app-shared/servers.2xc typ=*/* flg=0x17000001 cmp=com.parallels.client/com.parallels.access.ui.remote.shortcuts.LaunchShortcutActivity

Which eventually led me to:
intent:content://net.soti.mobicontrol.androidwork/app-shared/servers.2xc#Intent;type=*/*;action=android.intent.action.VIEW;component=com.parallels.client/com.parallels.access.ui.remote.shortcuts.LaunchShortcutActivity;end

Either way, this has taught me a lot.

It appears I was too quickly jumping to conclusions, this only works after first using "File://%sdcard%/servers.2xc"...
Thats too bad... I thought I had it.

 

The only problem I have with just using File:// is that it tries to open Photo by default.
Which means I can't use "always" with the option below "client" unless I do this twice.

Doing it twice is a bummer because it also loads in the config file twice and instead of overwriting the RDP settings it just duplicates it with (1) next to the name.


---------------

edit: seems like I got it working after all with the following:

intent:file:///sdcard/servers.2xc#Intent;type=application/octet-stream;component=com.parallels.client/com.parallels.access.ui.remote.shortcuts.LaunchShortcutActivity;launchFlags=0x4000000;end

It took me a lot of mixing and testing around but this still works after a reboot of the device, which failed with the previous attempts.
Tomorrow we are gonna configure about 20 devices with the same setup and see if it works for all.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback