Feature Request: Android SIM Inventory — ICCID, Dual SIM, eSIM and Access Permissions
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- android, java, kotlin, react, typescript
- Área
- authorization, backend, frontend, mobile
Línea de trabajo
The change spans the Android agent (Kotlin), the telemetry protocol, the Java backend and the React console, and the payload names no specific files beyond the deviceDAO.isAccessibleToUser(device) check. Start by agreeing the permission model with maintainers, since the reporter explicitly asks for feedback before a PR. Done means ICCID and SIM details are collected, stored in the existing telemetry snapshot and shown in the Identity section, with access tied to device authorization.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Area
Cross-cutting / other
The problem
Problem description
I would like to propose extending MDMesh's Android device telemetry to include SIM inventory information, particularly ICCID identifiers, SIM slot details, carrier information and physical SIM/eSIM status.
I manage Android devices in an enterprise environment, where the ability to associate each device with its installed SIM card is important for inventory management, connectivity troubleshooting and mobile subscription administration.
Currently, MDMesh exposes device identifiers such as IMEI and IMSI, but does not provide the ICCID and detailed SIM subscription information I need.
This makes it more difficult to:
- Match individual Android devices with their mobile carrier subscriptions.
- Track SIM cards installed in company devices.
- Identify SIM cards when replacing or reassigning devices.
- Manage devices with multiple SIM slots or eSIM subscriptions.
- Diagnose connectivity and subscription-related issues.
Access permissions and Super Admin considerations
During development, I also examined the distinction between Super Admin and regular organization Admin accounts.
In a multi-tenant MDMesh installation, a Super Admin manages the overall platform, while each organization's Admin manages its own devices.
For example, a Super Admin could manage a platform hosting Company A and Company B, each with its own administrators responsible for enrollment, configuration and device management.
It would be unnecessarily restrictive if only the global Super Admin could view SIM identifiers.
Organization administrators should be able to access ICCID information for devices they are authorized to manage, without requiring platform-wide privileges.
This is particularly relevant because IMEI and IMSI are already available through the existing device telemetry authorization model.
I believe ICCID should follow a consistent authorization approach, while respecting customer and device boundaries.
I have already implemented and successfully tested an initial solution in my self-hosted MDMesh development environment, and I would be interested in contributing it to the upstream project.
Proposed solution
Proposed implementation
I propose extending the existing MDMesh telemetry system rather than introducing a separate SIM inventory subsystem.
I have already implemented a working prototype involving the Android agent, telemetry protocol, Java backend and React web console.
Android agent (Kotlin)
The implementation:
- Collects ICCID information when available through Android's telephony APIs and permitted by the device.
- Collects SIM subscription metadata, including slot index, carrier name and physical SIM/eSIM status.
- Provides structured information suitable for multiple SIM subscriptions.
- Handles unavailable SIM identifiers without interrupting telemetry collection.
Backend (Java)
The backend:
- Receives and stores the additional information within the existing device telemetry snapshot.
- Exposes ICCID and SIM subscription details through the existing telemetry API.
- Preserves the existing device authorization checks.
Web console (React/TypeScript)
The device telemetry interface displays:
- ICCID identifiers in the Identity section.
- SIM slot information.
- Carrier name.
- Physical SIM/eSIM status.
- Associated ICCID for each available subscription.
Authorization model
During my initial implementation, I introduced a filter that restricted ICCID and SIM subscription information to Super Admin accounts.
After reviewing the multi-tenant architecture, I reconsidered this restriction.
A global Super Admin should not be required for an organization administrator to view SIM identifiers belonging to devices under their management.
I therefore removed the additional Super Admin-only filter and retained the existing device authorization check:
if (!deviceDAO.isAccessibleToUser(device)) {
return Response.PERMISSION_DENIED();
}
In my current implementation, ICCID and SIM details follow the same access model as IMEI and IMSI: users who are authorized to view a device can also retrieve its SIM identifiers.
I recognize that this means other authorized roles, including read-only users, may also receive these identifiers.
If the maintainers prefer more granular permissions, I would be open to introducing a dedicated permission or restricting full SIM identifiers to organization administrators.
The important requirement is that ICCID access should not depend exclusively on global Super Admin privileges.
Testing performed
I have tested the implementation in an isolated, self-hosted Docker development environment.
Confirmed results:
- Successful collection of one ICCID containing 19 characters.
- Correct identification of SIM slot index 0.
- Correct identification of a physical SIM rather than an eSIM.
- Correct reporting of the Android carrier display state for an inactive SIM.
- Successful storage of ICCID and SIM subscription metadata in PostgreSQL.
- Successful retrieval through the authenticated telemetry API.
- Successful display in the MDMesh device Identity section.
- Successful Maven backend compilation.
- Successful deployment and functional verification of the modified backend.
Additional testing is still needed for dual-SIM devices, eSIM configurations, unavailable telephony permissions and cross-tenant authorization.
Contribution
I would be happy to prepare a focused Pull Request containing the Android agent, telemetry protocol, backend and web console changes, together with appropriate tests.
Before submitting the PR, I would appreciate feedback on the preferred permission model and any compatibility requirements for extending the existing telemetry schema.
Alternatives considered
I considered restricting ICCID and SIM subscription information exclusively to Super Admin accounts.
However, this approach would prevent organization administrators from viewing the SIM identifiers of devices they manage in multi-tenant installations.
I therefore chose to reuse the existing device-level authorization model, consistent with IMEI and IMSI.
Other possible approaches include:
Introducing a dedicated permission for viewing sensitive SIM identifiers.
Allowing organization administrators and Super Admins to view complete ICCIDs while masking them for other roles.
Providing a separate SIM inventory management interface.
For the initial implementation, extending the existing telemetry system seems simpler, more consistent with MDMesh's current architecture and easier to maintain.
I would welcome feedback from the maintainers on these alternatives.
Before submitting
- I searched existing issues and discussions for the same idea.
- Lenguaje dominante
- Java
- Estrellas
- 44
- Forks
- 25
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 80
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MDMesh-app/MDMesh
-
enhancement
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
MDMesh-app/MDMesh#252 ·
Los mantenedores suelen responder en 2 días
-
Change Kiosk TitleAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
MDMesh-app/MDMesh#253 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
MDMesh-app/MDMesh#232 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
MDMesh-app/MDMesh#205 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
MDMesh-app/MDMesh#204 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de MDMesh-app/MDMesh
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
bug devops low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
aphtech/brailleblaster#209 ·
Los mantenedores suelen responder en 1 día