Commit Graph

39227 Commits

Author SHA1 Message Date
Josh Gao 6ab5e9c96b Merge "debuggerd: update policy for recent sigaction changes."
am: 26b69296fe

Change-Id: I62891c34504f650a2b4c808f0e5cd4d38fe95e30
2018-02-09 07:23:47 +00:00
Treehugger Robot 26b69296fe Merge "debuggerd: update policy for recent sigaction changes." 2018-02-09 07:12:50 +00:00
Christopher Ferris 53914165e4 Expose per arch headers.
Bug: 73013352

Test: Compiles.
Change-Id: Ic05660db7d7858a9857143ee5e58cdaddcf52a35
2018-02-08 19:29:08 -08:00
Josh Gao 08cd23e732 debuggerd: update policy for recent sigaction changes.
Commit 3e235911 in bionic switched LP32's sigaction implementation over
to using the rt_sigaction syscall, matching LP64. Update our seccomp
policy to match.

Bug: http://b/73119572
Test: debuggerd_test32
Change-Id: I0a662a1c874298d434468d2dcdb4ebf9f276110c
2018-02-08 16:48:03 -08:00
Daniel Colascione b650aef2a0 Add explanation for clone use
Test: no code changes
Change-Id: I70c8af8261cda3163677557fd78ae0119b1f1be0
2018-02-08 15:07:47 -08:00
David Sehr 1f5228709c Merge "Remove dependency on -no_art variant"
am: 2ccde89153

Change-Id: I73179b52f72d82b167d4bfaf38493feac89484a9
2018-02-08 21:43:44 +00:00
David Sehr 2ccde89153 Merge "Remove dependency on -no_art variant" 2018-02-08 21:26:05 +00:00
Paul Crowley 33d3758684 Merge "Revert "Don't initialize atrace if it's already disabled.""
am: c50d19c0b0

Change-Id: I55076549651d386ed7bdfab8ec05061049735271
2018-02-08 17:35:14 +00:00
Treehugger Robot c50d19c0b0 Merge "Revert "Don't initialize atrace if it's already disabled."" 2018-02-08 17:27:41 +00:00
Justin Yun 6edfca6e3b Merge changes from topic "vndk-sp-list-update"
am: 4c0ee1e8a0

Change-Id: I155e3e864678401e0858842b4bd3ace7600da381
2018-02-08 06:05:30 +00:00
Justin Yun c2ff3dbbfe Use actual VNDK list for non-VNDK-enforcing devices
am: 8a9a8eeb85

Change-Id: I2677acd9dbd266873fb12d20674e298cc9d1444c
2018-02-08 06:04:37 +00:00
Treehugger Robot 4c0ee1e8a0 Merge changes from topic "vndk-sp-list-update"
* changes:
  Rename namespace configuration source files.
  Use actual VNDK list for non-VNDK-enforcing devices
2018-02-08 05:52:02 +00:00
Josh Gao e523a6c94f Merge "adb: switch asocket::enqueue to std::string."
am: 9bf624cd3a

Change-Id: Ifd2c3237cb6f12d7b8592f42ec3c378053a01491
2018-02-08 02:34:57 +00:00
Josh Gao 157c2fa504 Merge changes I86bcfaaa,I24d7f5d0
am: f99711fe87

Change-Id: I4e21cf95ef677dd14c90830456eba400deb32eda
2018-02-08 02:30:18 +00:00
Josh Gao 9bf624cd3a Merge "adb: switch asocket::enqueue to std::string." 2018-02-08 01:06:22 +00:00
Paul Crowley 738adf7b46 Revert "Don't initialize atrace if it's already disabled."
This reverts commit e184423526.

Reason for revert: b/73081734
Bug: 73081734

Change-Id: I8ae835f5575292ebd3c4457ef26c2e8f98cfa11e
2018-02-08 00:49:37 +00:00
Josh Gao f99711fe87 Merge changes I86bcfaaa,I24d7f5d0
* changes:
  adb: restore packet data length checks.
  adb: switch asocket's intrusive linked list to vectors.
2018-02-08 00:34:40 +00:00
Jerry Zhang 3be61d3850 Remove urb request size maximum.
The 16kB maximum for transfers was removed from
the kernel in 3.3. Devio has since supported
arbitrary transfer sizes through scatter gather.

See the following kernel patches for context:
"USB: change the memory limits in usbfs URB submission"
"usbdevfs: Use scatter-gather lists for large bulk transfers"

Bug: 67683483
Test: Run usb_async_test app with USB3 : 38MB/s -> 300MB/s
Change-Id: Ia52440cb725561b0f1db1a75aa1b8ab952585826
2018-02-07 16:12:14 -08:00
Justin Yun 27bdc37fac Rename namespace configuration source files.
For strict VNDK runtime restriction, use ld.config.txt as a source
file. For treblized devices without BOARD_VNDK_VERSION, use
ld.config.vndk_lite.txt file.

Test: Build and boot on Pixel 2017 and 2018 devices.
Change-Id: Ie5b77facd4c11bc73219ecf13ad1298ac5d60d8e
2018-02-08 08:46:59 +09:00
Justin Yun 8a9a8eeb85 Use actual VNDK list for non-VNDK-enforcing devices
Rename ld.config.txt.in to ld.config.vndk.txt and
ld.config.txt to ld.config.vndk_light.txt.

For FULL_TREBLE devices without BOARD_VNDK_VERSION, update the VNDK
library list in ld.config.vndk_light.txt with the actual VNDK list.

Bug: 69526027
Test: Build marlin/sailfish and check boot
Change-Id: Idbb0cc97d11037c1493d4739e84961297ce51dbd
Merged-In: Idbb0cc97d11037c1493d4739e84961297ce51dbd
2018-02-08 08:33:15 +09:00
David Sehr 892e675a89 Remove dependency on -no_art variant
Remove an external dependency on a shim I used to protect against
renaming.

Bug: 22322814
Test: make -j 50
Change-Id: I7e6eaee7d82a1a42d4c37daa74803cefc7bb68ce
2018-02-07 15:19:22 -08:00
Todd Poynor d9960d84d1 Merge "healthd: don't report fake data for battery-less devices"
am: ab26cc4b12

Change-Id: I2597154b24428ca806d628ad567c5742722caeac
2018-02-07 20:46:07 +00:00
Treehugger Robot ab26cc4b12 Merge "healthd: don't report fake data for battery-less devices" 2018-02-07 20:38:32 +00:00
Christopher Ferris 7d362f1eb7 Merge "Check that dex pc is in a valid map."
am: 3ff3ff1c36

Change-Id: If82d8eacf0186ba49c4728bf9dfb78a781ae19e5
2018-02-07 14:58:03 +00:00
Christopher Ferris 3ff3ff1c36 Merge "Check that dex pc is in a valid map." 2018-02-07 14:50:03 +00:00
Josh Gao b652ac4bd8 Merge "adb: don't spew to logcat when tracing is enabled."
am: 28c44863f6

Change-Id: I8f848151e5df370c43382bb01bddeda0f252da67
2018-02-07 06:08:16 +00:00
Treehugger Robot 28c44863f6 Merge "adb: don't spew to logcat when tracing is enabled." 2018-02-07 05:57:46 +00:00
Mark Salyzyn c95fb64f0f Merge "lmkd: use after free"
am: 7c3c8c27e1

Change-Id: If54ce69ac7ca03a67e25a2e3a3f4392ba2a8aeca
2018-02-07 02:26:30 +00:00
Treehugger Robot 7c3c8c27e1 Merge "lmkd: use after free" 2018-02-07 01:53:15 +00:00
Josh Gao 95c4497bd4 adb: don't spew to logcat when tracing is enabled.
When persist.adb.trace_mask is used to enable verbose logging, avoid
exponential logging when a user runs `adb logcat`. As a side-effect,
set the minimum logging level to include everything when ADB_TRACE is
used on the client (which is something we want anyway).

Bug: http://b/72971016
Test: `adb shell 'setprop persist.adb.trace_mask; killall adbd'; adb logcat`
Change-Id: Id4bca1f3933a920345499dbeaeb103c8a2e220cd
2018-02-06 15:55:06 -08:00
Christopher Ferris e762f1f193 Check that dex pc is in a valid map.
Add new unit tests for dex pc being non-zero.

Bug: 73004673

Test: Ran unit tests.
Test: Ran art 137-cfi test on host for interpreter.
Change-Id: I09bbf96d0ed65fc1e5896e4ab2bc67867e3b7fdb
2018-02-06 15:00:04 -08:00
Josh Gao 27cb7dca77 adb: switch asocket::enqueue to std::string.
Switch asocket over to taking a std::string instead of apacket* for
data. This allows us to remove asocket specific fields from apacket*.

Test: python test_device.py with x86_64 emulator, walleye
Test: adb_test on host
Change-Id: I9d157ff331a75ba49a54fdd4194e3f6cdff722f4
2018-02-06 12:59:06 -08:00
Josh Gao 5caaebdc3d adb: restore packet data length checks.
These checks were moved to after the read of the payload, which is too
late. Add a check before each read to avoid a heap buffer overflow.

Test: python test_device.py with x86_64 emulator, walleye
Change-Id: I86bcfaaa9004951cc52ad89af74680cf748e717d
2018-02-06 12:59:06 -08:00
Josh Gao 5e5076404a adb: switch asocket's intrusive linked list to vectors.
Test: python test_device.py
Change-Id: I24d7f5d0401de77d80c7a2dd5a7dcb551943342d
2018-02-06 12:59:06 -08:00
Greg Hartman 4e126cd4e9 Merge "Add support for non-partitioned devices for system"
am: 9d6b55928c

Change-Id: I414e81a89dbc9505c9eeff0d1d2e2ad4fb5ad01d
2018-02-06 18:55:09 +00:00
Treehugger Robot 9d6b55928c Merge "Add support for non-partitioned devices for system" 2018-02-06 18:39:14 +00:00
David Srbecky 29379fa494 Merge "Fix in-memory loading of cdex files with shared data."
am: d663ef9772

Change-Id: I9ad148c8117897f49f34aed5e22935f5dbaf77d0
2018-02-06 11:05:44 +00:00
David Srbecky d663ef9772 Merge "Fix in-memory loading of cdex files with shared data." 2018-02-06 11:00:31 +00:00
Greg Hartman 886474994a Add support for non-partitioned devices for system
BUG: 69071989
BUG: 71707530
Test: Local build and boot
Change-Id: I0cb7d61634be6a694ceb51cb06901c466eae1c35
2018-02-06 06:34:40 +00:00
Christopher Ferris b523a6a616 Merge "Small test clean up."
am: 8ca50401f5

Change-Id: I177818b8d1598eb144f5ce76c3a508a71a68728c
2018-02-06 03:15:50 +00:00
Mark Salyzyn fcb6c7425d Merge "base: adb.exe build error"
am: 6760466063

Change-Id: Ib75862d5ff87aea6ffa10adfcf9d07ceadb1f955
2018-02-06 03:15:19 +00:00
Christopher Ferris 8ca50401f5 Merge "Small test clean up." 2018-02-06 01:48:12 +00:00
Treehugger Robot 6760466063 Merge "base: adb.exe build error" 2018-02-06 00:09:28 +00:00
Mark Salyzyn 2500e38093 Merge "libcutils: Add "daemon" and "bin" users for testing only"
am: 718899b415

Change-Id: I7e0eb140ff8729b805c692983cc60623a1761346
2018-02-05 23:30:18 +00:00
Christopher Ferris 5f5cb238f0 Small test clean up.
Shrink a few files that are huge by removing all of the .debug_XXX
sections except .debug_frame since they aren't used.

Rename all of the arm32 to arm and x86_32 to x86.

Test: All unit tests pass.
Change-Id: Ia0f0baadf2a7fbc42a544aff2f14d5ed5f9287b7
2018-02-05 13:12:54 -08:00
Treehugger Robot 718899b415 Merge "libcutils: Add "daemon" and "bin" users for testing only" 2018-02-05 20:51:30 +00:00
David Srbecky 417f7c3720 Fix in-memory loading of cdex files with shared data.
Several cdex files may share the same data for de-duplication.

Bug: 72520014
Test: Disable DexFileFromFile and then run ART's 137 test.
Change-Id: Icfe04255cc20a302f844c2e3e3016578856e1f82
2018-02-05 20:40:31 +00:00
Todd Poynor 4d7ee2ebbb healthd: don't report fake data for battery-less devices
If the kernel does not implement a power_supply class device of type
battery, do not report fake data, instead report the following by
default:

* batteryPresent = false (instead of true),
* charging status = unknown (instead of charging),
* capacity = 0 (instead of 100%),
* health = unknown (instead of good),
* AC charger online not modified (instead of forcing true)

If no charger and no battery devices are supplied by the kernel, the
AC charger online property will no longer be forced to true.  Devices
that are always plugged into AC power should either implement a
power_supply class charger device or implement a Health HAL that sets
properties appropriately.

Bug: 34507420
Test: manual: gce_x6_phone (no battery or charger),
      boots and stays booted, inspect properties
Merged-In: I14cb3b685e8130428e417e7d08c4246f7415210a

Change-Id: I64bd4431af10f3d232f36fcf8d356b6d88b08013
2018-02-05 19:48:30 +00:00
Mark Salyzyn 8e8648463d libcutils: Add "daemon" and "bin" users for testing only
Multiple LTP tests require a "daemon" or "bin" user.  These user ids
have been defined since UNIX incept, and even up to the '80s remained
in many of the tools as hard coded values.  Add these two ids with
a cautionary note.

Test: compile
Bug: 31152327
Bug: 31226046
Bug: 32385889
Change-Id: Ida2fb6d817b8ada0624870439fcf848667b31fb3
2018-02-05 11:06:08 -08:00
Mark Salyzyn 919f538e6d lmkd: use after free
Remove a use-after free reference of procp->pid, using the already
captured pid variable.

Test: lmkd_unit_tests
Bug: 33808187
Change-Id: I3f5f8dd9acab2e28c81465d6195b73ae47e0a3c4
2018-02-05 11:00:59 -08:00