added permission support for USB & established a connection using service

This commit is contained in:
vsuryakumar
2023-01-23 23:02:39 +05:30
parent 37545a82e1
commit dc52b14335
31 changed files with 541 additions and 156 deletions

View File

@@ -17,34 +17,39 @@
android:supportsRtl="true"
android:theme="@style/Theme.RefactoredApp"
tools:targetApi="31">
<service
android:name=".UsbService"
android:name=".presentation.testRight.UsbService"
android:enabled="true"
android:exported="true"></service>
android:exported="false" />
<activity
android:name=".presentation.SplashActivity"
android:exported="true">
android:exported="true"
android:theme="@style/AppTheme.NoActionBar"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".presentation.TestRight.TestRightActivity"
android:exported="false" />
<activity
android:name=".presentation.MainActivity"
android:exported="true">
android:name=".presentation.testRight.TestRightActivity"
android:exported="false">
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>
<activity
android:name=".presentation.MainActivity"
android:exported="true">
</activity>
</application>
</manifest>