Feature Request: Android SIM Inventory — ICCID, Dual SIM, eSIM and Access Permissions
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 22/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- android, java, kotlin, react, typescript
- Ambito
- authorization, backend, frontend, mobile
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 44
- Fork
- 25
- Merge medio
- 1g 13h
- PR unite (30g)
- 80
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MDMesh-app/MDMesh
-
enhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
MDMesh-app/MDMesh#252 ·
I maintainer di solito rispondono entro 2 giorni
-
Change Kiosk TitleApertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
MDMesh-app/MDMesh#253 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
MDMesh-app/MDMesh#232 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
MDMesh-app/MDMesh#205 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
MDMesh-app/MDMesh#204 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di MDMesh-app/MDMesh
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug devops low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
aphtech/brailleblaster#209 ·
I maintainer di solito rispondono entro 1 giorno