title: OutgoingCallReceiver (out going call) not work on some phone (Samsung, HTC ...)
body: <p>I have an application that detect outgoing call with OutgoingCallReceiver class. That work on all most of the phone. </p>
  
  <p>But on some phone, it doesn't event reach the function <code>onReceive()</code> of OutgoingCallReceiver class. So my app cannot detect the outgoing call. I have to reset to the factory configuration to make it work.</p>
  
  <p>Here is my AndroidManifest.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.*******.android.********"
      android:installLocation="preferExternal"
      android:versionCode="28"
      android:versionName="4.2" &gt;
  
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.SEND_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_LOGS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_LOGS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.GET_TASKS" /&gt;
      &lt;uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21"/&gt;        
      &lt;uses-feature
          android:name="android.hardware.telephony"
          android:required="true" /&gt; 
      &lt;uses-feature
          android:name="android.hardware.wifi"
          android:required="true" /&gt;
      &lt;uses-feature
          android:name="android.hardware.microphone"
          android:required="true" /&gt;
      &lt;uses-feature android:name="android.hardware.camera" /&gt; 
  
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/icon"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter android:label="@string/app_name" &gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.********.android.********.********"
              android:excludeFromRecents="true"
              android:launchMode="singleTop"
              android:screenOrientation="portrait" &gt; &lt;!-- android:theme="@android:style/Theme.Dialog"&gt; --&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.SEND" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:excludeFromRecents="true"
              android:screenOrientation="portrait" &gt; 
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:configChanges="orientation|keyboardHidden|screenSize"
              android:excludeFromRecents="true"
              android:launchMode="singleTop"
              android:taskAffinity=""
              android:theme="@style/AcceptCallInvisible" &gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".********"
              android:windowSoftInputMode="adjustResize" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;action android:name="android.intent.action.SENDTO" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
                  &lt;data android:scheme="sms" /&gt;
                  &lt;data android:scheme="smsto" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.********.********.********.********.********"
              android:launchMode="singleTask"
              android:screenOrientation="portrait" &gt; &lt;!-- android:launchMode="singleTop" --&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.CALL" /&gt;
                  &lt;category android:name="android.intent.category.SAMPLE_CODE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
  
          &lt;service android:name=".********" /&gt;
  
  
          &lt;receiver android:name=".OutgoingCallReceiver" android:exported="true" android:enabled="true"&gt;
               &lt;intent-filter android:priority="0" &gt;
                  &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" /&gt;
                   &lt;meta-data /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver android:name=".SmsReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver
              android:name=".PhoneStateReceiver"
              android:exported="true" android:enabled="true"&gt;
               &lt;intent-filter android:priority="0"&gt;
                  &lt;action android:name="android.intent.action.PHONE_STATE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>