add classes necessary to be default sms app

This commit is contained in:
Moez Bhatti
2017-08-14 23:13:13 -04:00
parent 52d2116d10
commit 133af1cfba
4 changed files with 82 additions and 1 deletions
+45 -1
View File
@@ -18,10 +18,54 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
<data android:scheme="sms_body" />
</intent-filter>
</activity>
<activity android:name=".ui.messages.MessageListActivity" />
<receiver
android:name=".receiver.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER" />
</intent-filter>
</receiver>
<receiver
android:name=".receiver.MmsReceiver"
android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter>
<action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
<service android:name=".service.HeadlessSmsSendService"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
</intent-filter>
</service>
<meta-data
android:name="com.bugsnag.android.API_KEY"
android:value="d87e83a633f143665e6466f524449791" />
@@ -0,0 +1,13 @@
package com.moez.QKSMS.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class MmsReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
}
}
@@ -0,0 +1,13 @@
package com.moez.QKSMS.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class SmsReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
}
}
@@ -0,0 +1,11 @@
package com.moez.QKSMS.service
import android.app.IntentService
import android.content.Intent
class HeadlessSmsSendService : IntentService("HeadlessSmsSendService") {
override fun onHandleIntent(p0: Intent?) {
}
}