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
a6c12dfd
Commit
a6c12dfd
authored
Nov 30, 2015
by
CzBiX
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused consts in Utils
parent
3d998a32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
src/main/scala/com/github/shadowsocks/utils/Utils.scala
src/main/scala/com/github/shadowsocks/utils/Utils.scala
+0
-15
No files found.
src/main/scala/com/github/shadowsocks/utils/Utils.scala
View file @
a6c12dfd
...
@@ -62,25 +62,11 @@ import org.xbill.DNS._
...
@@ -62,25 +62,11 @@ import org.xbill.DNS._
object
Utils
{
object
Utils
{
val
TAG
:
String
=
"Shadowsocks"
val
TAG
:
String
=
"Shadowsocks"
val
ABI_PROP
:
String
=
"ro.product.cpu.abi"
val
ABI2_PROP
:
String
=
"ro.product.cpu.abi2"
val
ARM_ABI
:
String
=
"armeabi"
val
ARMV7_ABI
:
String
=
"armeabi-v7a"
val
X86_ABI
:
String
=
"x86"
val
MIPS_ABI
:
String
=
"mips"
val
DEFAULT_SHELL
:
String
=
"/system/bin/sh"
val
DEFAULT_ROOT
:
String
=
"/system/bin/su"
val
ALTERNATIVE_ROOT
:
String
=
"/system/xbin/su"
val
DEFAULT_IPTABLES
:
String
=
"/system/bin/iptables"
val
DEFAULT_IPTABLES
:
String
=
"/system/bin/iptables"
val
ALTERNATIVE_IPTABLES
:
String
=
"iptables"
val
ALTERNATIVE_IPTABLES
:
String
=
"iptables"
val
TIME_OUT
:
Int
=
-
99
var
initialized
:
Boolean
=
false
var
initialized
:
Boolean
=
false
var
hasRedirectSupport
:
Int
=
-
1
var
hasRedirectSupport
:
Int
=
-
1
var
shell
:
String
=
null
var
root_shell
:
String
=
null
var
iptables
:
String
=
null
var
iptables
:
String
=
null
var
data_path
:
String
=
null
var
rootTries
=
0
def
isLollipopOrAbove
:
Boolean
=
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
def
isLollipopOrAbove
:
Boolean
=
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
...
@@ -397,7 +383,6 @@ object Utils {
...
@@ -397,7 +383,6 @@ object Utils {
if
(!
Console
.
isRoot
)
return
if
(!
Console
.
isRoot
)
return
hasRedirectSupport
=
1
hasRedirectSupport
=
1
val
sb
=
new
StringBuilder
val
command
=
Utils
.
getIptables
+
" -t nat -A OUTPUT -p udp --dport 54 -j REDIRECT --to 8154"
val
command
=
Utils
.
getIptables
+
" -t nat -A OUTPUT -p udp --dport 54 -j REDIRECT --to 8154"
val
lines
=
Console
.
runRootCommand
(
command
)
val
lines
=
Console
.
runRootCommand
(
command
)
...
...
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