title: Set app as default Assist Intent
body: <p>So currently at my wits end for this issue.</p>
  
  <p>I am trying to set my app as the default app launched when long pressing the Home button.</p>
  
  <p>I am doing this by:</p>
  
  <ol>
  <li>Setting Intent Filters in the manifest (I also experimented with adding MAIN and LAUNCHER action/category  tags)</li>
  </ol>
  
  <blockquote>
  <pre><code> &lt;action android:name="android.intent.action.ASSIST" /&gt;
   &lt;action android:name="android.intent.action.SEARCH_LONG_PRESS" /&gt;
   &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  </code></pre>
  </blockquote>
  
  <ol start="2">
  <li>Requesting the default app on an intent to allow users to change (there's also one for the Search Long Press action)</li>
  </ol>
  
  <blockquote>
  <pre><code>Intent intent = new Intent(Intent.ACTION_ASSIST);
  intent.addCategory(Intent.CATEGORY_DEFAULT);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  </code></pre>
  </blockquote>
  
  <p>This approach works perfectly fine for devices running pre 6.0 software.
  On post 6 devices the request is asked but the default assistant app is unchanged. </p>
  
  <p>My app can be set as the default home app on post 6 devices perfectly fine when using these exact steps.</p>
  
  <p>I'm unsure as to whether there's some kind of specific permission I'm missing or something. Nothing seems to work at all. The google app will always be used on long press. If I disable the google app then my app will run on long press.</p>
  
  <p><strong>Extra information:</strong> This is a kiosk app for business so I prefer to not have to disable the Google app for every single device this will go on. I don't mind if solutions are hacky as this is not going on the app store.</p>