Android, is it possible to change UID of my application progrmatically
<p>Im trying to build an application to lock-down specific applications and services.
Ive got a list of the packages installed on the android device and I know how to disable them but when I try I get a permission denied error about the uid is different.</p>

<p>Is there a way to make android think I'm the user that is trying to disable the the package or to change the uid of the application I'm running as to that of the package. </p>

<p>I know I can get the uid of the package I'm trying to disable using the ApplicationInfo.</p>

<p>The way I'm disabling the packages is:</p>

<pre><code>pm.setApplicationEnabledSetting(packageName, 
            PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER, 
            PackageManager.DONT_KILL_APP);
</code></pre>
