No description
Find a file
JP Abgrall 408fa57864 adb: fix subprocess exit handling, oom adjust fixes, extra debugging.
* Add support for correctly handling subprocess termination in shell service  (b/3400254 b/3482112 b/2249397)
 - have a waitpid() track the subprocess, then notify the fdevent via a socket
 - force an eof on the pty master in fdevent's new subproc handler.
 - modify fdevent to force-read the pty after an exit.
* Migrate the "shell:blabla" handling to "#if !ADB_HOST" sections, where it
 belongs.
* Fix the race around OOM adjusting.
  - Do it in the child before exec() instead of the in the parent as the
   child could already have started or not (no /proc/pid/... yet).
* Allow for multi-threaded D() invocations to not clobber each other.
  - Allow locks across object files.
  - Add lock within D()
  - Make sure sysdesp init (mutex init also) is called early.
* Add some missing close(fd) calls
  - Match similar existing practices near dup2()
* Add extra D() invocations related to FD handling.
* Warn about using debugging as stderr/stdout is used for protocol.
* Fix some errno handling and make D() correctly handle it.
* Add new adb trace_mask: services.
* Make fdevent_loop's handle BADFDs more gracefully (could occur some subproc closed its pts explicitely).
* Remove obsolete commandline args reported in help. (b/3509092)


Change-Id: I928287fdf4f1a86777e22ce105f9581685f46e35
2011-03-28 14:12:22 -07:00
adb adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
cpio dist for dist_files 2010-12-09 10:33:27 -08:00
debuggerd Revert "Debuggerd now outputs the offset of libc.so on the device as a separate item." 2011-03-17 16:38:15 -07: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 Fix potential race introduced in Icd7f5f03 2011-03-17 17:14:46 -07:00
init defer firmware load until after filesystems are mounted 2011-03-25 13:01:35 -07:00
libctest Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:50 -07:00
libcutils do not merge. Fix a race in system properties. 2011-03-15 11:04:58 +09: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 64ba76c1: merge from open-source master 2010-07-16 13:34:53 -07:00
libmincrypt make DumpPublicKeys write 32-bit values as unsigned 2010-01-29 10:47:38 -08:00
libnetutils Add per interface dhcp client support 2011-03-23 16:24:13 -07:00
libpixelflinger am 4906db21: Merge "codeflinger: Correct misleading comment of STM instruction" 2010-11-23 11:02:51 -08:00
libsysutils Fix potential race introduced in Icd7f5f03 2011-03-17 17:14:46 -07:00
libusbhost libusbhost: Limit bulk transfer requests to 16384 bytes 2011-03-12 14:06:49 -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 Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc 2011-03-17 10:55:05 -07:00
run-as Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
sdcard am b26662c0: am c3e69903: am 97919656: Add support for the utime(2) family of system calls to the sdcard fuse filesystem. 2011-03-24 22:36:56 -07:00
sh sh: null check signame list since sig 0 is not valid 2010-12-09 14:20:16 -08:00
toolbox am 276df093: am 70987108: Merge "Try to unmount writable filesystems when rebooting" into honeycomb-mr1 2011-03-10 19:29:39 -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