First of all I wanted to thank everyone involved in creation of GrapheneOS, I really enjoy using it.
Now to the issue: Recently I started playing with profiles feature, and I have noticed something that I cannot understand. Most likely all of this is part of AOSP, but maybe people here can shed some light on how all this is implemented.
So it seems like the main profile is aware about the list of apps installed in other profiles, and is able to update them without consent from the second profile user.
First question: Is it because I installed these apps into the second profile from the main profile? Would it behave the same way if I installed apk in the second profile instead of "copying" it using profile configuration menu of the main profile?
Second question It seems if some app is installed into the second profile using main profile, and then this app is removed from the main profile, we cannot install it back into the main profile. Not sure if this is really a problem, or is it GooglePlay unable to handle this situation. It doesn't show any particular error. Just fails to install it into the main profile until you get rid of this app in the second profile. If some app is installed in both profiles - app is updated in both profiles.