私のAndroid携帯電話に接続しようとしています。私のNativeScriptプログラムがZTC Warp 7で動くようにしたい。助けてください。私が知っていることを試しました。すべての助けを感謝します。Android携帯電話を開発用に接続するのに手助けが必要
私のオペレーティングシステムはUbuntuで、ベンダーIDを追加しました。
(precise)[email protected]:~$ appbuilder device
iTunes is not available for this operating system. You will not be able to work with connected iOS devices.
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
(precise)[email protected]:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 006: ID 2232:1073 Silicon Motion
Bus 001 Device 007: ID 19d2:0307 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(precise)[email protected]:~$ ls -l /dev/bus/usb/002
total 0
crw-rw-r--. 1 root plugdev 189, 128 Jan 5 12:06 001
(precise)[email protected]:~$ sudo vi /etc/udev/rules.d/51-android.rules.
(precise)[email protected]:~$ sudo chmod a+r /etc/udev/rules.d/51-android.rules.
(precise)[email protected]:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 006: ID 2232:1073 Silicon Motion
Bus 001 Device 007: ID 19d2:0307 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(precise)[email protected]:~$ sudo udevadm control --reload-rules
(precise)[email protected]:~$ sudo service udev restart
udev stop/waiting
udev start/running, process 19540
(precise)[email protected]:~$ sudo udevadm trigger
(precise)[email protected]:~$ ls -l /dev/bus/usb/001
total 0
crw-rw----. 1 root plugdev 189, 0 Jan 6 21:49 001
crw-rw----. 1 root plugdev 189, 2 Jan 6 21:49 003
crw-rw----. 1 root plugdev 189, 5 Jan 6 21:49 006
crw-rw----. 1 root plugdev 189, 6 Jan 6 21:49 007
(precise)[email protected]:~$ sudo chmod 777 /dev/bus/usb/001
(precise)[email protected]:~$ ls -l /dev/bus/usb/001
total 0
crw-rw----. 1 root plugdev 189, 0 Jan 6 21:49 001
crw-rw----. 1 root plugdev 189, 2 Jan 6 21:49 003
crw-rw----. 1 root plugdev 189, 5 Jan 6 21:49 006
crw-rw----. 1 root plugdev 189, 6 Jan 6 21:51 007
(precise)[email protected]:~$ adb devices
bash: adb: command not found
(precise)[email protected]:~$ appbuilder device
iTunes is not available for this operating system. You will not be able to work with connected iOS devices.
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
権限:
(precise)[email protected]:~$ ls -l /dev/bus/usb/001
ls: cannot access /dev/bus/usb/001/007: Permission denied
ls: cannot access /dev/bus/usb/001/006: Permission denied
ls: cannot access /dev/bus/usb/001/003: Permission denied
ls: cannot access /dev/bus/usb/001/001: Permission denied
total 0
c????????? ? ? ? ? ? 001
c????????? ? ? ? ? ? 003
c????????? ? ? ? ? ? 006
c????????? ? ? ? ? ? 007
(precise)[email protected]:~$ sudo ls -l /dev/bus/usb/001
total 0
crw-rw----. 1 root plugdev 189, 0 Jan 6 21:49 001
crw-rw----. 1 root plugdev 189, 2 Jan 6 21:49 003
crw-rw----. 1 root plugdev 189, 5 Jan 6 21:49 006
crw-rw----. 1 root plugdev 189, 6 Jan 6 22:07 007