atom
This commit is contained in:
@@ -74,7 +74,11 @@
|
||||
<activity android:name="com.fisherbone.fuzhu.Main2Activity"></activity>
|
||||
<activity android:name="com.fisherbone.fuzhu.MainActivityy">
|
||||
|
||||
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".activity.CancelThumbUpActivity"
|
||||
android:exported="false" />
|
||||
<activity android:name=".activity.HongBaoActivity"></activity>
|
||||
<activity android:name=".activity.AppointActivity" />
|
||||
<activity android:name=".LiveSuiJiActivity" />
|
||||
|
||||
@@ -303,4 +303,17 @@ public class AblSteps {
|
||||
public final static int STEP_258 = 258;
|
||||
public final static int STEP_259 = 259;
|
||||
|
||||
/*****************************************/
|
||||
public final static int STEP_260 = 260;
|
||||
public final static int STEP_261 = 261;
|
||||
public final static int STEP_262 = 262;
|
||||
public final static int STEP_263 = 263;
|
||||
public final static int STEP_264 = 264;
|
||||
public final static int STEP_265 = 265;
|
||||
public final static int STEP_266 = 266;
|
||||
public final static int STEP_267 = 267;
|
||||
public final static int STEP_268 = 268;
|
||||
public final static int STEP_269 = 269;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.fisherbone.fuzhu.activity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.fisherbone.fuzhu.BaseActivity;
|
||||
import com.fisherbone.fuzhu.R;
|
||||
import com.fisherbone.fuzhu.abllib.AblStepHandler;
|
||||
import com.fisherbone.fuzhu.abllib.AblSteps;
|
||||
import com.fisherbone.fuzhu.abllib.utils.AblUtil;
|
||||
import com.fisherbone.fuzhu.databinding.ActivityCancelThumbUpBinding;
|
||||
import com.fisherbone.fuzhu.entity.CancelThumbUpBean;
|
||||
import com.fisherbone.fuzhu.entity.FourEvent;
|
||||
import com.fisherbone.fuzhu.widget.TitleBar;
|
||||
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
public class CancelThumbUpActivity extends BaseActivity {
|
||||
private CancelThumbUpBean cancelThumbUpBean;
|
||||
private ActivityCancelThumbUpBinding binding;
|
||||
private TitleBar mTitleBar;
|
||||
@SuppressLint("WrongViewCast")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_cancel_thumb_up);
|
||||
binding = DataBindingUtil.setContentView(this, R.layout.activity_cancel_thumb_up);
|
||||
mTitleBar = (TitleBar) findViewById(R.id.title_bar);
|
||||
mTitleBar.setTitle("一键取赞");
|
||||
initNormalBack();
|
||||
binding.rlStart.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (AblUtil.isAccessibilityServiceOpen(CancelThumbUpActivity.this)) {
|
||||
AblStepHandler.getInstance().setStop(false);
|
||||
//startApplicationtwo(MainActivity.this,"com.ss.android.ugc.aweme");
|
||||
//jumpAPP();
|
||||
EventBus.getDefault().post(new FourEvent("success", "11"));
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_260);
|
||||
} else {
|
||||
AblUtil.openAccessibilitySettings();
|
||||
//ToastUtils.showShort("请先开启辅助服务");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -17,6 +17,7 @@ import com.fisherbone.fuzhu.abllib.utils.AblUtil;
|
||||
import com.fisherbone.fuzhu.databinding.ViewTestBinding;
|
||||
import com.fisherbone.fuzhu.entity.ControlBean;
|
||||
import com.fisherbone.fuzhu.entity.addWinEntity;
|
||||
import com.fisherbone.fuzhu.quzan.AblStep1;
|
||||
import com.fisherbone.fuzhu.step.TestAblStep24;
|
||||
import com.fisherbone.fuzhu.step.TestAblStep30;
|
||||
import com.fisherbone.fuzhu.step.TestAblStep34;
|
||||
@@ -165,6 +166,18 @@ public class ControlWindow {
|
||||
//直播间抢红包
|
||||
case "15":
|
||||
|
||||
break;
|
||||
case "16":
|
||||
//取赞
|
||||
if (AblUtil.isAccessibilityServiceOpen(mContext)) {
|
||||
AblStepHandler.getInstance().initStepClass(new AblStep1());
|
||||
stutas(ChangLiang.isrun);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_260);
|
||||
} else {
|
||||
ToastUtils.showShort("点到了");
|
||||
ToastUtils.showShort("请先开启辅助服务");
|
||||
AblUtil.openAccessibilitySettings();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Log.e("TIAOSHI###", "执行的功能类型不匹配");
|
||||
@@ -265,6 +278,18 @@ public class ControlWindow {
|
||||
break;
|
||||
case "15"://直播间抢红包
|
||||
|
||||
break;
|
||||
case "16":
|
||||
//取赞
|
||||
if (AblUtil.isAccessibilityServiceOpen(mContext)) {
|
||||
AblStepHandler.getInstance().initStepClass(new AblStep1());
|
||||
stutas(ChangLiang.isrun);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_260);
|
||||
} else {
|
||||
ToastUtils.showShort("点到了");
|
||||
ToastUtils.showShort("请先开启辅助服务");
|
||||
AblUtil.openAccessibilitySettings();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Log.e("TIAOSHI###", "执行的功能类型不匹配");
|
||||
|
||||
@@ -60,6 +60,7 @@ import com.fisherbone.fuzhu.entity.letterListBean;
|
||||
import com.fisherbone.fuzhu.entity.touchTaskBean;
|
||||
import com.fisherbone.fuzhu.okgonet.HttpConstants;
|
||||
import com.fisherbone.fuzhu.okgonet.NetApi;
|
||||
import com.fisherbone.fuzhu.quzan.AblStep1;
|
||||
import com.fisherbone.fuzhu.reflect.InjectUtils;
|
||||
import com.fisherbone.fuzhu.reflect.OnClickk;
|
||||
import com.fisherbone.fuzhu.step.TestAblStep0;
|
||||
@@ -311,7 +312,7 @@ public class MainActivity extends BaseActivity implements InfoMessage {
|
||||
.setFindViewMillisInFuture(10000)//寻找界面超时时间
|
||||
.setFindViewCountDownInterval(200)//寻找界面间隔时间
|
||||
.build().init();
|
||||
AblStepHandler.getInstance().initStepClass(new TestAblStep0(), new TestAblStep1(), new TestAblStep2(), new TestAblStep8(), new TestAblStep9(), new TestAblStep10(), new TestAblStep12(), new TestAblStep13(), new TestAblStep18(), new TestAblStep19(), new TestAblStep23(), new TestAblStep25(), new TestAblStep26(), new TestAblStep27(), new TestAblStep28(), new TestAblStep29(), new TestAblStep31(), new TestAblStep32(), new TestAblStep33());
|
||||
AblStepHandler.getInstance().initStepClass(new TestAblStep0(), new TestAblStep1(), new TestAblStep2(), new TestAblStep8(), new TestAblStep9(), new TestAblStep10(), new TestAblStep12(), new TestAblStep13(), new TestAblStep18(), new TestAblStep19(), new TestAblStep23(), new TestAblStep25(), new TestAblStep26(), new TestAblStep27(), new TestAblStep28(), new TestAblStep29(), new TestAblStep31(), new TestAblStep32(), new TestAblStep33() , new AblStep1());
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
int hasWriteContactsPermission = checkSelfPermission(Manifest.permission.READ_CONTACTS);
|
||||
if (hasWriteContactsPermission != PackageManager.PERMISSION_GRANTED) {
|
||||
@@ -357,7 +358,7 @@ public class MainActivity extends BaseActivity implements InfoMessage {
|
||||
|
||||
}
|
||||
|
||||
@OnClickk({R.id.rl_05, R.id.rl_12, R.id.rl_011, R.id.rl_10, R.id.rl_09, R.id.rl_08, R.id.rl_07, R.id.rl_06, R.id.rl_04, R.id.rl_03, R.id.rl_01, R.id.rl_02})
|
||||
@OnClickk({R.id.rl_05, R.id.rl_12, R.id.rl_011, R.id.rl_10, R.id.rl_09, R.id.rl_08, R.id.rl_07, R.id.rl_06, R.id.rl_04, R.id.rl_03, R.id.rl_01, R.id.rl_02 ,R.id.rl_16})
|
||||
public void click(View view) {
|
||||
if(ProfileSpUtils.getInstance().getSetBean().isRedswitchone()){
|
||||
ToastUtils.showShort( "请关闭云端控制");
|
||||
@@ -398,6 +399,9 @@ public class MainActivity extends BaseActivity implements InfoMessage {
|
||||
JumpUtils.gotoActivity(MainActivity.this, RecFollowActivity.class, false, "", "");
|
||||
// JumpUtils.gotoActivity(MainActivity.this, MainActivityy.class, false, "", "");
|
||||
break;
|
||||
case R.id.rl_16:
|
||||
JumpUtils.gotoActivity(MainActivity.this,CancelThumbUpActivity.class, false, "", "");
|
||||
break;
|
||||
case R.id.rl_02:
|
||||
// service.stopSelf();
|
||||
|
||||
@@ -542,6 +546,8 @@ public class MainActivity extends BaseActivity implements InfoMessage {
|
||||
case "10":
|
||||
execute("5");
|
||||
break;
|
||||
case "11":
|
||||
execute("16");
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.fisherbone.fuzhu.entity;
|
||||
|
||||
import androidx.databinding.BaseObservable;
|
||||
|
||||
public class CancelThumbUpBean extends BaseObservable {
|
||||
}
|
||||
49
app/src/main/java/com/fisherbone/fuzhu/quzan/AblStep1.java
Normal file
49
app/src/main/java/com/fisherbone/fuzhu/quzan/AblStep1.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package com.fisherbone.fuzhu.quzan;
|
||||
|
||||
import android.os.Message;
|
||||
|
||||
import com.fisherbone.fuzhu.abllib.AblService;
|
||||
import com.fisherbone.fuzhu.abllib.AblStepHandler;
|
||||
import com.fisherbone.fuzhu.abllib.AblSteps;
|
||||
import com.fisherbone.fuzhu.abllib.BaseAblStep;
|
||||
import com.fisherbone.fuzhu.abllib.utils.AblViewUtil;
|
||||
|
||||
public class AblStep1 extends BaseAblStep {
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
@Override
|
||||
public void onStep(int step, Message msg) {
|
||||
switch ( step ){
|
||||
case AblSteps.STEP_260:
|
||||
AblViewUtil.startApplication();
|
||||
AblViewUtil.mySleep(8);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_261);
|
||||
break;
|
||||
case AblSteps.STEP_261:
|
||||
AblService instance = AblService.getInstance();
|
||||
AblViewUtil.mySleep(4);
|
||||
myClick();
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_262);
|
||||
break;
|
||||
case AblSteps.STEP_262:
|
||||
AblViewUtil.clickScreen(12,12);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_263);
|
||||
break;
|
||||
case AblSteps.STEP_263:
|
||||
AblViewUtil.clickScreen(3,16);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_264);
|
||||
break;
|
||||
case AblSteps.STEP_264:
|
||||
AblViewUtil.clickScreen(18,11);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_265);
|
||||
break;
|
||||
case AblSteps.STEP_265:
|
||||
AblViewUtil.scrollVertical(15,2);
|
||||
AblStepHandler.sendMsg(AblSteps.STEP_264);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
35
app/src/main/res/layout/activity_cancel_thumb_up.xml
Normal file
35
app/src/main/res/layout/activity_cancel_thumb_up.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<data>
|
||||
|
||||
<import type="android.view.View" />
|
||||
|
||||
<variable
|
||||
name="cancelthumbupbean"
|
||||
type="com.fisherbone.fuzhu.entity.CancelThumbUpBean" />
|
||||
</data>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<com.fisherbone.fuzhu.widget.TitleBar
|
||||
android:id="@+id/title_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp" />
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_start"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:background="@drawable/bg_recfollow_zhixing">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:drawableLeft="@mipmap/icon_zhixing"
|
||||
android:text="开始运行"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@@ -335,8 +335,7 @@
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="@mipmap/icon_cancle"
|
||||
/>
|
||||
android:background="@mipmap/icon_cancle" />
|
||||
<TextView
|
||||
android:id="@+id/btn_012"
|
||||
android:layout_width="40dp"
|
||||
@@ -351,6 +350,50 @@
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ly_05"
|
||||
android:layout_below="@+id/ly_04"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginLeft="27dp"
|
||||
android:layout_marginRight="27dp">
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_16"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_pic16"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="@mipmap/icon_cancle"
|
||||
tools:ignore="ObsoleteLayoutParam" />
|
||||
<TextView
|
||||
android:id="@+id/btn_16"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="14dp"
|
||||
android:text="取赞"
|
||||
android:textColor="#ffffffff"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_below="@+id/icon_pic16"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_showinfo"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
i/
|
||||
Binary file not shown.
Reference in New Issue
Block a user