Commit Graph

2771 Commits

Author SHA1 Message Date
Kenny Root b0a8aae3ed Use adb_sleep_ms for Cygwin compat
Change-Id: Iabb2cddfb6740a35e4b6b1563a81b64972c29453
2011-06-15 20:03:49 -07:00
Jeff Brown f8754337d8 Enhance getevent to print event labels.
Added -l argument to print labels for event types, codes and values.
Added -i argument to print all device info.
Added support for printing input properties.

Change-Id: I3cacb716dbc38f50217b9dfc24ba44d08f352603
2011-06-15 17:44:52 -07:00
David 'Digit' Turner bb5da05806 pixelflinger: back-port AOSP master version.
Pixelflinger doesn't have an x86 JIT, and the generic scanline()
routine is _extremely_ slow. This makes UI performance very slow.
when running full_x86-eng under emulation.

This patch back-ports the AOSP master pixelflinger into the
gingerbread branch. This essentially contains more than a dozen
new "shortcut" scanline functions used to speed-up the pixel
operations that are mostly used with the normal widget UI.

GL applications (e.g. Gallery3D) will still be very slow, but
this makes the home screen, app launcher, settings and many
simple applications work with very usable performance.

Change-Id: Ia64d8dd2e46820f07e98c4c9a4ec831b59fc61e4
2011-06-15 15:09:47 +02:00
Jun Nakajima 0f1b4f37c1 x86: Add vold.fstab to mount the SD card
Orig-Change-Id: Ie1f70a22dd4e27e8ea956d5e627877d1e2379b95
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare c8bb0ab714 Assembly coded android_memset16 and android_memset32
Orig-Change-Id: Ifa05006df7ce7364d18eb10d64a818d619664475
Author: Lu, Hongjiu <hongjiu.lu@intel.com>
Signed-off-by: Mark Gross <mark.gross@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare 7b0bad30bf debuggerd: IA version
Orig-Change-Id: I0c0d9c2d7e476b8d117aaf505a9480a47c0b5c05
Signed-off-by: Lei Li <lei.l.li@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare 9e39338296 debuggerd: Reorganize to facilitate IA commit
Orig-Change-Id: I22dd02daf617672fc0a8ba7e396017c57f17e26e
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare 160c0319f6 Set the modes for rc.* files in /system/etc
Orig-Change-Id: I0897897cdffa66afa4f818f7ebcf0a9b70c517ea
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare 54dc501352 DBUS is not fully implemented. Disable it for now
Orig-Change-Id: I2286064bffc7e9fa7381aa04d5d20abf11c3aab7
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Meng Hu 50257cf18b debuggerd: Show function names in tombstone backtraces
This change enables debuggerd to provide backtraces with function
names in tombstone files and log messages.  It does this by reading
the image file that the address is found in, and parsing the dynamic
symbol table to try to extract the symbol corresponding to the given
address.

This works best when "-Wl,-export-dynamic" is added to the LDFLAGS
of each library and executable, because this will cause all symbols
to be added to the dynamic symbol table.  If this flag is not present,
it will still work, but it will only be able to identify functions
which are part of the external API of the library/executable.

Orig-Change-Id: I618baaff9ed9143b7d1a1f302224e9f21d2b0626
2011-06-15 15:09:46 +02:00
Tom Marlin 5f05f83075 am 55b8a474: (-s ours) am 0ec54854: am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '55b8a474c3bbb67bfd8a495409254337f3d1d59c':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 15:22:28 -07:00
Tom Marlin 55b8a474c3 am 0ec54854: am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '0ec5485484e0667fb48bee32197b2c2e0669adf4':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 14:33:38 -07:00
Tom Marlin 0ec5485484 am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '774abe7b7e463436107545250aa573c99e246a86':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 14:28:57 -07:00
Tom Marlin 774abe7b7e Cherry-pick 49f1857d from master. do not merge.
Fixed adb crash due to accessing freed memory

Reset peers to NULL after closing them down. This prevents
other code from attempting to access that freed memory
(which prevents crashes). Previously, it left pointers to
freed memory and the "if (s->peer)" guards could not block
the attempt to access that memory later. Resolves many
crashes seen while taking repeated screenshots on WinXP.

Change-Id: I2697ba09971f2e0b51ff5c5e89a6fa20ebafb2c4
2011-06-14 14:23:25 -07:00
Mike Lockwood 823e96e27e Merge "adb: kick the transport after sending the "adb root" command" 2011-06-13 21:53:38 -07:00
Dima Zavin 28e08dc581 core: move audio_policy.h here from hardware
Change-Id: I6b8c04c975e01f2502d766ed2b9353d3c83193b3
Signed-off-by: Dima Zavin <dima@android.com>
2011-06-13 17:54:33 -07:00
Mike Lockwood d15e6ac95d adb: kick the transport after sending the "adb root" command
This is needed because the USB driver on the device no longer resets the bus
when exits and restarts.
Since the host side adb no longer detects that adbd has restarted we need
to reset the connection on the host side now.

Change-Id: I1a8eabd292e8b45c34fa07a8a8b8c609cc15648d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-12 16:09:27 -04:00
David 'Digit' Turner 1621a6836e am 8af9ac15: am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '8af9ac15bf2b8d063b3c6842769352daec3442cd':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 15:19:52 -07:00
David 'Digit' Turner 8af9ac15bf am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '69c2dcbb0f2672652366e3950dea48ed4483eaa4':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:53:57 -07:00
David 'Digit' Turner 69c2dcbb0f am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit 'fbcb1883df3aa913c6a530e933880095173b4624':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:51:35 -07:00
David 'Digit' Turner fbcb1883df run-as: Bump the size of the internal packages list buffer.
This is a back-port of https://review.source.android.com/#change,23480
into the honeycomb-mr2 internal tree.

This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: Ie7b171d3deed805a185f14f63ec03b64b2a8e1b3
2011-06-10 17:31:19 +02:00
Mike Lockwood 21a6c1c004 Merge changes I7b4e1ed1,I8a91c3f7,If78d20a5,I55431ac7
* changes:
  init: Add support for assigning system properties to system properties in init.rc
  init: Fix the init.rc import command
  init: Allow wildcards in property triggers by using * for property value
  init: Add support for writing system property value to a file in init.rc
2011-06-09 15:45:49 -07:00
Mike Lockwood 1f0bd32f90 init: Add support for assigning system properties to system properties in init.rc
For example:
    setprop sys.usb.config $persist.sys.usb.config

Change-Id: I7b4e1ed1335906b32621bd96a341b0f94bbee7f5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:54 -07:00
Mike Lockwood f5cb5b2435 init: Fix the init.rc import command
Change-Id: I8a91c3f7d1ca31e137d9043bb7f56e4a44fb63df
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:47 -07:00
Mike Lockwood 7ba61b15ed init: Allow wildcards in property triggers by using * for property value
For example, the following trigger will fire when the sys.foo property
is set to any value:

on property:sys.foo=*
    write /data/foo hello

It is also possible to refer to the property within the trigger actions:

on property:sys.foo=*
    write /data/foo $sys.foo

Change-Id: If78d20a532f77e17aa5703d53be581ad6736cbcf
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:42 -07:00
Mike Lockwood 2c4d5dc415 init: Add support for writing system property value to a file in init.rc
The write command will write a property value if the value starts with a "$'

For example:
    write /sys/class/android_usb/iSerial $ro.serialno

Use double leading '$' if you need to write a string that starts with '$':

    write /data/foo $$hello

to write "$hello" to /data/foo

Change-Id: I55431ac7715a5347bb95c3a15aee97c575444dde
2011-06-09 15:42:31 -07:00
Jean-Baptiste Queru d8222d2b86 Reconcile with gingerbread-release
Change-Id: I01d34fd2c90d381d4095b5217506a4d35034be53
2011-06-09 15:01:39 -07:00
The Android Automerger 838a24ac66 merge in gingerbread-release history after reset to gingerbread 2011-06-09 13:45:12 -07:00
Nick Kralevich 37b9fc6e7c am 4ba5a8ac: am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit '4ba5a8acba033127befd184f2f78cf0580995b07':
  Fixed adb crash due to accessing freed memory
2011-06-09 11:27:11 -07:00
Vladimir Chtchetkine 953907faa3 am 716104b4: am 771f5146: am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '716104b40df12d367cb5f649b92c6105d5978787':
  Fix crash reporting on x86 platform.
2011-06-09 11:24:17 -07:00
David 'Digit' Turner 9b5be35770 am fced5e70: am f45cd81b: am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit 'fced5e7015aa0cf916dbd6947ad91093332056e3':
  run-as: Bump the size of the internal packages list buffer.
2011-06-09 11:24:14 -07:00
David 'Digit' Turner b36f136738 am c324ee6a: am 06fcf938: Merge "run-as: Bump the size of the internal packages list buffer."
* commit 'c324ee6a838e4d87362de6af8d741a85efa8dd39':
  run-as: Bump the size of the internal packages list buffer.
2011-06-08 14:56:58 -07:00
Nick Kralevich 4ba5a8acba am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit 'eafcbe109f97e5a687cc944e65c383fa45d71c8f':
  Fixed adb crash due to accessing freed memory
2011-06-07 16:28:09 -07:00
Nick Kralevich eafcbe109f am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit '072a0fac3cabd50c2089d987b5abceac35c74570':
  Fixed adb crash due to accessing freed memory
2011-06-07 16:21:09 -07:00
Vladimir Chtchetkine 716104b40d am 771f5146: am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '771f5146893aa9bbc451aed78e61b3b18c1bc3b4':
  Fix crash reporting on x86 platform.
2011-06-07 15:56:33 -07:00
David 'Digit' Turner fced5e7015 am f45cd81b: am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit 'f45cd81bc81cbe92fc666f56d2b75f911cdca208':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 15:56:31 -07:00
Nick Kralevich 072a0fac3c Merge "Fixed adb crash due to accessing freed memory" 2011-06-07 15:45:36 -07:00
Vladimir Chtchetkine 771f514689 am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '4c0b9e3dc00640022a0512be909c33f0a51a9816':
  Fix crash reporting on x86 platform.
2011-06-07 14:56:17 -07:00
David 'Digit' Turner f45cd81bc8 am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit '1468cb540f5c257d32bde182ae8f0f522c582d07':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 13:39:41 -07:00
David 'Digit' Turner c324ee6a83 am 06fcf938: Merge "run-as: Bump the size of the internal packages list buffer."
* commit '06fcf938feaf02aa3cbf99e1ee08fe8e8335cb1c':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 13:25:19 -07:00
Vladimir Chtchetkine 4c0b9e3dc0 Merge "Fix crash reporting on x86 platform." 2011-06-07 13:17:31 -07:00
Vladimir Chtchetkine 714d9de60d Fix crash reporting on x86 platform.
Make sure that crash frame gets printed in one line

Change-Id: If097a5a1655b17165b2a3271f0f5ee8ace57686f
2011-06-07 09:24:03 -07:00
David 'Digit' Turner 1468cb540f run-as: Bump the size of the internal packages list buffer.
This is a back-port of https://review.source.android.com/#change,23480
to the gingerbread branch. Fix for b/4546601

This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: Ie0bfb5847f6fb1c2c0a836aee2347911f78049c1
2011-06-07 10:45:11 +02:00
David 'Digit' Turner 06fcf938fe Merge "run-as: Bump the size of the internal packages list buffer." 2011-06-06 12:35:30 -07:00
David 'Digit' Turner 93d81ef7a1 run-as: Bump the size of the internal packages list buffer.
This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: I0c35a61b163c4abc6f1a2681adc0ef0d76493171
2011-06-06 12:43:01 +02:00
Tom Marlin 49f1857dd8 Fixed adb crash due to accessing freed memory
Reset peers to NULL after closing them down. This prevents
other code from attempting to access that freed memory
(which prevents crashes). Previously, it left pointers to
freed memory and the "if (s->peer)" guards could not block
the attempt to access that memory later. Resolves many
crashes seen while taking repeated screenshots on WinXP.

Change-Id: I32553f4d19f6ddc9b05b6ab4dc1e9efe69e5be4f
2011-06-03 11:29:17 -05:00
Christopher Tate c9cd3b9761 Make 'adb backup' -f handling more bulletproof and more flexible
* "adb backup" as the entire command line no longer crashes

* The "-f filename" option can now appear anywhere in the command line.
  A trailing "-f" at EOL prompts an error message and usage summary.

Change-Id: I040ed73c2ca3687e265e35600eb3ab2b3c879695
2011-06-01 17:56:23 -07:00
Mårten Kongstad b45280d259 Create world readable, system writeable /data/resource-cache.
/data/resource-cache is used to store idmap files.

Change-Id: I9b1dbc8d607333b71c05f55a4a402ae92193c36c
2011-05-31 15:41:15 +02:00
Ken Sumrall 211ce13432 Merge "Teach the mount command in init to not consider a wiped partition to be encrypted." 2011-05-27 16:13:43 -07:00
Eric Laurent 3142a203b3 Merge "Config utils improvement" 2011-05-27 10:20:00 -07:00