mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
Catch SecurityException to prevent crash with URI
A SecurityException occurs when the app does not have the permissions to write the specified URI
This commit is contained in:
@@ -213,7 +213,7 @@ public class CaptureService extends VpnService implements Runnable {
|
||||
if(mDumper != null) {
|
||||
try {
|
||||
mDumper.startDumper();
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | SecurityException e) {
|
||||
reportError(e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
mDumper = null;
|
||||
|
||||
Reference in New Issue
Block a user