Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
We develop in an enterprise where we use COPE devices (company owned, personally enabled).
As developers, we are have ADB enabled in our Work Profiles. Installing apps also works with "--user 10" flag.
However, we are unable to push/pull files to/from the App directory in the work profile because a) adb doesn't seem to support that due to security reasons and b) Android Studio features, such as Device File Explorer or App Inspection, rely on the User 0 to connect to the device.
As we have our certificate for logging in only in the work profile, we are unable to work outside of it. But we can't for ex. look into the database via Android Studio since it will not connect as the User 10, or as the process running in the Work Profile.
STEPS TO REPRODUCE:
1. Enroll device into COPE / Create work profile with TestDPC
2. Install debug app into work profile using --user 10 flag
3. Try to access apps directory inside of Android Studio via File Explorer or read database content via App Inspection
Screenshot of App Inspector attached, its always empty.
Device File Explorer doesn't list app folder under /data/data/ - nothing to screenshot.
While this can be categorized as a bug, it seems more like a feature that is missing. We had no such issues before having 2 profiles on the device (before while they were FM/Fully managed, everything worked as expected as everything ran under User 0 which Android Studio can connect to).
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.intellij.marketplace (213.7172.48)
com.intellij.ideolog (203.0.30.0)
gherkin (213.6461.19)
org.asciidoctor.intellij.asciidoc (0.37.56)
cucumber-java (213.5744.125)