<?xml version="1.0" encoding="utf-8"?>
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
android:sharedUserId="android.uid.system"
|
xmlns:tools="http://schemas.android.com/tools">
|
|
<!-- 网络权限(用于UDP上传) -->
|
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<!-- 存储权限(用于日志文件) -->
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<!-- USB摄像头权限 -->
|
<uses-feature android:name="android.hardware.usb.host" />
|
|
<application
|
android:name=".H264Application"
|
android:allowBackup="true"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
android:icon="@mipmap/ic_launcher"
|
android:label="@string/app_name"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
android:supportsRtl="true"
|
android:theme="@style/Theme.MyApplication"
|
tools:targetApi="31">
|
<activity
|
android:name=".MainActivity"
|
android:exported="true"
|
android:label="@string/app_name"
|
android:theme="@style/Theme.MyApplication">
|
<intent-filter>
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
</intent-filter>
|
</activity>
|
|
<!-- H264编码服务(第一个摄像头,主进程) -->
|
<service
|
android:name=".H264EncodeService"
|
android:enabled="true"
|
android:exported="true">
|
<intent-filter>
|
<action android:name="com.anyun.h264.H264EncodeService" />
|
</intent-filter>
|
</service>
|
|
<!-- H264编码服务2(第二个摄像头,独立进程) -->
|
<service
|
android:name=".H264EncodeService2"
|
android:enabled="true"
|
android:exported="true"
|
android:process=":camera2">
|
<intent-filter>
|
<action android:name="com.anyun.h264.H264EncodeService2" />
|
</intent-filter>
|
</service>
|
</application>
|
|
</manifest>
|