How to prevent app installation in Android 15 Private Space when using `ADB install`? - Stack Overflow

admin2025-04-17  18

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!

Share Improve this question asked Feb 1 at 11:14 AliAli 3905 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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.

转载请注明原文地址:http://anycun.com/QandA/1744830608a88215.html