Commit 95c166e8 by jeffrey

进入详情页不判断了,因为微信有时候不触发系统消息

parent 8679180c
...@@ -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 {
......
...@@ -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,6 +247,31 @@ public class NewService extends AccessibilityService { ...@@ -246,6 +247,31 @@ public class NewService extends AccessibilityService {
} }
}); });
delayDeal(delayBean.getAfter_open_weixin_index_delay()+5000, new IDelayMethord() {
@Override
public void delayMethord() {
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, "文件传输详情页面_填充_失败");
}
// }
// });
}
});
// clickHomeWJCSZS(); // clickHomeWJCSZS();
} }
...@@ -254,35 +280,35 @@ public class NewService extends AccessibilityService { ...@@ -254,35 +280,35 @@ public class NewService extends AccessibilityService {
// } // }
// && findNodeByTexts(this,"文件传输助手") // && findNodeByTexts(this,"文件传输助手")
if (step == 2 && !findNodeByTexts(this,"文件传输助手")){ // if (step == 2 && !findNodeByTexts(this,"文件传输助手")){
resetAll(); // resetAll();
logToastAndUpload(TAG,"当前页不是文件传输助手页"); // logToastAndUpload(TAG,"当前页不是文件传输助手页");
turnBack(ACTION_FAIL); // turnBack(ACTION_FAIL);
return; // 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 == 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,"文件传输助手")){
// //填充完了 有时候发送不出现,那就再点击下文字 ,点完了要变下空白区域 让输入框消失 // //填充完了 有时候发送不出现,那就再点击下文字 ,点完了要变下空白区域 让输入框消失
...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment