feat: block adding and removing accounts (DISALLOW_MODIFY_ACCOUNTS)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- full-stack, mobile-dev
Línea de trabajo
Start in the Android Device Owner agent where existing restrictions such as factoryReset, safeBoot, and wifi are applied, and locate the corresponding console policy field. Add the modifyAccounts toggle and map its disabled state to UserManager.DISALLOW_MODIFY_ACCOUNTS; done means the console can persist the setting and a Device Owner at API 24 or later prevents account additions and removals while leaving existing accounts intact.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Area
Device agent (Android)
The problem
I manage a small fleet of fully managed (Device Owner) phones. App installs are restricted on the Google side (Play Store parental controls), but anyone holding the phone can open Settings > Accounts and add a second Google account, which comes without those restrictions. They can also remove the account the device was set up with.
MDMesh has no policy for this today: the agent applies factoryReset, safeBoot, wifi, etc., but nothing for accounts, so the console can't close this gap.
Proposed solution
A new toggle policy, built like factoryReset:
- Key:
modifyAccounts(open to another name),false=UserManager.DISALLOW_MODIFY_ACCOUNTS,true= cleared, absent = not managed. - Console: the usual Not managed / Allow / Block field in the configuration.
- Device Owner only, API 24 like the other restrictions. Accounts already on the device stay; the user just can't add or remove any until the policy is lifted.
It fits next to userAppInstall / userAppUninstall from #70: together they stop the "new account, new store" route.
Possible follow-ups, out of scope for a first PR:
- report the accounts on the device (type + name) in the check-in, so the console can show them;
- remove an account from the console.
I don't know how much of the accounts list a Device Owner can see on recent Android versions, so these may not be possible.
Alternatives considered
- Checking Settings > Accounts by hand on each phone: works, but only after the fact, and needs the phone in hand.
- Kiosk mode: blocks Settings entirely, but is too strict for everyday use.
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