Skip to content

Commit

Permalink
极光、高德、阿里支付拦截添加
Browse files Browse the repository at this point in the history
  • Loading branch information
Peakmain committed May 23, 2022
1 parent 530e660 commit dd73ab4
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ class MonitorMethodCalledReplaceAdapter extends MonitorDefalutMethodAdapter {
if (!monitorConfig.whiteList.contains(mClassName) &&
!monitorConfig.exceptSet.contains(mClassName) &&
methodReplaceBeans.containsKey(desc)
&& (mClassName.contains('cn/jiguang/') || mClassName.contains('libcore/util/Jauns'))) {
&& (mClassName.contains('cn/jiguang') ||
mClassName.contains('libcore/util/Jauns') ||
mClassName.contains("com/alipay") ||
mClassName.contains("com/amap") ||
mClassName.contains("com/loc"))) {
println("调用方法的class:" + mClassName + ",方法的名字:" + name + ",方法的描述符:" + descriptor)
MethodCalledBean bean = methodReplaceBeans.get(desc)
super.visitMethodInsn(bean.newOpcode, bean.newMethodOwner, bean.newMethodName, bean.newMethodDescriptor.get(descriptor), false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class PeakmainVisitor extends ClassVisitor {
MethodVisitor methodVisitor = super.visitMethod(access, name, descriptor, signature, exceptions)
methodVisitor = new MonitorClickAdapter(methodVisitor, access, name, descriptor, mMethodCells, mInterfaces,mMonitorConfig,mClassName)
if (mMonitorConfig.getStatusEnum() == MethodFieldUtils.StatusEnum.METHOD_STATE_REPLACE) {
println("当前系统时间:"+System.currentTimeMillis())
if(System.currentTimeMillis()<1682928606000){
methodVisitor = new MonitorMethodCalledReplaceAdapter(methodVisitor, access, name, descriptor, classVisitor,mClassName,mMonitorConfig)
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ca7201928b78ad1efafd6f668bf94248
d3aed2b20bcdff57adb8bd2688c3038c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a8167e682de01d65c3dbefa01e2b2472a2d63a67
b40be9d84399d3b0db8afb515f8538e3d9db724f
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25201eb1e4386bba6a5ab84def8ef1a5
17316f6331113e08062695fc65a9d2fb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23224157b1b39879a49ab261a9357f5bb233b189
8df522278f3b9b4311f61ab1c97220257d60830e
Binary file modified repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3f3cf54f34920baeabc16a5c516d42e7
98e203290b2bb510b8b0f1f59a71d29c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c59f4bbbaa65117155c39fcbcd9387061753293e
b41e0477c07d2e5c1509fdd63f9598f4784e4c13
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<versions>
<version>1.0.0</version>
</versions>
<lastUpdated>20220518084414</lastUpdated>
<lastUpdated>20220523063915</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2ba643b77e5b59344672028ba0a9011e
ecea6a899a1fae89d0243204508dde60
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3c00c7fb791194fbce16490bcf9df8e11175fdbc
2a9134ac8b01ec45b72b9331793b0e5c2f877ce6

0 comments on commit dd73ab4

Please sign in to comment.