Skip to content

Commit 2cd40ba

Browse files
committed
Update Android API target
1 parent 51fc7b3 commit 2cd40ba

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
android:name="android.hardware.telephony"
77
android:required="false" />
88

9-
<uses-permission android:name="android.permission.INTERNET"/>
10-
9+
<!-- for call -->
1110
<uses-permission android:name="android.permission.READ_CALL_LOG" />
1211
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
1312
<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
1413

14+
<!-- for contacts -->
15+
<uses-permission android:name="android.permission.READ_CONTACTS" />
16+
17+
<uses-permission android:name="android.permission.INTERNET"/>
18+
1519
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
1620

1721
<application
@@ -22,7 +26,7 @@
2226
android:label="@string/app_name"
2327
android:supportsRtl="true"
2428
android:theme="@style/Theme.ListaSpam"
25-
tools:targetApi="31">
29+
tools:targetApi="28">
2630
<activity
2731
android:name=".MainActivity"
2832
android:exported="true">
@@ -33,15 +37,6 @@
3337
</intent-filter>
3438
</activity>
3539

36-
<receiver
37-
android:name=".MyCallReceiver"
38-
android:exported="true" >
39-
<intent-filter>
40-
<action android:name="android.intent.action.PHONE_STATE" />
41-
<action android:name="android.permission.READ_CALL_LOG" />
42-
</intent-filter>
43-
</receiver>
44-
4540
<service
4641
android:name=".MyCallScreeningService"
4742
android:exported="true"
@@ -51,6 +46,14 @@
5146
</intent-filter>
5247
</service>
5348

49+
<receiver
50+
android:name=".MyCallReceiver"
51+
android:exported="true" >
52+
<intent-filter>
53+
<action android:name="android.intent.action.PHONE_STATE" />
54+
<action android:name="android.permission.READ_CALL_LOG" />
55+
</intent-filter>
56+
</receiver>
5457
</application>
5558

5659
</manifest>

0 commit comments

Comments
 (0)