我设法twrp-3.0.2-0-vegetahd.img
在搭载原生 Android 系统的 Aquaris E5 手机上安装了 TWRP Recovery 映像;从而拥有了 root 设备。
开箱即用,原生 Android 允许 USB 连接和 MTP 安装设备,没有任何问题。然而,在 root 之后,我根本无法让 MTP 安装再次工作 - 当我在 Ubuntu 14.04 上插入设备时,我得到:
Unable to mount Aquaris
No MTP devices found
.... 并/var/log/syslog
说:
kernel: [ 4319.011008] usb 1-1.3: new high-speed USB device number 12 using xhci_hcd
kernel: [ 4319.100242] usb 1-1.3: New USB device found, idVendor=2a47, idProduct=201d
kernel: [ 4319.100254] usb 1-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
kernel: [ 4319.100261] usb 1-1.3: Product: Aquaris
kernel: [ 4319.100265] usb 1-1.3: Manufacturer: BQ
kernel: [ 4319.100269] usb 1-1.3: SerialNumber: UA0XXXXX
mtp-probe: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3"
mtp-probe: bus: 1, device: 12 was not an MTP device
... 并且:
$ adb kill-server
$ adb devices -l
List of devices attached
顺便说一下,这个设备是:
$ lsusb
Bus 001 Device 012: ID 2a47:201d
... 我有:
$ cat ~/.android/adb_usb.ini
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2a47
$ cat /etc/udev/rules.d/99-adb.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="2a47", MODE="0666", GROUP="plugdev"
ATTR{idVendor}=="2a47", ATTR{idProduct}=="201d", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"
我可以做些什么来让设备再次连接 - 最重要的是,这样我就可以通过它进行控制adb
?