Commit c4f6f0ee authored by Daniel Wolf's avatar Daniel Wolf
Browse files

First try of using iptables instead of a dummy vpn

parent 79fd4523
......@@ -91,6 +91,12 @@ android {
}
}
configurations.all {
resolutionStrategy {
force 'com.frostnerd.utilskt:dnstunnelproxy:1.5.54-test4'
}
}
dependencies {
def room_version = "2.1.0"
......
......@@ -207,6 +207,7 @@
</service>
<service android:name=".service.RuleImportService"/>
<service android:name=".service.RuleExportService"/>
<service android:name=".service.RootDnsService"/>
<receiver
android:name=".receiver.AutostartReceiver"
......
......@@ -19,14 +19,12 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.frostnerd.dnstunnelproxy.DnsServerInformation
import com.frostnerd.general.service.isServiceRunning
import com.frostnerd.smokescreen.R
import com.frostnerd.smokescreen.*
import com.frostnerd.smokescreen.activity.SpeedTestActivity
import com.frostnerd.smokescreen.dialog.ServerChoosalDialog
import com.frostnerd.smokescreen.getPreferences
import com.frostnerd.smokescreen.registerLocalReceiver
import com.frostnerd.smokescreen.service.Command
import com.frostnerd.smokescreen.service.DnsVpnService
import com.frostnerd.smokescreen.unregisterLocalReceiver
import com.frostnerd.smokescreen.service.RootDnsService
import kotlinx.android.synthetic.main.fragment_main.*
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
......@@ -80,6 +78,10 @@ class MainFragment : Fragment() {
}
updateVpnIndicators()
}
startButton.setOnLongClickListener {
context!!.startForegroundServiceCompat(Intent(context!!, RootDnsService::class.java))
true
}
speedTest.setOnClickListener {
startActivity(Intent(context!!, SpeedTestActivity::class.java))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment