Install/update Teamviewer APK remotely

To be completed by the original poster:

CMS Version

4.08

Player Type

DSCS95

Player Version

3.306, 4.404 and 4.405

Issue

It’s pretty complicated and timeconsuming to install Teamviewer on the players.
And really hard when they’re spread all over Europe.
Just like it’s easy to update the Player versions, would it be possible to install or update Teamviewer?
Even better when we could add a default config to the installation…

Kind regards,
Kurt

1 Like

At the office, we use DSCS9X players, which are compatible with receiving commands from Xibo.

I believe the solution would be to create an ADB shell command that downloads TeamViewer from the official website and installs it on the device.

Once I’m back at the office, I’ll look up the exact command needed to make this work.

I have found the solution to this.


First you need to download the APK for TeamViewer Host.
Keep in mind that it is NOT TeamViewer (Quick Support) from the TeamViewer Website

Head to the Media tab, click add media and upload the TeamViewer APK.
Make sure to note down the ID as this will become relevant when creating the install command.

Head to the Displays tab, click on the arrow next to the display and select Assign Files.
Search for the TeamViewer Host APK, click the + icon and then save.

Head to the Commands tab and create a new command.
The name and code is up to you, but make sure the command is as follows:

Configure the command as displayed below.
Make sure to replace the ID with the actual ID of the TeamViewer apk.


Internal storage (default)

pm install -r /data/data/uk.org.xibo.client/files/ID.apk

External storage

pm install -r /storage/emultated/0/Android/data/uk.org.xibo.client/files/ID.apk

Check if the file is downloaded on the display itself by heading to Displays, clicking the arrow and selecting Manage. It should be listed under media as ID.apk

If you have XMR set up and configured correctly, you can send a command directly from the Display tab, click the arrow and select Send Command

Otherwise you will have to schedule the command in the Schedule tab.


Notes:

  1. It is not possible to use wget or curl to download a file from a specified URL.
  2. Opening a download page natively still requires user interaction to confirm the download

Correction!

I have made a typo in my previous instruction.
Unfortunately I’m not able to edit my message to correct this mistake.

The mistake is as follows:

  • emultated needs to be written as emulated

Use the following command when external storage is configured:

pm install -r /storage/emulated/0/Android/data/uk.org.xibo.client/files/ID.apk