Home | History | Annotate | Download | only in messenger
      1 package com.android.car.messenger;
      2 
      3 import android.annotation.Nullable;
      4 import android.app.Activity;
      5 import android.os.Bundle;
      6 
      7 /**
      8  * No-op Activity that only exists in-order to have an entry in the manifest with SMS specific
      9  * intent-filter.
     10  * <p>
     11  * We need the manifest entry so that PackageManager will grant this pre-installed app SMS related
     12  * permissions. See DefaultPermissionGrantPolicy.grantDefaultSystemHandlerPermissions().
     13  */
     14 public class MessengerActivity extends Activity {
     15     @Override
     16     protected void onCreate(@Nullable Bundle savedInstanceState) {
     17         super.onCreate(savedInstanceState);
     18         finish();
     19     }
     20 }
     21