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
06d736b2
Commit
06d736b2
authored
Oct 18, 2014
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix all issues for lollipop
parent
e34d5675
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
src/main/AndroidManifest.xml
src/main/AndroidManifest.xml
+2
-2
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
+0
-4
src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
.../scala/com/github/shadowsocks/ShadowsocksNatService.scala
+2
-10
No files found.
src/main/AndroidManifest.xml
View file @
06d736b2
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.github.shadowsocks"
android:versionCode=
"7
4
"
android:versionName=
"2.
2.6
"
>
android:versionCode=
"7
5
"
android:versionName=
"2.
3.0
"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
...
...
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
View file @
06d736b2
...
...
@@ -827,10 +827,6 @@ class Shadowsocks
copyAssets
(
System
.
getABI
)
if
(
Build
.
VERSION
.
SDK_INT
>=
20
)
{
copyToSystem
()
}
val
ab
=
new
ArrayBuffer
[
String
]
for
(
executable
<-
Shadowsocks
.
EXECUTABLES
)
{
ab
.
append
(
"chmod 755 "
+
Path
.
BASE
+
executable
)
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
View file @
06d736b2
...
...
@@ -160,12 +160,8 @@ class ShadowsocksNatService extends Service with BaseService {
})
val
args
=
"pdnsd -c "
+
Path
.
BASE
+
"pdnsd.conf"
val
cmd
=
Path
.
BASE
+
args
val
cmd
=
if
(
Build
.
VERSION
.
SDK_INT
>=
20
)
{
"/system/bin/"
+
args
}
else
{
Path
.
BASE
+
args
}
if
(
BuildConfig
.
DEBUG
)
Log
.
d
(
TAG
,
cmd
)
Console
.
runRootCommand
(
cmd
)
}
...
...
@@ -190,11 +186,7 @@ class ShadowsocksNatService extends Service with BaseService {
ConfigUtils
.
printToFile
(
new
File
(
Path
.
BASE
+
"redsocks.conf"
))(
p
=>
{
p
.
println
(
conf
)
})
val
cmd
=
if
(
Build
.
VERSION
.
SDK_INT
>=
20
)
{
"/system/bin/"
+
args
}
else
{
Path
.
BASE
+
args
}
val
cmd
=
Path
.
BASE
+
args
Console
.
runRootCommand
(
cmd
)
}
...
...
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