Commit Graph

38070 Commits

Author SHA1 Message Date
Badhri Jagan Sridharan 9f249c9dd4 Merge "Initial commit for usb daemon"
am: b9b54e7b7a

Change-Id: Ib433b96e17920c335468238ae773120387716043
2018-01-23 18:36:30 +00:00
Badhri Jagan Sridharan b9b54e7b7a Merge "Initial commit for usb daemon" 2018-01-23 03:09:27 +00:00
Logan Chien 0779a259b7 Merge "ld.config.txt: Move vendor vndk to vndk namespace"
am: c6805c3e9c

Change-Id: I37769e578c41f8a699a77993c0ed0ae01d35f035
2018-01-23 02:20:52 +00:00
Logan Chien c6805c3e9c Merge "ld.config.txt: Move vendor vndk to vndk namespace" 2018-01-23 02:02:21 +00:00
Steve Paik 0a8ab16db2 Merge "Add force_suspend function"
am: daac5aafa7

Change-Id: I764f10d0e310be0206e063334c1bd846ed88bc5c
2018-01-22 23:44:38 +00:00
Treehugger Robot daac5aafa7 Merge "Add force_suspend function" 2018-01-22 23:32:55 +00:00
Steven Moreland 9380bfda08 Merge "Init remove direct calls to light sys nodes."
am: 17b959c9ed

Change-Id: I1ffd4e68ebcdc444bd673f108ddd205a84dc2885
2018-01-22 20:35:27 +00:00
Treehugger Robot 17b959c9ed Merge "Init remove direct calls to light sys nodes." 2018-01-22 20:27:17 +00:00
Tom Cherry 12fbce5c2a Merge "Move all of init to libinit"
am: ad939afaf4

Change-Id: Ib2df5914dd2f24958d95f5b9dfe01577c8b796b0
2018-01-22 17:56:27 +00:00
Tom Cherry ad939afaf4 Merge "Move all of init to libinit" 2018-01-22 17:50:56 +00:00
Logan Chien 91b3fb4f3f ld.config.txt: Move vendor vndk to vndk namespace
This commit moves /{odm,vendor}/lib[64]/vndk[-sp] to vndk namespace so
that vndk extension can override vndk libs from
/system/lib[64]/vndk[-sp].

Bug: 69824336

Test: Create libutils_ext locally and it can be called from
android.hardware.nfc@1.0-service.

Change-Id: Id63e58d665fa41eda85950ee1d16fe06c35cd7d3
2018-01-22 11:30:56 +08:00
Christopher Ferris 91f68e9340 Merge "Fix regression caused by libbacktrace API change."
am: 0ba2c9f4a2

Change-Id: I16e50d5d317cd43440338c1ad0da7aacaadc43a2
2018-01-20 18:25:16 +00:00
Christopher Ferris 0ba2c9f4a2 Merge "Fix regression caused by libbacktrace API change." 2018-01-20 18:18:43 +00:00
Christopher Ferris e36afb0429 Fix regression caused by libbacktrace API change.
The stack dump was not printing leading zeros for data after the
change to remove uintptr_t types from the libbacktrace API.

Bug: 65682279

Test: Created an arm tombstone and an arm64 tombstone and verified
Test: that the stack data has leading zeros.
Change-Id: I1fbec2c4fa7c8b0fab18894c5628d18c5a580299
2018-01-20 00:59:11 -08:00
Josh Gao 76dd792450 Merge "debuggerd: add seccomp policies and tests."
am: fd0e0db391

Change-Id: If95e65c018e78dc62d351f03a8c2a0365f4cc0e6
2018-01-20 02:51:47 +00:00
Josh Gao fd0e0db391 Merge "debuggerd: add seccomp policies and tests." 2018-01-20 02:45:37 +00:00
Max Bires 69c428e5a6 Merge "Adding /data/local/traces for traceur app"
am: 658e4ddd03

Change-Id: Icd96940adf99c754a6bdb06c42ae8b1ad615cf9d
2018-01-20 00:57:00 +00:00
Treehugger Robot 658e4ddd03 Merge "Adding /data/local/traces for traceur app" 2018-01-20 00:51:30 +00:00
Christopher Ferris b5ca867bd5 Merge "Change all uintptr_t to uint64_t in API."
am: e20b4a48fe

Change-Id: Id0bb2e33e87a6889ded796fc29fdb6a273d4c5ff
2018-01-19 23:38:38 +00:00
Christopher Ferris e20b4a48fe Merge "Change all uintptr_t to uint64_t in API." 2018-01-19 23:30:33 +00:00
Elliott Hughes 944cc0d002 Merge "Fix fastboot memory corruption."
am: b6d7f2655d

Change-Id: Idc566a2dad5cdeeee1b049598d9b92e6cf7c3c73
2018-01-19 22:48:03 +00:00
Steven Moreland d5eccfd417 Init remove direct calls to light sys nodes.
These are halified. Instead launch blank_screen which
does the same task w/o init itself having binder
dependencies.

Bug: 70846424
Test: manual + reboot appears similar
Change-Id: If8b2a56cbc31077122ea81406721b06034e4498f
2018-01-19 14:45:10 -08:00
Treehugger Robot b6d7f2655d Merge "Fix fastboot memory corruption." 2018-01-19 22:39:14 +00:00
Tom Cherry 618d3102c9 Move all of init to libinit
I'd be not doing this for a while since some of this code doesn't
compile on host and libinit previously did.  But after realizing
the property_service.cpp (libinit) references symbols in init.cpp
(init) and seeing a new linker error crop up due to that, it's time to
make the fix.

My only hold out previously was that libinit compiled on host bionic
and some of init (builtins.cpp, etc) do not, however given that we
don't actually have host bionic support or host bionic init tests,
that isn't a good reason.  We can and should mock out the libraries
that aren't available with host bionic when ready.

Test: build, unit tests, boot
Change-Id: Ie49362ddb637924efc272540a4f32b693643fcdc
2018-01-19 14:25:48 -08:00
Steve Paik 10b149f18f Add force_suspend function
This CL implements a simple force_suspend().  This function takes a
timeoutMs argument that is currently ignored.  It also uses a two-stage
init process that spawns the suspend_thread when autosuspend is in use.

Follow-up CLs will:
- Implement file locking to prevent multiple libsuspend instances from
starting multiple suspend threads in the system.
- Fully implement timout for force_suspend.
- Integrate force_suspend with suspend_thred.

Bug: 70669809
Test:  autosuspend still works
Change-Id: I6b2c72d0c61d1bec6db0f0b28481ffe0e20ec615
2018-01-19 12:30:39 -08:00
Max Bires 181d11c5cb Adding /data/local/traces for traceur app
Traceur app is being split out of shell user. Previously it logged to
shell's bugreports directory. It no longer has access, so it needs a
new, user-friendly file location to store trace data.

Bug:68126425
Test: Traceur can write and shell can read from this directory
Change-Id: I9e344973fd43eb5699f7a848524e20b06458fb77
2018-01-19 09:37:44 -08:00
Ian Pedowitz 11ecd63660 Merge "Fixing app compat issue b/72143978"
am: 0f2ed7d398

Change-Id: Iee2097bf9db16f0056da2daa6c319a894078195a
2018-01-19 04:13:22 +00:00
Treehugger Robot 0f2ed7d398 Merge "Fixing app compat issue b/72143978" 2018-01-19 02:38:33 +00:00
Christopher Ferris 7937a36c8e Change all uintptr_t to uint64_t in API.
In order to support the offline unwinding properly, get rid of the
usage of non-fixed type uintptr_t from all API calls.

In addition, completely remove the old local and remote unwinding code
that used libunwind.

The next step will be to move the offline unwinding to the new unwinder.

Bug: 65682279

Test: Ran unit tests for libbacktrace/debuggerd.
Test: Ran debuggerd -b on a few arm and arm64 processes.
Test: Ran crasher and crasher64 and verified tombstones look correct.
Change-Id: Ib0c6cee3ad6785a102b74908a3d8e5e93e5c6b33
2018-01-18 17:26:20 -08:00
Elliott Hughes aaa3b6bbf2 Fix fastboot memory corruption.
Bug: http://b/68664649
Test: echo 'ANDROID!' > fake.img ; fastboot -c `python -c "print 'A'*4000"` boot fake.img
Change-Id: I3299e0fba24a6c1f6178c994731a94cea68f7254
2018-01-18 16:50:14 -08:00
Ian Pedowitz 7bb9785a1d Fixing app compat issue b/72143978
Revert "Remove obsolete workaround."

This reverts commit 1f3ac7583f.

Bug: 72143978
Bug: 24465209
Test: Tested failing case on sailfish, reverted back all CL's since
Test: 3471433 for b/24465209 and apps open
2018-01-18 16:25:24 -08:00
David Sehr 8b70132880 Merge "Remove libziparchive dependency on libutils"
am: 34f8eaab0d

Change-Id: I41c99c26aebc23b2cc1d82b2e147e5be5aada114
2018-01-19 00:21:21 +00:00
David Sehr 34f8eaab0d Merge "Remove libziparchive dependency on libutils" 2018-01-19 00:03:47 +00:00
Josh Gao e04ca2794a debuggerd: add seccomp policies and tests.
Bug: http://b/38508369
Test: debuggerd_test32/64 on walleye and aosp_x86_64
Change-Id: I7e69e37bcd1823d271b9f2b0a13b8c9cba9a8e84
2018-01-18 13:49:56 -08:00
Christopher Ferris 4e57346a75 Merge "Add support for getting a dex pc."
am: 5e5056c5a5

Change-Id: If01d3174ed5e874cb85cf728a52eed441fd3afbe
2018-01-18 18:51:14 +00:00
Christopher Ferris 5e5056c5a5 Merge "Add support for getting a dex pc." 2018-01-18 18:45:56 +00:00
David Sehr abfb9f3b99 Remove libziparchive dependency on libutils
Prevent future cyclic dependency from libunwind changes.

Bug: 66919073
Test: make -j 50
Change-Id: I2a4fa5b7c2c3a82db2073d0fa51940da6603be1f
2018-01-18 09:23:53 -08:00
Christopher Ferris 98984b41da Add support for getting a dex pc.
Changes:
- Change the register type from int16_t to uint32_t for the location data
  and the Eval processing. This is because the special dex pc is > 65535.
- Add the ability for Dwarf register location information to point to a
  register that is itself a Dwarf location register.
- Add dex_pc to the frame information.
- Modify the unwind tool to print the dex pc if non-zero.

This does not implement the printing of the dex information in anything
but the unwind tool. It's not the final form of this printing.

Bug: 72070049

Test: Ran new unit tests.
Test: Dumped stack while in interpreter running 137-cfi art test and
Test: verified dex pc is set to non-zero.
Change-Id: I6ce8a6b577fb4f92abacbd433b1f68977e272542
2018-01-17 19:18:00 -08:00
Jaekyun Seok b759ceeb62 Merge "Apply the whitelist of actionable system properties"
am: 2c4f487dfb

Change-Id: I4668917ec7e27640a95a577e816afd72f37db91f
2018-01-18 02:17:02 +00:00
Tom Cherry 3657c80c79 Merge "Introduce property types"
am: a0ffad60ef

Change-Id: Ideb5035d125c541eb763ab5ffde97f899778b25e
2018-01-18 02:16:35 +00:00
Treehugger Robot 2c4f487dfb Merge "Apply the whitelist of actionable system properties" 2018-01-17 21:57:08 +00:00
Tom Cherry a0ffad60ef Merge "Introduce property types" 2018-01-17 21:01:33 +00:00
Jaekyun Seok eeb2188554 Apply the whitelist of actionable system properties
This whitelist will be applied only when
ro.actionable_compatible_property.enabled is true.

Bug: 38146102
Test: tested on walleye with ro.actionable_compatible_property.enabled=true
Change-Id: Ifd7211396b53e50a06d79e7c67224e2b38ef7c9d
2018-01-18 04:38:01 +09:00
Christopher Ferris 422fafeb40 Merge "Find first non-zero jit debug entry."
am: 765516ecaf

Change-Id: I3d2993b20e3ed791c24e8372c8694b3cc3d96312
2018-01-17 18:11:28 +00:00
Christopher Ferris 765516ecaf Merge "Find first non-zero jit debug entry." 2018-01-17 18:07:55 +00:00
Justin Yun 3060be356f Merge "Add VNDK version suffix in ld.config.txt on build time."
am: 447280cea0

Change-Id: Id4e165610e03ca7b8f0bc9aca781382f48f2cd1c
2018-01-17 07:55:22 +00:00
Justin Yun 447280cea0 Merge "Add VNDK version suffix in ld.config.txt on build time." 2018-01-17 07:49:52 +00:00
Justin Yun cbbf195e46 Add VNDK version suffix in ld.config.txt on build time.
As we use different ld.config.txt per version, we don't need to
substitute the VNDK_VER on run time.
Remove all ${VNDK_VER} from the linker namespace configuration files.

Bug: 70603313
Test: build and boot GSI for walleye and sailfish
Change-Id: Ief8aee5c3308b2462cafaffc2423deda4e51a7bb
2018-01-17 12:14:25 +09:00
Badhri Jagan Sridharan 5e1a0ca634 Initial commit for usb daemon
usbd checks whether adb is enabled by default, if yes,
would start adbd and would call into usb hal to configure
usb gadget stack.

Bug: 63669128
Test: Verify that adb gets configured when enabled
Change-Id: If6d06cdadd6d93f181d56619142cbbb04d39a5cd
2018-01-16 18:03:58 -08:00
Oscar Shu b4d9751eab Merge "Firmware dump create directory"
am: da007e0deb

Change-Id: I5b716bb31477fa958e49c32b8dd82a533fb935e5
2018-01-17 00:04:27 +00:00