├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── themes.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── xml │ │ │ │ ├── pref_mode.xml │ │ │ │ └── wallet_service_config.xml │ │ │ └── layout │ │ │ │ ├── item_common_title_spinner.xml │ │ │ │ ├── include_common_toolbar.xml │ │ │ │ ├── include_common_appbar.xml │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── mysiga │ │ │ │ └── wallet │ │ │ │ ├── interfaces │ │ │ │ ├── IWalletConfigView.java │ │ │ │ └── IWalletServiceView.java │ │ │ │ ├── model │ │ │ │ └── WalletModeModel.java │ │ │ │ ├── config │ │ │ │ ├── SharePrefHelper.java │ │ │ │ ├── WalletServiceSwitch.java │ │ │ │ └── WalletPrefHelper.java │ │ │ │ ├── service │ │ │ │ └── WalletService.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── presenter │ │ │ │ └── WalletServicePresenter.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── mysiga │ │ │ └── wallet │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── mysiga │ │ └── wallet │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── RedWalletV1.0.7.apk ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── RebWallet.iml ├── RedWallet.iml ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /RedWalletV1.0.7.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/RedWalletV1.0.7.apk -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mysiga/RedWallet/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | *.iml 9 | .idea/ 10 | *.class 11 | bin 12 | */bin 13 | */gen 14 | /output 15 | */output 16 | RedWalletV1.0.6.apk 17 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 25 08:51:30 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/interfaces/IWalletConfigView.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.interfaces; 2 | 3 | import android.content.Context; 4 | 5 | /** 6 | * 配置接口类 7 | * @author Wilson milin411@163.com 8 | */ 9 | public interface IWalletConfigView { 10 | 11 | void updateWalletServiceState(); 12 | 13 | Context getContext(); 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/interfaces/IWalletServiceView.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.interfaces; 2 | 3 | import android.accessibilityservice.AccessibilityService; 4 | 5 | /** 6 | * 服务接口 7 | * 8 | * @author Wlison milin411@163.com 9 | */ 10 | public interface IWalletServiceView { 11 | AccessibilityService getAccessibilityService(); 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | 20dp 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #484848 7 | 8 | #D1D1D1 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/test/java/com/mysiga/wallet/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/xml/pref_mode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_common_title_spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/mysiga/wallet/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/model/WalletModeModel.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.model; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * 模式实体类 7 | * 8 | * @author Wilson milin411@163.com 9 | */ 10 | public class WalletModeModel implements Serializable { 11 | public String name; 12 | public String mode; 13 | 14 | public WalletModeModel(String name, String mode) { 15 | this.name = name; 16 | this.mode = mode; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/include_common_toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/include_common_appbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/config/SharePrefHelper.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.config; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | import android.support.annotation.NonNull; 6 | 7 | /** 8 | * SharedPreferences帮助类 9 | * 10 | * @author Wilson milin411@163.com 11 | */ 12 | public class SharePrefHelper { 13 | 14 | public static SharedPreferences getSharePref(@NonNull Context context, String name) { 15 | return context.getSharedPreferences(name, Context.MODE_PRIVATE); 16 | } 17 | 18 | public static SharedPreferences.Editor getSharePrefEditor(@NonNull Context context, String name) { 19 | return getSharePref(context, name).edit(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/mingwu/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.mysiga.wallet" 9 | minSdkVersion 19 10 | targetSdkVersion 24 11 | versionCode 3 12 | versionName "1.0.6" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:24.2.0' 26 | compile 'com.android.support:design:24.2.0' 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 微信助手 3 | 当前模式: 4 | 说明:\n1.微信不要设置自动更新\n2.目前适用微信版本:V6.5.4\n3.请确认系统微信通知信息设置打开\n4.请保持屏幕常亮,不能锁屏\n5.外挂模式为后台自动抢红包模式\n6.窗口模式为抢当前聊天页面窗口红包模式 5 | 外挂模式 6 | 窗口模式 7 | 抢红包服务已启动,默认为外挂模式 8 | 中断抢红包服务 9 | 服务器解绑 10 | 打开微信助手服务 11 | 微信助手服务已开启 12 | 找到微信抢助手,并开启 13 | pref_key_mode 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/config/WalletServiceSwitch.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.config; 2 | 3 | import android.support.annotation.IntDef; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | /** 9 | * 服务器状态 10 | * 11 | * @author Wilson milin411@163.com 12 | */ 13 | public class WalletServiceSwitch { 14 | @IntDef({STATE_NO_START, STATE_NOTIFICATION_SERVICE, STATE_WINDOWS_SERVICE}) 15 | @Retention(RetentionPolicy.SOURCE) 16 | public @interface WalletServiceState { 17 | } 18 | 19 | /** 20 | * 未启动服务 21 | */ 22 | public static final int STATE_NO_START = 0; 23 | /** 24 | * 外挂模式 25 | */ 26 | public static final int STATE_NOTIFICATION_SERVICE = 1; 27 | /** 28 | * 窗口模式 29 | */ 30 | public static final int STATE_WINDOWS_SERVICE = 2; 31 | } 32 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /RebWallet.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /RedWallet.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/mysiga/wallet/config/WalletPrefHelper.java: -------------------------------------------------------------------------------- 1 | package com.mysiga.wallet.config; 2 | 3 | import android.content.Context; 4 | import android.support.annotation.NonNull; 5 | 6 | /** 7 | * 抢红包配置参数类 8 | * 9 | * @author Wilson milin411@163.com 10 | */ 11 | public class WalletPrefHelper { 12 | 13 | public static void setWalletServiceState(@NonNull Context context, @WalletServiceSwitch.WalletServiceState int state) { 14 | SharePrefHelper.getSharePrefEditor(context, WalletConfig.APP_NAME).putInt(WalletConfig.SERVICE_STATE, state).commit(); 15 | } 16 | 17 | public static int getWalletServiceState(@NonNull Context context) { 18 | return SharePrefHelper.getSharePref(context, WalletConfig.APP_NAME).getInt(WalletConfig.SERVICE_STATE, WalletServiceSwitch.STATE_NO_START); 19 | } 20 | 21 | private static class WalletConfig { 22 | private static final String APP_NAME = "redwallet"; 23 | /** 24 | * 服务状态运行状态 25 | */ 26 | private static final String SERVICE_STATE = "serivce_state"; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/res/xml/wallet_service_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 19 | 23 | 24 |