Friday, 15 February 2013

java - How to launch a process as a different user? -



java - How to launch a process as a different user? -

i want launch native process, java code, using runtimeinstance.exec. problem is, new native process gets launched under user "me".

i want new process run user "shell".

how do it?

not sure native process trying invoke here android assigns unique user id applications based on bundle name. can create 2 apps share same user id specifying in manifest. check link out http://developer.android.com/guide/topics/manifest/manifest-element.html

java android process

No comments:

Post a Comment