Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automate muun mvp - create new wallet #40

Closed
nullcount opened this issue Dec 19, 2022 · 2 comments
Closed

automate muun mvp - create new wallet #40

nullcount opened this issue Dec 19, 2022 · 2 comments

Comments

@nullcount
Copy link
Owner

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
Copy link
Owner Author

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant