Commit graph

2275 commits

Author SHA1 Message Date
TK MUN
9d15787034 Add per interface dhcp client support
Added when using dhcp on both wimax and wifi. But should be useful across multiple
services running dhcp now. Also adds a renewal api

Change-Id: Ic850a612dd429cd675b5b0224ff58895f9d8e4d9
Signed-off-by: TK MUN <tk.mun@samsung.com>
2011-03-23 16:24:13 -07:00
TK MUN
e31f2cdde6 am 5c8cc803: (-s ours) am 4ae741bb: (-s ours) am 7238072a: DO NOT MERGE Change IP renew service name
* commit '5c8cc8036cd2565ccf541f87b192a7c7a74f42e4':
  DO NOT MERGE Change IP renew service name
2011-03-23 14:10:42 -07:00
TK MUN
5c8cc8036c am 4ae741bb: (-s ours) am 7238072a: DO NOT MERGE Change IP renew service name
* commit '4ae741bb34b9fe397986663e108a5091ea9ee29e':
  DO NOT MERGE Change IP renew service name
2011-03-23 14:06:23 -07:00
TK MUN
4ae741bb34 am 7238072a: DO NOT MERGE Change IP renew service name
* commit '7238072a7da527147c21cc939160d975eb28b1ac':
  DO NOT MERGE Change IP renew service name
2011-03-21 18:20:56 -07:00
TK MUN
7238072a7d DO NOT MERGE Change IP renew service name
- Change invalid service name (dhcpcd_renew -> iprenew)
- Remove condition which checks status of renew service.
- Remove unused variable.

Change-Id: Ic4ae7fb950baf4bd7286088a945a48ab5fe64e91
2011-03-21 18:10:21 -07:00
Brad Fitzpatrick
4be4e69f01 Fix potential race introduced in Icd7f5f03
Digit wrote:

"You probably don't want to close the socket here without updating
c->socket as well. Otherwise, another thread holding a handle to the
client after the c->decRef() could end up sending a message to a
different socket, if the file descriptor index is reused by another
client in the meantime."

Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
2011-03-17 17:14:46 -07:00
Brian Carlstrom
51101e86dc Merge "Revert "Debuggerd now outputs the offset of libc.so on the device as a separate item."" 2011-03-17 16:51:47 -07:00
Brad Fitzpatrick
3eb0897df7 Merge "SocketClient: add optional reference counting" 2011-03-17 16:50:58 -07:00
Brian Carlstrom
e2f7123032 Revert "Debuggerd now outputs the offset of libc.so on the device as a separate item."
This reverts commit c031a3b006.

Conflicts:

	debuggerd/debuggerd.c

Change-Id: Ib37ae793bbffdb4a81837bc51171cc62b12abe7d
2011-03-17 16:38:15 -07:00
Jeffrey Tinker
9b53946d91 am cdfde07e: am f642c3d1: Make drmserver\'s primary group be system, so setgid is not required in ueventd.stingray.rc
* commit 'cdfde07eb7bd02bf8b3f6c46784309d33ff1df1e':
  Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc
2011-03-17 16:04:42 -07:00
Jeffrey Tinker
cdfde07eb7 am f642c3d1: Make drmserver\'s primary group be system, so setgid is not required in ueventd.stingray.rc
* commit 'f642c3d12f4cffdc349b9ebfc4107de254ad8db9':
  Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc
2011-03-17 16:00:25 -07:00
Brad Fitzpatrick
648ebad883 SocketClient: add optional reference counting
Needed to fix a race in netd.

Bug: 3438459
Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
2011-03-17 15:50:02 -07:00
Jeffrey Tinker
f642c3d12f Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc
Change-Id: Ie8a287620d22b5c1bdc459fb288b7403589ab474
2011-03-17 10:55:05 -07:00
Mike Lockwood
9a7522735d Merge "Fix uninitialized variable bug in sdcard emulator - Following members were not initialized in fuse_init(). fuse->root.actual_name fuse->root.gen - Initialize fuse->root with memset()." 2011-03-16 18:01:14 -07:00
Mike Lockwood
b51326351a Merge "In serial, skip over port as well if numbers found after colon." 2011-03-16 09:59:03 -07:00
Terence Haddock
28e1390e68 In serial, skip over port as well if numbers found after colon.
Change-Id: Icd45f570a9527790eb0cd614a3f77da1a72375b1
2011-03-16 09:43:56 +01:00
satok
d4e57a8a40 am f0a670eb: (-s ours) do not merge. Fix a race in system properties.
* commit 'f0a670eb12a0e5854dfd2a9284973d0711392653':
  do not merge. Fix a race in system properties.
2011-03-15 23:26:26 -07:00
satok
f0a670eb12 do not merge. Fix a race in system properties.
Backport Iee1ca9b7defd6

This now passes:

$ adb shell am instrument -w -e class android.os.SystemPropertiesTest \
  com.android.frameworks.coretests.systemproperties/android.test.InstrumentationTestRunner

  (which tests setting and re-reading back system properties in a loop)

  This patch depends on I110b653a which moves property setting
  from libcutils into bionic.

  Bug: 3511230

Change-Id: I145e642bd13079677017bb64e361e176fc73b810
2011-03-15 23:15:02 -07:00
Terry Heo (Woncheol)
8349cce829 Fix uninitialized variable bug in sdcard emulator
- Following members were not initialized in fuse_init().
  fuse->root.actual_name
  fuse->root.gen
- Initialize fuse->root with memset().

Change-Id: I4bce754ace608b526961f59049b2d780fd99756f
2011-03-16 13:10:08 +09:00
satok
d6851475e0 am 49ad2447: (-s ours) am c1b97e05: (-s ours) do not merge. Fix a race in system properties.
* commit '49ad2447286b7b3af73f52d6f000f1452c7ece0a':
  do not merge. Fix a race in system properties.
2011-03-14 22:51:18 -07:00
satok
49ad244728 am c1b97e05: (-s ours) do not merge. Fix a race in system properties.
* commit 'c1b97e05b0aee92b249a93e53b3f8151fcb74287':
  do not merge. Fix a race in system properties.
2011-03-14 22:47:05 -07:00
satok
c1b97e05b0 do not merge. Fix a race in system properties.
Backport Iee1ca9b7defd6

This now passes:

$ adb shell am instrument -w -e class android.os.SystemPropertiesTest \
  com.android.frameworks.coretests.systemproperties/android.test.InstrumentationTestRunner

  (which tests setting and re-reading back system properties in a loop)

  This patch depends on I110b653a which moves property setting
  from libcutils into bionic.

  Bug: 3511230

Change-Id: I145e642bd13079677017bb64e361e176fc73b810
2011-03-15 11:04:58 +09:00
Glenn Kasten
efd1fc2fa6 am 187fb7e6: am cfce2826: Bug 4089635 mediaserver fewer supplementary groups
* commit '187fb7e6cab0701b9c4fec0b6074c15b3ef5703f':
  Bug 4089635 mediaserver fewer supplementary groups
2011-03-14 17:55:38 -07:00
Glenn Kasten
187fb7e6ca am cfce2826: Bug 4089635 mediaserver fewer supplementary groups
* commit 'cfce2826780dc1c4811619b89ba8d358e3f30f11':
  Bug 4089635 mediaserver fewer supplementary groups
2011-03-14 17:50:46 -07:00
Brad Fitzpatrick
7cf20f925d Merge "Fix a race in system properties." 2011-03-14 17:09:36 -07:00
Dima Zavin
29d1f53a56 Merge "cutils: add popcount/popcountl/popcountll static inline definitions" 2011-03-14 14:14:49 -07:00
Glenn Kasten
cfce282678 Bug 4089635 mediaserver fewer supplementary groups
Change-Id: I90111567564397ca08e87dcfcbdf23337bf79ae6
2011-03-14 11:43:45 -07:00
Glenn Kasten
a0768663c5 am 34f62a36: am fcad9d8d: Merge "Bug 4086255 drmserver process needs system group" into honeycomb-mr1
* commit '34f62a36a32919e6ba6ec5bb5210c3000bbec473':
  Bug 4086255 drmserver process needs system group
2011-03-14 08:18:18 -07:00
Glenn Kasten
34f62a36a3 am fcad9d8d: Merge "Bug 4086255 drmserver process needs system group" into honeycomb-mr1
* commit 'fcad9d8d6bd3cd1e750f4d965968878be44a65d8':
  Bug 4086255 drmserver process needs system group
2011-03-14 08:14:46 -07:00
Glenn Kasten
fcad9d8d6b Merge "Bug 4086255 drmserver process needs system group" into honeycomb-mr1 2011-03-14 08:10:17 -07:00
Mike Lockwood
4297a049e6 am 3e5223a9: am c4c00d8e: libusbhost: Limit bulk transfer requests to 16384 bytes
* commit '3e5223a925bef52eb24ff449d235dccbb8207954':
  libusbhost: Limit bulk transfer requests to 16384 bytes
2011-03-14 07:02:56 -07:00
Mike Lockwood
3e5223a925 am c4c00d8e: libusbhost: Limit bulk transfer requests to 16384 bytes
* commit 'c4c00d8e6a215020be87f6702844267e105e1f0e':
  libusbhost: Limit bulk transfer requests to 16384 bytes
2011-03-14 06:55:19 -07:00
Mike Lockwood
c4c00d8e6a libusbhost: Limit bulk transfer requests to 16384 bytes
Otherwise the kernel will return an EINVAL error

Change-Id: I906472a4128eb26c5be7865142bc4a52464cf5f8
Bug: 4065217

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-12 14:06:49 -05:00
Glenn Kasten
b7b770dd76 Bug 4086255 drmserver process needs system group
Change-Id: If9a325b9e716abe00f3ad6f20b012861308abd2d
2011-03-11 14:33:11 -08:00
Ken Sumrall
a2519531e1 am bdf7b815: am 5db0897c: Merge "Load the persistent properties after decrypting the /data partition" into honeycomb-mr1
* commit 'bdf7b815063b5abb633a73450feb50d2edc67377':
  Load the persistent properties after decrypting the /data partition
2011-03-10 19:37:39 -08:00
Ken Sumrall
bdf7b81506 am 5db0897c: Merge "Load the persistent properties after decrypting the /data partition" into honeycomb-mr1
* commit '5db0897c6530502e1343a75b258868122030e4a5':
  Load the persistent properties after decrypting the /data partition
2011-03-10 19:35:30 -08:00
Ken Sumrall
5db0897c65 Merge "Load the persistent properties after decrypting the /data partition" into honeycomb-mr1 2011-03-10 19:32:27 -08:00
Ken Sumrall
bb889dde13 am 276df093: am 70987108: Merge "Try to unmount writable filesystems when rebooting" into honeycomb-mr1
* commit '276df0936dbf438b32ab099b04f69f01d7f1eed7':
  Try to unmount writable filesystems when rebooting
2011-03-10 19:29:39 -08:00
Ken Sumrall
276df0936d am 70987108: Merge "Try to unmount writable filesystems when rebooting" into honeycomb-mr1
* commit '7098710805bbf771d7b76c798951f4648539dadb':
  Try to unmount writable filesystems when rebooting
2011-03-10 19:26:56 -08:00
Ken Sumrall
7098710805 Merge "Try to unmount writable filesystems when rebooting" into honeycomb-mr1 2011-03-10 19:24:08 -08:00
Ken Sumrall
c5c51033c8 Load the persistent properties after decrypting the /data partition
Fix for bug 3415286.  The persistent properties are normally read early
in the boot process after /data is mounted.  However, for an encrypted
system, at that point /data is a tmpfs ramdisk.  This change adds a new
command to init (load_persist_props) to read the persistent properties,
and adds an action to init.rc to load the persistent properties.  This
action is triggered by setting a property in vold, but that's in a
different CL.

Change-Id: I74b3057974ee6029c29d956b76fef5566700d471
2011-03-10 18:12:19 -08:00
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
Mathias Agopian
dfa9f55700 am e7ee3b1d: (-s ours) am a40481b2: Run surfaceflinger in its own process. [DO NOT MERGE]
* commit 'e7ee3b1d9078c227378a06d88d848b6066bfec3f':
  Run surfaceflinger in its own process. [DO NOT MERGE]
2011-03-10 18:02:25 -08:00
Mathias Agopian
e7ee3b1d90 am a40481b2: Run surfaceflinger in its own process. [DO NOT MERGE]
* commit 'a40481b2cc604b8b278d509f120cf496c4c318f2':
  Run surfaceflinger in its own process. [DO NOT MERGE]
2011-03-10 18:01:00 -08:00
Mathias Agopian
a40481b2cc Run surfaceflinger in its own process. [DO NOT MERGE]
This is to allow OpenGL ES rendering from the system process,
and help with debugging.

Bug: 4086003
Change-Id: I732e95f4fcaa358f430cc195d8e63a69263bffdc
2011-03-10 17:30:08 -08:00
Brad Fitzpatrick
eb1f0c6fd1 Fix a race in system properties.
This now passes:

$ adb shell am instrument -w -e class android.os.SystemPropertiesTest \
  com.android.frameworks.coretests.systemproperties/android.test.InstrumentationTestRunner

(which tests setting and re-reading back system properties in a loop)

This patch depends on I110b653a which moves property setting
from libcutils into bionic.

Bug: 3511230
Change-Id: Iee1ca9b7defd6060510a01f40fbe63ba4c96eb8d
2011-03-10 16:00:48 -08:00
Dima Zavin
5a809b90e9 cutils: add popcount/popcountl/popcountll static inline definitions
Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.

Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
2011-03-10 15:09:16 -08:00
TK MUN
91826623ee am 5ef46801: am 9badcf70: (-s ours) am 5b63884e: wimax : Fix for multiple dhcpcd service.
* commit '5ef4680140aa3eee148c86ef764b6f9d270c4997':
  wimax : Fix for multiple dhcpcd service.
2011-03-09 21:32:30 -08:00
TK MUN
5ef4680140 am 9badcf70: (-s ours) am 5b63884e: wimax : Fix for multiple dhcpcd service.
* commit '9badcf70addfbf28ee99da358f23dcbb8248812b':
  wimax : Fix for multiple dhcpcd service.
2011-03-09 21:29:53 -08:00
TK MUN
9badcf70ad am 5b63884e: wimax : Fix for multiple dhcpcd service.
* commit '5b63884e4ebf356fd6812f1253456e8447d3e3de':
  wimax : Fix for multiple dhcpcd service.
2011-03-09 19:47:47 -08:00