Hi,
The QR in the manual points at the current release, so it installs v1.4.
We see this on a minority of devices and, as far as we can tell, the cause sits outside the app:
the same model provisions normally in most cases and refuses in others, with the same QR and the same firmware. What the device reports is always the same unhelpful Something went wrong, so there is little to go on from our side.
The same result can be set up from a computer. It installs the app and makes it the device owner, so the display ends up in kiosk mode exactly as the QR would leave it. Instructions below.
Prerequisite
The tablet must be freshly factory reset and sitting on the initial welcome screen, with no Google account and no Wi-Fi configured. If it shows an error screen, reset it and start again.
Step 0: install ADB
On Windows. Download the official Android SDK Platform-Tools from
https://developer.android.com/tools/releases/platform-tools and extract the ZIP somewhere simple, for example C:\apk.
On Ubuntu. Install it from the archive, together with the rules that let a normal user talk to
the tablet:
sudo apt update
sudo apt install adb android-sdk-platform-tools-common
Log out and back in after that, so your user picks up the plugdev group. If you prefer the
official build, download the Linux ZIP from the same address above and extract it, for example to ~/apk, then call it as ./adb from that directory.
Step 1: enable USB debugging on the tablet
On the welcome screen, go far enough to reach the settings without setting up any Google/Samsung account, just skip those steps*, then open Settings, About tablet,
Software information, and tap Build number seven times to unlock Developer options. Go into Developer options and turn on USB debugging.
Step 2: download the app
Download the APK from https://updates.victronenergy.com/feeds/android-gx-display/gx-android-display.apk and save it next to ADB, as C:\apk\gx-android-display.apk on Windows or ~/apk/gx-android-display.apk on Ubuntu.
Step 3: connect and run
Connect the tablet by USB. If it asks to allow USB debugging, tick Always allow and accept.
Then open a terminal, go to the folder holding the APK (cd C:\apk on Windows, cd ~/apk on
Ubuntu) and run:
adb devices
adb install -r gx-android-display.apk
adb shell dpm set-device-owner com.victronEnergy.gxDisplay/.DeviceOwnerReceiver
adb reboot
adb devices should list the tablet followed by the word device. The install should answer
Success, and the device owner command should answer
Success: Device owner set to package…. After the reboot the app starts in kiosk mode, the same as a QR installation.
Two things that can go wrong here:
adb devices lists the tablet as unauthorized, or on Ubuntu as no permissions. The first
means the dialog on the tablet has not been accepted yet; the second means the udev rules are missing, which the android-sdk-platform-tools-common package above installs. After installing it, run adb kill-server and plug the cable in again.
- The device owner command fails with a message about accounts already existing on the device. That is the restriction above: factory reset, skip the account and the Wi-Fi during setup, and run the commands before anything else is configured.