App policy is install-only: an app removed by the user is not restored

オープン
#198 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin, typescript

調査の方向性

The request touches the Android agent's check-in and PackageEventReceiver, plus the console UI that would show drift. Start by reading how the agent handles package-removed events and how required apps are compared on check-in. Done would need a design decision on the per-app policy options first, so this is not a first task until a maintainer settles the approach.

索引モデルが issue の本文から書いたものです。

説明

enhancement
Area

Cross-cutting / other

The problem

An app pushed from the console is installed silently (works well), but the user could uninstall it from the device and the agent did not put it back (I did not wait for a long periodic re-check, so this may only be a timing question). Request: a "desired state" for managed apps (install, keep installed, block uninstall), so a removed required app is reinstalled, ideally with an indicator of drift in the console.

Proposed solution

Treat the managed app list as a desired state:

  • On every check-in, and on package-removed events (the agent already has a PackageEventReceiver), compare installed vs. required apps and silently reinstall missing required ones.
  • Optionally block uninstall for required apps (DevicePolicyManager.setUninstallBlocked).
  • Make it a per-configuration/per-app option ("Install only" / "Keep installed" / "Keep installed and block uninstall"), and show drift ("missing app") per device in the console.
Alternatives considered

No response

Before submitting
  • I searched existing issues and discussions for the same idea.
主要言語
Java
スター
44
フォーク
25
平均マージ
1日 13時間
マージ済み PR(30日)
80

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MDMesh-app/MDMesh のほかの issue

MDMesh-app/MDMesh の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。