Commit Graph

9694 Commits

Author SHA1 Message Date
Sasha Levitskiy 140b13546a Getevent: make sure the monotonic timestamp is displayed; warning cleanup.
Change-Id: I6c500ab55470155ddf692fe5f655bdd575f195f5
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-06-11 11:10:28 -07:00
Glenn Kasten 38e5f07c0f toolbox: Add nohup command
Change-Id: I2f7d9934b54d98886d7a6205ea122d9ce91066ec
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-06-11 11:10:28 -07:00
Jeff Sharkey 296ac287a1 Merge "Partially revert argument escaping." 2014-06-10 22:18:15 +00:00
Kenny Root 7dfdb3c436 resolved conflicts for merge of 41b797de to master
Change-Id: Id433da0bde006a6661431ee58a627497f07c7cdf
2014-06-11 11:02:13 -07:00
Brian Carlstrom 45bda7696e am 6d7649b6: Merge "Add missing headers" into lmp-preview-dev
* commit '6d7649b6fa6594eb57d30d3f15f56d969fc9ab41':
  Add missing headers
2014-06-11 17:02:39 +00:00
Brian Carlstrom acda4829df am 8c170ef7: Merge "Remove libstdc++ dependency from host libbacktrace" into lmp-preview-dev
* commit '8c170ef764b2703669e163842d22ba42b042ebb2':
  Remove libstdc++ dependency from host libbacktrace
2014-06-11 17:02:38 +00:00
Jeff Sharkey 7c460351f5 Partially revert argument escaping.
Commands chained with && need to be passed through literally instead
of always being quoted.

Bug: 15479704
Change-Id: I2998e40a92a3bfd092098cd526403b469c86c9a6
2014-06-11 08:40:58 -07:00
Cylen Yao 3b13803850 am 72299bf0: [Bug]NE when playing mp3 with incorrect UTF16 char
* commit '72299bf0d240072174f847d13f1c9498b3ef9fa6':
  [Bug]NE when playing mp3 with incorrect UTF16 char
2014-06-11 12:41:36 +00:00
Riley Andrews 9e55879f43 Add gtest conformance tests for libsync. Not complete yet, but substantially more comprehensive than the interactive test that was there before.
Change-Id: I9019b0a8babbc91f78aa850e0e288bbf05f93500
2014-06-10 23:33:18 +00:00
Brian Carlstrom 6d7649b6fa Merge "Add missing headers" into lmp-preview-dev 2014-06-10 22:06:31 +00:00
Brian Carlstrom 8c170ef764 Merge "Remove libstdc++ dependency from host libbacktrace" into lmp-preview-dev 2014-06-10 22:06:31 +00:00
Nick Kralevich 875dc8f3f3 Merge "Create /data/dalvik-cache/profiles" 2014-06-10 21:55:12 +00:00
Nick Kralevich 347ee511e4 Create /data/dalvik-cache/profiles
Make sure /data/dalvik-cache/profiles gets the correct
permissions and SELinux context, and ownership is properly
assigned to the system UID.

Change-Id: Ic1b44009faa30d704855e97631006c4b990a4ad3
2014-06-11 18:32:57 -07:00
Nick Kralevich 0487e50acc am 24fc60c7: am 304d31f0: Merge "Make su 04750"
* commit '24fc60c7a686afb06a8a4a6246ede277ef300e50':
  Make su 04750
2014-06-10 20:26:31 +00:00
Nick Kralevich 24fc60c7a6 am 304d31f0: Merge "Make su 04750"
* commit '304d31f05ee76a834209ad837ce78255cf70ae5f':
  Make su 04750
2014-06-10 20:23:23 +00:00
Nick Kralevich 304d31f05e Merge "Make su 04750" 2014-06-10 20:20:08 +00:00
Jeff Sharkey fd546e8c35 Uniformly escape shell arguments.
Arguments with embedded spaces need to be wrapped in quotes, which
changes the overall escaping strategy.  Instead of mixing the two
strategies, just always wrap arguments in quotes.

Bug: 15479704
Change-Id: I03eacfa1bd6c220d4ec6617b825ebb0c43c7221e
2014-06-10 12:28:32 -07:00
Cylen Yao 72299bf0d2 [Bug]NE when playing mp3 with incorrect UTF16 char
Bug: 15274351
Bug: 15539240

Many MP3 files have incorrect utf16 chars, but the
Utf16_to_utf8_length() routine checks for errors in
standard utf16 char.  utf16_to_utf8() was not checking
for errors in standard utf16 char.

Change-Id: Iafd922ff92cabe6bba8971215fcfd1fd471c894b
(cherry picked from commit 605b139cdf56364c6c9b37e59dd12efc61c24631)
2014-06-10 19:14:59 +00:00
Jeff Brown 3e13d4dd2a am c24b98c7: (-s ours) Add a couple of useful string functions. (DO NOT MERGE)
* commit 'c24b98c7d8d9380f885bb6ea4055a34082353879':
  Add a couple of useful string functions. (DO NOT MERGE)
2014-06-10 11:18:21 +00:00
Narayan Kamath ce9313faed am 07cf9445: am 0319f528: Merge "Replace hand written offsets with structures."
* commit '07cf9445a4afebf82cc1b9a0e44bc9aced51e0a0':
  Replace hand written offsets with structures.
2014-06-10 09:58:27 +00:00
Narayan Kamath 07cf9445a4 am 0319f528: Merge "Replace hand written offsets with structures."
* commit '0319f528b2d94df89cb489905f7e1c65af511d75':
  Replace hand written offsets with structures.
2014-06-10 09:40:44 +00:00
Narayan Kamath 0319f528b2 Merge "Replace hand written offsets with structures." 2014-06-10 09:38:00 +00:00
Narayan Kamath 926973ec14 Replace hand written offsets with structures.
Given that all current & future android ABIs are
little endian, we can get rid of the explicit conversions
from memory regions to little endian data members.

Also cleans up a few C style casts that snuck in during
several -Werror efforts and fixes temporary file generation
on target.

bug: 15448202

Change-Id: I4fcbb3c1124cb82c82139d328344e54fc7895353
2014-06-10 10:36:34 +01:00
Elliott Hughes 41b797de46 am c720a12a: am e2d5a3b4: Merge "Switch md5 over to openssl rather than libc."
* commit 'c720a12a6ae1901c5a1537372897fc763e7a44a9':
  Switch md5 over to openssl rather than libc.
2014-06-09 23:18:40 +00:00
Elliott Hughes c720a12a6a am e2d5a3b4: Merge "Switch md5 over to openssl rather than libc."
* commit 'e2d5a3b4b1e614252dac39218147d2027218d4bf':
  Switch md5 over to openssl rather than libc.
2014-06-09 23:14:51 +00:00
Elliott Hughes e2d5a3b4b1 Merge "Switch md5 over to openssl rather than libc." 2014-06-09 23:11:43 +00:00
Elliott Hughes 7fc47129cf Switch md5 over to openssl rather than libc.
It doesn't make any sense for the C library to contain private stuff
that's only used by toolbox. Rather than move that stuff out of bionic
and into here, let's just use the same MD5 implementation the rest of
the system's using.

Change-Id: Ia1c73164124094b532af3453b90c4bd1ebfdaa24
2014-06-09 16:10:42 -07:00
Dan Albert 203c561416 Add missing headers
These headers are needed for pid_t and free when using libc++ headers (POSIX
does not require that the symbols be exposed with the previous includes).

(cherry picked from commit ac2fe7eb81)

Change-Id: I3b3635c8f446f1ca0c20a23d63d77587c2dffc16
2014-06-09 15:34:05 -07:00
Dan Albert b495400451 Remove libstdc++ dependency from host libbacktrace
The libc++ version of libbacktrace on the host was still linking against
libstdc++, and this was causing problems in art.

(cherry picked from commit a3a8f6d2ab)

Change-Id: Id511dd9cca05c3aa0de2ad13682675ea4ac6424d
2014-06-09 15:05:02 -07:00
Jeff Brown c24b98c7d8 Add a couple of useful string functions. (DO NOT MERGE)
Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad
(cherry picked from commit 5ee915afe1)
2014-06-09 21:30:16 +00:00
Jeff Brown cbe8464ddd Merge "Add a couple of useful string functions." 2014-06-09 21:04:59 +00:00
Jeff Brown 5ee915afe1 Add a couple of useful string functions.
Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad
2014-06-09 14:02:52 -07:00
Mathieu Chartier ded895c033 am 08511d6e: Make host ashmem_create_region seed only once.
* commit '08511d6e3129eb811261b5b5af7c41e3e3625eac':
  Make host ashmem_create_region seed only once.
2014-06-09 17:44:58 +00:00
Nick Kralevich c3df8d7562 Make su 04750
Currently, /system/xbin/su is world executable. Prior to SELinux
enforcement, anyone (including third party apps) could run su.
The su code itself checks to see if the calling UID is root or shell.

Rather than relying on enforcement within the su binary, modify the
binary so it has group=shell, and remove world-execute permission.
This helps avoid some annoying SELinux denial messages as third party
apps call su on userdebug/eng builds.

Change-Id: I61c9231bb7e201d14ee3a5b6fe81b3fa7b12599f
2014-06-08 15:14:42 -07:00
Nick Kralevich 5c70f7e310 am f3af14e6: am ef47eb19: am 30136150: Merge "adb: avoid leaking file descriptors"
* commit 'f3af14e6df266f466e0bf7868d002cfe8104c128':
  adb: avoid leaking file descriptors
2014-06-07 00:19:51 +00:00
Nick Kralevich f3af14e6df am ef47eb19: am 30136150: Merge "adb: avoid leaking file descriptors"
* commit 'ef47eb1948ba394866f53c41c459561fc372a3b5':
  adb: avoid leaking file descriptors
2014-06-07 00:16:32 +00:00
Nick Kralevich ef47eb1948 am 30136150: Merge "adb: avoid leaking file descriptors"
* commit '3013615077bbf1ccedaef59181f5e96062ad479a':
  adb: avoid leaking file descriptors
2014-06-06 23:54:57 +00:00
Mathieu Chartier 08511d6e31 Make host ashmem_create_region seed only once.
Not seeding this each call should help reduce collisions when multiple
threads are calling ashmem_create_region. Also cleaned up code by
deleting gotos, and making formatting consistent.

Bug: 15394258

(cherry picked from commit 1104ae8cfc)

Change-Id: Iafdaea57b2317e0eb7c40d7b5595c523814fd88c
2014-06-06 16:51:11 -07:00
Nick Kralevich 3013615077 Merge "adb: avoid leaking file descriptors" 2014-06-06 23:42:47 +00:00
Christopher Ferris 45e2756409 am f6d8dedd: am 8af98621: am 5db5b8aa: Merge "Port libcutils memset16/32 to x86_64."
* commit 'f6d8dedd87eb8bbccbbdeb17a6d226f089449d92':
  Port libcutils memset16/32 to x86_64.
2014-06-06 17:26:01 +00:00
Christopher Ferris f6d8dedd87 am 8af98621: am 5db5b8aa: Merge "Port libcutils memset16/32 to x86_64."
* commit '8af98621975f8d5f0754a81329cb5358a74f59ee':
  Port libcutils memset16/32 to x86_64.
2014-06-06 17:23:26 +00:00
Christopher Ferris 8af9862197 am 5db5b8aa: Merge "Port libcutils memset16/32 to x86_64."
* commit '5db5b8aa51b43ca98b8dafdd5d57a2ac0f41d21b':
  Port libcutils memset16/32 to x86_64.
2014-06-06 17:08:51 +00:00
Christopher Ferris 5db5b8aa51 Merge "Port libcutils memset16/32 to x86_64." 2014-06-06 17:05:41 +00:00
Dave Allison d01f72a353 am b311ca9e: Add LD_PRELOAD for libsigchain.so to the environment
* commit 'b311ca9ee82c91d411164a90e9c5b32565a1e43c':
  Add LD_PRELOAD for libsigchain.so to the environment
2014-06-06 16:27:58 +00:00
Mark Salyzyn ff97881f5d am 6a5b8cf5: am 02de7d7a: am ae8f67d7: Merge "logd: logcat unexpected EOF on slow consoles"
* commit '6a5b8cf5753f8f49590f326ba168908bb44d3a10':
  logd: logcat unexpected EOF on slow consoles
2014-06-06 15:48:50 +00:00
Mark Salyzyn 6a5b8cf575 am 02de7d7a: am ae8f67d7: Merge "logd: logcat unexpected EOF on slow consoles"
* commit '02de7d7a87b6918e2c7d70ba9445a3e1559f13d8':
  logd: logcat unexpected EOF on slow consoles
2014-06-06 15:37:49 +00:00
Mark Salyzyn 02de7d7a87 am ae8f67d7: Merge "logd: logcat unexpected EOF on slow consoles"
* commit 'ae8f67d71e9999325b8b914c01590369e4f628a5':
  logd: logcat unexpected EOF on slow consoles
2014-06-06 15:22:00 +00:00
Mark Salyzyn ae8f67d71e Merge "logd: logcat unexpected EOF on slow consoles" 2014-06-06 15:09:02 +00:00
Mark Salyzyn 8d7656b8c1 logd: logcat unexpected EOF on slow consoles
Change-Id: I3520aa05e080de85df352ef36ae16e0406311f3c
2014-06-06 15:08:37 +00:00
Narayan Kamath 8eb268fe2b am 5ceec65d: am de3ff60d: am b7b92ae2: Merge "Fix build."
* commit '5ceec65d6482c472d6b55368d02f9f0d3992727c':
  Fix build.
2014-06-06 10:47:00 +00:00