Skip to main content

Python CLI for the Nook Android instrumentation server

Project description

Nook Python Host Package

host/nook-py provides the Python host SDK and CLI for Nook.

It exposes:

  • nook-cli

Install

Install from PyPI:

pip install nook-cli

Verify:

nook-cli --help

Prerequisite

nook-cli expects a running nook-server on the Android device.

The Python package does not build or launch the Android server automatically. Download nook-server from the matching GitHub Release, then push and start it manually:

adb push .\nook-server /data/local/tmp/nook/nook-server
adb shell "su -c 'chmod 755 /data/local/tmp/nook/nook-server'"
adb shell "su -c '/data/local/tmp/nook/nook-server'"

Common Usage

Attach:

nook-cli -U com.demo.target -l .\hook.js

Spawn:

nook-cli -U -f com.demo.target -l .\hook.js

List processes:

nook-cli -U ps

List applications:

nook-cli -U apps

Notes

  • Rooted Android device required
  • Current primary target is arm64-v8a
  • --strict-zygote-control remains experimental

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nook_cli-0.1.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nook_cli-0.1.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file nook_cli-0.1.1.tar.gz.

File metadata

  • Download URL: nook_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for nook_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 745958ca25654a1839cd472e7aafd6f44cdacb5d237ec2b0300f397a0eac1c03
MD5 1ab98bdb5f3b38604e3605af97151808
BLAKE2b-256 efe62d0fd747b67b86f4a3815aee7a3fc47779017fad1552c4366e9f2fd44b8c

See more details on using hashes here.

File details

Details for the file nook_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nook_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for nook_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 102994aacb4173f5022d5ccca571adfc6ad76fd92af42a3d2e3485ef05ff6c56
MD5 b21022ef4e2e02e4694b52667bb2958d
BLAKE2b-256 57a3cc1e8218cf4abc0ed6be56efd3e0fae6c7389118806303942abdd32110d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page