mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Subsurface-mobile on Android: add USB intent filter
With this a few FTDI based dive computers should be visible from the app. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									c8c56b3737
								
							
						
					
					
						commit
						c05fe9fc9b
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		|  | @ -70,6 +70,12 @@ | |||
| <!--	    <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/subsurface_mobile_splash" /> --> | ||||
| 	    <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash" /> | ||||
|             <!-- Splash screen --> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> | ||||
|             </intent-filter> | ||||
| 
 | ||||
|             <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" | ||||
|                 android:resource="@xml/device_filter" /> | ||||
| 
 | ||||
| 	    <!-- support more aspect ratios --> | ||||
| 	    <meta-data android:name="android.max_aspect" android:value="3" /> | ||||
|  |  | |||
							
								
								
									
										14
									
								
								android-mobile/res/xml/device_filter.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								android-mobile/res/xml/device_filter.xml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <resources> | ||||
|     <!-- FTDI Chips --> | ||||
|     <!-- (Smart Interface), Heinrichs Weikamp --> | ||||
|     <usb-device vendor-id="1027" product-id="24577"/> | ||||
|     <usb-device vendor-id="1027" product-id="24592"/> | ||||
|     <usb-device vendor-id="1027" product-id="24593"/> | ||||
|     <!-- Oceanic Custom PID --> | ||||
|     <usb-device vendor-id="1027" product-id="62560"/> | ||||
|     <!-- Suunto Custom PID --> | ||||
|     <usb-device vendor-id="1027" product-id="63104"/> | ||||
|     <!-- Cressi (Leonardo) Custom PID --> | ||||
|     <usb-device vendor-id="1027" product-id="63104"/> | ||||
| </resources> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue