platform_system_core/include
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
..
android Remove libjnigraphics. moved to frameworks/base/native 2010-02-04 15:32:07 -08:00
arch am 733e4701: am fa5f2ad4: am bd8f4a85: Merge "Define O_BINARY for non-Windows platforms." 2011-03-02 11:38:35 -08:00
ctest auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
cutils Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
diskconfig system: libdiskconfig: Add libdiskconfig 2010-03-10 15:19:06 -08:00
mincrypt eclair snapshot 2009-11-12 18:46:23 -08:00
netutils Stop using netmask in the framework 2011-02-02 14:18:44 -08:00
pixelflinger pixelflinger: Fix function naming typo: gglBitBlti 2010-08-10 02:56:47 +08:00
private Make optional valgrind binaries +x. 2011-03-01 15:12:11 -08:00
sysutils libsysutils: Fix race condition in SocketListener thread. 2011-01-19 02:18:40 +01:00
usbhost libusbhost: Save endpoint ID in usb_request struct 2011-02-14 08:05:40 -05:00
zipfile auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00