title: No internet access in signed APK
body: <p>I was working on an app that was working fine in the Debug build version and then I created a signed APK using keystore , and then with Android Studio --> Generate SIgned APK.</p>
  
  <p>When I install the signed APK manually by downloading on to my phone, it asks for all permissions including internet access. However post installation, app starts but none of the server calls / API calls are working. The phone has internet connection though (webpages open up in browser)</p>
  
  <p>My android manifest is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.gmspartners.earthmiles" &gt;
  
  
      &lt;!-- To access Google+ APIs: --&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;!--
   To retrieve OAuth 2.0 tokens or invalidate tokens to disconnect a user. This disconnect
       option is required to comply with the Google+ Sign-In developer policies
      --&gt;
      &lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
      &lt;!-- To retrieve the account name (email) as part of sign-in: --&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;!-- To auto-complete the email text field in the login form with the user's emails --&gt;
      &lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.WRITE_EXTERNAL_STORAGE"
          android:maxSdkVersion="18" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission
          android:name="android.permission.READ_EXTERNAL_STORAGE"
          android:maxSdkVersion="18" /&gt;
  
  
  
      &lt;!-- Recommended by us and most bundled integrations. --&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  
      &lt;!-- Allow you to get LOGCAT information when a crash occurs. --&gt;
      &lt;uses-permission android:name="android.permission.READ_LOGS"/&gt;
  
      &lt;!-- Allow you to see which activity was active when a crash occurs. --&gt;
      &lt;uses-permission android:name="android.permission.GET_TASKS"/&gt;
  
      &lt;!-- Allows location to be tracked --&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  
      &lt;!-- Required by leanplum (and for push notifications) --&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/&gt;
  
      &lt;!-- End segment io recommended permissions --&gt;
  
      &lt;permission
          android:name="com.gmspartners.earthmiles.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="com.gmspartners.earthmiles.permission.C2D_MESSAGE" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
  
      &lt;application
          android:name="com.gmspartners.earthmiles.globalstate.App"
          android:allowBackup="true"
  
          android:label="@string/app_name"
          android:icon="@drawable/earthmiles_logo_green"
          android:logo="@drawable/earthmiles_logo_white_actionbar"
          android:screenOrientation="portrait"
  
          android:theme="@style/Theme.Emgreen_actionbar"
          tools:replace="android:icon" &gt;
  
  
          &lt;activity
              android:name="com.gmspartners.earthmiles.views.MainActivity_"
              android:label="@string/app_name"
              android:screenOrientation="portrait"&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.gmspartners.earthmiles.views.ActivityLanding_"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              &gt;
  
              &lt;intent-filter&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.gmspartners.earthmiles.views.ActivitySignIn_"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:configChanges="orientation|keyboardHidden|screenSize"
              android:windowSoftInputMode="adjustPan"
              /&gt;
  
  
          &lt;receiver
              android:name="com.gmspartners.earthmiles.pushnotification.GcmBroadcastReceiver"
              android:permission="com.google.android.c2dm.permission.SEND" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
                  &lt;category android:name="com.earthmileslftr.earthmiles" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service android:name="com.gmspartners.earthmiles.pushnotification.GCMNotificationIntentService" /&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>