Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

.android/adbkey missing #95

Open
Open

Description

@Vxer-Lee

"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"

op.expanduser('~/.android/adbkey'))

File "/home/vxerlee/python-adb/adb/sign_m2crypto.py", line 24, in init
with open(rsa_key_path + '.pub') as rsa_pub_file:
IOError: [Errno 2] No such file or directory: '/home/vxerlee/.android/adbkey.pub'

Activity

  1. fahhem commented on May 31, 2018

    @fahhem
    Contributor

    Hmm, python-rsa isn't depended on anywhere (just in the docs, will fix in master). You need rsa installed or M2Crypto or pycryptodome. It looks like you have M2Crypto installed, but no adbkey available. Typically, the adbkey is created by android's adb because it's not documented how else to create it.

    Theoretically, it's a standard RSA private/public key pair, so if you find how to create it using the three libraries we support, then we can create the file when it doesn't exist rather than error out like we're doing now.

  2. changed the title [-]"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"[/-] [+].android/adbkey missing[/+] on May 31, 2018
  3. zgoda-mobica commented on Jun 6, 2018

    @zgoda-mobica

    I have similar problem - application is distributed in Docker container and runs almost completely isolated from host filesystem, we don't have even adb installed in host system so we're not able to run adb keygen <filename> to generate key pair. Now we either have to distribute pregenerated keys along with application data (I consider this viable only for dev/debug/test), or generate keys with android's adb in subprocess. It would be great if we had a command for this.

  4. bibz commented on Dec 20, 2018

    @bibz

    Isn't this a duplicate of #131 now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions