From af0a905f48c40d60c95afc0dec77539a25ecfe21 Mon Sep 17 00:00:00 2001 From: Emanuele Faranda Date: Fri, 20 Aug 2021 15:39:45 +0200 Subject: [PATCH] Update app_api.md --- docs/app_api.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/app_api.md b/docs/app_api.md index deff4c50..6e055835 100644 --- a/docs/app_api.md +++ b/docs/app_api.md @@ -58,8 +58,10 @@ The result code tells if the command succeded or not. ## User Consent To prevent malicious apps from monitoring/hijacking the device traffic, PCAPdroid will ask for user consent every time a capture is started. If the user denies consent, then the request fails. -Consent is also asked when a stop request is received from a different app from the one which started it. Please note that AFAIK Android does not provide a consistent way to determine the source of an Intent. -This is only available via [getCallingPackage](`https://developer.android.com/reference/android/app/Activity#getCallingPackage()`) when the caller app uses `startActivityForResult` (or the equivalent `ActivityResultLauncher`). +Consent is also asked when a stop request is received from a different app from the one which started it. + +Please note that AFAIK Android does not provide a consistent way to determine the source of an Intent. +This is only available via [getCallingPackage](`https://developer.android.com/reference/android/app/Activity#getCallingPackage()`) when the caller app uses `startActivityForResult` (or the equivalent `ActivityResultLauncher`). So it's adviced to always invoke the API via `startActivityForResult`. ## Capture Settings