|
|
|
@ -1,29 +1,23 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
<!-- 声明XML版本和编码格式 -->
|
|
|
|
|
|
|
|
|
|
<!-- 权限声明区域 -->
|
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
|
|
|
<!-- 创建桌面快捷方式权限 -->
|
|
|
|
|
|
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
|
<!-- 网络访问权限 -->
|
|
|
|
|
|
|
|
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
|
|
|
<!-- 读取联系人权限(需运行时申请) -->
|
|
|
|
|
|
|
|
|
|
<!-- 账户管理相关权限 -->
|
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
|
|
|
|
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
|
|
|
<!-- 开机启动广播接收 -->
|
|
|
|
|
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
|
|
|
|
|
|
|
|
<!-- 新增:兼容闹钟功能 -->
|
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
|
|
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
|
|
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
|
|
|
|
|
|
|
|
|
<application
|
|
|
|
|
android:allowBackup="true"
|
|
|
|
@ -34,7 +28,7 @@
|
|
|
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
|
|
|
android:supportsRtl="true"
|
|
|
|
|
android:theme="@style/Theme.Notesmaster"
|
|
|
|
|
tools:targetApi="31"> <!-- 指定目标 API 级别 -->
|
|
|
|
|
tools:targetApi="31">
|
|
|
|
|
|
|
|
|
|
<!-- 主启动 Activity -->
|
|
|
|
|
<activity
|
|
|
|
@ -45,10 +39,9 @@
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:uiOptions="splitActionBarWhenNarrow"
|
|
|
|
|
android:windowSoftInputMode="adjustPan"
|
|
|
|
|
android:exported="true"> <!-- 允许外部应用启动 -->
|
|
|
|
|
android:exported="true">
|
|
|
|
|
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<!-- 主入口点声明 -->
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
@ -60,9 +53,8 @@
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:exported="true"><!-- 注意:导出需验证 intent 数据 -->
|
|
|
|
|
android:exported="true">
|
|
|
|
|
|
|
|
|
|
<!-- 支持通过 VIEW 操作打开特定数据类型 -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
@ -70,7 +62,6 @@
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<!-- 支持插入或编辑操作 -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.INSERT_OR_EDIT" />
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
@ -78,13 +69,11 @@
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<!-- 搜索功能支持 -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<!-- 搜索功能元数据 -->
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.app.searchable"
|
|
|
|
|
android:resource="@xml/searchable" />
|
|
|
|
@ -94,84 +83,76 @@
|
|
|
|
|
<provider
|
|
|
|
|
android:name="net.micode.notes.data.NotesProvider"
|
|
|
|
|
android:authorities="micode_notes"
|
|
|
|
|
android:multiprocess="true" /><!-- 支持多进程访问 -->
|
|
|
|
|
android:multiprocess="true" />
|
|
|
|
|
|
|
|
|
|
<!-- 2x2 桌面小部件 -->
|
|
|
|
|
<!-- 小部件 2x2 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name=".widget.NoteWidgetProvider_2x"
|
|
|
|
|
android:label="@string/app_widget2x2"
|
|
|
|
|
android:exported="true"><!-- 导出需确保无安全漏洞 -->
|
|
|
|
|
android:exported="true">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
|
android:resource="@xml/widget_2x_info" />
|
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
<!-- 小部件 4x4 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name=".widget.NoteWidgetProvider_4x"
|
|
|
|
|
android:label="@string/app_widget4x4"
|
|
|
|
|
android:exported="true">
|
|
|
|
|
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
|
android:resource="@xml/widget_4x_info" />
|
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
<receiver android:name=".ui.AlarmInitReceiver"
|
|
|
|
|
<!-- 闹钟初始化接收器 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name=".ui.AlarmInitReceiver"
|
|
|
|
|
android:exported="true">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
<!-- 闹钟广播接收器 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name="net.micode.notes.ui.AlarmReceiver"
|
|
|
|
|
android:process=":remote" >
|
|
|
|
|
</receiver>
|
|
|
|
|
android:process=":remote"
|
|
|
|
|
android:exported="true" />
|
|
|
|
|
|
|
|
|
|
<!-- 闹钟提醒界面 -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name=".ui.AlarmAlertActivity"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleInstance"
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
|
|
|
|
|
</activity>
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar"
|
|
|
|
|
android:exported="true" />
|
|
|
|
|
|
|
|
|
|
<!-- 设置页面 -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.NotesPreferenceActivity"
|
|
|
|
|
android:label="@string/preferences_title"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Light" >
|
|
|
|
|
</activity>
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Light"
|
|
|
|
|
android:exported="true" />
|
|
|
|
|
|
|
|
|
|
<!-- 同步服务 -->
|
|
|
|
|
<service
|
|
|
|
|
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
|
|
|
|
|
android:exported="false" >
|
|
|
|
|
</service>
|
|
|
|
|
android:exported="false" />
|
|
|
|
|
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.app.default_searchable"
|
|
|
|
|
android:value=".ui.NoteEditActivity" />
|
|
|
|
|
|
|
|
|
|
<!-- <activity-->
|
|
|
|
|
<!-- android:name=".MainActivity"-->
|
|
|
|
|
<!-- android:exported="true">-->
|
|
|
|
|
<!-- <intent-filter>-->
|
|
|
|
|
<!-- <action android:name="android.intent.action.MAIN" />-->
|
|
|
|
|
|
|
|
|
|
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
|
|
|
|
|
<!-- </intent-filter>-->
|
|
|
|
|
<!-- </activity>-->
|
|
|
|
|
|
|
|
|
|
</application>
|
|
|
|
|
|
|
|
|
|
</manifest>
|
|
|
|
|
</manifest>
|
|
|
|
|