Skip to content

hencejacki/red-bull

Repository files navigation

lucky_money_assassin

A new way to make money.

Getting Started

Notice

Use of this software is subject to the risk of being blocked, please use it with caution.

Support platform now

The principle of this software

  • Monitor window state and content change through accessibility service.
  • Identify red packet by finding the specific node of widget tree.You could do that by AirTest IDE tools.
  • Click red packet and return to chat list.
  • Use state machine to manage different phase of opening red packet action.

Task todo

  • Monitor notification of red packet
  • Monitor chat list
  • Open red packet has a delay
  • Shield specific text ...

Developer Guide

  1. Ensure your pc support flutter framework
flutter doctor -v

You need install flutter when you saw something didn't work.

  1. Pull this repo into your local directory
git clone https://github.com/hencejacki/RedPacketAssassin.git
  1. change directory and get some dependencies
cd RedPacketAssassin
flutter pub get
  1. Run on your phone or simulators you created
flutter run -d android

Accessibility Service Develop

LifeCycle

Declaration

<service android:name=".MyAccessibilityService"
         android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
     <intent-filter>
         <action android:name="android.accessibilityservice.AccessibilityService" />
     </intent-filter>
     . . .
 </service>

Configuration

 <service android:name=".MyAccessibilityService">
     <intent-filter>
         <action android:name="android.accessibilityservice.AccessibilityService" />
     </intent-filter>
     <meta-data android:name="android.accessibilityservice" android:resource="@xml/accessibilityservice" />
 </service>

Retrieving window content

  • AccessibilityWindowsInfo
  • AccessibilityNodeInfo