feat: block adding and removing accounts (DISALLOW_MODIFY_ACCOUNTS)
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- full-stack, mobile-dev
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 44
- Fork
- 25
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 80
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MDMesh-app/MDMesh
-
enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
MDMesh-app/MDMesh#252 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Change Kiosk TitleĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
MDMesh-app/MDMesh#253 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
MDMesh-app/MDMesh#232 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
MDMesh-app/MDMesh#205 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
MDMesh-app/MDMesh#204 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MDMesh-app/MDMesh
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug devops low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
aphtech/brailleblaster#209 ·
Maintainer thường phản hồi trong vòng 1 ngày