Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add notification detect add settings mod optimize structure add README file
- Loading branch information
unknown
authored and
unknown
committed
Feb 13, 2015
1 parent
2c2fdc0
commit 9461280
Showing
24 changed files
with
556 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ proguard/ | |
|
||
# Log Files | ||
*.log | ||
|
||
!/APK/* |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,57 @@ | ||
# RedEnvelopeAssistant | ||
RedEnvelopeAssistant | ||
Below is a chinese instruction: | ||
|
||
--- | ||
#红包助手 | ||
--- | ||
完全免费开源的抢红包软件 | ||
##功能 | ||
此软件是为了辅助抢红包而开发 | ||
支持支付宝以及微信,目前只有Android版本,暂时不考虑开发其他版本 | ||
由于只是业余2-3天时间做的,可能有不少功能问题 | ||
需要的同学可以执行扩展功能 | ||
春节期间不再维护,等春节过后 | ||
|
||
###支付宝红包助手 | ||
支持所有Android版本以及几乎所有机型 | ||
可以在未抢到红包的情形下再抢一次或者多抢几次红包 | ||
目前可以稳定使用 | ||
###微信红包助手 | ||
可以在聊天页面自动抢红包 | ||
目前仅支持Andorid4.4系统,4.0以下完全无法使用,[4.0-4.4)以及(4.4,]部分功能可以使用(视手机而定) | ||
还有遗留问题,需要后续完善。 | ||
|
||
##使用 | ||
###支付宝红包助手 | ||
由于支付宝的数据是保存在本地,如果某一次没有抢到红包,可以把数据清除,重新登录,然后再抢一次,当然在服务端红包应该是有上线限制的,但是如果第一次没有抢到,可以利用这个再抢一次。 | ||
另外一种方式就是改系统时间,此应用没有实现 | ||
###微信红包助手 | ||
按照提示开启红包服务 | ||
进入设置页面,勾选微信聊天页面自动抢红包(默认关闭) | ||
打开微信,进入聊天页面 | ||
|
||
注意(设置->微信聊天页面自动抢红包) | ||
以上功能存在bug,不建议开启 如果微信在后台运行,希望在点击通知栏红包提醒后进入聊天页面时自动抢红包,可开启,抢到后,请关闭此功能;后台运行时才打开此功能 | ||
|
||
##已知问题 | ||
###微信红包助手 | ||
1. 对Android版本有限制,4.4功能全一些 | ||
2. 自动抢红包可能会重复抢一个红包 | ||
3. 抢红包过程中页面跳转会有问题 | ||
4. 抢到红包后需要关闭服务才能查看红包额度 | ||
|
||
|
||
##技术实现 | ||
###支付宝 | ||
1. 直接跳转到应用清除页面 | ||
2. root权限使用"am clear XXXX"命令清除应用数据 | ||
###微信 | ||
使用AccessibilityService对程序进行模拟点击 | ||
目前如何去判断这个页面中某一个红包已经抢过是关键问题,暂时还没有解决 | ||
|
||
##优化 | ||
1. 代码结构优化 | ||
2. UI权限以及包监听优化 | ||
3. 等 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="com.updsssggg.redenvelopeassistant.HomeActivity$PlaceholderFragment" > | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="right|center_vertical" | ||
android:text="红包助手" | ||
android:textSize="16sp" /> | ||
|
||
<CheckBox | ||
android:id="@+id/settings_auto_click_on_chat_cb" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="微信聊天页面自动抢红包" /> | ||
|
||
<TextView | ||
android:id="@+id/alipay_root_state_tv" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="以上功能存在bug,不建议开启\n如果微信在后台运行,希望在点击通知栏红包提醒后进入聊天页面时自动抢红包,可开启,抢到后,请关闭此功能;后台运行时才打开此功能" | ||
android:textSize="15sp" /> | ||
|
||
<CheckBox | ||
android:id="@+id/settings_auto_back_when_get_lucky_money_cb" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="抢红包后自动返回上一页" /> | ||
|
||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="以上功能存在bug,可能会导致退出微信页面,需要手动再进入,但推荐使用,加快抢红包速度" | ||
android:textSize="15sp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:orientation="vertical" > | ||
</LinearLayout> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.