Commit Graph

869 Commits

Author SHA1 Message Date
emanuele-f
bbafcbe619 Fix whitelist flag shown with firewall disabled 2022-12-12 11:49:41 +01:00
emanuele-f
ac7a6e499c Add button to reset apps stats
Closes #285
2022-12-02 00:00:17 +01:00
emanuele-f
235920b3cb Fix TLS decryption message visibility on resume
The decryption message was wrongly displayed with decryption disabled
2022-12-01 23:18:56 +01:00
emanuele-f
88304564e6 Don't hide "block new apps" in whitelist mode
The blocklist is still effective in whitelist mode
2022-12-01 22:36:16 +01:00
emanuele-f
9eed9ed221 Implement firewall whitelist mode
When whitelist mode is enabled, all the connections are blocked unless
an app is manually whitelisted. DNS resolution by netd is always allowed,
since it's not possible to determine the requesting app.

With this mode enabled, the firewall blocklist is still used and has
priority. For example, if an app is whitelisted but a block rule exists
for the given domain, the connection will be blocked.

The app provides a default whitelist with some essential services.

Closes #232
2022-12-01 00:42:41 +01:00
emanuele-f
b8561d7316 Fix unnecessary refreshes while loading lists
The list change listeners were called for each rule in the list

Partially addresses #284
2022-11-27 17:43:14 +01:00
emanuele-f
60460880af Ability to provide custom mitmproxy options
A new preference has been added to provide additional mitmproxy options

Closes #283
2022-11-24 20:02:37 +01:00
emanuele-f
77560bdebd Show logs inside the app
The app now shows its own logs along with the root and the mitm addon
ones.

Closes #282
2022-11-24 13:04:21 +01:00
emanuele-f
cbdc4967ca Fix tests 2022-11-23 18:44:46 +01:00
emanuele-f
cdafc69902 Write app log to file
See #282
2022-11-23 13:00:15 +01:00
emanuele-f
fe5e53e8e4 Update deps 2022-11-20 15:21:09 +01:00
emanuele-f
eccacc9ad8 Exclude unreachable errors from dropped conn count
Network may become temporary unreachable at any time, e.g. while
switching between wifi and mobile
2022-10-05 22:20:05 +02:00
emanuele-f
ef2c295660 Compilation fix 2022-09-27 12:58:58 +02:00
emanuele-f
785baeecfa Compilation fix 2022-09-27 12:54:13 +02:00
emanuele-f
4720555d26 Fix possible IllegalStateException in mitmwizard 2022-09-27 12:50:41 +02:00
emanuele-f
04fe20ca95 Fix possible IllegalStateException in MatchList.fromJson 2022-09-27 12:46:53 +02:00
emanuele-f
3dcfeb2078 Bump version to 1.5.6 2022-09-24 14:08:17 +02:00
Oğuz Ersen
e14998d4d4 Update Turkish strings 2022-09-23 17:41:27 +02:00
Eric
9b596bc5ca Update Chinese strings 2022-09-23 17:41:13 +02:00
Emanuele Faranda
c93ea5d1fa Update Italian strings 2022-09-23 17:40:49 +02:00
Maxime Leroy
03c70455f7 Update French strings 2022-09-22 22:49:54 +02:00
Oğuz Ersen
b7759939b0 Update Turkish strings 2022-09-22 22:48:01 +02:00
emanuele-f
bc6c316965 Fix wrong paid features docs URL 2022-09-22 22:31:08 +02:00
emanuele-f
d10fa01824 Fix uid to package name mapping in MatchList
PCAPdroid assumes a persistent mapping between a uid and a package name.
However, this mapping may change if an app sharing its uid is
installed/removed. This resulted in the inability to remove an existing
app rule from a MatchList. This fix only addresses the change at load
time, whereas the problem may still occur at runtime.

Fixes #257
2022-09-20 16:51:30 +02:00
emanuele-f
0b34620233 Rename AppDescriptor getters 2022-09-20 16:23:27 +02:00
emanuele-f
4fab552b2b Fix CA cert installation skip 2022-09-09 22:35:48 +02:00
emanuele-f
3f6f32809a Fix paid features unlocking in beta builds
Paid features inherited from the official app were not properly
unlocked when the VPN was started by the Android system

Fixes #255
2022-09-09 22:10:10 +02:00
emanuele-f
7e98bee35f Update deps 2022-09-09 10:12:19 +02:00
emanuele-f
f3bb3543c8 Add ability to launch mitm wizard manually 2022-09-01 23:22:35 +02:00
emanuele-f
20b755848c Add ability to skip mitm certificate check
This allows people to proceed with the decryption setup even if
the mitm certificate installation is not detected by PCAPdroid

Closes #248
2022-09-01 23:02:04 +02:00
emanuele-f
1a8b8ad52f Fix capture stopped with always-on and start on boot
When both always-on VPN and start-on boot are enabled, PCAPdroid
receives the ACTION_BOOT_COMPLETED intent when the capture is already
running. This caused it to try to restart the capture, which is not
supported, so the capture was just stopped

Fixes #250
2022-09-01 22:28:39 +02:00
emanuele-f
234bd21867 Bump version to 1.5.5 2022-08-25 21:12:16 +02:00
Emanuele Faranda
f16a55383c Update Italian strings 2022-08-25 12:44:44 +02:00
emanuele-f
9563c6177d Make unlock token not translatable 2022-08-25 12:32:32 +02:00
Oğuz Ersen
773a180710 Update Turkish strings 2022-08-25 12:31:04 +02:00
Eric
db97aab8da Update Chinese strings 2022-08-25 12:29:06 +02:00
emanuele-f
5abf151f16 Promote the firewall feature 2022-08-25 12:12:52 +02:00
emanuele-f
cff4639bd6 Fix decryption addon status reporting with root 2022-08-17 01:10:16 +02:00
emanuele-f
e687380850 Remove deprecated LocalBroadcastManager
Replaced with LiveData

Closes #187
2022-08-17 01:08:23 +02:00
emanuele-f
e9fed41efb Fix PackageManager deprecations
Closes #225
2022-08-17 00:03:34 +02:00
emanuele-f
ae7a06cfa3 Fix getSerializable/Extra deprecations
See #225
2022-08-16 23:22:12 +02:00
emanuele-f
0d01d20485 Move to new MenuProvider API
See https://developer.android.com/jetpack/androidx/releases/activity#1.4.0-alpha01

Closes #233
2022-08-16 22:23:41 +02:00
emanuele-f
117ff42181 Update deps 2022-08-16 21:39:42 +02:00
Deleted User
90cf863d5f Update Portuguese strings 2022-08-16 15:08:10 +02:00
RyoidenshiAokigahara
a3049f2aa2 Update Russian strings 2022-08-16 15:07:22 +02:00
emanuele-f
25fdd132c0 Fix crash with partial payload 2022-08-13 21:36:01 +02:00
emanuele-f
2fddba6301 Fix possible JNI local reference overflow and races
Dumping connections payload requires creating (local) references, which
are limited to 512. This commit greatly reduces their lifetime, from
several seconds to less than 1 second, reducing the likehood of an
overflow. Moreover it adds missing synchronization to the connection
payload.
2022-08-13 16:10:38 +02:00
emanuele-f
0cfcafaea9 Fix JNI local references leaks 2022-08-13 14:46:06 +02:00
emanuele-f
2a0f99067a Prevent ANR while adding payload chunks 2022-08-13 11:56:32 +02:00
emanuele-f
875f1ce7a9 Add null checks 2022-08-13 11:42:01 +02:00