Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelApi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
RatelApi
Commits
e089b2ee
Commit
e089b2ee
authored
Nov 04, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9488bfff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
RatelToolKit.java
src/main/java/com/virjar/ratel/api/RatelToolKit.java
+15
-0
JustTrustMe.java
src/main/java/com/virjar/ratel/api/inspect/JustTrustMe.java
+0
-1
No files found.
src/main/java/com/virjar/ratel/api/RatelToolKit.java
View file @
e089b2ee
...
@@ -9,6 +9,7 @@ import com.virjar.ratel.api.hint.RatelEngineVersion;
...
@@ -9,6 +9,7 @@ import com.virjar.ratel.api.hint.RatelEngineVersion;
import
com.virjar.ratel.api.providers.ContentProviderFakeRegister
;
import
com.virjar.ratel.api.providers.ContentProviderFakeRegister
;
import
com.virjar.ratel.api.scheduler.SchedulerTaskBeanHandler
;
import
com.virjar.ratel.api.scheduler.SchedulerTaskBeanHandler
;
import
java.util.Properties
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.concurrent.CopyOnWriteArraySet
;
import
java.util.concurrent.CopyOnWriteArraySet
;
...
@@ -156,4 +157,18 @@ public class RatelToolKit {
...
@@ -156,4 +157,18 @@ public class RatelToolKit {
public
static
String
TAG
=
null
;
public
static
String
TAG
=
null
;
/**
* 设置系统代理
*
* @param host host
* @param port port
*/
public
static
void
setupHttpProxy
(
String
host
,
int
port
)
{
Properties
prop
=
System
.
getProperties
();
prop
.
setProperty
(
"http.proxyHost"
,
host
);
prop
.
setProperty
(
"http.proxyPort"
,
String
.
valueOf
(
port
));
prop
.
setProperty
(
"https.proxyHost"
,
host
);
prop
.
setProperty
(
"https.proxyPort"
,
String
.
valueOf
(
port
));
}
}
}
src/main/java/com/virjar/ratel/api/inspect/JustTrustMe.java
View file @
e089b2ee
...
@@ -132,7 +132,6 @@ public class JustTrustMe {
...
@@ -132,7 +132,6 @@ public class JustTrustMe {
RposedBridge
.
hookMethod
(
method
,
new
RC_MethodReplacement
()
{
RposedBridge
.
hookMethod
(
method
,
new
RC_MethodReplacement
()
{
@Override
@Override
protected
Object
replaceHookedMethod
(
MethodHookParam
param
)
throws
Throwable
{
protected
Object
replaceHookedMethod
(
MethodHookParam
param
)
throws
Throwable
{
Log
.
i
(
"weijia"
,
"checkServerTrusted"
,
new
Throwable
());
return
null
;
return
null
;
}
}
});
});
...
...
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