purpose of app_process

4,472 views
Skip to first unread message

Tez

unread,
Jul 9, 2011, 11:33:51 AM7/9/11
to android-platform
what is the purpose of app_process besides starting zygote at
framework boot time?
Can I run a java application in a process forked off zygote with the
app_process command?

-Earlence

Tez

unread,
Jul 9, 2011, 11:38:22 AM7/9/11
to android-platform
I have compiled a "standalone" java program and dexed it.
Then i try ->

$ app_process -classpath /sdcard/exp.jar com.earl.exp 1
/mnt/.lfs: Function not implemented
Unable to chmod /data/log/dumpstate_sys_error.log: Operation not
permitted
[1] Killed app_process -classpath /sdcard/exp.jar
com.earl.exp 1

I know I can use dalvikvm to run the app,but If I am not wrong, this
process is not forked off zygote. I need to run a command link program
that is forked off zygote.

-Earlence

Dianne Hackborn

unread,
Jul 9, 2011, 3:29:34 PM7/9/11
to android-...@googlegroups.com
The only way to run a process forked from zygote is to ask the activity manager to start it, which means it must be bundled in an .apk and publish an activity, service, receiver, and/or provider.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Chen Yang

unread,
Jul 9, 2011, 7:22:20 PM7/9/11
to android-...@googlegroups.com
try to use dvz
$dvz -classpath /sdcard/expr.jar com.earl.exp 1
but i am not so sure whether shell user can use dvz.
Reply all
Reply to author
Forward
0 new messages