Commit Graph

3616 Commits

Author SHA1 Message Date
Dima Zavin 4736a1bb83 Merge "cutils: str_parms: need to also dup the key when adding to hash" 2012-03-12 13:47:23 -07:00
Dianne Hackborn 5d3aadbeca Forget name for AID_SDCARD_R.
Change-Id: Ib65fdf4211bef77057009e31295e610f8ba64b44
2012-03-12 11:15:38 -07:00
Dima Zavin 7d31e6e533 cutils: str_parms: make test executable build for host instead
Change-Id: I711e03aaf859107c697c6dcb82e0ab83e94570ba
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-12 11:03:38 -07:00
Dima Zavin a603e40f9e cutils: str_parms: test str_parms_add_str too
Change-Id: I93f0e577aff6b8ff23a44e29f9942a26545b6dc8
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-12 11:03:38 -07:00
Dima Zavin 70b93034f3 cutils: str_parms: need to also dup the key when adding to hash
Change-Id: Iabdd2061cbc36c6f4d4eb6e46bd757b5b52e0027
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-12 11:03:38 -07:00
Selim Gurun 6ac770fc52 Do not generate SIGPIPE errors in SocketCLient.
This change is to make sure the users of library does not crash
if they are not handling SIGPIPE properly.

Change-Id: I4ea80d6bfc26a4bca6b901959ae3060b059d46d3
2012-03-12 10:20:42 -07:00
The Android Automerger c2db4ffb87 merge in ics-mr1-release history after reset to ics-mr1 2012-03-10 09:07:32 -08:00
The Android Automerger 4e580885d8 merge in ics-mr1-release history after reset to ics-mr1 2012-03-09 19:24:04 -08:00
Robert Greenwalt 63d84d049a Merge "Fix pointer arith." 2012-03-09 15:12:34 -08:00
Robert Greenwalt 7599bfcf13 Fix pointer arith.
Sending 3digit code, null, binary-length and data.  Current code sends
3digit code, space, null, binary-length, binary-data.

The space should not be sent.

Change-Id: I1df00a3e70805b39b6105966c7f3c613461a6858
2012-03-09 11:55:51 -08:00
The Android Automerger de64d60444 merge in ics-mr1-release history after reset to ics-mr1 2012-03-08 20:46:16 -08:00
Dianne Hackborn 6ff1bee167 Merge "Add AID_SDCARD_R." 2012-03-08 18:31:20 -08:00
Andy McFadden fcb4553dbb Merge "Reduce suicidal tendencies" 2012-03-08 17:11:38 -08:00
Eric Laurent b015977acb Merge "audio policy: added flag for primary output" 2012-03-08 15:45:23 -08:00
Andy McFadden 424e07fcf6 Reduce suicidal tendencies
Some changes to debuggerd:

(1) Send a SIGSTOP to the target process before doing any of the
PTRACE_ATTACH work.  This causes the threads that weren't hit by
the signal to stop moving, which seems to get rid of the "ptrace
detach failed: No such process" problems that result in missed
stack traces and debuggerd self-immolation.

(2) SIGPIPE was in the list of "interesting" signals caught by
debugger_signal_handler(), but debuggerd didn't recognize it, and
you'd get "unexpected signal 13" complaints.  It's now in the list.

(3) Fixed a bit-rotted XLOG.

Change-Id: I33297ea6b09ce450671c07dc25846f684afbf480
2012-03-08 15:42:30 -08:00
Chia-chi Yeh d890925e24 am 0fc8abe1: am e2e8bd93: am 5ebced39: init.rc: update the permission of /data/local.
* commit '0fc8abe1f661e341ea3c7112d5311f72482e2c16':
2012-03-08 14:33:20 -08:00
Chia-chi Yeh 89c5926f08 am 0b32a75b: am c8d1a0e1: am 5ebced39: init.rc: update the permission of /data/local.
* commit '0b32a75b7c7f25bd9ab325f44626c402fd9b9b23':
  init.rc: update the permission of /data/local.
2012-03-08 14:31:23 -08:00
Dianne Hackborn 50458cf76e Add AID_SDCARD_R.
Change-Id: I47f650e415e06c0b69790ffefea7f208c910ebd7
2012-03-08 14:30:32 -08:00
Chia-chi Yeh 0fc8abe1f6 am e2e8bd93: am 5ebced39: init.rc: update the permission of /data/local.
* commit 'e2e8bd93becae10f1cc40bb28a581cb4a36d0154':
2012-03-08 14:30:22 -08:00
Chia-chi Yeh 0b32a75b7c am c8d1a0e1: am 5ebced39: init.rc: update the permission of /data/local.
* commit 'c8d1a0e18e008009fe75aa2cc7d3deace0479fce':
  init.rc: update the permission of /data/local.
2012-03-08 14:29:14 -08:00
Chia-chi Yeh c8d1a0e18e am 5ebced39: init.rc: update the permission of /data/local.
* commit '5ebced39093d1223566166b8cc6abfe6729c487d':
  init.rc: update the permission of /data/local.
2012-03-08 14:27:08 -08:00
Chia-chi Yeh 5383476727 am 5ebced39: init.rc: update the permission of /data/local.
* commit '5ebced39093d1223566166b8cc6abfe6729c487d':
  init.rc: update the permission of /data/local.
2012-03-08 14:26:47 -08:00
Chia-chi Yeh e2e8bd93be am 5ebced39: init.rc: update the permission of /data/local.
* commit '5ebced39093d1223566166b8cc6abfe6729c487d':
  init.rc: update the permission of /data/local.
2012-03-08 14:26:42 -08:00
Eric Laurent 11fd2beea0 audio policy: added flag for primary output
Added a flag for output stream attributes indicating a primary
audio output stream.
The primary audio output stream is unique on a platform and receives all volume,
routing and parameters related to telephony use case.

Change-Id: Ic50b3c02cc60805031f26b819da6cf9ad65ad11c
2012-03-08 13:18:20 -08:00
Selim Gurun 7bf4c45f84 Add a utility function to send a code + binary msg
Add a utility function to SocketClient to send a c-string code
prepended to a binary message. This is necessary to be able to
send a binary message while keeping compatible with underlying
text-based protocol.

Change-Id: Ifc6562003a687577d7deb50260533a5147ae4f97
2012-03-07 16:19:52 -08:00
Chia-chi Yeh 5ebced3909 init.rc: update the permission of /data/local.
Bug: 6131945
Change-Id: I3094a471dcfb02b786f47b6778c8fed3726325ec
2012-03-07 15:13:39 -08:00
Robert Greenwalt 78f6bcf853 Merge "New NativeDaemonConnector protocol adds a seqnum." 2012-03-06 11:30:13 -08:00
Mathias Agopian 397cf19864 remove obsolete code
Change-Id: I65692beb620c35b0d0679939405183626a82bd8c
2012-03-05 17:08:19 -08:00
Mathias Agopian b7286aa02e remove dependency on utils/List.h
Change-Id: I9a1e996be645520d1d5a056337303a6e5ed646e9
2012-03-05 17:08:19 -08:00
Jean-Michel Trivi f1b244c3fa Merge "Add function to derive a channel mask from a channel count" 2012-03-05 14:51:42 -08:00
Jean-Michel Trivi 4ab051ab46 Add function to derive a channel mask from a channel count
Change-Id: I22523ded9cd8e5283a285a9db21d819bbbc1b6c3
2012-03-05 13:59:09 -08:00
Jeff Brown ab556e27a1 Merge "Use #define value of 1 to indicate presence of headers." 2012-03-05 13:39:29 -08:00
Robert Greenwalt 8702bb17f4 New NativeDaemonConnector protocol adds a seqnum.
Allows for one socket to be multiplexed for multiple requests.
Doesn't use command sequence numbers for broadcasts - would make no sense.
Doesn't alter current default behavior so OEM's using these classes
won't notice a difference.
bug:5864209

Change-Id: Ie3b19c4f81eea868569229a365c8cb7de249c2dd
2012-03-05 11:44:43 -08:00
Jeff Brown 3817a79ded Use #define value of 1 to indicate presence of headers.
strace tests the value of HAVE_TERMIO_H and HAVE_SYS_UIO_H using

Change-Id: If899845503547410cf17d005733d1c0c6741e939
2012-03-02 17:33:52 -08:00
Jeff Sharkey 0afee8b668 Merge "Change "chown" to coreutils syntax." 2012-03-02 16:10:50 -08:00
Jeff Sharkey 474cea824f Change "chown" to coreutils syntax.
Change-Id: I7d997b3254354908317feee54b6df9b2419718a6
2012-03-02 15:11:53 -08:00
Andrew Hsieh 99e7f7af84 Added rules to build 64-bit libraries: lib64cutils.a and lib64log.a
Both libraries are needed to build four shared libraries in 64-bit
for 64-bit emulator with "-gpu on"
  lib64OpenglRender.so
  lib64EGL_translator.so
  lib64GLES_CM_translator.so
  lib64GLES_V2_translator.so

Change-Id: If57f72d4661a74f1d5e537568881f39132e0b43d
2012-03-01 23:58:50 -08:00
Colin Cross 9c38e14299 am 1a2f32c4: am d39f9d93: am 9cec99ba: Merge "Fix typo in queue_property_triggers ident"
* commit '1a2f32c4828380ca8590cf664725650ef35f1e37':
  Fix typo in queue_property_triggers ident
2012-03-01 23:57:11 -08:00
Colin Cross 1a2f32c482 am d39f9d93: am 9cec99ba: Merge "Fix typo in queue_property_triggers ident"
* commit 'd39f9d93788ed08f8e90d04bdac798e3f3595889':
  Fix typo in queue_property_triggers ident
2012-03-01 22:55:17 -08:00
Colin Cross d39f9d9378 am 9cec99ba: Merge "Fix typo in queue_property_triggers ident"
* commit '9cec99ba9c64d26e2fa34f310cba13ff119b4c55':
  Fix typo in queue_property_triggers ident
2012-03-01 22:48:45 -08:00
Colin Cross 9cec99ba9c Merge "Fix typo in queue_property_triggers ident" 2012-03-01 16:31:08 -08:00
Chris Dearman 469b7b2da8 Fix typo in queue_property_triggers ident
Signed-off-by: Chris Dearman <chris@mips.com>
Change-Id: I5f18ccb0912b9bb89c9f5104f9505c610c109af8
2012-03-01 15:29:20 -08:00
Eric Laurent cef6db21fd Merge "renamed audio policy output flag." 2012-03-01 10:17:15 -08:00
Eric Laurent 2e9d845850 renamed audio policy output flag.
Renamed AUDIO_POLICY_OUTPUT_FLAG_INDIRECT to AUDIO_POLICY_OUTPUT_FLAG_NONE
which is more appropriate.

Change-Id: Ie898ddc2279db55a65ece96e09232163c2e78024
2012-03-01 09:43:07 -08:00
Andrew Hsieh 977fc4e915 Merge "Fixed two 64-bit porting issues; Make pid/tid type consistent" 2012-02-29 17:46:26 -08:00
Andrew Hsieh d2c8f52189 Fixed two 64-bit porting issues; Make pid/tid type consistent
1. In printf, use "%zu" for variable of type size_t
2. Print tid in %5d
3. Make type of pid/tid in AndroidLogEntry and logger_entry consistent

Change-Id: I3e3d9536ee58823f349a4734ae093d30eabe1bfe
2012-02-29 17:00:46 -08:00
Jean-Baptiste Queru ca3bf25570 am 25443f80: am 1e28088f: am 5cc398ef: Merge "Toolbox implementation of chown has a bad print"
* commit '25443f80a27c6153c3406b4443fd07442e410a57':
  Toolbox implementation of chown has a bad print
2012-02-28 15:19:17 -08:00
Jean-Baptiste Queru cd21d2144f am 72249325: am 428a6e3f: am 13438a93: Merge "logwrapper: reduce verbosity and fix usage"
* commit '72249325df812575d13d44016482a4ac0e7fbe84':
  logwrapper: reduce verbosity and fix usage
2012-02-28 15:19:15 -08:00
Jean-Baptiste Queru 25443f80a2 am 1e28088f: am 5cc398ef: Merge "Toolbox implementation of chown has a bad print"
* commit '1e28088f42f9d04e4ab3abf080f956774b1e78d5':
  Toolbox implementation of chown has a bad print
2012-02-28 15:16:22 -08:00
Jean-Baptiste Queru 72249325df am 428a6e3f: am 13438a93: Merge "logwrapper: reduce verbosity and fix usage"
* commit '428a6e3f562b043f74390806c49686d1f16fe99e':
  logwrapper: reduce verbosity and fix usage
2012-02-28 15:16:21 -08:00