mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
Add info about debugging in work profiles
This commit is contained in:
@@ -4,6 +4,8 @@ Work profiles allows users to isolate apps. They also allow running multiple VPN
|
||||
|
||||
When PCAPdroid runs in a work profile in VPN mode, it can only capture the traffic of the work profile.
|
||||
|
||||
You can install [Island](https://play.google.com/store/apps/details?id=com.oasisfeng.island) to manage work profiles
|
||||
|
||||
## Root support
|
||||
|
||||
When running with root, PCAPdroid still captures the traffic of the whole device, regardless if it's installed in the main profile or in the work profile.
|
||||
@@ -13,6 +15,12 @@ by PCAPdroid as two different apps.
|
||||
|
||||
In order to properly grant root privileges to PCAPdroid when installed in a work profile, follow these steps:
|
||||
|
||||
1. In the Magisk maanger settings, set Multiuser-mode to "User independent"
|
||||
1. In the Magisk manager settings, set Multiuser-mode to "User independent"
|
||||
2. Clone the Magisk manager app to the work profile
|
||||
3. Start the root capture and grant the root request from magisk dialog
|
||||
|
||||
## Debugging
|
||||
|
||||
To easily debug PCAPdroid in work profile, create a new run configuration which installs and runs the app into the specific work profile.
|
||||
|
||||
First get the work profile user ID from `adb shell pm list users` (e.g. 10). Then add the `--user 10` parameter to the "Install flags" and "Launch flags" of the new configuration.
|
||||
|
||||
Reference in New Issue
Block a user