Android 15 introduces Private Space, which allows users to keep certain apps separate from the main user profile. When I install an app using the adb install command, the app gets installed in both the normal space and private space.
Is there any flag, option, or configuration that allows me to install the app only in the normal space and prevent it from being installed in Private Space?
Any insights on this would be greatly appreciated!
Android 15 introduces Private Space, which allows users to keep certain apps separate from the main user profile. When I install an app using the adb install command, the app gets installed in both the normal space and private space.
Is there any flag, option, or configuration that allows me to install the app only in the normal space and prevent it from being installed in Private Space?
Any insights on this would be greatly appreciated!
After some investigation, I found that in Android 15, the Private Space feature allows users to create a separate environment for certain apps. By default, when using the adb install command, the app may be installed in both the normal and the private space if multiple profiles exist.
To prevent the app from being installed in Private Space, you can use the --user flag when running the adb install command:
adb install --user 0 app.apk
If you want to check all available users, including Private Space, you can list them using:
adb shell pm list users
This will return a list of user IDs.
