But I need to run my test tool before Android boots up. I did explore 
running via the init.rc script, but I didn't know how to have the test tool 
take control of the console.

However, I managed to solve my problem as described in this link:
http://stackoverflow.com/questions/11763411/android-init-replacement 

Thanks guys!

On Monday, August 13, 2012 10:48:35 PM UTC+8, Earlence wrote:
>
> I think you can include the execution of your test tool in the init script 
> instead of modifying init.c
> http://www.kandroid.org/online-pdk/guide/bring_up.html
>
> -Earlence
>
> On Monday, August 13, 2012 11:19:32 AM UTC+5:30, Terence Yeong wrote:
>>
>> Hi guys,
>>
>> Sorry for the late reply.
>>
>> @Luke: Yeap, my fputs is showing up. I have already solved the problem of 
>> execve-ing to my program. However, another problem has popped up. If user 
>> input is not received, my intention is for the rest of the init process to 
>> continue as normal so the phone can boot up. However I'm getting stuff like 
>> this: http://pastebin.com/XxCZeECs. I've tried to integrate my custom 
>> program code into init.c only to run into the same problem!  Can anyone 
>> explain what's going on?
>>
>> @Naresh: My apologies. The if (user input received) is in psuedocode. My 
>> fgets() stuff is all there, I just didn't type it out.
>>
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to