Commit Graph

2854 Commits

Author SHA1 Message Date
vidya rao 9d94942bcd am 6a18a077: am 04cf629b: Move RILD to class main
* commit '6a18a07774123c409cefd9a92f1c4c6504f4edfd':
  Move RILD to class main
2011-06-27 14:15:33 -07:00
Mike J. Chen f048363184 Merge changes I255cca69,Ice9ec7f0,I4e97ac98
* changes:
  Workaround Motorola ril.so incompatiblity with Netlink changes
  Cleanup NetlinkListener and NetlinkEvent
  Revert "Revert "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet""
2011-06-27 12:56:04 -07:00
Brett Chabot 7b023b293b Fix SDK build.
Revert "Fix build warnings"

This reverts commit 590e364868.
2011-06-27 11:14:46 -07:00
Glenn Kasten c322f67140 Bug 4571308 Timestamps are not always monotonic
Change-Id: Ia4e89a286a514d91d76268235c716e328cd3d0c2
2011-06-27 10:42:39 -07:00
vidya rao 6a18a07774 am 04cf629b: Move RILD to class main
* commit '04cf629be5e99a3a920aecc0b059444bd07e9d84':
  Move RILD to class main
2011-06-24 22:54:11 -07:00
vidya rao 04cf629be5 Move RILD to class main
-- This is needed so the modems (LTE & CDMA) are powered on and running
   before unlocking encrypted devices

Change-Id: I842f5286499fd76abc554ded550fb837d12b324e
2011-06-24 16:41:29 -07:00
Glenn Kasten 590e364868 Fix build warnings
Change-Id: Ie24cf8e729813e4527c698fc7c1502a1efbc63e5
2011-06-24 15:40:56 -07:00
Mike J. Chen 2a56688da9 Workaround Motorola ril.so incompatiblity with Netlink changes
To workaround a binary incompatiblity with Motorola's ril.so, I had to
temporarily provide the old constructor for NetlinkListener as well as
a new contructor that takes an additional format argument.
There's still a slight chance of a problem because the size of the
NetlinkListener has changed with the addition of the
mFormat member, but so far I've not seen any obvious problem with that
incompatiblity.

Another way we could have worked around the incompatiblity is to have
netd (the main user of the new format argument to NetlinkListener) keep
track of the format itself in it's NetlinkHandler (derived from NetlinkListener)
and supply it's own version of onDataAvailable() that's almost 100% identical
to NetlinkListener's except for the decode() call.  That would allow us
not to modify NetlinkListener at all.  Worth considering but I think it's
more properly divided right now and we just have to make Motorola fix their
code (and ideally not use our private APIs).

This change should be reverted when Motorola's has fixed their ril to
either not use our private APIs or to use our updated ones.

Change-Id: I255cca6908444e56cbbbed7eef1fa0cf1d8f0918
Signed-off-by: Mike J. Chen <mjchen@google.com>
2011-06-23 18:59:45 -07:00
Mike J. Chen 17260b1468 Cleanup NetlinkListener and NetlinkEvent
To make it easier to be compatible with older existing code, use
default parameters instead of separate functions for setting.

Also, reintroduce the const usage that was not in the original
changes by Stan.

Also fix some indent spacing.

Change-Id: Ice9ec7f0d5c4a0673037e2e04a764d88a98f68eb
Signed-off-by: Mike J. Chen <mjchen@google.com>
2011-06-23 18:59:45 -07:00
Mike J. Chen ec16b9d47c Revert "Revert "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet""
This reverts commit 1d504eeb50.

Conflicts:

	libsysutils/src/NetlinkEvent.cpp

Bring back the changes from Stan Chesnutt regarding adding NETLINK_ROUTE
processing.  The original commit message description was:

    Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet
    physical-layer up/down events can be tracked.  Upper layers will use these
    events to enable/disable Ethernet connectivity.

The original change was reverted due to an incompatiblity with Motorola's
ril.so binary.  I'll submit a patch to workaround that incompatiblity
separately.

Change-Id: I4e97ac98833b10543e654c63ecae3b9b8c7db44f
Signed-off-by: Mike J. Chen <mjchen@google.com>
2011-06-23 18:59:45 -07:00
Eric Laurent 9661a3aecd Merge "Fixed some audio helper functions" 2011-06-23 08:08:06 -07:00
Jeff Sharkey 4f1df18766 Create groups to protect bandwidth statistics.
Introduces new "net_bw_stats" group which will protect reading
detailed bandwidth statistics.  Also introduce "net_bw_acct" group
which will enable specific applications to request that their network
traffic be counted against other UIDs.

Change-Id: Ic0ec04e0d2bb9573f3c2a094ebd6d6a8cae0aae6
2011-06-22 10:01:29 -07:00
Mike Lockwood 535164e9d9 Reimplement the "adb root" command to more closely match its previous behavior
The adb gadget driver used to reset the USB bus when the adbd daemon exited,
and the host side adb relied on this behavior to force it to reconnect
with the new adbd instance after init relaunches it.  The new gadget
drivers no longer automatically reset the USB bus when adbd is restarted
which caused adb to hang since it was no longer forced to reconnect with the
device.  We attempted to work around this on the host side adb, but that
work around has not been reliable.

This change adds a property trigger on the service.adb.root system property
which will reset the USB bus and restart the adbd daemon when adbd sets
the property to 1.  This should be much closer to the previous behavior
and will hopefully fix some problems with automated testing.

Change-Id: I177c37400009a3d83f21a5f9431f94fd1cc19b9b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-22 08:36:53 -04:00
Mike Lockwood 07edefe4ce Revert "adb: kick the transport after sending the "adb root" command"
This reverts commit d15e6ac95d.

Also increment adb version to 1.0.29

Change-Id: I890643f0c18a2fe90f170134df039c54116cecda
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-22 07:15:44 -04:00
Mike Lockwood 693e78b9b6 Merge "Fix hang after end of backup" 2011-06-21 16:44:32 -07:00
Christopher Tate 10f129ca8e Fix hang after end of backup
The buggy behavior was that the 'adb backup ....' host command line
invocation would hang forever, even after the backup finished and
the forked device-side subprocess had been reaped.  The reason for
this is that the device adbd end of the socketpair used to send
the data back from the forked subprocess was still stuck readable
even after the remote end of it had been closed.

With this patch, the thread whose job it is to waitpid() in order
to harvest the forked child process also closes the local (adbd)
end of the socketpair.  This makes the fdevent logic notice that
the socket is dead, at which point it cleans up everything including
the communication back to the host.

Change-Id: I90e7e4e5db36c5a6f7363708b29a6d2c56d1250e
2011-06-21 16:05:17 -07:00
Jean-Baptiste Queru 4d557db514 am e1259d63: am 202729a0: am 14c2823a: Merge "add strutils"
* commit 'e1259d633c084bb7516b76a859c6acae20b06aee':
  add strutils
2011-06-21 15:26:44 -07:00
Jean-Baptiste Queru ef8fd9c4a4 am b06dfe14: am 4c78d862: am a08f7ae3: Merge "tweak for forward-compatibility"
* commit 'b06dfe142505df7efc729455f30ae73fa3cf6fae':
  tweak for forward-compatibility
2011-06-21 15:26:33 -07:00
Mike Lockwood b0bd6024e3 adb: Update version to 1.0.28
Change-Id: Ib8a98d3840abf24cf062112aca7ce462a0f44bc5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-21 17:26:11 -04:00
Christopher Tate 5b811fa5dd Tidy up the end-of-data handling in backup
* Increase transfer buffer size to 32K
* Add logging about error conditions and fd teardown
* Pass the fd number as a command line option to the 'bu' subprocess
* Properly harvest the 'bu' subprocess after it's done

Change-Id: Id44dde25778ecf43c5604fd9d01d726ba58861e5
2011-06-20 16:19:42 -07:00
Jean-Baptiste Queru e1259d633c am 202729a0: am 14c2823a: Merge "add strutils"
* commit '202729a0c1d966345dcbfa21db7d886b5d1e6200':
  add strutils
2011-06-20 09:10:49 -07:00
Jean-Baptiste Queru b06dfe1425 am 4c78d862: am a08f7ae3: Merge "tweak for forward-compatibility"
* commit '4c78d8620514fe1a704872cba66bc1b14d4e2a66':
  tweak for forward-compatibility
2011-06-20 09:10:23 -07:00
Jean-Baptiste Queru 202729a0c1 am 14c2823a: Merge "add strutils"
* commit '14c2823a631b444687b9d26b7baf4c864091c07b':
  add strutils
2011-06-20 09:04:35 -07:00
Jean-Baptiste Queru 4c78d86205 am a08f7ae3: Merge "tweak for forward-compatibility"
* commit 'a08f7ae3c10f4874194fb48ff549e846e39217b7':
  tweak for forward-compatibility
2011-06-20 09:04:33 -07:00
Jean-Baptiste Queru 14c2823a63 Merge "add strutils" 2011-06-18 11:56:48 -07:00
Jean-Baptiste Queru 89790b8929 add strutils
Change-Id: If5938ecd1dfd7f35e326573d10788bacaf3e2383
2011-06-18 11:53:34 -07:00
Jean-Baptiste Queru a08f7ae3c1 Merge "tweak for forward-compatibility" 2011-06-18 11:21:59 -07:00
Jean-Baptiste Queru b6c15de82a tweak for forward-compatibility
Change-Id: I1896be16622b452a3652412af3c64f8c550f71d0
2011-06-18 10:41:31 -07:00
Mike Lockwood 352dfdfaea init.rc: Changes for new USB gadget drivers
Change-Id: I68fcf167c9fc71bb5f44793648a35d3181fd36d7
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-17 15:53:58 -04:00
Eric Laurent da38224875 Fixed some audio helper functions
Make sure audio_is_valid_format() is true only
for formats supported by AudioTrack and AudioRecord.
Generalized audio_is_linear_pcm().
Added audio_bytes_per_sample() function.

Change-Id: If588af6c08f09796ab04bccbbd6e720f1e914412
2011-06-16 21:13:43 -07:00
Jean-Baptiste Queru 9f7ad372b3 am 88fd7a50: am fa3dfff8: Move mksh to external/mksh
* commit '88fd7a5082ebf964e9470a5f856081b27d887a28':
  Move mksh to external/mksh
2011-06-16 12:49:09 -07:00
Jean-Baptiste Queru 88fd7a5082 am fa3dfff8: Move mksh to external/mksh
* commit 'fa3dfff83b29137d2984c9776a8a64b09a758bde':
  Move mksh to external/mksh
2011-06-16 12:27:19 -07:00
Jean-Baptiste Queru fa3dfff83b Move mksh to external/mksh
Change-Id: I836b8764320bd498c335d97267d8b47acb97514d
2011-06-16 10:06:45 -07:00
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