Commit Graph

2346 Commits

Author SHA1 Message Date
Brian Swetland 8d48c8e457 defer firmware load until after filesystems are mounted
In some situations a driver could try to request firmware before
/system is mounted.  Previously we'd fail the request.  Now we
will retry the read-from-filesystem every 100ms until we find the
firmware or we've finished the "fs" and "post-fs" stages of init.

Change-Id: Ie32402f7d41c818bf20f3297286ed5f99705b72c
2011-03-25 13:01:35 -07:00
Ken Sumrall ca1030ae42 am b26662c0: am c3e69903: am 97919656: Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
* commit 'b26662c0a2876767b2c06cb740f07b1010f91548':
  Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
2011-03-24 22:36:56 -07:00
Ken Sumrall b26662c0a2 am c3e69903: am 97919656: Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
* commit 'c3e69903ed5f9e406fe51093fc41917512aa4036':
  Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
2011-03-24 22:35:37 -07:00
Ken Sumrall c3e69903ed am 97919656: Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
* commit '97919656803126c6b28ea6070fc86d124ac4ef4b':
  Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
2011-03-24 22:33:18 -07:00
Jeff Hamilton be61f39a6b am a6a36c0b: Update the value for the NFC shared UID.
* commit 'a6a36c0b799b84d06b695027d205f21d13a3275b':
  Update the value for the NFC shared UID.
2011-03-24 20:23:35 -07:00
Jeff Hamilton a6a36c0b79 Update the value for the NFC shared UID.
Change-Id: I47edf39dbdf2ebd41f44ca69aac250d8991dec4c
2011-03-24 21:40:43 -05:00
Ken Sumrall 9791965680 Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
Add support for the utime(2) family of system calls to change the modify
and access time of files.  Requires an updated bionic with support for
the utimensat(2) system call.

Change-Id: I8cc0c0e6671c5708849752f47e4c3d4be2858b61
2011-03-24 18:29:41 -07:00
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
Brad Fitzpatrick cb1e616e3c am 7c556549: Merge changes Icdefb5ff,Icd7f5f03
* commit '7c556549079dbcc3f6f7ef4376978cd8c598aa62':
  Fix potential race introduced in Icd7f5f03
  SocketClient: add optional reference counting
2011-03-23 12:04:31 -07:00
Brad Fitzpatrick a14da5b1e5 am 499b45a3: Merge "libsysutils: Fix a file descriptor leak."
* commit '499b45a3597bc2434bcc0974660470192ab4ff06':
  libsysutils: Fix a file descriptor leak.
2011-03-23 12:04:30 -07:00
Brad Fitzpatrick fdb915d256 am 4593e0a7: Merge "libsysutils: Fix race condition in SocketListener thread."
* commit '4593e0a7645ba5d848c0bf19d30f57b52fd305b1':
  libsysutils: Fix race condition in SocketListener thread.
2011-03-23 12:04:28 -07:00
Brad Fitzpatrick df42469121 am 0e59123a: Merge "libsysutils: Handle EINTR in SocketClient::sendData()"
* commit '0e59123adad22e1dac03e972ea37361056bb382c':
  libsysutils: Handle EINTR in SocketClient::sendData()
2011-03-23 12:04:25 -07:00
Brad Fitzpatrick 7c55654907 Merge changes Icdefb5ff,Icd7f5f03
* changes:
  Fix potential race introduced in Icd7f5f03
  SocketClient: add optional reference counting
2011-03-23 11:57:49 -07:00
Brad Fitzpatrick 499b45a359 Merge "libsysutils: Fix a file descriptor leak." 2011-03-23 11:57:30 -07:00
Brad Fitzpatrick 4593e0a764 Merge "libsysutils: Fix race condition in SocketListener thread." 2011-03-23 11:56:52 -07:00
Brad Fitzpatrick 0e59123ada Merge "libsysutils: Handle EINTR in SocketClient::sendData()" 2011-03-23 11:56:50 -07:00
Brad Fitzpatrick 3549b0dc28 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-22 14:03:11 -07:00
Brad Fitzpatrick 13aa8ad445 SocketClient: add optional reference counting
Needed to fix a race in netd.

Bug: 3438459
Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
2011-03-22 14:03:08 -07:00
David 'Digit' Turner 15d09854a8 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-03-22 14:03:04 -07:00
David 'Digit' Turner 100c0e2dab libsysutils: Fix race condition in SocketListener thread.
+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
2011-03-22 14:02:51 -07:00
David 'Digit' Turner 01feae2d7c libsysutils: Handle EINTR in SocketClient::sendData()
+ Improve allocation code in sendMsg(code,msg,addErrno)

Change-Id: Ib5fe84bec1a167c369e7ba759acea395e832f6b5
2011-03-22 14:02:18 -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
Lorenzo Colitti 6cf73eadc7 Kill IPv6 sockets as well as IPv4 sockets.
Change-Id: Ib9e070e510d1a762295faf4dc673c9a6e8207a8d
2011-03-17 11:20:25 -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