nullcount / rain

Evaporate stagnant liquidity from source nodes and condensate to sinks. Make it rain.
MIT License
2 stars 5 forks source link

automate muun mvp - create new wallet #40

Closed nullcount closed 1 year ago

nullcount commented 1 year ago

In the MVP, it should generate a new muun wallet in the app:

Send a request for current wallet balance. If wallet balance == 0.00 goto Settings > Delete Wallet > Yes I'm sure > Continue > Create A New Wallet > Enter PIN 2x > DONE!

nullcount commented 1 year ago

use adb from bash script like adb shell input touchscreen tap x y

Replace x and y with the coordinates of the point on the screen where you want to simulate the touch event. The coordinates are specified in pixels, with the top-left corner of the screen being (0,0).

You can also use the pyadb library to execute the input command from Python. Here is an example:

import pyadb

# Connect to the device
adb = pyadb.ADB()
device = adb.device()

# Simulate a touch event at (100, 200)
device.shell("input touchscreen tap 100 200")
nullcount commented 1 year ago

You can also use the pyadb library to run the dump command from Python. Here is an example:

import pyadb

# Connect to the device
adb = pyadb.ADB()
device = adb.device()

# Dump the current screen layout
layout = device.shell("uiautomator dump")

# Print the layout
print(layout)

you will get something like this

<hierarchy rotation="0">
  <node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="com.example.app" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][1080,1794]">
    <node index="0" text="Hello, World!" resource-id="" class="android.widget.TextView" package="com.example.app" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][1080,1794]"/>
  </node>
</hierarchy>

See if we can read invoices and account balances while you're at it