platform_system_core/adb
Ken Sumrall e3aeeb4de3 Try to unmount writable filesystems when rebooting
Ext4 filesystems like to be unmounted before rebooting.  The Android system
doesn't have a traditional Linux init setup, and shutting down the system
was not much more than calling sync(2) and reboot(2).  This adds a new
function to libcutils called android_reboot().  By default, it calls sync()
and then remounts all writable filesystems as read-only and marks them clean.
There is a flag parameter in which the caller can ask for sync() not to be
called, or to not remount the filesystems as read-only.  Then it will call
reboot(2) as directed by the other parameters.  This change also updates
adb, init and toolbox to call the new android_reboot() function.
Fixes bugs 3350709 and 3495575.

Change-Id: I16d71ffce3134310d7a260f61ec6f4dd204124a7
2011-03-10 18:11:46 -08:00
..
adb.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
adb.h Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
adb_client.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
adb_client.h Make adb's daemon-port on the host machine configurable. 2010-04-28 11:38:34 -04:00
Android.mk dist for dist_files 2010-12-09 10:33:27 -08:00
commandline.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
console.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fdevent.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
fdevent.h Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
file_sync_client.c adb: Don't report negative number of bytes after pushing file > 2 gigabytes 2011-02-03 15:26:35 -05:00
file_sync_service.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
file_sync_service.h adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
framebuffer_service.c fix [3374821] Cannot take screenshot of HC preview 2011-02-09 12:56:25 -08: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
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
mutex_list.h Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -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
protocol.txt Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
remount_service.c Fix adb remount on non-MTD devices 2010-05-24 11:27:16 -04:00
services.c Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
SERVICES.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
sockets.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
sysdeps_win32.c eclair snapshot 2009-11-12 18:46:23 -08: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 Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
transport_local.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
transport_usb.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
usb_libusb.c FreeBSD support for usb-connected devices in adb 2009-10-25 01:56:35 +11:00
usb_linux.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
usb_linux_client.c Revert "Fix adb hang when subprocess dies early." 2011-02-23 18:49:00 -08:00
usb_osx.c eclair snapshot 2009-11-12 18:46:23 -08:00
usb_vendors.c Adding Texas Instruments to the VID list. 2011-02-03 15:26:33 -05:00
usb_vendors.h Support for 3rd party USB Vendor IDs in adb. 2009-05-22 15:25:25 -07:00
usb_windows.c eclair snapshot 2009-11-12 18:46:23 -08: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