From f6becf6338315088ca782a57d9fff1937e388527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 31 Jan 2019 00:00:00 +0000 Subject: [PATCH] android init --- README.adoc | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index a297b04..65be40b 100644 --- a/README.adoc +++ b/README.adoc @@ -7668,7 +7668,7 @@ Also both can use very similar techniques: either link:lhttps://en.wikipedia.org The huge advantage of QEMU over VirtualBox is that is supports cross arch simulation, e.g. simulate an ARM guest on an x86 host. -QEMU is likely the leading cross arch system simulator as of 2018. It is even the default Android simulator that developers get with Android Studio 3 to develop apps without real hardware. +QEMU is likely the leading cross arch system simulator as of 2018. It is even the default <> simulator that developers get with Android Studio 3 to develop apps without real hardware. Another advantage of QEMU over virtual box is that it doesn't have Oracle' hands all all over it, more like RedHat + ARM. @@ -11648,6 +11648,27 @@ as mentioned at: https://android.stackexchange.com/questions/77280/allow-unknown Tested on: `8.1.0_r60`. +=== Android init + +For Linux in general, see: <>. + +The `/init` executable interprets the `/init.rc` files, which is in a custom Android init system language: https://android.googlesource.com/platform/system/core/+/ee0e63f71d90537bb0570e77aa8a699cc222cfaf/init/README.md + +The top of that file then sources other `.rc` files present on the root directory: + +.... +import /init.environ.rc +import /init.usb.rc +import /init.${ro.hardware}.rc +import /vendor/etc/init/hw/init.${ro.hardware}.rc +import /init.usb.configfs.rc +import /init.${ro.zygote}.rc +.... + +TODO: how is `ro.hardware` determined? https://stackoverflow.com/questions/20572781/android-boot-where-is-the-init-hardware-rc-read-in-init-c-where-are-servic + +Tested on: `8.1.0_r60`. + == About this repo === Supported hosts