Agent policies not applied, commands queued until app is opened, and kiosk mode transition fails

未关闭
#76 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, docker, java, kotlin, react, typescript
领域
api, backend, mobile

调研方向

Start by reading the Android Agent policy enforcement, background command execution, and kiosk transition entry points, then compare their behavior with the server REST API and the QR work profile enrollment flow. The report covers three separate failures and does not include device model, Android version, or diagnostic logs; request those details and inspect server, supervisor, and Android logcat output. Done means restrictions take effect, supported commands run in the background, and an enrolled device can switch to kiosk mode.

由索引模型根据 Issue 内容生成。

描述

bug
Component

Server / REST API

What happened?

Hi, I was testing your MDM, and I noticed a few issues. Thank you for making this project available!

Component: Android Agent, device policies, background service/command execution, and kiosk mode.

Issues observed:

  • Device restrictions: Block Screenshots and Block Factory Reset do not seem to take effect when enabled.
  • Commands: After QR enrollment and work profile setup, commands remain queued until I manually open the MDMesh Agent app.
  • Kiosk mode: Switching an already enrolled device from the default agent configuration to kiosk mode does not seem to work.

Expected behavior:
Restrictions should be enforced, commands should execute in the background where supported, and switching to kiosk mode should work as documented.

I'm not sure what is causing these issues, but I wanted to share my findings to help with debugging. Thanks!

Steps to reproduce

Enroll an Android device using the QR code.
Set up the work profile and complete enrollment.
Select an agent and enable restrictions such as Block Screenshots and Block Factory Reset.
Check whether the restrictions take effect on the device.
Send commands from the MDM dashboard while the agent app is not open.
Observe that the commands remain queued, then manually open the agent app and check whether they execute.
Enroll or configure a device using the default agent, then attempt to switch it to kiosk mode.

MDMesh version / commit

0.3.1 and 0.3.2

Environment

Deployment: Docker
Host OS: Ubuntu Linux
Android device model: To be added
Android version: To be added
Enrollment mode: QR code / work profile

Relevant logs
I can provide relevant server, supervisor, and Android adb logcat logs if needed to help investigate these issues.

I have not confirmed the underlying cause, so any guidance on expected behavior or additional debugging steps would be appreciated.

Thanks for your time and for maintaining MDMesh!
Before submitting
  • I searched existing issues and this isn't a duplicate.
  • I'm not reporting a security vulnerability here (those go via private disclosure, not a public issue).
主要语言
Java
星标
44
派生
25
平均合并
1 天 13 小时
30 天内合并 PR
80

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MDMesh-app/MDMesh 的其他 Issue

查看 MDMesh-app/MDMesh 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。