title: enable/disable packages programmatically
body: <p>How can I enable/disable a whole <strong>package</strong> programmatically from a <strong>Android System application</strong>?</p>
  
  <p>In <a href="https://stackoverflow.com/a/17494124/4038549">this</a> post, a component is enabled/disabled programmatically, but not a whole package.</p>
  
  <p>I want to achieve the same result that is achieved by the root command <code>pm disable/enable package_name</code> (from the adb shell -> su).</p>