Thanks for your replies. However, so far not much luck here. I got the
zygote socket created in /dev/socket and the environment variable
ANDROID_SOCKET_zygote set to 666.
Now i'm getting
java.lang.RuntimeException: Error binding to local socket '666'
at com.android.internal.os.ZygoteInit.registerZygoteSocket
(ZygoteInit.java:164)
the command line i'm using is
#app_process -Xzygote /system/bin --zygote
and the init.rc is like this
setprop zygote.enable 0
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --
start-system-server
socket zygote stream 666
on property:zygote.enable=1
start zygote
on property:zygote.enable=0
start zygote
----
typing setprop zygote.enable 1 on the command line doesn't do anything
either. What am I missing here now?
Thanks,
-Z
On Feb 4, 7:07 pm, Weihua Wu <[email protected]> wrote:
> The init.rc is not a shell script in normal linux. You have to register the
> service in init.rc during Android init. The following line in init.rc is to
> create the socket. The socket is created when the init.rc is parsed by
> android init.
> socket zygote stream 666
> Android use that way to create socket for security concern probably.
>
> You could learn more about init.rc from system/core/init/readme.txt
>
> Hope it's helpful.
> Weihua(Jackie) Wu
>
> On Thu, Feb 5, 2009 at 9:40 AM, Zia <[email protected]> wrote:
>
> > I got myself in a console now after compiling installer img with
> > zygote service commented out in the init.rc file. Instead I placed /
> > system/bin/sh service in the init.rc .
>
> > After reboot, I got the prompt. On the command line when I attempt to
> > start zygote (to enter Android UI),
> > app_process -Xzygote /system/bin --zygote
>
> > first I got ANDROID_SOCKET_zygote environment variable error. I fixed
> > that, and now I am getting error when binding to socket 666. Seems
> > like i'm missing /dev/socket/zygote. The problem is, I dont know how
> > to create socket on this command shell now. Another thing could be the
> > missing socket binder service.
>
> > Any ideas or suggestions to recover from this?
>
> > Ultimately, I'm planning to enter a console, start zygote to enter
> > Android UI. On the console I plan to run dropbear or telnetd to
> > remotely connect to the box.
>
> > Thanks,
>
> > Zia
>
>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---