platform_system_core/adb
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
..
Android.mk resolved conflicts for merge of f62f1e3a to master 2013-01-10 15:35:05 -08:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
SERVICES.TXT adb: Improve ADB's forward redirection management. 2012-11-26 21:37:08 +01:00
adb.c Make init handle reboots 2013-04-23 13:21:40 -07:00
adb.h adb: Add "unauthorized" connection state 2013-01-15 17:21:13 -08:00
adb_auth.h adb: Fix secure adb when booting with usb attached 2013-02-02 01:19:06 +00:00
adb_auth_client.c mincrypt: support SHA-256 hash algorithm 2013-04-10 14:33:31 -07:00
adb_auth_host.c adb: Create private key with 0600 mode 2012-08-31 12:31:36 -07:00
adb_client.c Support adb client connect to remote server 2013-01-04 11:00:38 -08:00
adb_client.h Support adb client connect to remote server 2013-01-04 11:00:38 -08:00
backup_service.c Fix hang after end of backup 2011-06-21 16:05:17 -07:00
commandline.c DO NOT MERGE - Document new -obb flag for adb backup 2013-03-08 15:09:51 -08:00
console.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fdevent.c adb: keep mac build happy 2011-03-29 12:36:22 -07:00
fdevent.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_client.c adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_service.c adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_service.h adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
framebuffer_service.c Avoid zombies on androidscreencast 2012-07-23 15:23:20 +03:00
get_my_path_darwin.c eclair snapshot 2009-11-12 18:46:23 -08:00
get_my_path_freebsd.c FreeBSD support for usb-connected devices in adb 2009-10-25 01:56:35 +11:00
get_my_path_linux.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
get_my_path_windows.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
jdwp_service.c Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
log_service.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mutex_list.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
protocol.txt adb: Add public key authentification 2012-08-23 00:20:06 -07:00
remount_service.c Fix adb remount on non-MTD devices 2010-05-24 11:27:16 -04:00
services.c Make init handle reboots 2013-04-23 13:21:40 -07:00
sockets.c am 504dccec: am aeceb517: adb: Fix adb tcpip command 2012-06-12 16:46:48 -07:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h am 51ccef27: Merge "Add TEMP_FAILURE_RETRY macro for darwin" 2012-10-13 13:54:34 -07:00
sysdeps_win32.c Windows adb: initialize on to 1 in disable_tcp_nagle 2013-01-11 16:36:00 +00:00
test_track_devices.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
test_track_jdwp.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
transport.c adb: Add "unauthorized" connection state 2013-01-15 17:21:13 -08:00
transport.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
transport_local.c Trivial signed/unsigned warning fix for adbd 2012-08-02 09:17:53 -04:00
transport_usb.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
usb_libusb.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_linux.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_linux_client.c FunctionFS: initial implementation 2012-05-31 15:00:41 -07:00
usb_osx.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_vendors.c Add OUYA VID to known VID list 2013-04-17 09:20:05 -07:00
usb_vendors.h adb: Add vendor IDs for iRiver, Compal and T & A Mobile Phones 2011-07-11 09:39:39 -04:00
usb_windows.c am 9dbcbe08: am 9bdedb59: am a36e1aa3: Merge "adb: usb_windows: fix adb connection lost issue" 2012-05-14 08:37:37 -07:00
utils.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
utils.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00