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.0.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.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nook_cli-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 768b358ce9e82d9cd4e316168bfaadc35fe0c82be249cb89f7e0bd4ae497baff
MD5 17659e0a17a52143793a5f8427c3da3e
BLAKE2b-256 909df5a8ea5dd9962493ad543c7e160acad784415d12d6edf25d545802f3a17a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nook_cli-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a06bf518872a951eaad6017193ed867bf98803499cd0ea97c950ff787be3764b
MD5 fe67f8d7476eda9493f3736136af4393
BLAKE2b-256 7a466f02d3334be46346b9167baae516208658a18b0012a2ace55ddfebfe1d71

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