No description
Find a file
Nick Kralevich ca8e66a8b0 Make init handle reboots
Move the responsibility for rebooting the system from the
reboot command to init. Init is in a better position to take
actions to bring the system down cleanly, including making sure
filesystems are mounted read-only.

The only UIDs which can perform an init triggered reboot are
root, system, and shell.

Modify the reboot command so that it calls into init to perform
the reboot. The reboot command no longer requires CAP_SYS_BOOT.

Remove the -n reboot option and code which supports it.  Anyone needing
to do an unclean shutdown can just do a 'echo c > /proc/sysrq-trigger'.

Modify adb so that it calls into init to perform a shutdown.

Bug: 8646621
Change-Id: I84c0513acb549720cb0e8c9fcbda0050f5c396f5
2013-04-23 13:21:40 -07:00
adb Make init handle reboots 2013-04-23 13:21:40 -07:00
charger Add liblog 2013-04-09 22:03:45 -07:00
cpio Add support for filesystem capabilities. 2013-02-20 12:51:28 -08:00
debuggerd Fix regression: log mem maps around native fault address 2013-04-18 14:12:31 -07:00
fastboot fastboot: add support for some obscure args. 2013-03-07 17:06:41 -08:00
fs_mgr Include liblog in fs_mgr to fix the build. 2013-04-15 12:33:17 -07:00
gpttool Fix build by removing TAGS from host module 2012-08-15 19:52:52 -07:00
include Make init handle reboots 2013-04-23 13:21:40 -07:00
init Make init handle reboots 2013-04-23 13:21:40 -07:00
libcorkscrew Add liblog 2013-04-09 22:03:45 -07:00
libctest Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:50 -07:00
libcutils Make init handle reboots 2013-04-23 13:21:40 -07:00
libdiskconfig config_mbr: Fix integer overflow 2012-07-26 10:18:14 -07:00
libion Add explicit sync call to ion library 2012-09-20 09:46:19 -07:00
liblinenoise Improve linenoise.c compatability. 2010-06-04 14:32:01 +08:00
liblog liblog: fix fd leakage 2013-03-15 09:48:32 -07:00
libmincrypt mincrypt: merge the two RSA verifiers 2013-04-11 12:55:43 -07:00
libnetutils Add liblog 2013-04-09 22:03:45 -07:00
libnl_2 am cdc4a400: am cb71ed30: am 50e2555d: Merge "Always include <sys/socket.h> before <linux/netlink.h>." 2012-09-12 11:08:42 -07:00
libpixelflinger Add liblog 2013-04-09 22:03:45 -07:00
libsparse libsparse: Fix null pointer issue 2013-04-01 11:22:50 +08:00
libsuspend am 76edb14f: am 2cc3527a: libsuspend: compile as a static library 2012-12-06 18:59:59 -08:00
libsync update libsync to support new timeout semantics 2012-08-21 18:21:18 -07:00
libsysutils Add liblog 2013-04-09 22:03:45 -07:00
libusbhost Properly handle cases of multiple inotify events 2013-03-25 14:12:18 -07:00
libzipfile Fixed warnings test_zipfile 2012-08-20 16:38:37 -04:00
logcat DO NOT MERGE Add event log tag for cert pin failures. 2012-09-12 18:08:35 -07:00
logwrapper logwrapper: Add ability to log to kernel log 2013-04-14 17:10:55 -07:00
mkbootimg mkbootimg: support 8192/16384 pagesizes 2013-03-10 14:11:10 +01:00
netcfg Support adding, deleting, and clearing IPv6 addrs. 2011-09-28 17:12:13 -07:00
reboot Make init handle reboots 2013-04-23 13:21:40 -07:00
rootdir Make init handle reboots 2013-04-23 13:21:40 -07:00
run-as run-as: Don't require CAP_DAC_READ_SEARCH 2013-03-29 08:55:06 -07:00
sdcard Raise the max file open limit in sdcard 2013-02-11 15:42:22 -08:00
sh Fixed un-initialized variable warnings 2012-08-01 15:15:11 -04:00
toolbox am 03546553: am b73a0ef4: Merge "use lseek64 to resolve offset oveflow" 2013-04-18 15:25:54 -07:00
.gitignore Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets. 2009-05-26 13:23:23 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk toolbox: Make reboot a separate command from toolbox 2013-03-26 12:24:10 -07:00
README auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
ThirdPartyProject.prop add meta-files about 3rd party projects 2010-07-16 11:41:39 -07:00

The system/ directory is intended for pieces of the world that are the
core of the embedded linux platform at the heart of Android.  These
essential bits are required for basic booting, operation, and debugging.

They should not depend on libraries outside of system/... (some of them
do currently -- they need to be updated or changed) and they should not
be required for the simulator build.

The license for all these pieces should be clean (Apache2, BSD, or MIT).

Currently system/bluetooth/... and system/extra/... have some pieces
with GPL/LGPL licensed code.

Assorted Issues:

- pppd depends on libutils for logging
- pppd depends on libcrypt/libcrypto
- init, linker, debuggerd, toolbox, usbd depend on libcutils
- should probably rename bionic to libc