Android_USB | Android_USB通信 | Change Data Capture library
kandi X-RAY | Android_USB Summary
kandi X-RAY | Android_USB Summary
Android_USB通信
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Android_USB
Android_USB Key Features
Android_USB Examples and Code Snippets
Community Discussions
Trending Discussions on Android_USB
QUESTION
I am currently trying to get my Android-Phone connected to my Windows machine acting as HID, RNDIS and MASS_STORAGE device simultaneously. Each of those Modes as single mode is working fine but I cant get them combined properly, for example, i can use HID, MASS_STORAGE but norfilter filter HID, RNDIS. Best working practice at the moment is Setting the USB Mode via shell e.g.
...ANSWER
Answered 2018-Jan-25 at 14:25as far as i know it is not possible to use the USB device classes like i.e. mass storage, PTP , MTP, RNDIS ( tethering ),... simultaneously because in a composite device like a smartphone the device classes are defined on interface level and in USB protocol only one interface can be claimed at an instant
you can check this using lsusb -v
for my smartphone the output is ( in tethering mode )
QUESTION
My problem is when I run my app on API level 23 devices,I have a an issue,when video is playing and I lock the device,after unlocking,it plays sound for 2-3 seconds and then there is no sound,and after a couple of seconds the screen is getting black.
LogCat
09-14 07:56:01.819 1641-1641/system_process E/PowerManagerService-JNI: Couldn't load power module (No such file or directory) 09-14 07:56:01.919 1641-1641/system_process E/art: DexFile_getDexOptNeeded file '/system/framework/org.apache.http.legacy.jar' does not exist 09-14 07:56:02.800 1641-1641/system_process E/ConsumerIrService: Can't open consumer IR HW Module, error: -2 09-14 07:56:02.921 1641-1706/system_process E/EventHub: could not get driver version for /dev/input/mice, Not a typewriter 09-14 07:56:04.158 1641-1641/system_process E/UsbDeviceManager: failed to write to /sys/class/android_usb/android0/f_rndis/ethaddr 09-14 07:56:04.158 1641-1641/system_process E/UsbDeviceManagerJNI: could not open /dev/usb_accessory 09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.password.key: open failed: ENOENT (No such file or directory) 09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/password.key: open failed: ENOENT (No such file or directory) 09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.pattern.key: open failed: ENOENT (No such file or directory) 09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.gesture.key: open failed: ENOENT (No such file or directory) 09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gesture.key: open failed: ENOENT (No such file or directory) 09-14 07:56:04.274 1641-1641/system_process E/WifiService: Invoking mWifiStateMachine.setWifiEnabled 09-14 07:56:04.679 1641-1722/system_process E/BluetoothAdapter: Bluetooth binder is null 09-14 07:56:04.684 1641-1722/system_process E/BluetoothAdapter: Bluetooth binder is null 09-14 07:56:04.693 1641-2001/system_process E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found 09-14 07:56:04.702 1641-1641/system_process E/InputMethodManagerService: Ignoring updateSystemUiLocked due to an invalid token. uid:1000 token:null 09-14 07:56:04.725 1641-1641/system_process E/FlpHardwareProvider: Error hw_get_module 'flp': -2 09-14 07:56:04.725 1641-1641/system_process E/LocationManagerService: FLP HAL not supported 09-14 07:56:04.726 1641-1641/system_process E/ActivityRecognitionHardware: Error hw_get_module: -2 09-14 07:56:04.726 1641-1641/system_process E/LocationManagerService: Hardware Activity-Recognition not supported. 09-14 07:56:04.741 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:04.781 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:04.782 1641-1715/system_process E/WifiStateMachine: Failed to reload STA firmware java.lang.IllegalArgumentException: command '16 softap fwreload wlan0 STA' failed with '501 16 SoftAP command has failed' 09-14 07:56:04.784 1641-1715/system_process E/WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '18 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 18 Failed to set address (No such device)' 09-14 07:56:04.784 1641-1715/system_process E/WifiMonitor: killSupplicant p2pfalse init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown 09-14 07:56:04.902 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null 09-14 07:56:04.917 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null 09-14 07:56:04.922 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null 09-14 07:56:05.328 1641-1717/system_process E/ConnectivityService: Failed to find Messenger in unregisterNetworkFactory 09-14 07:56:06.506 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.533 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.687 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.726 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.737 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.857 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:06.862 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server 09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Failed to stop supplicant 09-14 07:56:10.042 1641-1715/system_process E/WifiNative-HAL: Could not start hal 09-14 07:56:10.042 1641-1715/system_process E/WifiStateMachine: Failed to start HAL 09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory 09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Wi-Fi will not be enabled 09-14 07:56:10.042 1641-1715/system_process E/WifiStateMachine: Failed to start supplicant! 09-14 07:56:39.975 1641-1674/system_process E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaaf4b0e0 09-14 07:56:39.975 1641-1674/system_process E/libEGL: call to OpenGL ES API with no current context (logged once per thread) 09-14 07:56:39.990 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false 09-14 07:56:39.997 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false 09-14 07:56:43.721 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false
These two line are printed every time when I lock or unlock the device.
09-14 07:56:43.721 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false 09-14 08:03:36.788 1641-1674/system_process E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaaf4b0e0
Any help is appreciated,thx.
...ANSWER
Answered 2017-Sep-14 at 08:33They have fixed the issue in Android 6.0.1. Just update your Android OS version and it will be ok.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Android_USB
You can use Android_USB like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Android_USB component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page