FICS / atcmd

Android AT command scripts and firmware extraction
https://atcommands.org
336 stars 90 forks source link

Nexus 5 LG #7

Open random-bytes opened 5 years ago

random-bytes commented 5 years ago

Hi, I tried to play with AT commands for Nexus 5. As mentioned in the paper, I rooted the phone and set the USB configuration to diag,adb. usbswitcher found just one configuration for the LG phone, and so did the lsusb -v. When I run atinteract.py, I run into the following exception:

serial.serialutil.SerialException: [Errno 16] could not open port /dev/ttyACM0: [Errno 16] Device or resource busy: '/dev/ttyACM0'

Could you please tell me if I have missed anything for which I am running into this issue?

Thanks.

daveti commented 5 years ago

"diag,adb" is not what you want. If you have rooted your phone, check out "init.usb.rc" or related rc files to find a usb configuration with "acm" contained (or maybe cdc_acm), e.g., "diag,acm,adb". This "cdc_acm" interface is the USB modem we are looking for.