make doesn't seem to handle the absolute symlink from
$OUT/root/sbin/ueventd to /init well - it follows the link during
dependency resolution, decides $OUT/root/sbin/ueventd doesn't exist
because /init doesn't exist, and relinks it every time.
Change-Id: I9ca1c14fe5fa80634f51ffc51a7c73146d29d42e
When the init process ran out of actions to execute, cur_action was
NULL and action_queue_empty() was true, but cur_command was still
set. This patch clears cur_command when a new action is retreived,
and only depends on cur_action and action_queue_empty() to determine
the poll timeout.
Change-Id: Iaa95063c8c267a5b1ada9f20363b99c433e61ac4
* changes:
init: Add ueventd.rc parsing to ueventd
init: Move uevent handling to an external ueventd process
init: Split parser into generic parser and init parser
init: Allow services to start before property triggers are up
init: Add wait command and mount wait flag
init: Move list and log handling to list.h and log.h
init: reap exited child processes on signal_init
init: create symlinks to block device nodes
init: Handle commands in event queue loop
If any child processes exit before signal_init, they won't get reaped
unless another child process exits after signal_init. Calling
handle_signal from signal_init forces them to be reaped immediately.
Change-Id: I459cfbfe6cf00f29454c62a8c840baf21cb1fb03
eMMC block device names may change based on the detection order of
the eMMC device and any other SD bus devices, such as a removable SD
card.
This patch adds support to init for:
* Symlinks to block devices. When a block device uevent is
processed, if it starts with "/devices/platform", the platform
driver name is parsed out, and symlinks to the block device are
created in /dev/block/platform/<platform driver>/
* Symlinks based on partition name and number. If the uevent for
a block device contains information on the partition name or
number, symlinks are created under
/dev/block/platform/<platform driver>/by-num/p<partition>
and
/dev/block/platform/<platform driver>/by-name/<partition name>
init.rc can then use a device path like the following to mount an
eMMC device:
/dev/block/platform/<platform>/by-name/system /system ro
Change-Id: Id11bb7cdf1e2ada7752a5bd671cbf87237b34ae2
Merge commit '775a8df614d364fcb82e280069a3f533381240b4' into kraken
* commit '775a8df614d364fcb82e280069a3f533381240b4':
adb: Add persistent system property for running adb in TCPIP mode
Previous behaviour was to set route's network mask as 255.255.255.255
Setting a destination network with netmask /32 blocks the connections
just to the specified host. 0.0.0.0/32 defines the exact IPv4 address
0.0.0.0 and not the whole IPv4 hosts range.
This patch allows traffic to any network, setting a 0.0.0.0/0 route.
Change-Id: I1665f2fac52526337bb2c48e3b09564d9da448e7
In addition to service.adb.tcp.port, you can now set persist.adb.tcp.port
to specify the port number for adb to listen to instead of USB.
This allows the adb TCP configuration to persist across reboots.
Change-Id: I897ffcb019e8dd1785996d2f3c571cfc2f8ded38
Signed-off-by: Mike Lockwood <lockwood@android.com>
Merge commit '3523412f43ec616775a73f5fb8a2615370a1ee3a' into kraken
* commit '3523412f43ec616775a73f5fb8a2615370a1ee3a':
Add -l option to `adb sync`
vold: fix a bug of crash
* changes:
init: Move prototypes for util.c into util.h
init: Move signal handling to signal_handler.c
init: Move gettime() to util.c
init: Move property_set_fd to property_service.c
init: Move parser prototypes to parser.h
init: Move device_fd to devices.c
init: Move keychords to keychords.c
init: Move mtd functions from init.c to util.c
Merge commit 'db2f5ad494c4dfc5bd0ee1840468df329678c75c' into kraken
* commit 'db2f5ad494c4dfc5bd0ee1840468df329678c75c':
Add a log tag entry for the dalvik lock profiling event.
Merge commit 'f54e0a4be3e7a49e1b3f53de6b9542bc146c36fe' into froyo-plus-aosp
* commit 'f54e0a4be3e7a49e1b3f53de6b9542bc146c36fe':
Add a log tag entry for the dalvik lock profiling event.
This was used for adb networking, which no longer exists.
This code also failed when adb was not running as root.
Change-Id: Ied86fb1930094d5ae5009684d25e15385fd31d03
Signed-off-by: Mike Lockwood <lockwood@android.com>
Devices with non-MTD storage need to override the filesystem mounting
commands in init.rc. Moving them to a new "fs" init level allows a
custom init.<device>.rc to handle the mounting.
Change-Id: If0e655139b9734650fb798b6eb0a90e2241fc29b
Prints elapsed real time since boot, as well as idle time and sleep time.
Change-Id: I97f482d6087e9f802d74e91147bf767e6b2d4f42
Signed-off-by: Mike Lockwood <lockwood@android.com>
Prints elapsed real time since boot, as well as idle time and sleep time.
Change-Id: I97f482d6087e9f802d74e91147bf767e6b2d4f42
Signed-off-by: Mike Lockwood <lockwood@android.com>