71 lines
2.8 KiB
XML
71 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:tools="http://schemas.android.com/tools"
|
||
android:theme="@style/Theme.PDFReaderPro"
|
||
tools:ignore="DiscouragedApi,LockedOrientationActivity,RedundantLabel">
|
||
|
||
<!-- Android 11+ 存储权限 -->
|
||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||
|
||
<!-- Android 13+ 媒体权限 -->
|
||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
||
|
||
<!-- 读取所有文件权限(Android 11+ 需要特殊处理) -->
|
||
<uses-permission
|
||
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
|
||
tools:ignore="ScopedStorage" />
|
||
|
||
<application
|
||
android:name=".PRApp"
|
||
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:requestLegacyExternalStorage="true"
|
||
android:roundIcon="@mipmap/ic_launcher_round"
|
||
android:supportsRtl="true"
|
||
android:theme="@style/Theme.PDFReaderPro"
|
||
tools:targetApi="36">
|
||
|
||
<activity
|
||
android:name=".ui.act.SplashActivity"
|
||
android:exported="true"
|
||
android:label="@string/app_name"
|
||
android:screenOrientation="portrait"
|
||
android:theme="@style/Theme.PDFReaderPro">
|
||
<intent-filter>
|
||
<action android:name="android.intent.action.MAIN" />
|
||
<category android:name="android.intent.category.LAUNCHER" />
|
||
</intent-filter>
|
||
</activity>
|
||
|
||
<activity
|
||
android:name=".ui.act.MainActivity"
|
||
android:exported="true"
|
||
android:label="@string/app_name"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<activity
|
||
android:name=".ui.act.PdfViewActivity"
|
||
android:exported="true"
|
||
android:label="@string/app_name"
|
||
android:screenOrientation="portrait"
|
||
android:theme="@style/Theme.PDFReaderPro">
|
||
<!-- 处理PDF文件打开 -->
|
||
<intent-filter>
|
||
<action android:name="android.intent.action.VIEW" />
|
||
|
||
<category android:name="android.intent.category.DEFAULT" />
|
||
<category android:name="android.intent.category.BROWSABLE" />
|
||
|
||
<data android:mimeType="application/pdf" />
|
||
<data android:scheme="file" />
|
||
<data android:scheme="content" />
|
||
</intent-filter>
|
||
</activity>
|
||
</application>
|
||
|
||
</manifest> |