Skip to content

Commit

Permalink
Finish 3.5.3
Browse files Browse the repository at this point in the history
A Beta version
* deny screen capture
* fix japanese translate
* and some other thing....
  • Loading branch information
Akkariiin committed Mar 7, 2018
2 parents 33162dd + da6634d commit 32bded1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
branch = shadowsocks-android
[submodule "src/main/jni/libevent"]
path = src/main/jni/libevent
url = https://github.com/shadowsocks/libevent.git
url = https://github.com/shadowsocksrr/libevent.git
branch = shadowsocks-android
[submodule "src/main/jni/redsocks"]
path = src/main/jni/redsocks
Expand Down
4 changes: 2 additions & 2 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="com.github.shadowsocks"
android:versionCode="323"
android:versionName="3.5.2">
android:versionCode="324"
android:versionName="3.5.3">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
is_sort = true
}

getWindow.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
getWindow.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
setContentView(R.layout.layout_profiles)

val toolbar = findViewById(R.id.toolbar).asInstanceOf[Toolbar]
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/com/github/shadowsocks/Shadowsocks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ import android.support.v4.content.ContextCompat
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.util.Log
import android.view.{View, ViewGroup}
import android.view.{View, ViewGroup, WindowManager}
import android.widget._
import com.github.jorgecastilloprz.FABProgressCircle
import com.github.shadowsocks.aidl.IShadowsocksServiceCallback
import com.github.shadowsocks.database._
import com.github.shadowsocks.utils.CloseUtils._
import com.github.shadowsocks.utils._
import com.github.shadowsocks.job.SSRSubUpdateJob

import com.github.shadowsocks.ShadowsocksApplication.app

import scala.util.Random
Expand Down Expand Up @@ -250,8 +249,9 @@ class Shadowsocks extends AppCompatActivity with ServiceBoundContext {
}

override def onCreate(savedInstanceState: Bundle) {

super.onCreate(savedInstanceState)
getWindow.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
getWindow.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
setContentView(R.layout.layout_main)
// Initialize Toolbar
val toolbar = findViewById(R.id.toolbar).asInstanceOf[Toolbar]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
})
}

var black_list = profile.route match {
val black_list = profile.route match {
case Route.BYPASS_CHN | Route.BYPASS_LAN_CHN | Route.GFWLIST=> {
getBlackList
}
Expand All @@ -380,7 +380,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
black_list, reject)
}

var conf = profile.route match {
val conf = profile.route match {
case Route.BYPASS_CHN | Route.BYPASS_LAN_CHN | Route.GFWLIST => {
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, protect, getApplicationInfo.dataDir,
"0.0.0.0", profile.localPort + 53, china_dns_settings, profile.localPort + 63, reject)
Expand Down

0 comments on commit 32bded1

Please sign in to comment.