Skip to main content

Advanced Device Management

Beyond routine operations, the system supports maintenance processes, security, and remote software updates.

Software Updates

This module (server-nest/src/software-updates) manages the APK versions of the GabaiSmart application.

OTA Update Process

  1. Upload Version: The administrator uploads a new APK file to the server through the interface.
    • The system saves the file (in Cloudinary or local disk) and extracts the version number (versionName, versionCode).
  2. Release: A version can be marked as stable (for all devices) or beta (for test group).
  3. Device Check: Devices check periodically (or on boot) against /api/software-updates/check if a new version exists.
  4. Download and Install: If there is an update, the device downloads it and performs a silent installation (requires Root or Owner permissions).

Device Certificates

The certificates module (server-nest/src/device-certificates) is responsible for device identity authentication at a higher level than just a Token.

Certificate Usage

  • In security or closed systems, you can require an MTLS certificate (Client Certificate).
  • The module issues, renews, and revokes certificates for devices.
  • Prevents impersonation by a malicious device even if it stole the Token.

Screenshots

This module (server-nest/src/screenshots) enables visual feedback from the screens.

  • On-Demand: The administrator sends a CAPTURE_SCREENSHOT command.
  • Execution: The device captures the current screen and sends it as Base64 or as a file upload back to the server.
  • Viewing: The screenshot appears in the device folder in the management interface.