[Companion] Managed work profile (Intune) app store broken after upgrading microG 0.3.16 → 0.3.17 via F-Droid — fixed only by recreating the work profile
microG Services version: 0.3.17.252432 (upgraded from 0.3.16 via the microG F-Droid repository)
microG Companion: 0.3.17.40226 (com.android.vending)
Environment 1: /e/OS 4.4 official build, microG shipped by the ROM, Android Enterprise personally-owned work profile managed by Microsoft Intune (Company Portal)
Environment 2 (same behavior): Infinity-X vanilla ROM (no /e/ involvement), microG Services + Companion installed and updated via the microG F-Droid repo, same Intune-managed work profile
Description: On devices with an existing Intune-managed work profile, upgrading microG 0.3.16 → 0.3.17 breaks the managed app store pathway inside the work profile:
- The "App Store" shortcut (microG Companion, com.android.vending) disappears from the work profile launcher.
- In Intune Company Portal → Settings → "Get apps", the managed-apps list (apps made available by the admin) no longer appears.
- Opening the remaining Companion entry via Settings → Apps (work profile) shows "microG Companion cannot be used directly".
- microG Self-Check "Permission to interact with work profile" is (and remains) checked.
- Forcing an MDM sync changes nothing.
Workaround: Deleting and recreating the work profile (fresh Intune enrollment) fully restores the Companion-based managed app store under 0.3.17 — the shortcut is back and the Company Portal "Get apps" flow works again. Since the issue reproduces on two different ROMs (/e/OS OTA and vanilla ROM + F-Droid microG), it points to a state migration problem in microG/Companion itself: a work profile provisioned under 0.3.17 is fine, but a profile created under 0.3.16 keeps a stale binding after the Companion package is replaced, breaking the managed-Play-Store pathway for existing profiles. Impact: Every MDM-managed work profile loses its app distribution UI after upgrading microG 0.3.16 → 0.3.17, until the profile is wiped and re-enrolled. Not sustainable for enterprise fleets.
Steps to reproduce: Enroll a device in Intune (personally-owned work profile) with microG 0.3.16 — confirm the Companion "App Store" shortcut in the work profile and the Company Portal "Get apps" list work. Upgrade microG Services and Companion to 0.3.17 (via the microG F-Droid repo, or via ROM OTA where applicable). Observe the broken state described above. Delete and recreate the work profile → everything works again under 0.3.17.
Expected behavior: Existing managed work profiles keep a working managed app store (Companion pathway) across microG upgrades, or an upgrade-time migration repairs the stale binding.
I am having the exact same issue (also using Microsoft Intune) on the microG build of LineageOS, but it happened when upgrading from 0.3.15 to 0.3.16.1.252432, so it could be a problem with the update process and not a change introduced in 0.3.17?
Also thanks @Silberlog for such a detailed writeup!