Android Lockscreen Item point to RDP file

AF
Allen Foster
Koch Business Solutions

I know that Android does not use RDP files but is there a way to add a lockscreen item to android that mimics the effect of a adding an .rdp file to a windows mobile lock screen.  ie we want to open the Microsoft Remote Desktop app and have it open to a specific remote server.  Is that a possibility via an Intent or other method?  

4 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

Try

   intent:file:///sdcard/Download/your.rdp#Intent;action=android.intent.action.VIEW;type=application/rdp;

where it is assumed that your .rdp file "your.rdp" is loaded in the Download directory of your internal flash.

AF
Allen Foster
4 years ago

Thanks Raymond but that is not working.  Let me do some more digging.

RC
Raymond Chan Diamond Contributor
4 years ago

How did you do your tests?

Have you first tried using sendintent  script command to see if it works on your device without kiosk mode turned on?  This can confirm that you have correctly specify the location of your .rdp file and the file content is correctly formatted.  Have you checked any Microsoft  document for the right syntax for .rdp file on Android platform?

And then finally tested it in kiosk mode with the  Microsoft Remote Desktop app properly whitelisted (Otherwise the app cannot start because of application-run-control blacklisting from the kiosk mode, and not because of any wrong intent argument or other "intent" related issue)?

AF
Allen Foster
4 years ago

I got it to work.  I had to format it as such:  intent:file:///sdcard/RDPFiles/remote.rdp#Intent;type=application/rdp;component=com.microsoft.rdc.android;end.  Thanks for the help.

RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

If you devices only have one app (e.g. com.microsoft.rdc.android, com.microsoft.rdc.androidx, etc.) that registers with the system to handle .rdp file, there is no need to specify the exact app bundle-ID , "com.microsoft.rdc.android" in your case, with the "component" field.  I had done my test to confirm this before I gave my first reply.

So you must have done something else to fix your vaguely reported problem/failure mentioned in your first reply.  Or had you overlooked anything in your test then that you thought it was a failure?

AF
Allen Foster
4 years ago

when I had it the way you listed it it was not doing anything.  we only have Microsoft Remote Desktop installed on the device and we are using activity suppression.  I do have the RDP app on the lock screen so it should be whitelisted.  This did allow it to work so we are good.  Thanks for your help.  FYI when I would tap on the icon with your method it was not even adding a log entry saying that it was not found.  It just would not do anything.  

RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

Hi Allen,

The situation you described sounds a bit weird.  Maybe some extra module handling intent filter related functionalities in your device firmware has not been whitelisted.  This may be partially verified if can start your remote connecion successfully with  the following script command while kiosk mode is disabled:

   sendintent -a "intent:file:///sdcard/Download/test1.rdp#Intent;action=android.intent.action.VIEW;type=application/rdp;end"

Anyway, it's good to know that you can eventually open your RDP session by referencing the file with  type parameter  "application/rdp" while in kiosk mode.