How to disable Eco-Mode on TeamViewer Host with ADB

380 views Asked by At

I have to remotely set up a large amount of Android devices with TeamViewer Host. I currently use ADB to install a TeamViewer Host .apk as well as a QuickSupport Add-On .apk. The issue I am facing now is that Eco-Mode is enabled, and I have do disable it manually for every device. Is there a way for me to do this with ADB also? Or alternatively is there a TeamViewer settings file I can update so Eco-Mode isn't on by default?

Teamviewer Eco-Mode

1

There are 1 answers

2
huytc On

So, from your comment, you need to change this setting for quite a lot of devices (around 500). I don't have time to create a detailed solution for you, but I'll suggest these two approaches.

Approach 1: Scripting

Use adb to grab coordinates and simulate touches. Write a script to automate the process.

See Using ADB to access a particular UI control on the screen.

Edit: Culebra GUI seems to make your life a lot easier should you take this approach.

Pros

  • Pretty straightforward.

Cons

  • Quite tedious when your flow is complex (kind of a personal opinion, so take this with a grain of salt).

Approach 2: AccessibilityService

Utilize Android's AccessibilityService. You will need to write an Android app that has an AccessibilityService and bulk install it on the devices (via adb or any other means).

Pros

  • Powerful API.
  • Doesn't require adb.

Cons

  • Needs to install your app on the devices.
  • Lots of boilerplate code.
  • AccessibilityService needs to be enabled manually. This answer shows how to automate it, but I have yet to test if it works.

TL;DR

  • Write a shell script that uses adb for simple, one-off operations.
  • Use AccessibilityService for more complex use cases.