VpnService: Move it to a backends package

It should be split into two pieces: configuration file management
(loading/saving/renaming/deleting) and calling into wg-quick via
RootShell. The configuration file management part should then go
back into the main package. This is in preparation for adding
additional backends based on wg(8) and wireguard-go.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland
2017-11-24 21:16:37 -06:00
parent 69d4fe9a81
commit 50a7a12de2
12 changed files with 26 additions and 14 deletions
@@ -13,6 +13,7 @@ import android.preference.PreferenceManager;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import com.wireguard.android.backends.VpnService;
import com.wireguard.config.Config;
@TargetApi(Build.VERSION_CODES.N)