title: Android 6.0 Marshmallow How disable/hide Navigationbar/SystemUI
body: <p>[Navigationbar][1]</p>
  
  <p>I'm writting an Application and in onCreate()-Function i'm disable the navigationbar:</p>
  
  <p>In Android 4.4:</p>
  
  <pre><code>Runtime.getRuntime().exec("/system/xbin/su -c service call activity 42 s16 com.android.systemui");
  </code></pre>
  
  <p>In Android 5:</p>
  
  <pre><code>Runtime.getRuntime().exec("/system/xbin/su -c am stopservice -n com.android.systemui/.SystemUIService");
  Runtime.getRuntime().exec("pm disable com.android.systemui");
  Runtime.getRuntime().exec("kill 'processID of systemui'");
  </code></pre>
  
  <p>This works fine.
  But both doesn't works in Android 6.</p>
  
  <p>after...</p>
  
  <pre><code>Runtime.getRuntime().exec("/system/xbin/su -c service call activity 42 s16 com.android.systemui");
  </code></pre>
  
  <p>...the SystemUI/Navigationbar is disabled but also the Touch.</p>
  
  <p>And after...</p>
  
  <pre><code>Runtime.getRuntime().exec("/system/xbin/su -c am stopservice -n com.android.systemui/.SystemUIService");
  Runtime.getRuntime().exec("pm disable com.android.systemui");
  Runtime.getRuntime().exec("kill 'processID of systemui'");
  </code></pre>
  
  <p>... the SystemUI/Navigation is disabled for 3 seconds and then it appears again.</p>
  
  <p>Can anybody Help?</p>