Commit graph

2222 commits

Author SHA1 Message Date
Paul Eastham
1ace223fcb Set default permissions for preloaded /data/media aka /sdcard content.
Change-Id: Ia67cbdbfbcd423cf163f0fce5c6edc215564e782
2011-02-03 17:14:00 -08:00
Robert Greenwalt
c786d4cdc7 Merge "Stop using netmask in the framework" 2011-02-03 14:16:51 -08:00
Mike Lockwood
67afaad585 am d4894f4b: am 034117e4: Merge changes I8df51128,Ie922b3e7,I31f78419,I7e8df44d,I6067857b,Ifd35587c,Ie8d66740
* commit 'd4894f4be608c28ef0f39c7794ba865ac812dff9':
  Fix adb leaking file descriptors to forked processes
  adb: Fix command-line parser.
  adb: Increase device descriptor buffer size in Linux host USB support
  adb: improve debug traces readability.
  adb: Don't report negative number of bytes after pushing file > 2 gigabytes
  Adding Texas Instruments to the VID list.
  Support an additional alias for 'adb shell.'
2011-02-03 12:59:03 -08:00
Mike Lockwood
d4894f4be6 am 034117e4: Merge changes I8df51128,Ie922b3e7,I31f78419,I7e8df44d,I6067857b,Ifd35587c,Ie8d66740
* commit '034117e47f2601d46563461a0bfe3cc22f89a0f0':
  Fix adb leaking file descriptors to forked processes
  adb: Fix command-line parser.
  adb: Increase device descriptor buffer size in Linux host USB support
  adb: improve debug traces readability.
  adb: Don't report negative number of bytes after pushing file > 2 gigabytes
  Adding Texas Instruments to the VID list.
  Support an additional alias for 'adb shell.'
2011-02-03 12:56:57 -08:00
Mike Lockwood
034117e47f Merge changes I8df51128,Ie922b3e7,I31f78419,I7e8df44d,I6067857b,Ifd35587c,Ie8d66740
* changes:
  Fix adb leaking file descriptors to forked processes
  adb: Fix command-line parser.
  adb: Increase device descriptor buffer size in Linux host USB support
  adb: improve debug traces readability.
  adb: Don't report negative number of bytes after pushing file > 2 gigabytes
  Adding Texas Instruments to the VID list.
  Support an additional alias for 'adb shell.'
2011-02-03 12:34:38 -08:00
Benoit Goby
3b4a0c81c4 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-03 15:26:45 -05:00
David 'Digit' Turner
eb5df470e6 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-02-03 15:26:43 -05:00
Mike Lockwood
a5d4694846 adb: Increase device descriptor buffer size in Linux host USB support
256 bytes wasn't big enough for some complicated USB configurations

Change-Id: I31f7841953d73b06958f44040f58166b159faff4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-02-03 15:26:41 -05:00
David 'Digit' Turner
3e42db23fb adb: improve debug traces readability.
This patch makes the traces easier to read. For example transports are
displayed by name/serial instead of their hex address.

Change-Id: I7e8df44ddbec19754d63d989bd56485998b4627b
2011-02-03 15:26:37 -05:00
Mike Lockwood
487009ef5e adb: Don't report negative number of bytes after pushing file > 2 gigabytes
BUG: 3198322

Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-02-03 15:26:35 -05:00
Alex Sakhartchouk
1d3fbed348 Adding Texas Instruments to the VID list.
Change-Id: Ifd35587c93ae7d5c8253f477a92cca2345dc8bb5
2011-02-03 15:26:33 -05:00
Daniel Sandler
9c73d17e87 Support an additional alias for 'adb shell.'
Change-Id: Ie8d667407fef8ee5a6c7ab86b30307fb61869170
2011-02-03 15:26:29 -05:00
David 'Digit' Turner
61bb9cf37d Merge "debuggerd: Fix missing include." 2011-02-03 10:31:12 -08:00
Benoit Goby
ab1ee96c20 Merge "Fix adb leaking file descriptors to forked processes" 2011-02-02 17:08:10 -08:00
Glenn Kasten
b03afaafb5 Merge "Bug 3381298 Remove old /data/drm/plugins/native" 2011-02-02 15:58:08 -08:00
Robert Greenwalt
09dd819d27 Stop using netmask in the framework
This pushes prefixLength down as far as we can.

bug:2542681
Change-Id: I94b7cde9d10e97ee2c071d92f25555cff5934f0b
2011-02-02 14:18:44 -08:00
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