Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhengli
/
wechat_click
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
95c166e8
authored
Apr 06, 2018
by
jeffrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进入详情页不判断了,因为微信有时候不触发系统消息
parent
8679180c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
22 deletions
+61
-22
app/build.gradle
+11
-2
app/src/main/java/com/xf/weixinclick/NewService.java
+50
-20
No files found.
app/build.gradle
View file @
95c166e8
...
@@ -22,8 +22,8 @@ android {
...
@@ -22,8 +22,8 @@ android {
applicationId
"com.xf.weixinclick"
applicationId
"com.xf.weixinclick"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
25
targetSdkVersion
25
versionCode
7
versionCode
8
versionName
"1.5.
3
"
versionName
"1.5.
4
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild
{
externalNativeBuild
{
cmake
{
cmake
{
...
@@ -52,6 +52,15 @@ android {
...
@@ -52,6 +52,15 @@ android {
sourceSets
.
main
.
jniLibs
.
srcDirs
=
[
'src/main/libs'
,
'src/main/jniLibs'
]
sourceSets
.
main
.
jniLibs
.
srcDirs
=
[
'src/main/libs'
,
'src/main/jniLibs'
]
//重定向so目录为src/main/libs和src/main/jniLibs,原来为src/main/jniLibs
//重定向so目录为src/main/libs和src/main/jniLibs,原来为src/main/jniLibs
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
all
{
output
->
def
sourceFile
=
".apk"
def
replaceFile
=
"_v${variant.versionName}.apk"
outputFileName
=
output
.
outputFile
.
name
.
replace
(
sourceFile
,
replaceFile
)
}
}
}
}
dependencies
{
dependencies
{
...
...
app/src/main/java/com/xf/weixinclick/NewService.java
View file @
95c166e8
...
@@ -23,6 +23,7 @@ import com.xf.weixinclick.bean.msg.ReceiverMsg;
...
@@ -23,6 +23,7 @@ import com.xf.weixinclick.bean.msg.ReceiverMsg;
import
com.xf.weixinclick.http.HttpClientApi
;
import
com.xf.weixinclick.http.HttpClientApi
;
import
com.xf.weixinclick.http.HttpSubscriber
;
import
com.xf.weixinclick.http.HttpSubscriber
;
import
com.xf.weixinclick.receiver.WeChatStatus
;
import
com.xf.weixinclick.receiver.WeChatStatus
;
import
com.xf.weixinclick.utils.SP
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.Subscribe
;
import
org.greenrobot.eventbus.Subscribe
;
...
@@ -246,27 +247,15 @@ public class NewService extends AccessibilityService {
...
@@ -246,27 +247,15 @@ public class NewService extends AccessibilityService {
}
}
});
});
// clickHomeWJCSZS();
}
// if (step == 1 ){
// printAllNode();
// }
// && findNodeByTexts(this,"文件传输助手")
if
(
step
==
2
&&
!
findNodeByTexts
(
this
,
"文件传输助手"
)){
resetAll
();
logToastAndUpload
(
TAG
,
"当前页不是文件传输助手页"
);
turnBack
(
ACTION_FAIL
);
return
;
}
if
(
step
==
2
&&
findNodeByTexts
(
this
,
"文件传输助手"
)){
delayDeal
(
delayBean
.
getAfter_open_weixin_index_delay
()+
5000
,
new
IDelayMethord
()
{
step
++;
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充_准备"
);
delayDeal
(
5000
,
new
IDelayMethord
()
{
@Override
@Override
public
void
delayMethord
()
{
public
void
delayMethord
()
{
step
++;
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充_准备"
);
// delayDeal(5000, new IDelayMethord() {
// @Override
// public void delayMethord() {
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充"
);
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充"
);
printAllNode
();
printAllNode
();
...
@@ -279,11 +268,48 @@ public class NewService extends AccessibilityService {
...
@@ -279,11 +268,48 @@ public class NewService extends AccessibilityService {
}
else
{
}
else
{
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充_失败"
);
logToastAndUpload
(
TAG
,
"文件传输详情页面_填充_失败"
);
}
}
// }
// });
}
}
});
});
// clickHomeWJCSZS();
}
}
// if (step == 1 ){
// printAllNode();
// }
// && findNodeByTexts(this,"文件传输助手")
// if (step == 2 && !findNodeByTexts(this,"文件传输助手")){
// resetAll();
// logToastAndUpload(TAG,"当前页不是文件传输助手页");
// turnBack(ACTION_FAIL);
// return;
// }
// if (step == 2 && findNodeByTexts(this,"文件传输助手")){
// step++;
// logToastAndUpload(TAG, "文件传输详情页面_填充_准备");
// delayDeal(5000, new IDelayMethord() {
// @Override
// public void delayMethord() {
// logToastAndUpload(TAG, "文件传输详情页面_填充");
// printAllNode();
//
// if(fill()){
// logToastAndUpload(TAG, "文件传输详情页面_填充_完成");
// send();
// clickMsg(getRootInActiveWindow());
//
// step++;
// }else{
// logToastAndUpload(TAG, "文件传输详情页面_填充_失败");
// }
// }
// });
//
// }
// if (step == 4 && findNodeByTexts(this,"文件传输助手")){
// if (step == 4 && findNodeByTexts(this,"文件传输助手")){
// //填充完了 有时候发送不出现,那就再点击下文字 ,点完了要变下空白区域 让输入框消失
// //填充完了 有时候发送不出现,那就再点击下文字 ,点完了要变下空白区域 让输入框消失
// execShellCmd("input tap " + dip2px(130) + " " + dip2px(600));
// execShellCmd("input tap " + dip2px(130) + " " + dip2px(600));
...
@@ -1025,8 +1051,12 @@ public class NewService extends AccessibilityService {
...
@@ -1025,8 +1051,12 @@ public class NewService extends AccessibilityService {
if
(
myApplication
.
getInstence
()
!=
null
){
if
(
myApplication
.
getInstence
()
!=
null
){
showToast
(
myApplication
.
getInstence
(),
msg
);
showToast
(
myApplication
.
getInstence
(),
msg
);
}
}
String
name
=
(
String
)
SP
.
getParam
(
"divice"
,
""
);
if
(
TextUtils
.
isEmpty
(
name
)){
return
;
}
//不管成功还是失败
//不管成功还是失败
HttpClientApi
.
uploadDeviceLog
(
PushServiceFactory
.
getCloudPushService
().
getDeviceId
()
,
tag
,
msg
,
new
Subscriber
<
String
>()
{
HttpClientApi
.
uploadDeviceLog
(
name
,
tag
,
msg
,
new
Subscriber
<
String
>()
{
@Override
@Override
public
void
onCompleted
()
{
public
void
onCompleted
()
{
...
...
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