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
- 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).
- The system saves the file (in Cloudinary or local disk) and extracts the version number (
- Release: A version can be marked as
stable(for all devices) orbeta(for test group). - Device Check: Devices check periodically (or on boot) against
/api/software-updates/checkif a new version exists. - 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_SCREENSHOTcommand. - 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.