Commit Graph

2256 Commits

Author SHA1 Message Date
Benoit Goby 95ef82866c Fix adb leaking file descriptors to forked processes
accept() creates a new file descriptor that should be closed on exec so
that forked processes don't keep a fd opened on the socket.

This also fixes b/3297070 where adb hangs after running adb on the
target.

Change-Id: I8df511289e5549ae49b4824c9dfb71a3bf85eae8
2011-02-02 14:14:09 -08:00
David 'Digit' Turner 2c259914a0 debuggerd: Fix missing include.
The structure user_vfp is incorrectly defined in bionic/libc/kernel/arch-arm/asm/ptrace.h
at the moment, while it should be under bionic/libc/kernel/arch-arm/asm/user.h instead.

Before moving its definition in the corresponding source files, we need to fix its users.
It happens that debuggerd is the only one for now, so fix this by including <linux/user.h>
instead (which will include <asm/user.h> and <asm/ptrace.h>).

Also, make the debug output less chatty by specifying all symbols to be listed
through XLOG2 instead of XLOG.

Change-Id: I16e0fa700945d86efd44ee885a84ad609c0a9b58
2011-02-01 14:38:30 +01:00
David 'Digit' Turner 305b4b0f60 adb: Fix command-line parser.
This fixes the command-line parser to accept both "daemon server"
and "server nodaemon". Before the patch, the second string would
ignore the "nodaemon" flag.

Fixes b/2191598

Change-Id: Ie922b3e7bf57a6e334fc448cec33fb340ca6abc4
2011-01-31 14:23:56 +01:00
Rebecca Schultz Zavin 63e99f447f am e442cff0: am 58fb8220: Raise the viking killer min free values to match the system properties
* commit 'e442cff05ff9f083c91caa3bed74e37318a69fda':
  Raise the viking killer min free values to match the system properties
2011-01-30 12:53:21 -08:00
Rebecca Schultz Zavin e442cff05f am 58fb8220: Raise the viking killer min free values to match the system properties
* commit '58fb822024a04641d5ca1d0341456a2706aee853':
  Raise the viking killer min free values to match the system properties
2011-01-30 12:14:24 -08:00
Rebecca Schultz Zavin 58fb822024 Raise the viking killer min free values to match the system properties
Change-Id: Idcbdb106d704ef63c9a44e635b6e995e0e5f6479
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-01-28 22:56:18 -08:00
Dianne Hackborn 24823cfa84 am fee2cfb0: am 9efdcd96: Fix issue #3401380: Raise OOM killer limits
* commit 'fee2cfb01165f6797d783c6a8c0b1fba4f591355':
  Fix issue #3401380: Raise OOM killer limits
2011-01-28 16:40:26 -08:00
Dianne Hackborn fee2cfb011 am 9efdcd96: Fix issue #3401380: Raise OOM killer limits
* commit '9efdcd969ed03cfbe8cfa692b8adcc46d954914a':
  Fix issue #3401380: Raise OOM killer limits
2011-01-28 16:37:44 -08:00
Dianne Hackborn 9efdcd969e Fix issue #3401380: Raise OOM killer limits
Change-Id: Ia9c82e7d31b7f1b89bf9650ebea697d9b3a64506
2011-01-28 15:33:13 -08:00
Mike Lockwood 120b57a3d9 libusbhost: Add call for synchronous bulk transfers
Also clean up and add timeout to control request transfer

Change-Id: Ibc2d8ac64d0fa90e0a23e6225ce2c49b23bb0d97
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-27 16:21:56 -08:00
Dmitry Shmidt b42db825e1 Merge "libnetutils: Clean all IPs assigned to the interface on cleaning" 2011-01-27 15:59:52 -08:00
Dmitry Shmidt 9092b91cca libnetutils: Clean all IPs assigned to the interface on cleaning
Change-Id: Ic285bbb4b224fc4e62e88e76b8b448edbe814a17
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-01-27 14:16:20 -08:00
Robert Greenwalt 56fc4c9853 Merge "Change our dhcp interface to be IPv6 compat." 2011-01-26 11:56:27 -08:00
Mike Lockwood 19de1bfc11 am 99f13909: am 75e17a89: sdcard: Fix readdir implementation so rewinddir will work correctly
* commit '99f13909578d2dbebedc32f62884a486096e6fa8':
  sdcard: Fix readdir implementation so rewinddir will work correctly
2011-01-25 18:40:39 -08:00
Mike Lockwood 99f1390957 am 75e17a89: sdcard: Fix readdir implementation so rewinddir will work correctly
* commit '75e17a8908d52e32f5de85b90b74e156265c60c6':
  sdcard: Fix readdir implementation so rewinddir will work correctly
2011-01-25 18:39:15 -08:00
Mike Lockwood 75e17a8908 sdcard: Fix readdir implementation so rewinddir will work correctly
Fixes problem with "ls -R" in /mnt/sdcard

BUG: 3309556

Change-Id: Ie2246585439116de3cb40f4005f3b44a0439f54c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-25 17:22:47 -08:00
Brad Fitzpatrick 9409bc2677 am ceddc751: resolved conflicts for merge of 63e70b24 to honeycomb-plus-aosp
* commit 'ceddc751d7a2764da56a573de83202f30843c45b':
  Permit 0 length writes.
  Let SocketClient users write binary data to clients.
2011-01-25 16:25:16 -08:00
Brad Fitzpatrick ceddc751d7 resolved conflicts for merge of 63e70b24 to honeycomb-plus-aosp
Change-Id: I9a26acdc029da9b886171b1f2084003ef97f61ef
2011-01-25 16:17:29 -08:00
Brad Fitzpatrick 63e70b2428 am 4585e0e9: Merge changes I087d0074,I8a51924e
* commit '4585e0e9f76e2c51a7f4a9679ec8b8d25f9b5e63':
  Permit 0 length writes.
  Let SocketClient users write binary data to clients.
2011-01-25 15:44:19 -08:00
Brad Fitzpatrick 4585e0e9f7 Merge changes I087d0074,I8a51924e
* changes:
  Permit 0 length writes.
  Let SocketClient users write binary data to clients.
2011-01-25 15:13:28 -08:00
Robert Greenwalt faab26d542 Change our dhcp interface to be IPv6 compat.
Doesn't do IPv6, but removes v4-specific structures from the framework
(netmask, ints for addrs)
bug:2542681

Change-Id: I1110e6f32d42a472b104835a4298e18b391db0a7
2011-01-25 11:21:04 -08:00
rich cannings 1aef062832 Add missing header to gpttool
Fixes a broken build from: https://android-git.corp.google.com/g/92563

Change-Id: I4d9a2eecde2a17aef0a35952c32483ec4af2b483
2011-01-25 08:07:01 -08:00
Brian Swetland a360a77294 gpttool: useful for partitioning sdcards
Where @partitions.txt contains:

:128k

xloader:128k
bootloader:256k
environment:128k
:384k
boot:8m
recovery:8m
system:256m
cache:256m
userdata:1g

Change-Id: I1221677e5b3dc4d5b19420c4a64d21b587fb7d47
media:
2011-01-25 00:03:23 -08:00
Dmitry Shmidt 7bfca89cec Merge "libnetutils: Fix warning" 2011-01-24 22:14:21 -08:00
Dmitry Shmidt a5d6520be8 Merge "netcfg: Add MAC address to interface dump" 2011-01-24 22:14:04 -08:00
Dmitry Shmidt 7d05a80da8 libnetutils: Fix warning
Change-Id: I2a914314a027e0e542d45dff0c2e6029e9f40615
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-01-24 17:10:30 -08:00
Dmitry Shmidt 97186a9c3d netcfg: Add MAC address to interface dump
Change-Id: I52b3336a66224c9ae19a4c80cc706890742d4130
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-01-24 17:09:32 -08:00
Carl Shapiro f59ed65c47 am 3b093369: am 1147407b: Merge "Remove unconditional swap from the android atomic operations suite." into honeycomb
* commit '3b093369d85f2d248799073152ece79987d4b30b':
  Remove unconditional swap from the android atomic operations suite.
2011-01-24 16:46:45 -08:00
Carl Shapiro 3b093369d8 am 1147407b: Merge "Remove unconditional swap from the android atomic operations suite." into honeycomb
* commit '1147407becd8569ad1ddcf620a10076675ef92da':
  Remove unconditional swap from the android atomic operations suite.
2011-01-24 16:14:32 -08:00
Carl Shapiro 1147407bec Merge "Remove unconditional swap from the android atomic operations suite." into honeycomb 2011-01-24 16:12:37 -08:00
Brian Swetland 1aa59a83b5 libsysutils: do not build for TINY_ANDROID
This depends on frameworks/... :-(

Technically it doesn't belong in system/core at all, but of course there are
things in system/core that depend on it, so for now we'll hack around this.

Change-Id: I6aa437f18e1c09bd10fbd3333cf6998a0b6140c6
2011-01-23 19:13:23 -08:00
Brian Swetland cecec9d027 remove crasher and vfp-crasher from standard builds
These are only for debuggerd testing.

Change-Id: If2d2ff85e8c182d366cc251e9446ae7fdd094e55
2011-01-23 17:51:54 -08:00
Mike Lockwood 163f7057c0 am e12e5f37: am 575a2bbe: sdcard: Remove lower case squashing of file names
* commit 'e12e5f376bc9b4cf6a846e850a20d237fc81d503':
  sdcard: Remove lower case squashing of file names
2011-01-23 17:01:37 -08:00
Mike Lockwood e12e5f376b am 575a2bbe: sdcard: Remove lower case squashing of file names
* commit '575a2bbee30d70a1940077a5b699aaf93cb4e2cd':
  sdcard: Remove lower case squashing of file names
2011-01-23 16:46:03 -08:00
Mike Lockwood 575a2bbee3 sdcard: Remove lower case squashing of file names
sdcard daemon will now create new files and directories using
the actual name passed in by the client.
For existing files, sdcard will do case insensitive matching
when case sensitive lookup fails.

Change-Id: I89f995ea01beb2c63a9b36943dbcfaa16e7cd972
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-23 16:20:28 -08:00
Carl Shapiro 0a16d83969 Remove unconditional swap from the android atomic operations suite.
Bug: 3381237
Change-Id: I7bdc7c8eb4c1cc6303d96e40ca2f196a007c4dd2
2011-01-23 14:09:17 -08:00
Glenn Kasten b81dfcb4f6 Bug 3381298 Remove old /data/drm/plugins/native
Change-Id: Ic299d328f2e04a65a9dce68909c7b83f3ac03b20
2011-01-23 12:37:03 -08:00
Glenn Kasten 328c0d4a89 Merge "Bug 3361124 Remove drmioserver" 2011-01-23 09:45:24 -08:00
Mike Lockwood ec9e7b1c18 libusbhost: Add usb_device_connect_kernel_driver()
This can be used to ask the kernel to disconnect its driver for a device
so usb_device_claim_interface() can claim it instead.

Also increased size of descriptor buffer and added some debugging logs

Change-Id: I4945196d957fb8493716eb9b7e5463c06b168ef1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-22 14:10:04 -08:00
David 'Digit' Turner 0897a4353e am 100511ff: am 88af5ff4: Merge "goldfish: Work-around to start the RIL daemon." into honeycomb
* commit '100511ffaa11b33a6856a434c62ad326a899f252':
  goldfish: Work-around to start the RIL daemon.
2011-01-21 19:04:02 -08:00
David 'Digit' Turner 100511ffaa am 88af5ff4: Merge "goldfish: Work-around to start the RIL daemon." into honeycomb
* commit '88af5ff47dc6eb371c3ee597b5a646fa0e5a8578':
  goldfish: Work-around to start the RIL daemon.
2011-01-21 19:02:22 -08:00
David 'Digit' Turner 88af5ff47d Merge "goldfish: Work-around to start the RIL daemon." into honeycomb 2011-01-21 19:00:41 -08:00
David 'Digit' Turner dc743112ca goldfish: Work-around to start the RIL daemon.
This change forces the start of the RIL daemon used to provide
3G connectivity to the system. It should normally be started
automatically by init.rc but there is a bug within
system/core/init/builtins.c that prevents this to happen.

Fixes the "No network connectivity" bug while the network
interface and route were properly setup.

Change-Id: Ieec0f513aabf92b8a59f0a86f64a16e97057c3c3
2011-01-22 02:24:36 +01:00
David 'Digit' Turner dce50654b9 am 38f81ccf: am fc67acc3: Merge "libsysutils: Fix a file descriptor leak." into honeycomb
* commit '38f81ccf62201863ab3f9468659abb1aee1de7c0':
  libsysutils: Fix a file descriptor leak.
2011-01-21 15:33:24 -08:00
David 'Digit' Turner 38f81ccf62 am fc67acc3: Merge "libsysutils: Fix a file descriptor leak." into honeycomb
* commit 'fc67acc381ca684caffab957c6113d7285d46e3d':
  libsysutils: Fix a file descriptor leak.
2011-01-21 15:03:04 -08:00
David 'Digit' Turner fc67acc381 Merge "libsysutils: Fix a file descriptor leak." into honeycomb 2011-01-21 15:01:04 -08:00
David 'Digit' Turner 69416dadc9 am 54175579: am 02526d48: debuggerd: properly unblock signal handler.
* commit '54175579333b4b95606bbdb7840bcfbea5b854ee':
  debuggerd: properly unblock signal handler.
2011-01-21 10:57:06 -08:00
David 'Digit' Turner b913b5170f libsysutils: Fix a file descriptor leak.
The recent refactoring of the select() loop in SocketListener
missed a close() of the file descriptor when the onDataAvailable()
callback returns false.

Change-Id: I767caefab4b98ab350f2db2497ee2bd630f20850
2011-01-21 19:25:51 +01:00
David 'Digit' Turner 5417557933 am 02526d48: debuggerd: properly unblock signal handler.
* commit '02526d486803de153d03851f4d5f9be7c555e46c':
  debuggerd: properly unblock signal handler.
2011-01-20 21:39:57 -08:00
David 'Digit' Turner 02526d4868 debuggerd: properly unblock signal handler.
This change ensures that debuggered properly releases
the signal handler that invoked it after the PTRACE_ATTACH.

The previous code simply did a close() of the file descriptor,
but for some reason, this didn't always make the read() blocking
the signal handler exit. Instead, the thread would stay blocked
and never fault, preventing the generation of a useful stack
trace.

Change-Id: I6b0579041165a710d74ec1bece113ff7b828aed4
2011-01-21 04:27:12 +01:00