Closed zarakik closed 1 year ago
This is an issue I've personally encountered with my company that uses VMware One Intelligent Hub (Airwatch).
Work profiles that depend on Google Play will normally have GSF, GMS, and Play Store automatically installed upon the creation of the work profile like it does on stock OS. Work profiles can't access Google Play from the user profile it's in. Since Google Play apps are not considered components that get automatically installed in the work profile, apps like Intune and Intelligent Hub don't handle a situation where those components are unavailable.
I've partially solved this issue with https://github.com/GrapheneOS/platform_frameworks_base/commit/e5856762e6492fc015859de10b80bf26f9e60239 which allows GrapheneOS Apps app to be added to all work profile creations by default, so you can install sandboxed Google Play once the work profile gets created then finish the (unfortunately, likely broken and half baked) installation of your work profile.
This still doesn't work 100% because the MDM app will likely place restrictions on what apps you can install. Play Store on stock OS is considered a trusted first party source, but on GrapheneOS only the Apps app is a trusted first party source. Play Store on GrapheneOS is a third party source, so even if your work profile gets created and you can install sandboxed Google Play, the MDM app nor you will be able to install your company apps like Duo (MFA), Okta, Microsoft Teams and Outlook, GlobalProtect, VMware Tunnel, etc.
MDM stuff on GrapheneOS is a really complex situation to tackle when we don't want to create special case bypasses for sandboxed Google Play like it does on stock OS, and when we don't have a testing or sandboxed environment to start attempting to add support for MDM that would mimic a production environment.
Thanks for the detailed explanation!
We can't realistically solve this unless we have a sandbox of Intune or some other MDM provider to attempt to add unprivileged support for stuff like this. A UserManager bypass for Play Store can be considered but would have to be done super carefully and we won't really track that here + super low priority.
What exactly die you do with the information from "I've partially solved this issue with https://github.com/GrapheneOS/platform_frameworks_base/commit/e5856762e6492fc015859de10b80bf26f9e60239" I have no idea where to put this code from that link
@girlbossceo Do you have any pointers on how to implement such a feature (A UserManager bypass for Play Store) in line with GOS principles? Or how I could potentially solve this issue by building my own images (perhaps I could app my own apps into the GOS apps app)? I'm currently exactly in this position. I've been able to successfully setup a work profile using Intune Company Portal and it's fully compliant in Azure as well. However, I'm unable to actually use it - as the Play Store is not allowed to install any applications. This is because only the apps app from GOS are seen as a first party source, as you shared - and Azure enforces only first party sources may install apps whilst it tries to use Play Store.
This is an issue I've personally encountered with my company that uses VMware One Intelligent Hub (Airwatch).
Work profiles that depend on Google Play will normally have GSF, GMS, and Play Store automatically installed upon the creation of the work profile like it does on stock OS. Work profiles can't access Google Play from the user profile it's in. Since Google Play apps are not considered components that get automatically installed in the work profile, apps like Intune and Intelligent Hub don't handle a situation where those components are unavailable.
I've partially solved this issue with GrapheneOS/platform_frameworks_base@e585676 which allows GrapheneOS Apps app to be added to all work profile creations by default, so you can install sandboxed Google Play once the work profile gets created then finish the (unfortunately, likely broken and half baked) installation of your work profile.
This still doesn't work 100% because the MDM app will likely place restrictions on what apps you can install. Play Store on stock OS is considered a trusted first party source, but on GrapheneOS only the Apps app is a trusted first party source. Play Store on GrapheneOS is a third party source, so even if your work profile gets created and you can install sandboxed Google Play, the MDM app nor you will be able to install your company apps like Duo (MFA), Okta, Microsoft Teams and Outlook, GlobalProtect, VMware Tunnel, etc.
MDM stuff on GrapheneOS is a really complex situation to tackle when we don't want to create special case bypasses for sandboxed Google Play like it does on stock OS, and when we don't have a testing or sandboxed environment to start attempting to add support for MDM that would mimic a production environment.
Would it be possible to add google play and services to the list of apps that get copied to work profile? I think that would allow intune to finish configuration of work profile as mentioned here
I'm trying to use the Intune company portal application per instructions from my organization to install work profile but it errors out saying unable to install.
A quick
adb logcat
shows the following errors:Is it not able to detect the Google Play Services installed in the Graphene OS?