Skip to main content

Restricting Touch Panel functionality

Instructions for configuring i3 Pro in launcher and kiosk modes on iRidi Touch Panels.

Documentation updated 01.01.2024

General information​

Tip

These instructions apply only to iRidi Touch Panels. For other Android devices, see the general instructions.

For touch panels in public spaces, i3 Pro can restrict panel functionality, specifically:

  • automatic startup of i3 Pro when the panel starts and prevention of exiting the application: launcher mode;
  • restriction of the panel to i3 Pro only and prevention of access to settings: kiosk mode.

Launcher mode​

Launcher mode is a shell that restricts panel functionality. The application starts by default when the panel starts.

When running as a launcher, i3 Pro blocks the panel's Back and Home buttons and prevents the application from being closed.

Configuring launcher mode​

  1. Reset the panel to factory settings. On all panels, this is done in Android settings under System -> Advanced -> Reset options .

  2. Skip all setup steps when the panel starts. Do not configure personal accounts on the panel, as this prevents launcher-mode configuration.

  3. Download and install i3 Pro with Kiosk-mode.

  4. Sign in to the application:

Kiosk-mode-Panels01.png

  1. With i3 Pro running, press the panel's Home button. A prompt appears to use i3 Pro as the default application.
    Select i3 pro kiosk and tap Always :

Kiosk-mode-Panels02.png

i3pro kiosk is now set as the Android system launcher.

If the preceding method does not set i3Pro as the system launcher:

  1. Open Android settings and go to Apps and notifications:

Kiosk-mode-Panels03.png

  1. Open Default apps :

Kiosk-mode-Panels04.png

  1. Go to Home app and select i3 pro kiosk as the default application

Kiosk-mode-Panels05.png

Kiosk-mode-Panels06.png

Exiting launcher mode​

  1. To exit launcher mode, press the Menu button or swipe down from the top of the screen to access quick settings, then open Android settings:

Kiosk-mode-Panels07.png

  1. Open Apps and notifications :

Kiosk-mode-Panels08.png

  1. Go to Default apps :

Kiosk-mode-Panels09.png

  1. Go to Home app and select the default application:

Kiosk-mode-Panels10.png

Kiosk-mode-Panels11.png

Kiosk mode​

Kiosk mode limits the user to one application. When i3 Pro runs in kiosk mode, the user cannot access other panel functionality.

Configuring kiosk mode​

  1. Configure launcher mode on the panel

  2. Connect the panel to the PC through Ethernet (a) or a USB cable (b);

  3. Download to the PC SDK Platform-tools;

  4. Extract the archive.

Configuration through Ethernet

  1. Connect the panel to the Ethernet network.

The panel and the PC used for configuration must be on the same subnet.

  1. In Android settings, under Developer options enable USB debugging ;

Kiosk-mode-Panels12.png

Kiosk-mode-Panels13.png

Kiosk-mode-Panels14.png

If the panel settings do not include Developer options , open About tablet and tap Build number several times in succession. Developer mode will be enabled, and the setting will appear in the menu.

Kiosk-mode-Panels15.png

Kiosk-mode-Panels16.png

  1. Find the panel's IP address (Settings > Network and Internet > Ethernet > IP address).

Kiosk-mode-Panels17.png

  1. On the PC, open Command Prompt or PowerShell;

  2. In the command line, specify the folder where you extracted Platform Tools:

cd C:\Users\User\Downloads\platform-tools

Kiosk-mode-Panels-code01.png

Enter the command:

adb connect 172.17.110.13 (panel address)

If successful, the terminal displays:

Kiosk-mode-Panels-code02.png

  1. Enter the following command:

adb devices

The terminal should display a message:

Kiosk-mode-Panels-code03.png

  1. Start adb shell

Kiosk-mode-Panels-code04.png

If everything is correct, the command prompt of the device on which you want to configure kiosk mode opens.

Kiosk-mode-Panels-code05.png

  1. In the device command line, enter

Standard version:

  • dpm set-device-owner com.iridium.i3pro_v100.kiosk/workdata.DeviceAdminHelper

RU version:

  • adb shell dpm set-device-owner com.iridium.i3pro_ru.kiosk/workdata.DeviceAdminHelper

If the terminal displays Invalid component, check the package name:

  • Standard: com.iridium.i3pro_v100.kiosk
  • RU: com.iridium.i3pro_ru.kiosk

If successful, the terminal displays:

Success: Device owner set to package ComponentInfo{com.iridium.i3pro_v100/workdata.DeviceAdminHelper}
Active admin set to component {com.iridium.i3pro_v100/workdata.DeviceAdminHelper}

Configuration through a USB cable

  1. In Android settings, under Developer options enable USB debugging :

Kiosk-mode-Panels-USB-01.png

Kiosk-mode-Panels-USB-02.png

Kiosk-mode-Panels-USB-03.png

If your panel settings do not include "Developer options", open "About tablet" and tap the build number several times in succession. Developer mode will be enabled and this settings item will appear in the menu.

Kiosk-mode-PanelsUSB-04.png

Kiosk-mode-PanelsUSB-05.png

  1. On the PC, open Command Prompt or PowerShell;

  2. In the command line, specify the folder where you extracted Platform Tools:

cd C:\Users\User\Downloads\platform-tools

Kiosk-mode-Panels-USB-06.png

  1. Start adb shell

Kiosk-mode-Panels-USB-07.png

If everything is correct, the command prompt of the device on which you want to configure kiosk mode opens.

Kiosk-mode-Panels-USB-08.png

  1. In the device command line, enter

Standard version:

  • dpm set-device-owner com.iridium.i3pro_v100.kiosk/workdata.DeviceAdminHelper

RU version:

  • adb shell dpm set-device-owner com.iridium.i3pro_ru.kiosk/workdata.DeviceAdminHelper

If the terminal displays Invalid component, check the package name:

  • Standard: com.iridium.i3pro_v100.kiosk
  • RU: com.iridium.i3pro_ru.kiosk

If successful, the command line displays:

Success: Device owner set to package ComponentInfo{com.iridium.i3pro_v100/workdata.DeviceAdminHelper}
Active admin set to component {com.iridium.i3pro_v100/workdata.DeviceAdminHelper}

Enabling and disabling kiosk mode​

Kiosk mode is enabled and disabled in the i3 Pro Panel Project:

  1. Create or open a Panel Project in iRidi Studio and add 2 buttons for enabling and disabling kiosk mode.

Kiosk-mode-Panels-kiosk-01.png

  1. Create a new script and enter the following code:
function enablemode()
{
IR.KioskMode(true);
};

function disablemode()
{
IR.KioskMode(false);
};
  1. Configure the script call. Select the Enable kiosk mode button and open the Programming tab in Object Properties.

Configure the script to be called when the button is released.

Kiosk-mode-Panels-kiosk-02.png

  1. Select Script call from the list and double-click it.

Kiosk-mode-Panels-kiosk-06.png

  1. Select enablemode from the function list and click OK

Kiosk-mode-Panels-kiosk-03.png

Kiosk-mode-Panels-kiosk-04.png

  1. Repeat these steps for the Disable kiosk mode button, selecting disablemode in the final step

Kiosk-mode-Panels-kiosk-05.png

  1. Upload the project to the panel.

It is recommended to place these buttons on a separate popup and set a password for opening it.