Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
13ef297a
Commit
13ef297a
authored
Nov 12, 2017
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default DNS port to 5450 to avoid conflicts with Orbot
parent
725fb04f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala
...scala/com/github/shadowsocks/ShadowsocksApplication.scala
+4
-6
mobile/src/main/scala/com/github/shadowsocks/database/Profile.scala
.../main/scala/com/github/shadowsocks/database/Profile.scala
+0
-1
No files found.
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala
View file @
13ef297a
...
@@ -160,12 +160,10 @@ class ShadowsocksApplication extends Application {
...
@@ -160,12 +160,10 @@ class ShadowsocksApplication extends Application {
if
(
dataStore
.
getLong
(
Key
.
assetUpdateTime
,
-
1
)
!=
info
.
lastUpdateTime
)
copyAssets
()
if
(
dataStore
.
getLong
(
Key
.
assetUpdateTime
,
-
1
)
!=
info
.
lastUpdateTime
)
copyAssets
()
// hopefully hashCode = mHandle doesn't change, currently this is true from KitKat to Nougat
// hopefully hashCode = mHandle doesn't change, currently this is true from KitKat to Nougat
if
(!(
1025
to
65535
contains
dataStore
.
portProxy
))
lazy
val
userIndex
=
Binder
.
getCallingUserHandle
.
hashCode
dataStore
.
putInt
(
Key
.
portProxy
,
1080
+
Binder
.
getCallingUserHandle
.
hashCode
)
if
(!(
1025
to
65535
contains
dataStore
.
portProxy
))
dataStore
.
putInt
(
Key
.
portProxy
,
1080
+
userIndex
)
if
(!(
1025
to
65535
contains
dataStore
.
portLocalDns
))
if
(!(
1025
to
65535
contains
dataStore
.
portLocalDns
))
dataStore
.
putInt
(
Key
.
portLocalDns
,
5450
+
userIndex
)
dataStore
.
putInt
(
Key
.
portLocalDns
,
5400
+
Binder
.
getCallingUserHandle
.
hashCode
)
if
(!(
1025
to
65535
contains
dataStore
.
portTransproxy
))
dataStore
.
putInt
(
Key
.
portTransproxy
,
8200
+
userIndex
)
if
(!(
1025
to
65535
contains
dataStore
.
portTransproxy
))
dataStore
.
putInt
(
Key
.
portTransproxy
,
8200
+
Binder
.
getCallingUserHandle
.
hashCode
)
if
(
Build
.
VERSION
.
SDK_INT
>=
26
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
26
)
{
val
nm
=
getSystemService
(
classOf
[
NotificationManager
])
val
nm
=
getSystemService
(
classOf
[
NotificationManager
])
...
...
mobile/src/main/scala/com/github/shadowsocks/database/Profile.scala
View file @
13ef297a
...
@@ -23,7 +23,6 @@ package com.github.shadowsocks.database
...
@@ -23,7 +23,6 @@ package com.github.shadowsocks.database
import
java.util.Locale
import
java.util.Locale
import
android.net.Uri
import
android.net.Uri
import
android.os.Binder
import
android.util.Base64
import
android.util.Base64
import
com.github.shadowsocks.plugin.PluginConfiguration
import
com.github.shadowsocks.plugin.PluginConfiguration
import
com.github.shadowsocks.preference.OrmLitePreferenceDataStore
import
com.github.shadowsocks.preference.OrmLitePreferenceDataStore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment