Re: [android-kernel] Android init process modification

2012-08-15 Thread Terence Yeong
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-ini

Re: [android-kernel] Android init process modification

2012-08-13 Thread Earlence
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

Re: [android-kernel] Android init process modification

2012-08-12 Thread Terence Yeong
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

Re: [android-kernel] Android init process modification

2012-08-09 Thread Naresh Mehta
On Fri, Aug 3, 2012 at 2:04 PM, Terence Yeong wrote: > // START OF MY EDIT IN PSEUDOCODE > fputs("Press enter to start test tool\n", stdout); > if (user input received) > { >execve("./system/bin/test_tool", NULL, NULL); > } > // END OF MY EDIT Where is your get

[android-kernel] Android init process modification

2012-08-06 Thread Terence Yeong
Hi guys, I'm a student doing a project where I have to interrupt the init process of Android. As we all know, init is the program that is run after the kernel boots up. In the source code of init.c, I made the following changes to main(): int main(int argc, char **argv) { int fd_count = 0;