No description
Find a file
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 Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
cpio dist for dist_files 2010-12-09 10:33:27 -08:00
debuggerd Fix overflow prevention code in memory dump. 2011-02-24 16:37:52 -08:00
fastboot fastboot: fix arg handling causing no-op. 2011-03-01 23:35:07 -08:00
gpttool Add missing header to gpttool 2011-01-25 08:07:01 -08:00
include Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
init Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
libctest Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:50 -07:00
libcutils Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
libdiskconfig Disable building libdiskconfig on non-Linux hosts 2010-07-12 23:03:45 -07:00
liblinenoise Improve linenoise.c compatability. 2010-06-04 14:32:01 +08:00
liblog am 0c0f68e8: Fix a long standing bug in the output buffer size computation. 2010-08-18 13:38:04 -07:00
libmincrypt make DumpPublicKeys write 32-bit values as unsigned 2010-01-29 10:47:38 -08:00
libnetutils Stop using netmask in the framework 2011-02-02 14:18:44 -08:00
libpixelflinger am 4906db21: Merge "codeflinger: Correct misleading comment of STM instruction" 2010-11-23 11:02:51 -08:00
libsysutils libsysutils: do not build for TINY_ANDROID 2011-01-23 19:13:23 -08:00
libusbhost libusbhost: Save endpoint ID in usb_request struct 2011-02-14 08:05:40 -05:00
libzipfile Fix a call to memset(3) with reversed arguments. 2009-09-03 11:52:31 -07:00
logcat Remove two unused event log tags. 2011-01-19 17:29:54 -08:00
logwrapper Get rid of warnings when compiled with -Wformat-security 2010-05-13 15:38:49 -07:00
mkbootimg dist for dist_files 2010-12-09 10:33:27 -08:00
mksh Don't alias 'stop' to 'kill -STOP' 2010-09-10 11:16:14 -05:00
netcfg update netcfg to use prefixLength not netmask 2011-02-15 11:39:55 -08:00
nexus - creates proper ifc.h and dhcp.h headers for libnetutils 2010-08-25 08:13:42 -07:00
rootdir am 663268ca: am fe111c83: am e6b638be: Merge "x86: Add vold.fstab to mount the SD card" 2011-03-02 15:33:14 -08:00
run-as Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
sdcard sdcard: Fix readdir implementation so rewinddir will work correctly 2011-01-25 17:22:47 -08:00
sh sh: null check signame list since sig 0 is not valid 2010-12-09 14:20:16 -08:00
toolbox Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08: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 Fix sim build. 2010-05-11 14:21:39 -07:00
CleanSpec.mk Raise the viking killer min free values to match the system properties 2011-01-28 22:56:18 -08: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