android: Only apply app filter on Android 5 and newer

This commit is contained in:
Tobias Brunner 2017-07-11 09:44:35 +02:00
parent ac3189f792
commit 0b4f7d646b
1 changed files with 2 additions and 1 deletions

View File

@ -974,7 +974,8 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe
builder.addRoute("::", 0);
}
/* apply selected applications */
if (mSelectedApps.size() > 0)
if (mSelectedApps.size() > 0 &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
{
switch (mAppHandling)
{