diff --git a/app/src/main/java/io/netty/handler/codec/http/HttpMethod.java b/app/src/main/java/io/netty/handler/codec/http/HttpMethod.java
index f2a0a1e..df4b0c2 100644
--- a/app/src/main/java/io/netty/handler/codec/http/HttpMethod.java
+++ b/app/src/main/java/io/netty/handler/codec/http/HttpMethod.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
* Copyright 2012 The Netty Project
*
diff --git a/app/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java b/app/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
index 8357f60..b41570b 100644
--- a/app/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
+++ b/app/src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/******************************************************************************
Apache License
Version 2.0, January 2004
@@ -203,6 +220,12 @@ file or class name and description of purpose be included on the
******************************************************************************/
package org.littleshoot.proxy.impl;
+import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CHUNK;
+import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_INITIAL;
+import static org.littleshoot.proxy.impl.ConnectionState.DISCONNECTED;
+import static org.littleshoot.proxy.impl.ConnectionState.HANDSHAKING;
+import static org.littleshoot.proxy.impl.ConnectionState.NEGOTIATING_CONNECT;
+
import android.util.Log;
import org.littleshoot.proxy.HttpFilters;
@@ -235,12 +258,6 @@ file or class name and description of purpose be included on the
import ru.krlvm.powertunnel.PowerTunnel;
import ru.krlvm.powertunnel.utilities.PacketUtility;
-import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CHUNK;
-import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_INITIAL;
-import static org.littleshoot.proxy.impl.ConnectionState.DISCONNECTED;
-import static org.littleshoot.proxy.impl.ConnectionState.HANDSHAKING;
-import static org.littleshoot.proxy.impl.ConnectionState.NEGOTIATING_CONNECT;
-
/**
*
* Base class for objects that represent a connection to/from our proxy.
diff --git a/app/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java b/app/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
index cd226a1..5c15235 100644
--- a/app/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
+++ b/app/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/******************************************************************************
Apache License
Version 2.0, January 2004
@@ -203,6 +220,13 @@ file or class name and description of purpose be included on the
******************************************************************************/
package org.littleshoot.proxy.impl;
+import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CHUNK;
+import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CONNECT_OK;
+import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_INITIAL;
+import static org.littleshoot.proxy.impl.ConnectionState.CONNECTING;
+import static org.littleshoot.proxy.impl.ConnectionState.DISCONNECTED;
+import static org.littleshoot.proxy.impl.ConnectionState.HANDSHAKING;
+
import android.util.Log;
import com.google.common.net.HostAndPort;
@@ -262,13 +286,6 @@ file or class name and description of purpose be included on the
import ru.krlvm.powertunnel.PowerTunnel;
import ru.krlvm.powertunnel.enums.SNITrick;
-import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CHUNK;
-import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_CONNECT_OK;
-import static org.littleshoot.proxy.impl.ConnectionState.AWAITING_INITIAL;
-import static org.littleshoot.proxy.impl.ConnectionState.CONNECTING;
-import static org.littleshoot.proxy.impl.ConnectionState.DISCONNECTED;
-import static org.littleshoot.proxy.impl.ConnectionState.HANDSHAKING;
-
/**
*
* Represents a connection from our proxy to a server on the web.
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/Authority.java b/app/src/main/java/org/littleshoot/proxy/mitm/Authority.java
index e2bf14c..065422d 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/Authority.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/Authority.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/BouncyCastleSslEngineSource.java b/app/src/main/java/org/littleshoot/proxy/mitm/BouncyCastleSslEngineSource.java
index 5508456..fd25879 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/BouncyCastleSslEngineSource.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/BouncyCastleSslEngineSource.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
@@ -282,7 +299,7 @@ public class BouncyCastleSslEngineSource implements SslEngineSource {
private PrivateKey caPrivKey;
- private Cache serverSSLContexts;
+ private final Cache serverSSLContexts;
/**
* Creates a SSL engine source create a Certificate Authority if needed and
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/CertificateHelper.java b/app/src/main/java/org/littleshoot/proxy/mitm/CertificateHelper.java
index 87a940e..4d4eace 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/CertificateHelper.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/CertificateHelper.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/CertificateSniffingMitmManager.java b/app/src/main/java/org/littleshoot/proxy/mitm/CertificateSniffingMitmManager.java
index b773cf4..3ff3478 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/CertificateSniffingMitmManager.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/CertificateSniffingMitmManager.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
@@ -227,7 +244,7 @@ public class CertificateSniffingMitmManager implements MitmManager {
private static final Logger LOG = LoggerFactory
.getLogger(CertificateSniffingMitmManager.class);
- private BouncyCastleSslEngineSource sslEngineSource;
+ private final BouncyCastleSslEngineSource sslEngineSource;
public CertificateSniffingMitmManager() throws RootCertificateException {
this(new Authority());
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/FakeCertificateException.java b/app/src/main/java/org/littleshoot/proxy/mitm/FakeCertificateException.java
index 50dc78a..eb48cff 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/FakeCertificateException.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/FakeCertificateException.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/MergeTrustManager.java b/app/src/main/java/org/littleshoot/proxy/mitm/MergeTrustManager.java
index 5b18a8c..acb4531 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/MergeTrustManager.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/MergeTrustManager.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/RootCertificateException.java b/app/src/main/java/org/littleshoot/proxy/mitm/RootCertificateException.java
index 4a75a1a..c5dd23c 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/RootCertificateException.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/RootCertificateException.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/org/littleshoot/proxy/mitm/SubjectAlternativeNameHolder.java b/app/src/main/java/org/littleshoot/proxy/mitm/SubjectAlternativeNameHolder.java
index b454fb1..4badbd0 100644
--- a/app/src/main/java/org/littleshoot/proxy/mitm/SubjectAlternativeNameHolder.java
+++ b/app/src/main/java/org/littleshoot/proxy/mitm/SubjectAlternativeNameHolder.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
/*
*
* Apache License
diff --git a/app/src/main/java/ru/krlvm/powertunnel/PowerTunnel.java b/app/src/main/java/ru/krlvm/powertunnel/PowerTunnel.java
index ddbc812..05492dd 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/PowerTunnel.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/PowerTunnel.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel;
import android.util.Log;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/adapters/UpstreamChainedProxyAdapter.java b/app/src/main/java/ru/krlvm/powertunnel/adapters/UpstreamChainedProxyAdapter.java
index 837281d..de96c7e 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/adapters/UpstreamChainedProxyAdapter.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/adapters/UpstreamChainedProxyAdapter.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.adapters;
import android.util.Log;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/MainActivity.java b/app/src/main/java/ru/krlvm/powertunnel/android/MainActivity.java
index 9caab40..a39286b 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/MainActivity.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/MainActivity.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android;
import android.app.AlertDialog;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/activities/AboutActivity.java b/app/src/main/java/ru/krlvm/powertunnel/android/activities/AboutActivity.java
index 46e367e..1c96952 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/activities/AboutActivity.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/activities/AboutActivity.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.activities;
import android.app.AlertDialog;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/exceptions/ProxyStartFailureException.java b/app/src/main/java/ru/krlvm/powertunnel/android/exceptions/ProxyStartFailureException.java
index f3253a9..a56e64e 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/exceptions/ProxyStartFailureException.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/exceptions/ProxyStartFailureException.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.exceptions;
public class ProxyStartFailureException extends Exception {
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/fragments/SettingsFragment.java b/app/src/main/java/ru/krlvm/powertunnel/android/fragments/SettingsFragment.java
index e1a9752..4184ee3 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/fragments/SettingsFragment.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/fragments/SettingsFragment.java
@@ -1,5 +1,25 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.fragments;
+import static android.preference.Preference.OnPreferenceChangeListener;
+import static android.preference.Preference.OnPreferenceClickListener;
+
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
@@ -24,9 +44,6 @@
import tun.proxy.preferences.fragments.PackageListPreferenceFragment;
import tun.proxy.preferences.preference.EditTextSummaryPreference;
-import static android.preference.Preference.OnPreferenceChangeListener;
-import static android.preference.Preference.OnPreferenceClickListener;
-
public class SettingsFragment extends PreferenceFragment
implements OnPreferenceClickListener, OnPreferenceChangeListener {
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/managers/NotificationHelper.java b/app/src/main/java/ru/krlvm/powertunnel/android/managers/NotificationHelper.java
index eb719b4..5668dd3 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/managers/NotificationHelper.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/managers/NotificationHelper.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.managers;
import android.app.Notification;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java b/app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java
index 70a19bb..97cd563 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.managers;
import android.content.Context;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/receiver/ActionReceiver.java b/app/src/main/java/ru/krlvm/powertunnel/android/receiver/ActionReceiver.java
index 0759e7a..6347d64 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/receiver/ActionReceiver.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/receiver/ActionReceiver.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.receiver;
import android.content.BroadcastReceiver;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/receiver/BootReceiver.java b/app/src/main/java/ru/krlvm/powertunnel/android/receiver/BootReceiver.java
index f8ae3e7..0ab9136 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/receiver/BootReceiver.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/receiver/BootReceiver.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.receiver;
import android.content.BroadcastReceiver;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/resolver/AndroidDohResolver.java b/app/src/main/java/ru/krlvm/powertunnel/android/resolver/AndroidDohResolver.java
index 8378467..87d5a9d 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/resolver/AndroidDohResolver.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/resolver/AndroidDohResolver.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.resolver;
import org.xbill.DNS.ARecord;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/services/ProxyModeService.java b/app/src/main/java/ru/krlvm/powertunnel/android/services/ProxyModeService.java
index da0a0ad..62aeb13 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/services/ProxyModeService.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/services/ProxyModeService.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.services;
import android.app.Notification;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/services/QuickTileService.java b/app/src/main/java/ru/krlvm/powertunnel/android/services/QuickTileService.java
index 6830512..16369be 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/services/QuickTileService.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/services/QuickTileService.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.services;
import android.app.Notification;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/ui/NoUnderlineSpan.java b/app/src/main/java/ru/krlvm/powertunnel/android/ui/NoUnderlineSpan.java
index 0a6745e..e410157 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/ui/NoUnderlineSpan.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/ui/NoUnderlineSpan.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.ui;
import android.text.Spannable;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateHandler.java b/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateHandler.java
index 9c1f8c7..6da8ee6 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateHandler.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateHandler.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.updater;
public interface UpdateHandler {
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateInfo.java b/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateInfo.java
index ae97625..2209c80 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateInfo.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/updater/UpdateInfo.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.updater;
import ru.krlvm.powertunnel.android.BuildConfig;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/android/updater/Updater.java b/app/src/main/java/ru/krlvm/powertunnel/android/updater/Updater.java
index 6c66269..9883c3a 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/android/updater/Updater.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/android/updater/Updater.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.android.updater;
import android.app.AlertDialog;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/enums/SNITrick.java b/app/src/main/java/ru/krlvm/powertunnel/enums/SNITrick.java
index 565c2db..1daec82 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/enums/SNITrick.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/enums/SNITrick.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.enums;
public enum SNITrick {
diff --git a/app/src/main/java/ru/krlvm/powertunnel/filter/ProxyFilter.java b/app/src/main/java/ru/krlvm/powertunnel/filter/ProxyFilter.java
index 0f536a1..ca3a7b4 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/filter/ProxyFilter.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/filter/ProxyFilter.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.filter;
import org.littleshoot.proxy.HttpFiltersAdapter;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/managers/UpstreamProxyChainedProxyManager.java b/app/src/main/java/ru/krlvm/powertunnel/managers/UpstreamProxyChainedProxyManager.java
index bf4cf44..6137da3 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/managers/UpstreamProxyChainedProxyManager.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/managers/UpstreamProxyChainedProxyManager.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.managers;
import android.util.Log;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/utilities/HttpUtility.java b/app/src/main/java/ru/krlvm/powertunnel/utilities/HttpUtility.java
index 34e483f..d27476b 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/utilities/HttpUtility.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/utilities/HttpUtility.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.utilities;
import android.util.Base64;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/utilities/MITMUtility.java b/app/src/main/java/ru/krlvm/powertunnel/utilities/MITMUtility.java
index f8e8620..b3c182a 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/utilities/MITMUtility.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/utilities/MITMUtility.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.utilities;
import org.littleshoot.proxy.mitm.Authority;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/utilities/PacketUtility.java b/app/src/main/java/ru/krlvm/powertunnel/utilities/PacketUtility.java
index f643cfe..1e95dcf 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/utilities/PacketUtility.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/utilities/PacketUtility.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.utilities;
import java.util.Arrays;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/utilities/URLUtility.java b/app/src/main/java/ru/krlvm/powertunnel/utilities/URLUtility.java
index 30dfb00..3a541f5 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/utilities/URLUtility.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/utilities/URLUtility.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.utilities;
import java.io.IOException;
diff --git a/app/src/main/java/ru/krlvm/powertunnel/utilities/Utility.java b/app/src/main/java/ru/krlvm/powertunnel/utilities/Utility.java
index 3bae7be..d60c1c4 100644
--- a/app/src/main/java/ru/krlvm/powertunnel/utilities/Utility.java
+++ b/app/src/main/java/ru/krlvm/powertunnel/utilities/Utility.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package ru.krlvm.powertunnel.utilities;
import java.io.Closeable;
diff --git a/app/src/main/java/tun/proxy/preferences/SimplePreferenceActivity.java b/app/src/main/java/tun/proxy/preferences/SimplePreferenceActivity.java
index 1c65cf6..4f99095 100644
--- a/app/src/main/java/tun/proxy/preferences/SimplePreferenceActivity.java
+++ b/app/src/main/java/tun/proxy/preferences/SimplePreferenceActivity.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.proxy.preferences;
import android.os.Bundle;
diff --git a/app/src/main/java/tun/proxy/preferences/fragments/PackageListPreferenceFragment.java b/app/src/main/java/tun/proxy/preferences/fragments/PackageListPreferenceFragment.java
index c437984..7acb5d6 100644
--- a/app/src/main/java/tun/proxy/preferences/fragments/PackageListPreferenceFragment.java
+++ b/app/src/main/java/tun/proxy/preferences/fragments/PackageListPreferenceFragment.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.proxy.preferences.fragments;
import android.content.Context;
@@ -181,7 +198,7 @@ private void filterPackagesPreferences(String filter, AppSortBy sortBy) {
for (final PackageInfo pkgInfo : installedPackages) {
if(pkgInfo.packageName == null) continue;
Boolean b = mAllPackageInfoMap.get(pkgInfo.packageName);
- boolean checked = b == null ? false : b;
+ boolean checked = b != null && b;
installedPackageMap.put(pkgInfo.packageName, checked);
}
this.mAllPackageInfoMap.clear();
@@ -206,7 +223,7 @@ private Preference buildPackagePreferences(PackageManager pm, PackageInfo pkgInf
prefCheck.setSummary(pkgInfo.packageName);
Boolean b = mAllPackageInfoMap.get(pkgInfo.packageName);
- boolean checked = b == null ? false : b;
+ boolean checked = b != null && b;
prefCheck.setChecked(checked);
Preference.OnPreferenceClickListener click = preference -> {
mAllPackageInfoMap.put(prefCheck.getSummary().toString(), prefCheck.isChecked());
diff --git a/app/src/main/java/tun/proxy/preferences/preference/EditTextSummaryPreference.java b/app/src/main/java/tun/proxy/preferences/preference/EditTextSummaryPreference.java
index 59b3715..42508c1 100644
--- a/app/src/main/java/tun/proxy/preferences/preference/EditTextSummaryPreference.java
+++ b/app/src/main/java/tun/proxy/preferences/preference/EditTextSummaryPreference.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.proxy.preferences.preference;
import android.content.Context;
diff --git a/app/src/main/java/tun/proxy/service/Tun2HttpVpnService.java b/app/src/main/java/tun/proxy/service/Tun2HttpVpnService.java
index 71e308e..aea47bc 100644
--- a/app/src/main/java/tun/proxy/service/Tun2HttpVpnService.java
+++ b/app/src/main/java/tun/proxy/service/Tun2HttpVpnService.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.proxy.service;
import android.app.Notification;
diff --git a/app/src/main/java/tun/utils/SimpleSocketFactory.java b/app/src/main/java/tun/utils/SimpleSocketFactory.java
index 4c76d5c..fa9366a 100644
--- a/app/src/main/java/tun/utils/SimpleSocketFactory.java
+++ b/app/src/main/java/tun/utils/SimpleSocketFactory.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.utils;
import java.io.IOException;
@@ -12,7 +29,7 @@
public class SimpleSocketFactory extends SSLSocketFactory {
- private SSLSocketFactory factory;
+ private final SSLSocketFactory factory;
public SimpleSocketFactory() throws KeyManagementException, NoSuchAlgorithmException {
SSLContext context = SSLContext.getInstance("TLS");
diff --git a/app/src/main/java/tun/utils/Util.java b/app/src/main/java/tun/utils/Util.java
index c454ba3..3984be6 100644
--- a/app/src/main/java/tun/utils/Util.java
+++ b/app/src/main/java/tun/utils/Util.java
@@ -1,3 +1,20 @@
+/*
+ * This file is part of PowerTunnel-Android.
+ *
+ * PowerTunnel-Android is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PowerTunnel-Android is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PowerTunnel-Android. If not, see .
+ */
+
package tun.utils;
/*
diff --git a/app/src/main/res/drawable-anydpi-v24/ic_download.xml b/app/src/main/res/drawable-anydpi-v24/ic_download.xml
index 321080c..7f0649a 100644
--- a/app/src/main/res/drawable-anydpi-v24/ic_download.xml
+++ b/app/src/main/res/drawable-anydpi-v24/ic_download.xml
@@ -1,3 +1,20 @@
+
+
.
+ -->
+
.
+ -->
+
.
+ -->
+
.
+ -->
+
.
+ -->
+
.
+ -->
+
.
+ -->
+
+
+
+
+
.
+ -->
+