feat: block adding and removing accounts (DISALLOW_MODIFY_ACCOUNTS)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 78/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- full-stack, mobile-dev
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- 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