Commit graph

1971 commits

Author SHA1 Message Date
Stan Chesnutt
36f93f0120 fix undefined behavior with certain left-shift count values
Change-Id: I1b71de28312a56a3b1d27fcfaf0a7b71d5777e6c
2010-12-16 10:59:48 -08:00
Mike Lockwood
e88a1b9e3d Merge "libusbhost: Fix breakage due to not storing dev_name in struct usb_device" 2010-12-15 12:59:08 -08:00
Mike Lockwood
93aff72d9b libusbhost: Fix breakage due to not storing dev_name in struct usb_device
Change-Id: Iefac9b31f900edb2dbd594f9eff9113b2038757d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-15 12:58:04 -08:00
Nick Kralevich
333f24bfbd don't run services with gid=0
Ensure that we drop privileges for servicemanager
and drmioserver.  These should not be running with
gid=0.

Bug: 3275526
Testing: Applied change and successfully rebooted
the device.  No obvious bugs.

Change-Id: I782fbda812cb88e0a365788b45b3b32894623177
2010-12-15 11:09:21 -08:00
Mike Lockwood
ee878753f9 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>
2010-12-14 23:08:43 -08:00
Paul Eastham
3227b5c25f Prevent rollover when dumping data around PC, SP, etc.
Change-Id: Ifc5f0e8eb5fed191c39f0878869e04b4d4f3b9ca
2010-12-14 16:07:58 -08:00
Jean-Baptiste Queru
4387ed1356 am 660c8b71: am cbb9257a: Merge "Fix debuggerd (native crash dump)."
* commit '660c8b71952c4067fd9d9ae1d6def3d2a3127ddc':
  Fix debuggerd (native crash dump).
2010-12-14 13:41:04 -08:00
Jean-Baptiste Queru
660c8b7195 am cbb9257a: Merge "Fix debuggerd (native crash dump)."
* commit 'cbb9257a872a0f35b0aa1018410ca6025e628c36':
  Fix debuggerd (native crash dump).
2010-12-14 13:32:45 -08:00
Jean-Baptiste Queru
cbb9257a87 Merge "Fix debuggerd (native crash dump)." 2010-12-14 13:21:11 -08:00
Mike Dodd
0b4836f2cd Fix debuggerd (native crash dump).
Change 44659e90f (6cc4923087 in AOSP) introduced walking
both the symbol table and dynamic symbol table. The problem
is that it was dereferencing values whether or not the two tables
were both present, which could wind up reading from invalid memory.
The read from a bad address would cause debuggerd itself to crash,
which isn't handled.

Change-Id: Ie936f660018b1980dee5b6ed669588db861f1a79
2010-12-14 13:15:47 -08:00
Mike Dodd
584b8e30bc Fix debuggerd (native crash dump).
Change 44659e90f (6cc4923087 in AOSP) introduced walking
both the symbol table and dynamic symbol table. The problem
is that it was dereferencing values whether or not the two tables
were both present, which could wind up reading from invalid memory.
The read from a bad address would cause debuggerd itself to crash,
which isn't handled.

Change-Id: Ie936f660018b1980dee5b6ed669588db861f1a79
2010-12-14 12:16:23 -08:00
Mike Lockwood
ec34ef5880 Merge "libusbhost: Add accessor for the USB device descriptor" 2010-12-13 19:09:28 -08:00
Mike Lockwood
11549b08a3 Merge "libusbhost: Add support for creating a usb_device struct from an existing fd" 2010-12-13 19:09:18 -08:00
Mike Lockwood
50372073d2 libusbhost: Add accessor for the USB device descriptor
Change-Id: Ic3a54e2a06f3b4fa72f99b64025a911fbf525daf
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-13 19:08:27 -08:00
Mike Lockwood
cd185f23cc libusbhost: Add support for creating a usb_device struct from an existing fd
We will use this for sharing USB file descriptors across address spaces via Binder

Change-Id: Iadbd3e0a4178f79d1d778fdfd5175f6fe0e2aaf5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-13 19:08:14 -08:00
Alex Sakhartchouk
bf5ababdb0 Merge "Adding Texas Instruments to the VID list." 2010-12-13 15:21:22 -08:00
Alex Sakhartchouk
ffe55f760d Adding Texas Instruments to the VID list.
Change-Id: Ifd35587c93ae7d5c8253f477a92cca2345dc8bb5
2010-12-13 14:26:18 -08:00
Jaikumar Ganesh
07eddd885a Merge "Remove services for adding SDP records." 2010-12-13 13:48:29 -08:00
Jaikumar Ganesh
1612425c50 Remove services for adding SDP records.
This was an inefficient way of doing things and was
temporary. There are now direct calls to Bluez to add reserved
SDP records.

This improves connection time after turning on BT by 6-8 secs.

Change-Id: I8750f44e1de73c9cc935d68710b8964e3f50c3a6
2010-12-13 13:47:27 -08:00
Jean-Baptiste Queru
abf7378f1e am 44659e90: am d3f59eab: Merge "debuggerd: IA version"
* commit '44659e90fe8df25c71195936eabe0cc9158c18a6':
  debuggerd: IA version
2010-12-13 12:32:04 -08:00
Jean-Baptiste Queru
44659e90fe am d3f59eab: Merge "debuggerd: IA version"
* commit 'd3f59eab07d102b9506978aca9541dd62dcea919':
  debuggerd: IA version
2010-12-13 11:37:40 -08:00
Jean-Baptiste Queru
d3f59eab07 Merge "debuggerd: IA version" 2010-12-13 11:32:21 -08:00
Jean-Baptiste Queru
5599029c8d Manual merge of 144773f9
Change-Id: I0ac3f88ac85bbc604fdc151768da20e86318fb46
2010-12-13 11:31:04 -08:00
Jean-Baptiste Queru
144773f9e1 am e382cc99: Merge "debuggerd: Reorganize to facilitate IA commit"
* commit 'e382cc999e48b3faabea7743ec8cec303b6005ba':
  debuggerd: Reorganize to facilitate IA commit
2010-12-13 11:14:26 -08:00
Jean-Baptiste Queru
e382cc999e Merge "debuggerd: Reorganize to facilitate IA commit" 2010-12-13 10:48:08 -08:00
Mike Lockwood
127fd070f0 Merge "init: Allow non-root adbd to switch between TCP and USB modes" 2010-12-10 11:56:22 -08:00
Mike Lockwood
58aa5b0ee0 init: Allow non-root adbd to switch between TCP and USB modes
Change-Id: I9e93ceefadfaa2a4f8ec25cfa05fa4821fd98093
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-10 09:48:41 -08:00
Erik Gilling
535615cf4f Merge "toolbox: add verbose option for lsusb" 2010-12-09 18:45:32 -08:00
Erik Gilling
bec29d4b48 toolbox: add verbose option for lsusb
Change-Id: If9c51d96af7d69395917af55bb337352576f9422
2010-12-09 17:14:27 -08:00
Erik Gilling
67ebdce982 Merge changes I4dcadf8e,I166d2859
* changes:
  libusbhost: add usb chapter 9 include to usbhost.h
  toolbox: add lsusb command
2010-12-09 15:53:03 -08:00
Erik Gilling
3af05b09eb libusbhost: add usb chapter 9 include to usbhost.h
Change-Id: I4dcadf8e8d9b25782351c9aeefb0d2cea81bbc9e
2010-12-09 15:28:06 -08:00
Erik Gilling
fd1e855323 toolbox: add lsusb command
Change-Id: I166d2859633ba4e15f170938262dcf6505b78dd3
2010-12-09 15:27:52 -08:00
Dima Zavin
8d758271d4 sh: null check signame list since sig 0 is not valid
Change-Id: I1b293246ea1d822e098d0581830500e93633a879
Signed-off-by: Dima Zavin <dima@android.com>
2010-12-09 14:20:16 -08:00
Ying Wang
90493929b2 Merge "dist for dist_files" 2010-12-09 10:55:06 -08:00
Ying Wang
1c061b9ea9 dist for dist_files
Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
2010-12-09 10:33:27 -08:00
Iliyan Malchev
d5c8ddfdf3 Revert "Add "slow_start" keyword to init"
This reverts commit 50b3afd9f3.
2010-12-08 16:19:12 -08:00
Iliyan Malchev
6388cfe03c Revert "HACK: slow_start for mediaserver to prevent restart race condition"
This reverts commit 9db7945ed2.
2010-12-08 16:19:12 -08:00
Kenny Root
cfb61c2720 Cygwin needs HAVE_OFF64_T and fix description
During testing of compilation, it was discovered that Cygwin actually
has off64_t.

Also the description was wrong for HAVE_OFF64_T

Change-Id: I6eb73d13da5a53fb03bf99ab7de82bfb6acab058
2010-12-08 11:19:11 -08:00
Kenny Root
07ad9961ae Add HAVE_OFF64_T to AndroidConfig.h
For platforms that have _FILE_OFFSET_BITS=32 and need to access large
files, we need some way to access 64-bit file APIs. This adds a hint to
allow programs to choose alternate APIs if possible.

Change-Id: Ifdc204df269350a22f52c0e4221e9d7d3b7a57fe
2010-12-06 15:20:54 -08:00
Paul Eastham
9db7945ed2 HACK: slow_start for mediaserver to prevent restart race condition
Change-Id: Ia76385612fd127c5f11b3d64205e350f27acfd82
2010-12-04 17:39:30 -08:00
Paul Eastham
50b3afd9f3 Add "slow_start" keyword to init
This keyword will cause init to wait a few seconds before exec'ing
the target binary.  Maybe only useful for hacks and debugging.

Change-Id: I85caa0bcbc0be7e48bd21eb9e31e039c0740c8d5
2010-12-04 17:39:26 -08:00
Olivier Bailly
7e06476f6d Merge "Add missing headers for compilation on x86 targets" 2010-11-29 15:13:50 -08:00
Bruce Beare
6cc4923087 debuggerd: IA version
Change-Id: I0c0d9c2d7e476b8d117aaf505a9480a47c0b5c05
Signed-off-by: Lei Li <lei.l.li@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2010-11-29 11:28:11 -08:00
Bruce Beare
849249064c debuggerd: Reorganize to facilitate IA commit
Change-Id: I22dd02daf617672fc0a8ba7e396017c57f17e26e
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2010-11-29 11:03:48 -08:00
Jean-Baptiste Queru
9e04fcde67 am 8f461e5c: resolved conflicts for merge of 1a15cb7e to gingerbread-plus-aosp
* commit '8f461e5cc2972ed5054469b92bc841c07a50b7cf':
  [PATCH] Init - make sure the last parameter to execve is NULL
2010-11-24 08:45:31 -08:00
Jean-Baptiste Queru
8f461e5cc2 resolved conflicts for merge of 1a15cb7e to gingerbread-plus-aosp
Change-Id: I6468f995c29c6e05f4cb89bedb02cff2ff4bac61
2010-11-24 08:41:41 -08:00
Jean-Baptiste Queru
1a15cb7e90 Merge "[PATCH] Init - make sure the last parameter to execve is NULL" 2010-11-24 08:27:17 -08:00
Jean-Baptiste Queru
f629a737eb am 720fdebb: am 4906db21: Merge "codeflinger: Correct misleading comment of STM instruction"
* commit '720fdebb4ca2306133099126eb1f10b0b79ccce1':
  codeflinger: Correct misleading comment of STM instruction
2010-11-23 11:05:31 -08:00
Jean-Baptiste Queru
720fdebb4c am 4906db21: Merge "codeflinger: Correct misleading comment of STM instruction"
* commit '4906db21e041327042b87122b233e1f150618334':
  codeflinger: Correct misleading comment of STM instruction
2010-11-23 11:02:51 -08:00
Jean-Baptiste Queru
4906db21e0 Merge "codeflinger: Correct misleading comment of STM instruction" 2010-11-23 10:52:14 -08:00