Stopping Android Booting

228 views
Skip to first unread message

Richard Phillips

unread,
Apr 8, 2014, 11:45:52 AM4/8/14
to android...@googlegroups.com
Hello all,

How can I stop Android booting, once the kernel is up-and-running?  Would an empty "init.rc" do the job?

Regards,
Richard.

Thiago C. Santini

unread,
Apr 8, 2014, 12:44:26 PM4/8/14
to rip...@gmail.com, android...@googlegroups.com
From my own experience, "Android" is quite an abstract term. But yes, an empty init.rc should give you a clean system (i.e. only basic kernel processes/threads such as init, khelper, kworkers, binder).

I would leave the console and the adbd services though, so you get an console and you still can access your device through adb.

Hope it helps,


--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Atenciosamente / Kind Regards

Thiago Caberlon Santini
Computer Engineer - Federal University of Rio Grande do Sul

Website:   http://www.inf.ufrgs.br/~tcsantini/
PGP-Key: http://www.inf.ufrgs.br/~tcsantini/tcsantini.asc

Richard Phillips

unread,
Apr 9, 2014, 4:36:51 AM4/9/14
to Thiago C. Santini, android...@googlegroups.com
Hi,

Thanks, I'll give that a try then!

Regards,
Richard.

Somdutta Roy

unread,
Apr 9, 2014, 1:29:42 PM4/9/14
to android...@googlegroups.com, Thiago C. Santini
I believe there is also a headless android configuration which you specify while building, essentially this would eliminate the surface flinger, audio flinger  and lot of other framework components so you will probably be left with android kernel booting with a few of the android file system, you need to google it

Kyle Manna

unread,
Apr 9, 2014, 2:44:33 PM4/9/14
to android...@googlegroups.com, Thiago C. Santini
There is a factory test mode that attempts to do some of this, but you need to dig deep in to the ActivityManager and friends to see what exactly happens and how broken it might be.

Thiago C. Santini

unread,
Apr 9, 2014, 3:24:21 PM4/9/14
to Kyle Manna, android...@googlegroups.com
I also remember coming across some other interesting properties in frameworks/base/services/java/com/android/server/SystemServer.java, a quick grep yields:

        String factoryTestStr = SystemProperties.get("ro.factorytest");
        final boolean headless = "1".equals(SystemProperties.get("ro.config.headless", "0"));
        boolean disableStorage = SystemProperties.getBoolean("config.disable_storage", false);
        boolean disableMedia = SystemProperties.getBoolean("config.disable_media", false);
        boolean disableBluetooth = SystemProperties.getBoolean("config.disable_bluetooth", false);
        boolean disableTelephony = SystemProperties.getBoolean("config.disable_telephony", false);
        boolean disableLocation = SystemProperties.getBoolean("config.disable_location", false);
        boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false);
        boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false);
        boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false);


But those implies you have already started the zygote.

Richard Phillips

unread,
Apr 10, 2014, 10:30:18 AM4/10/14
to android...@googlegroups.com
I've stumbled across BUILD_TINY_ANDROID - if this works, it should give me what I want.  I understand it's obsoleted now, but I am using ICS from mid-2012 (TI Sitara Android) so I think it should still work?

shridutt kothari

unread,
Apr 28, 2014, 8:24:17 AM4/28/14
to android...@googlegroups.com
Hi Richard, 

If you only want to run Kernel and not Java part of Android, you can use Tiny build:
there's a guide here https://wiki.linaro.org/Platform/Android/UseTinyAndroid which would be helpful to you in this direction.
and Tiiny Android works in all versions.

Thanks,
Shridutt Kothari,
Impetus Infotech India Ltd.

Richard Phillips

unread,
Apr 30, 2014, 4:06:14 AM4/30/14
to android...@googlegroups.com
Hi Shridutt,

Thanks for the link - I did try the BUILD_TINY_ANDROID option and it worked!  I'm sure I read somewhere though that it has been removed from recent versions of Android?

Regards,
Richard.
Reply all
Reply to author
Forward
0 new messages