mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 10:27:27 +00:00 
			
		
		
		
	
						commit
						64652c1971
					
				| @ -94,8 +94,8 @@ To use your own set of rules, create and use a custom prober: | |||||||
| // Probe for our custom CDC devices, which use VID 0x1234 | // Probe for our custom CDC devices, which use VID 0x1234 | ||||||
| // and PIDS 0x0001 and 0x0002. | // and PIDS 0x0001 and 0x0002. | ||||||
| ProbeTable customTable = new ProbeTable(); | ProbeTable customTable = new ProbeTable(); | ||||||
| probeTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class); | customTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class); | ||||||
| probeTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class); | customTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class); | ||||||
| 
 | 
 | ||||||
| UsbSerialProber prober = new UsbSerialProber(customTable); | UsbSerialProber prober = new UsbSerialProber(customTable); | ||||||
| List<UsbSerialDriver> drivers = prober.findAllDrivers(usbManager); | List<UsbSerialDriver> drivers = prober.findAllDrivers(usbManager); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user