Samsung j3 fails to connect Ubuntu 18.04.1hp4500 officejet not detected by Simple Scan, cannot access modem config. page or connect to wirelessCan't connect to Samsung GT-B2710 via usbUnable to make sound play in headset/dev/ttyUSB0 doesn't existsLogitech MX800 not working properly in 14.04USB 1-5 string descriptor 0 read error: -22Missing driver for ASUS USB-N53?USB ports not working after booting Xubuntu 14.04USB ports keep resetting on LinuxSwitch User works once

HP P840 HDD RAID 5 many strange drive failures

What does "Four-F." mean?

What should I install to correct "ld: cannot find -lgbm and -linput" so that I can compile a Rust program?

Can a medieval gyroplane be built?

gerund and noun applications

In what cases must I use 了 and in what cases not?

How can I wire 7 outdoor posts correctly?

Is there a term for accumulated dirt on the outside of your hands and feet?

My friend is being a hypocrite

Should I use acronyms in dialogues before telling the readers what it stands for in fiction?

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

Describing a chess game in a novel

How could an airship be repaired midflight?

Do US professors/group leaders only get a salary, but no group budget?

What if (if any) the reason to buy in small local stores?

Geography in 3D perspective

How are passwords stolen from companies if they only store hashes?

What is the term when voters “dishonestly” choose something that they do not want to choose?

Light propagating through a sound wave

Is it insecure to send a password in a `curl` command?

Tikz: place node leftmost of two nodes of different widths

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Constant Current LED Circuit

How to define limit operations in general topological spaces? Are nets able to do this?



Samsung j3 fails to connect Ubuntu 18.04.1


hp4500 officejet not detected by Simple Scan, cannot access modem config. page or connect to wirelessCan't connect to Samsung GT-B2710 via usbUnable to make sound play in headset/dev/ttyUSB0 doesn't existsLogitech MX800 not working properly in 14.04USB 1-5 string descriptor 0 read error: -22Missing driver for ASUS USB-N53?USB ports not working after booting Xubuntu 14.04USB ports keep resetting on LinuxSwitch User works once













1















I'm having problems getting Cordova to install an android app I've developed.



I think the problem is with the USB driver.



cordova-custom-config: Skipping auto-restore of config file backup(s)
cordova-custom-config: Applied custom config from config.xml to /home/erm/git/fmp-pg/fmp-cordova/platforms/android/AndroidManifest.xml
ANDROID_HOME=/home/erm/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_1tho7h87hlfs9n4y2he439ce0.run(/home/erm/git/fmp-pg/fmp-cordova/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateSigningDebug
:packageDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL

Total time: 1.049 secs
Built the following apk(s):
/home/erm/git/fmp-pg/fmp-cordova/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/home/erm/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
No target specified and no devices found, deploying to emulator
(node:3756) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.
1. Download desired System Image by running: /home/erm/Android/Sdk/tools/android sdk
2. Create an AVD by running: /home/erm/Android/Sdk/tools/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/lib/emulator.js:279:29
at _fulfilled (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:816:13)
at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:112:11)
(node:3756) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3756) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


When I plugin the device I see it show for a second and then disappear when I visit: chrome://inspect/#devices



I've tried different USB ports & USB cords.



$ tail -f /var/log/syslog 
Jan 15 05:11:23 erm76 kernel: [ 4481.473700] usb 3-2: USB disconnect, device number 78
Jan 15 05:11:23 erm76 kernel: [ 4481.745122] usb 3-2: new high-speed USB device number 79 using xhci_hcd
Jan 15 05:11:23 erm76 kernel: [ 4481.873269] usb 3-2: Device not responding to setup address.
Jan 15 05:11:24 erm76 kernel: [ 4482.081207] usb 3-2: Device not responding to setup address.
Jan 15 05:11:24 erm76 kernel: [ 4482.289217] usb 3-2: device not accepting address 79, error -71
Jan 15 05:11:24 erm76 kernel: [ 4482.625163] usb 3-2: new high-speed USB device number 80 using xhci_hcd
Jan 15 05:11:24 erm76 kernel: [ 4482.775455] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
Jan 15 05:11:24 erm76 kernel: [ 4482.775461] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 15 05:11:24 erm76 kernel: [ 4482.775465] usb 3-2: Product: SAMSUNG_Android
Jan 15 05:11:24 erm76 kernel: [ 4482.775468] usb 3-2: Manufacturer: SAMSUNG
Jan 15 05:11:24 erm76 kernel: [ 4482.775471] usb 3-2: SerialNumber: 42003eefd668b3a1
Jan 15 05:11:24 erm76 kernel: [ 4482.777799] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
Jan 15 05:11:24 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:24 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:25 erm76 kernel: [ 4483.383401] usb 3-2: USB disconnect, device number 80
Jan 15 05:11:25 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:25 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:26 erm76 kernel: [ 4484.205173] usb 3-2: new high-speed USB device number 81 using xhci_hcd
Jan 15 05:11:26 erm76 kernel: [ 4484.354996] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
Jan 15 05:11:26 erm76 kernel: [ 4484.355002] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 15 05:11:26 erm76 kernel: [ 4484.355005] usb 3-2: Product: SAMSUNG_Android
Jan 15 05:11:26 erm76 kernel: [ 4484.355008] usb 3-2: Manufacturer: SAMSUNG
Jan 15 05:11:26 erm76 kernel: [ 4484.355011] usb 3-2: SerialNumber: 42003eefd668b3a1
Jan 15 05:11:31 erm76 kernel: [ 4489.409478] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
Jan 15 05:11:46 erm76 kernel: [ 4504.769311] usb 3-2: USB disconnect, device number 81
Jan 15 05:11:47 erm76 kernel: [ 4505.041064] usb 3-2: new high-speed USB device number 82 using xhci_hcd
Jan 15 05:11:47 erm76 kernel: [ 4505.189938] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
Jan 15 05:11:47 erm76 kernel: [ 4505.189940] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 15 05:11:47 erm76 kernel: [ 4505.189941] usb 3-2: Product: SAMSUNG_Android
Jan 15 05:11:47 erm76 kernel: [ 4505.189942] usb 3-2: Manufacturer: SAMSUNG
Jan 15 05:11:47 erm76 kernel: [ 4505.189943] usb 3-2: SerialNumber: 42003eefd668b3a1
Jan 15 05:11:47 erm76 kernel: [ 4505.190985] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
Jan 15 05:11:47 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:47 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
Jan 15 05:11:48 erm76 kernel: [ 4506.025276] usb usb3-port2: disabled by hub (EMI?), re-enabling...
Jan 15 05:11:48 erm76 kernel: [ 4506.025283] usb 3-2: USB disconnect, device number 82
Jan 15 05:11:48 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:48 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
Jan 15 05:11:48 erm76 kernel: [ 4506.369080] usb 3-2: new high-speed USB device number 83 using xhci_hcd
Jan 15 05:11:48 erm76 kernel: [ 4506.518366] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
Jan 15 05:11:48 erm76 kernel: [ 4506.518370] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 15 05:11:48 erm76 kernel: [ 4506.518373] usb 3-2: Product: SAMSUNG_Android
Jan 15 05:11:48 erm76 kernel: [ 4506.518375] usb 3-2: Manufacturer: SAMSUNG
Jan 15 05:11:48 erm76 kernel: [ 4506.518377] usb 3-2: SerialNumber: 42003eefd668b3a1
Jan 15 05:11:48 erm76 kernel: [ 4506.520728] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
Jan 15 05:11:58 erm76 kernel: [ 4516.806812] usb 3-2: USB disconnect, device number 83
Jan 15 05:11:59 erm76 kernel: [ 4517.077054] usb 3-2: new high-speed USB device number 84 using xhci_hcd
Jan 15 05:12:04 erm76 kernel: [ 4522.517070] usb 3-2: device descriptor read/64, error -110


$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 1058:25ee Western Digital Technologies, Inc.
Bus 004 Device 003: ID 05e3:0617 Genesys Logic, Inc.
Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 5986:055c Acer, Inc
Bus 003 Device 005: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I've attempted to copy /lib/udev/rules.d/69-libmtp.rules to /etc/udev/rules.d/ and then comment out 04e8:6860 and rebooted. This however makes the kernel ask if the cord is bad.










share|improve this question




























    1















    I'm having problems getting Cordova to install an android app I've developed.



    I think the problem is with the USB driver.



    cordova-custom-config: Skipping auto-restore of config file backup(s)
    cordova-custom-config: Applied custom config from config.xml to /home/erm/git/fmp-pg/fmp-cordova/platforms/android/AndroidManifest.xml
    ANDROID_HOME=/home/erm/Android/Sdk
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    Subproject Path: CordovaLib
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at build_1tho7h87hlfs9n4y2he439ce0.run(/home/erm/git/fmp-pg/fmp-cordova/platforms/android/build.gradle:137)
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl UP-TO-DATE
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint UP-TO-DATE
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders UP-TO-DATE
    :CordovaLib:compileDebugShaders UP-TO-DATE
    :CordovaLib:generateDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript UP-TO-DATE
    :CordovaLib:generateDebugResValues UP-TO-DATE
    :CordovaLib:generateDebugResources UP-TO-DATE
    :CordovaLib:packageDebugResources UP-TO-DATE
    :CordovaLib:processDebugManifest UP-TO-DATE
    :CordovaLib:generateDebugBuildConfig UP-TO-DATE
    :CordovaLib:processDebugResources UP-TO-DATE
    :CordovaLib:generateDebugSources UP-TO-DATE
    :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
    :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
    :CordovaLib:bundleDebug UP-TO-DATE
    :prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk UP-TO-DATE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes UP-TO-DATE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE
    :cdvBuildDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 1.049 secs
    Built the following apk(s):
    /home/erm/git/fmp-pg/fmp-cordova/platforms/android/build/outputs/apk/android-debug.apk
    ANDROID_HOME=/home/erm/Android/Sdk
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    No target specified and no devices found, deploying to emulator
    (node:3756) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.
    1. Download desired System Image by running: /home/erm/Android/Sdk/tools/android sdk
    2. Create an AVD by running: /home/erm/Android/Sdk/tools/android avd
    HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

    at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/lib/emulator.js:279:29
    at _fulfilled (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:624:44
    at runSingle (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:112:11)
    (node:3756) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:3756) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


    When I plugin the device I see it show for a second and then disappear when I visit: chrome://inspect/#devices



    I've tried different USB ports & USB cords.



    $ tail -f /var/log/syslog 
    Jan 15 05:11:23 erm76 kernel: [ 4481.473700] usb 3-2: USB disconnect, device number 78
    Jan 15 05:11:23 erm76 kernel: [ 4481.745122] usb 3-2: new high-speed USB device number 79 using xhci_hcd
    Jan 15 05:11:23 erm76 kernel: [ 4481.873269] usb 3-2: Device not responding to setup address.
    Jan 15 05:11:24 erm76 kernel: [ 4482.081207] usb 3-2: Device not responding to setup address.
    Jan 15 05:11:24 erm76 kernel: [ 4482.289217] usb 3-2: device not accepting address 79, error -71
    Jan 15 05:11:24 erm76 kernel: [ 4482.625163] usb 3-2: new high-speed USB device number 80 using xhci_hcd
    Jan 15 05:11:24 erm76 kernel: [ 4482.775455] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
    Jan 15 05:11:24 erm76 kernel: [ 4482.775461] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jan 15 05:11:24 erm76 kernel: [ 4482.775465] usb 3-2: Product: SAMSUNG_Android
    Jan 15 05:11:24 erm76 kernel: [ 4482.775468] usb 3-2: Manufacturer: SAMSUNG
    Jan 15 05:11:24 erm76 kernel: [ 4482.775471] usb 3-2: SerialNumber: 42003eefd668b3a1
    Jan 15 05:11:24 erm76 kernel: [ 4482.777799] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
    Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
    Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
    Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
    Jan 15 05:11:24 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:24 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
    Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
    Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:25 erm76 kernel: [ 4483.383401] usb 3-2: USB disconnect, device number 80
    Jan 15 05:11:25 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:25 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
    Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:26 erm76 kernel: [ 4484.205173] usb 3-2: new high-speed USB device number 81 using xhci_hcd
    Jan 15 05:11:26 erm76 kernel: [ 4484.354996] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
    Jan 15 05:11:26 erm76 kernel: [ 4484.355002] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jan 15 05:11:26 erm76 kernel: [ 4484.355005] usb 3-2: Product: SAMSUNG_Android
    Jan 15 05:11:26 erm76 kernel: [ 4484.355008] usb 3-2: Manufacturer: SAMSUNG
    Jan 15 05:11:26 erm76 kernel: [ 4484.355011] usb 3-2: SerialNumber: 42003eefd668b3a1
    Jan 15 05:11:31 erm76 kernel: [ 4489.409478] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
    Jan 15 05:11:46 erm76 kernel: [ 4504.769311] usb 3-2: USB disconnect, device number 81
    Jan 15 05:11:47 erm76 kernel: [ 4505.041064] usb 3-2: new high-speed USB device number 82 using xhci_hcd
    Jan 15 05:11:47 erm76 kernel: [ 4505.189938] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
    Jan 15 05:11:47 erm76 kernel: [ 4505.189940] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jan 15 05:11:47 erm76 kernel: [ 4505.189941] usb 3-2: Product: SAMSUNG_Android
    Jan 15 05:11:47 erm76 kernel: [ 4505.189942] usb 3-2: Manufacturer: SAMSUNG
    Jan 15 05:11:47 erm76 kernel: [ 4505.189943] usb 3-2: SerialNumber: 42003eefd668b3a1
    Jan 15 05:11:47 erm76 kernel: [ 4505.190985] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
    Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
    Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
    Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
    Jan 15 05:11:47 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:47 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
    Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
    Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
    Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
    Jan 15 05:11:48 erm76 kernel: [ 4506.025276] usb usb3-port2: disabled by hub (EMI?), re-enabling...
    Jan 15 05:11:48 erm76 kernel: [ 4506.025283] usb 3-2: USB disconnect, device number 82
    Jan 15 05:11:48 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:48 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
    Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
    Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
    Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    Jan 15 05:11:48 erm76 kernel: [ 4506.369080] usb 3-2: new high-speed USB device number 83 using xhci_hcd
    Jan 15 05:11:48 erm76 kernel: [ 4506.518366] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
    Jan 15 05:11:48 erm76 kernel: [ 4506.518370] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jan 15 05:11:48 erm76 kernel: [ 4506.518373] usb 3-2: Product: SAMSUNG_Android
    Jan 15 05:11:48 erm76 kernel: [ 4506.518375] usb 3-2: Manufacturer: SAMSUNG
    Jan 15 05:11:48 erm76 kernel: [ 4506.518377] usb 3-2: SerialNumber: 42003eefd668b3a1
    Jan 15 05:11:48 erm76 kernel: [ 4506.520728] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
    Jan 15 05:11:58 erm76 kernel: [ 4516.806812] usb 3-2: USB disconnect, device number 83
    Jan 15 05:11:59 erm76 kernel: [ 4517.077054] usb 3-2: new high-speed USB device number 84 using xhci_hcd
    Jan 15 05:12:04 erm76 kernel: [ 4522.517070] usb 3-2: device descriptor read/64, error -110


    $ lsusb
    Bus 002 Device 002: ID 8087:8000 Intel Corp.
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 8087:8008 Intel Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 004: ID 1058:25ee Western Digital Technologies, Inc.
    Bus 004 Device 003: ID 05e3:0617 Genesys Logic, Inc.
    Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 006: ID 5986:055c Acer, Inc
    Bus 003 Device 005: ID 8087:07dc Intel Corp.
    Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
    Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
    Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


    I've attempted to copy /lib/udev/rules.d/69-libmtp.rules to /etc/udev/rules.d/ and then comment out 04e8:6860 and rebooted. This however makes the kernel ask if the cord is bad.










    share|improve this question


























      1












      1








      1








      I'm having problems getting Cordova to install an android app I've developed.



      I think the problem is with the USB driver.



      cordova-custom-config: Skipping auto-restore of config file backup(s)
      cordova-custom-config: Applied custom config from config.xml to /home/erm/git/fmp-pg/fmp-cordova/platforms/android/AndroidManifest.xml
      ANDROID_HOME=/home/erm/Android/Sdk
      JAVA_HOME=/usr/lib/jvm/java-8-oracle
      Subproject Path: CordovaLib
      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
      at build_1tho7h87hlfs9n4y2he439ce0.run(/home/erm/git/fmp-pg/fmp-cordova/platforms/android/build.gradle:137)
      The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
      Incremental java compilation is an incubating feature.
      The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
      :preBuild UP-TO-DATE
      :preDebugBuild UP-TO-DATE
      :checkDebugManifest
      :CordovaLib:preBuild UP-TO-DATE
      :CordovaLib:preDebugBuild UP-TO-DATE
      :CordovaLib:checkDebugManifest
      :CordovaLib:prepareDebugDependencies
      :CordovaLib:compileDebugAidl UP-TO-DATE
      :CordovaLib:compileDebugNdk UP-TO-DATE
      :CordovaLib:compileLint UP-TO-DATE
      :CordovaLib:copyDebugLint UP-TO-DATE
      :CordovaLib:mergeDebugShaders UP-TO-DATE
      :CordovaLib:compileDebugShaders UP-TO-DATE
      :CordovaLib:generateDebugAssets UP-TO-DATE
      :CordovaLib:mergeDebugAssets UP-TO-DATE
      :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
      :CordovaLib:packageDebugRenderscript UP-TO-DATE
      :CordovaLib:compileDebugRenderscript UP-TO-DATE
      :CordovaLib:generateDebugResValues UP-TO-DATE
      :CordovaLib:generateDebugResources UP-TO-DATE
      :CordovaLib:packageDebugResources UP-TO-DATE
      :CordovaLib:processDebugManifest UP-TO-DATE
      :CordovaLib:generateDebugBuildConfig UP-TO-DATE
      :CordovaLib:processDebugResources UP-TO-DATE
      :CordovaLib:generateDebugSources UP-TO-DATE
      :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
      :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
      :CordovaLib:processDebugJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
      :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
      :CordovaLib:bundleDebug UP-TO-DATE
      :prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
      :prepareDebugDependencies
      :compileDebugAidl UP-TO-DATE
      :compileDebugRenderscript UP-TO-DATE
      :generateDebugBuildConfig UP-TO-DATE
      :generateDebugResValues UP-TO-DATE
      :generateDebugResources UP-TO-DATE
      :mergeDebugResources UP-TO-DATE
      :processDebugManifest UP-TO-DATE
      :processDebugResources UP-TO-DATE
      :generateDebugSources UP-TO-DATE
      :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
      :compileDebugJavaWithJavac UP-TO-DATE
      :compileDebugNdk UP-TO-DATE
      :compileDebugSources UP-TO-DATE
      :mergeDebugShaders UP-TO-DATE
      :compileDebugShaders UP-TO-DATE
      :generateDebugAssets UP-TO-DATE
      :mergeDebugAssets UP-TO-DATE
      :transformClassesWithDexForDebug UP-TO-DATE
      :mergeDebugJniLibFolders UP-TO-DATE
      :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
      :processDebugJavaRes UP-TO-DATE
      :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
      :validateSigningDebug
      :packageDebug UP-TO-DATE
      :assembleDebug UP-TO-DATE
      :cdvBuildDebug UP-TO-DATE

      BUILD SUCCESSFUL

      Total time: 1.049 secs
      Built the following apk(s):
      /home/erm/git/fmp-pg/fmp-cordova/platforms/android/build/outputs/apk/android-debug.apk
      ANDROID_HOME=/home/erm/Android/Sdk
      JAVA_HOME=/usr/lib/jvm/java-8-oracle
      No target specified and no devices found, deploying to emulator
      (node:3756) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.
      1. Download desired System Image by running: /home/erm/Android/Sdk/tools/android sdk
      2. Create an AVD by running: /home/erm/Android/Sdk/tools/android avd
      HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

      at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/lib/emulator.js:279:29
      at _fulfilled (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:854:54)
      at self.promiseDispatch.done (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:883:30)
      at Promise.promise.promiseDispatch (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:816:13)
      at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:624:44
      at runSingle (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:137:13)
      at flush (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:125:13)
      at process._tickCallback (internal/process/next_tick.js:112:11)
      (node:3756) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      (node:3756) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


      When I plugin the device I see it show for a second and then disappear when I visit: chrome://inspect/#devices



      I've tried different USB ports & USB cords.



      $ tail -f /var/log/syslog 
      Jan 15 05:11:23 erm76 kernel: [ 4481.473700] usb 3-2: USB disconnect, device number 78
      Jan 15 05:11:23 erm76 kernel: [ 4481.745122] usb 3-2: new high-speed USB device number 79 using xhci_hcd
      Jan 15 05:11:23 erm76 kernel: [ 4481.873269] usb 3-2: Device not responding to setup address.
      Jan 15 05:11:24 erm76 kernel: [ 4482.081207] usb 3-2: Device not responding to setup address.
      Jan 15 05:11:24 erm76 kernel: [ 4482.289217] usb 3-2: device not accepting address 79, error -71
      Jan 15 05:11:24 erm76 kernel: [ 4482.625163] usb 3-2: new high-speed USB device number 80 using xhci_hcd
      Jan 15 05:11:24 erm76 kernel: [ 4482.775455] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:24 erm76 kernel: [ 4482.775461] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:24 erm76 kernel: [ 4482.775465] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:24 erm76 kernel: [ 4482.775468] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:24 erm76 kernel: [ 4482.775471] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:24 erm76 kernel: [ 4482.777799] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:24 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:25 erm76 kernel: [ 4483.383401] usb 3-2: USB disconnect, device number 80
      Jan 15 05:11:25 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:25 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:26 erm76 kernel: [ 4484.205173] usb 3-2: new high-speed USB device number 81 using xhci_hcd
      Jan 15 05:11:26 erm76 kernel: [ 4484.354996] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:26 erm76 kernel: [ 4484.355002] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:26 erm76 kernel: [ 4484.355005] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:26 erm76 kernel: [ 4484.355008] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:26 erm76 kernel: [ 4484.355011] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:31 erm76 kernel: [ 4489.409478] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:46 erm76 kernel: [ 4504.769311] usb 3-2: USB disconnect, device number 81
      Jan 15 05:11:47 erm76 kernel: [ 4505.041064] usb 3-2: new high-speed USB device number 82 using xhci_hcd
      Jan 15 05:11:47 erm76 kernel: [ 4505.189938] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:47 erm76 kernel: [ 4505.189940] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:47 erm76 kernel: [ 4505.189941] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:47 erm76 kernel: [ 4505.189942] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:47 erm76 kernel: [ 4505.189943] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:47 erm76 kernel: [ 4505.190985] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:47 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
      Jan 15 05:11:48 erm76 kernel: [ 4506.025276] usb usb3-port2: disabled by hub (EMI?), re-enabling...
      Jan 15 05:11:48 erm76 kernel: [ 4506.025283] usb 3-2: USB disconnect, device number 82
      Jan 15 05:11:48 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:48 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:48 erm76 kernel: [ 4506.369080] usb 3-2: new high-speed USB device number 83 using xhci_hcd
      Jan 15 05:11:48 erm76 kernel: [ 4506.518366] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:48 erm76 kernel: [ 4506.518370] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:48 erm76 kernel: [ 4506.518373] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:48 erm76 kernel: [ 4506.518375] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:48 erm76 kernel: [ 4506.518377] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:48 erm76 kernel: [ 4506.520728] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:58 erm76 kernel: [ 4516.806812] usb 3-2: USB disconnect, device number 83
      Jan 15 05:11:59 erm76 kernel: [ 4517.077054] usb 3-2: new high-speed USB device number 84 using xhci_hcd
      Jan 15 05:12:04 erm76 kernel: [ 4522.517070] usb 3-2: device descriptor read/64, error -110


      $ lsusb
      Bus 002 Device 002: ID 8087:8000 Intel Corp.
      Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 002: ID 8087:8008 Intel Corp.
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 004 Device 004: ID 1058:25ee Western Digital Technologies, Inc.
      Bus 004 Device 003: ID 05e3:0617 Genesys Logic, Inc.
      Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.
      Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 003 Device 006: ID 5986:055c Acer, Inc
      Bus 003 Device 005: ID 8087:07dc Intel Corp.
      Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
      Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
      Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
      Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


      I've attempted to copy /lib/udev/rules.d/69-libmtp.rules to /etc/udev/rules.d/ and then comment out 04e8:6860 and rebooted. This however makes the kernel ask if the cord is bad.










      share|improve this question
















      I'm having problems getting Cordova to install an android app I've developed.



      I think the problem is with the USB driver.



      cordova-custom-config: Skipping auto-restore of config file backup(s)
      cordova-custom-config: Applied custom config from config.xml to /home/erm/git/fmp-pg/fmp-cordova/platforms/android/AndroidManifest.xml
      ANDROID_HOME=/home/erm/Android/Sdk
      JAVA_HOME=/usr/lib/jvm/java-8-oracle
      Subproject Path: CordovaLib
      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
      at build_1tho7h87hlfs9n4y2he439ce0.run(/home/erm/git/fmp-pg/fmp-cordova/platforms/android/build.gradle:137)
      The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
      Incremental java compilation is an incubating feature.
      The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
      :preBuild UP-TO-DATE
      :preDebugBuild UP-TO-DATE
      :checkDebugManifest
      :CordovaLib:preBuild UP-TO-DATE
      :CordovaLib:preDebugBuild UP-TO-DATE
      :CordovaLib:checkDebugManifest
      :CordovaLib:prepareDebugDependencies
      :CordovaLib:compileDebugAidl UP-TO-DATE
      :CordovaLib:compileDebugNdk UP-TO-DATE
      :CordovaLib:compileLint UP-TO-DATE
      :CordovaLib:copyDebugLint UP-TO-DATE
      :CordovaLib:mergeDebugShaders UP-TO-DATE
      :CordovaLib:compileDebugShaders UP-TO-DATE
      :CordovaLib:generateDebugAssets UP-TO-DATE
      :CordovaLib:mergeDebugAssets UP-TO-DATE
      :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
      :CordovaLib:packageDebugRenderscript UP-TO-DATE
      :CordovaLib:compileDebugRenderscript UP-TO-DATE
      :CordovaLib:generateDebugResValues UP-TO-DATE
      :CordovaLib:generateDebugResources UP-TO-DATE
      :CordovaLib:packageDebugResources UP-TO-DATE
      :CordovaLib:processDebugManifest UP-TO-DATE
      :CordovaLib:generateDebugBuildConfig UP-TO-DATE
      :CordovaLib:processDebugResources UP-TO-DATE
      :CordovaLib:generateDebugSources UP-TO-DATE
      :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
      :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
      :CordovaLib:processDebugJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
      :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
      :CordovaLib:bundleDebug UP-TO-DATE
      :prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
      :prepareDebugDependencies
      :compileDebugAidl UP-TO-DATE
      :compileDebugRenderscript UP-TO-DATE
      :generateDebugBuildConfig UP-TO-DATE
      :generateDebugResValues UP-TO-DATE
      :generateDebugResources UP-TO-DATE
      :mergeDebugResources UP-TO-DATE
      :processDebugManifest UP-TO-DATE
      :processDebugResources UP-TO-DATE
      :generateDebugSources UP-TO-DATE
      :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
      :compileDebugJavaWithJavac UP-TO-DATE
      :compileDebugNdk UP-TO-DATE
      :compileDebugSources UP-TO-DATE
      :mergeDebugShaders UP-TO-DATE
      :compileDebugShaders UP-TO-DATE
      :generateDebugAssets UP-TO-DATE
      :mergeDebugAssets UP-TO-DATE
      :transformClassesWithDexForDebug UP-TO-DATE
      :mergeDebugJniLibFolders UP-TO-DATE
      :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
      :processDebugJavaRes UP-TO-DATE
      :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
      :validateSigningDebug
      :packageDebug UP-TO-DATE
      :assembleDebug UP-TO-DATE
      :cdvBuildDebug UP-TO-DATE

      BUILD SUCCESSFUL

      Total time: 1.049 secs
      Built the following apk(s):
      /home/erm/git/fmp-pg/fmp-cordova/platforms/android/build/outputs/apk/android-debug.apk
      ANDROID_HOME=/home/erm/Android/Sdk
      JAVA_HOME=/usr/lib/jvm/java-8-oracle
      No target specified and no devices found, deploying to emulator
      (node:3756) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.
      1. Download desired System Image by running: /home/erm/Android/Sdk/tools/android sdk
      2. Create an AVD by running: /home/erm/Android/Sdk/tools/android avd
      HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

      at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/lib/emulator.js:279:29
      at _fulfilled (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:854:54)
      at self.promiseDispatch.done (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:883:30)
      at Promise.promise.promiseDispatch (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:816:13)
      at /home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:624:44
      at runSingle (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:137:13)
      at flush (/home/erm/git/fmp-pg/fmp-cordova/platforms/android/cordova/node_modules/q/q.js:125:13)
      at process._tickCallback (internal/process/next_tick.js:112:11)
      (node:3756) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      (node:3756) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


      When I plugin the device I see it show for a second and then disappear when I visit: chrome://inspect/#devices



      I've tried different USB ports & USB cords.



      $ tail -f /var/log/syslog 
      Jan 15 05:11:23 erm76 kernel: [ 4481.473700] usb 3-2: USB disconnect, device number 78
      Jan 15 05:11:23 erm76 kernel: [ 4481.745122] usb 3-2: new high-speed USB device number 79 using xhci_hcd
      Jan 15 05:11:23 erm76 kernel: [ 4481.873269] usb 3-2: Device not responding to setup address.
      Jan 15 05:11:24 erm76 kernel: [ 4482.081207] usb 3-2: Device not responding to setup address.
      Jan 15 05:11:24 erm76 kernel: [ 4482.289217] usb 3-2: device not accepting address 79, error -71
      Jan 15 05:11:24 erm76 kernel: [ 4482.625163] usb 3-2: new high-speed USB device number 80 using xhci_hcd
      Jan 15 05:11:24 erm76 kernel: [ 4482.775455] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:24 erm76 kernel: [ 4482.775461] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:24 erm76 kernel: [ 4482.775465] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:24 erm76 kernel: [ 4482.775468] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:24 erm76 kernel: [ 4482.775471] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:24 erm76 kernel: [ 4482.777799] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:24 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:24 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:24 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:24 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:25 erm76 kernel: [ 4483.383401] usb 3-2: USB disconnect, device number 80
      Jan 15 05:11:25 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:25 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:25 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:26 erm76 kernel: [ 4484.205173] usb 3-2: new high-speed USB device number 81 using xhci_hcd
      Jan 15 05:11:26 erm76 kernel: [ 4484.354996] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:26 erm76 kernel: [ 4484.355002] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:26 erm76 kernel: [ 4484.355005] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:26 erm76 kernel: [ 4484.355008] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:26 erm76 kernel: [ 4484.355011] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:31 erm76 kernel: [ 4489.409478] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:46 erm76 kernel: [ 4504.769311] usb 3-2: USB disconnect, device number 81
      Jan 15 05:11:47 erm76 kernel: [ 4505.041064] usb 3-2: new high-speed USB device number 82 using xhci_hcd
      Jan 15 05:11:47 erm76 kernel: [ 4505.189938] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:47 erm76 kernel: [ 4505.189940] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:47 erm76 kernel: [ 4505.189941] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:47 erm76 kernel: [ 4505.189942] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:47 erm76 kernel: [ 4505.189943] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:47 erm76 kernel: [ 4505.190985] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:47 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_SAMSUNG_SAMSUNG_Android
      Jan 15 05:11:47 erm76 colord[1381]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
      Jan 15 05:11:47 erm76 colord[1381]: message repeated 2 times: [ CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_]
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:47 erm76 upowerd[3382]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.3
      Jan 15 05:11:48 erm76 kernel: [ 4506.025276] usb usb3-port2: disabled by hub (EMI?), re-enabling...
      Jan 15 05:11:48 erm76 kernel: [ 4506.025283] usb 3-2: USB disconnect, device number 82
      Jan 15 05:11:48 erm76 ModemManager[1184]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:48 erm76 ModemManager[1184]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2': Operation was cancelled
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1
      Jan 15 05:11:48 erm76 upowerd[3382]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
      Jan 15 05:11:48 erm76 kernel: [ 4506.369080] usb 3-2: new high-speed USB device number 83 using xhci_hcd
      Jan 15 05:11:48 erm76 kernel: [ 4506.518366] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
      Jan 15 05:11:48 erm76 kernel: [ 4506.518370] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jan 15 05:11:48 erm76 kernel: [ 4506.518373] usb 3-2: Product: SAMSUNG_Android
      Jan 15 05:11:48 erm76 kernel: [ 4506.518375] usb 3-2: Manufacturer: SAMSUNG
      Jan 15 05:11:48 erm76 kernel: [ 4506.518377] usb 3-2: SerialNumber: 42003eefd668b3a1
      Jan 15 05:11:48 erm76 kernel: [ 4506.520728] cdc_acm 3-2:1.1: ttyACM0: USB ACM device
      Jan 15 05:11:58 erm76 kernel: [ 4516.806812] usb 3-2: USB disconnect, device number 83
      Jan 15 05:11:59 erm76 kernel: [ 4517.077054] usb 3-2: new high-speed USB device number 84 using xhci_hcd
      Jan 15 05:12:04 erm76 kernel: [ 4522.517070] usb 3-2: device descriptor read/64, error -110


      $ lsusb
      Bus 002 Device 002: ID 8087:8000 Intel Corp.
      Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 002: ID 8087:8008 Intel Corp.
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 004 Device 004: ID 1058:25ee Western Digital Technologies, Inc.
      Bus 004 Device 003: ID 05e3:0617 Genesys Logic, Inc.
      Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.
      Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 003 Device 006: ID 5986:055c Acer, Inc
      Bus 003 Device 005: ID 8087:07dc Intel Corp.
      Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
      Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
      Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
      Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


      I've attempted to copy /lib/udev/rules.d/69-libmtp.rules to /etc/udev/rules.d/ and then comment out 04e8:6860 and rebooted. This however makes the kernel ask if the cord is bad.







      usb samsung






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 16 at 4:36









      Kevin Bowen

      14.6k155970




      14.6k155970










      asked Jan 15 at 13:24









      the7ermthe7erm

      665




      665




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Turns out the fix was simple. Close the browser inspector window and everything connects fine.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109948%2fsamsung-j3-fails-to-connect-ubuntu-18-04-1%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Turns out the fix was simple. Close the browser inspector window and everything connects fine.






            share|improve this answer



























              0














              Turns out the fix was simple. Close the browser inspector window and everything connects fine.






              share|improve this answer

























                0












                0








                0







                Turns out the fix was simple. Close the browser inspector window and everything connects fine.






                share|improve this answer













                Turns out the fix was simple. Close the browser inspector window and everything connects fine.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 mins ago









                the7ermthe7erm

                665




                665



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109948%2fsamsung-j3-fails-to-connect-ubuntu-18-04-1%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown