title: AccessibilityService stops receiving events on reboot
body: <p>I have an app that uses the accessibility services to listen to notifications. It works correctly unti the user reboots. If you reboot, you have to disable/re-enable the service from the accessibility services menu. </p>
  
  <p>Why does the app not get the events after a reboot?</p>
  
  <pre><code>@Override
  protected void onServiceConnected() {
      pMan = new PreferencesManager(this);
      bulbManager = new BulbManager(((Context) this), pMan.getBridge());
      AccessibilityServiceInfo info = new AccessibilityServiceInfo();
      info.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;
      info.notificationTimeout = 100;
      info.feedbackType = AccessibilityEvent.TYPES_ALL_MASK;
      setServiceInfo(info);
      Log.d("OMG, STARTED FINALLY!", "RIGHT NOW!");
  }
  </code></pre>
  
  <p>and the xml</p>
  
  <pre><code>&lt;accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
      android:accessibilityEventTypes="typeNotificationStateChanged"
      android:packageNames="com.t3hh4xx0r.huenotifier"
      android:accessibilityFeedbackType="feedbackAllMask"
      android:notificationTimeout="100"
      android:accessibilityFlags="flagDefault"
      android:settingsActivity="com.t3hh4xx0r.huenotifier.activities.LoadingSplashActivity"
      android:canRetrieveWindowContent="false"
      android:description="@string/app_name" /&gt;
  </code></pre>
  
  <p>and the manifest</p>
  
  <pre><code>   &lt;service
          android:name="com.t3hh4xx0r.huenotifier.MyAccessibilityService"
          android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.accessibilityservice.AccessibilityService" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.accessibilityservice"
              android:resource="@xml/service_info" /&gt;
      &lt;/service&gt;
  </code></pre>