Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
修復Manifest錯誤
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 authored and qwe7002 committed Jul 8, 2022
1 parent 3a337f1 commit af1a5e6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 32
compileSdkVersion 33
defaultConfig {
applicationId "com.qwe7002.telegram_sms_china"
minSdkVersion 22
targetSdkVersion 32
targetSdkVersion 33
versionCode System.getenv("VERSION_CODE") == null ? 1 : System.getenv("VERSION_CODE").toInteger()
versionName System.getenv("VERSION_NAME") == null ? "Debug": System.getenv("VERSION_NAME").toString()
ndk{ // add this
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning,RtlEnabled"
tools:targetApi="n">
tools:ignore="DataExtractionRules,GoogleAppIndexingWarning,RtlEnabled"
tools:targetApi="s"
android:dataExtractionRules="@xml/data_extraction_rules">

<activity
android:name="com.qwe7002.telegram_sms_china.spam_list_activity"
Expand All @@ -47,6 +48,7 @@
android:name="com.qwe7002.telegram_sms_china.notification_listener_service"
android:label="@string/app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
android:exported="true"
tools:ignore="IntentFilterExportedReceiver">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
Expand Down Expand Up @@ -77,6 +79,7 @@
</service>

<receiver android:name="com.qwe7002.telegram_sms_china.boot_receiver"
android:exported="true"
tools:ignore="IntentFilterExportedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
Expand Down Expand Up @@ -108,6 +111,7 @@
</intent-filter>
</receiver>
<receiver android:name="com.qwe7002.telegram_sms_china.call_receiver"
android:exported="true"
tools:ignore="IntentFilterExportedReceiver">
<intent-filter android:priority="2147483647">
<action android:name="android.intent.action.PHONE_STATE" />
Expand All @@ -122,8 +126,8 @@
<activity android:name="com.qwe7002.telegram_sms_china.scanner_activity" />
<activity
android:name="com.qwe7002.telegram_sms_china.main_activity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan"
android:exported="true"
tools:ignore="IntentFilterExportedReceiver">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
36 changes: 36 additions & 0 deletions app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!--
TODO: Use <include> and <exclude> to control what is backed up.
The domain can be file, database, sharedpref, external or root.
Examples:
<include domain="file" path="file_to_include"/>
<exclude domain="file" path="file_to_exclude"/>
<include domain="file" path="include_folder"/>
<exclude domain="file" path="include_folder/file_to_exclude"/>
<exclude domain="file" path="exclude_folder"/>
<include domain="file" path="exclude_folder/file_to_include"/>
<include domain="sharedpref" path="include_shared_pref1.xml"/>
<include domain="database" path="db_name/file_to_include"/>
<exclude domain="database" path="db_name/include_folder/file_to_exclude"/>
<include domain="external" path="file_to_include"/>
<exclude domain="external" path="file_to_exclude"/>
<include domain="root" path="file_to_include"/>
<exclude domain="root" path="file_to_exclude"/>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>

0 comments on commit af1a5e6

Please sign in to comment.