mttkay / replicant

A REPL for the Android Debug Bridge (ADB)
MIT License
123 stars 9 forks source link

Problem selecting device (reopen issue 16) #23

Open bizzguy opened 10 years ago

bizzguy commented 10 years ago

Sorry for the delay in testing this. It looks like I'm still getting the same error even after the "pull"

I'm new to Ruby - do I just do a "git pull" or do I need to do anything else to make sure I have the new version.

Following is the output from my manual test:

!devices

0123456789ABCDEF [unknown device]

OK. -- No package set, No device set

!device Invalid arguments. Ex.: !device [emulator-5554|emu1||dev1|...] OK. -- No package set, No device set !device 1

0123456789ABCDEF [unknown device]

Invalid arguments. Ex.: !device [emulator-5554|emu1||dev1|...] OK. -- No package set, No device set

!device 0123456789ABCDEF

0123456789ABCDEF [unknown device]

Invalid arguments. Ex.: !device [emulator-5554|emu1||dev1|...] OK. -- No package set, No device set

mttkay commented 10 years ago

You're using an outdated version. I've just released 0.1 publicly so you don't have to go through git anymore at all.

Remove all references and files you had to replicant, including symlinks to the bin, then run :

gem install replicant-adb

That should pull down the release version to your machine

bizzguy commented 10 years ago

Worked great! I was able to specify the device name.

!devices

[0] Unknown device | 0123456789ABCDEF

OK.

!device 0123456789ABCDEF Setting default device to #<Device:0x007f873c873780 @id="0123456789ABCDEF", @name="Unknown device"> OK.

I then executed !logcat and was able to see the log for the device so that seems to confirm that it is connected properly.

mttkay commented 10 years ago

Thanks for testing this. It appears that device selection now works, but there's an issue with printing names of devices whose model names can't be recognized.

I'll look into this.

Out of curiosity, what device did you say that was, a Kindle Fire? The serial number looks odd.

bizzguy commented 10 years ago

This is a custom device with a custom build of Android.