Commit Graph

39164 Commits

Author SHA1 Message Date
Tom Cherry 325e90ec5d Merge "getprop: add -T option to return a property's type" am: 5939c71606 am: c9c3a95944
am: eac9c69239

Change-Id: I1855d536c89d9548eb595001de6ff4d41b82d52b
2018-01-12 22:03:06 +00:00
Tom Cherry eac9c69239 Merge "getprop: add -T option to return a property's type" am: 5939c71606
am: c9c3a95944

Change-Id: I057e48074ec5dbdc6f05df487771375d392ee77d
2018-01-12 21:50:58 +00:00
Tom Cherry c9c3a95944 Merge "getprop: add -T option to return a property's type"
am: 5939c71606

Change-Id: Ief12a7e76bce51cf77ccb1b9becd1e3202325e4a
2018-01-12 21:39:25 +00:00
Jeff Vander Stoep e2f77d8ef1 OWNERS: add myself
Test: none
Change-Id: I150226c19370a2c5f06781003ec88befa0e91da7
2018-01-12 13:31:54 -08:00
Tom Cherry 5939c71606 Merge "getprop: add -T option to return a property's type" 2018-01-12 21:30:39 +00:00
Tom Cherry 36ec2cf8a5 Merge "init: always expand args in subcontext" am: c64c006991 am: a89077ad35
am: adcfcca845

Change-Id: I752934e23056eb638981f9d9a63e2a023b67d98d
2018-01-12 21:26:01 +00:00
Tom Cherry adcfcca845 Merge "init: always expand args in subcontext" am: c64c006991
am: a89077ad35

Change-Id: I7035d572fe1055bc3a98ee8c8ba1da057918525e
2018-01-12 21:20:58 +00:00
Tom Cherry a89077ad35 Merge "init: always expand args in subcontext"
am: c64c006991

Change-Id: Ib7fcf2c8ecebf13ffaff6458d05147bbf45541ce
2018-01-12 21:16:24 +00:00
Tom Cherry c64c006991 Merge "init: always expand args in subcontext" 2018-01-12 21:06:59 +00:00
Tom Cherry c7b20f6f4e Merge "Rename property 'schema' to 'type'" am: ceecbfc40e am: c78060f51b
am: fd162d3242

Change-Id: I358050d19897fa5b74bd781f58e3157c8bc014f8
2018-01-12 20:15:09 +00:00
Jeff Sharkey e2e3610e6e Add "default_normal" support for sdcardfs.
Also cleans up fallback-retry logic for older kernels by
progressively removing each newer flag with each retry.

Test: internal CTS
Bug: 64672411
Change-Id: I3de3b64b68838fb2ef4505fe73c4e9865b2f9026
2018-01-12 13:11:31 -07:00
Ryo Hashimoto d2d8eabf67 sdcard: Use AID_ROOT constant
To be consistent with the other parts of the code,
and to make it easy to use a differnt value when running in a container.

Bug: 69142822
Test: build
Change-Id: I9b2c7744e3867bb15511dd4ddd7bce281d758a7b
2018-01-12 13:09:54 -07:00
Tom Cherry fd162d3242 Merge "Rename property 'schema' to 'type'" am: ceecbfc40e
am: c78060f51b

Change-Id: I14cfceb27b3c95af90b0201f864f7c8d8dffa066
2018-01-12 19:57:54 +00:00
Tom Cherry c78060f51b Merge "Rename property 'schema' to 'type'"
am: ceecbfc40e

Change-Id: I64f6fa7ae31244bd28d51abded337d466e22c46a
2018-01-12 19:32:53 +00:00
Tom Cherry 8573b55f0f getprop: add -T option to return a property's type
Bug: 70858511
Test: Return property types correctly
Change-Id: I506582d88c12a7f52d699635a41b24de4bc80289
2018-01-12 11:26:46 -08:00
Christopher Ferris 150db124f3 Add ability to read jit gdb data.
Changes:
- New JitDebug class to handle all of the jit gdb interface.
- Add unit tests for all, along with new offline test using debug data.
- Add new Memory type called MemoryOfflineParts that has multiple
  MemoryOffline objects to support the offline test.
- Update the tools to use the JitDebug object.
- Modify libbacktrace to use the JitDebug, but only looking in libart.so
  and libartd.so.
- Change the Format32Bits to Is32Bit since it's more accurate and I use
  it in a different context where original name didn't make sense.
- Add a new function to find global variables in an elf file
  (GetGlobalVariable).
- Add a new function to determine if a pc is valid for this elf (IsValidPc).

Bug: 68396769

Test: Ran new unit tests. Added new offline test that uses jit debug data.
Test: Ran art test that generates jit data and verified a crash unwinds
Test: through the jit data.
Change-Id: I6e7ee2f5bab2242028a06feece156dff21c0a974
2018-01-12 11:18:42 -08:00
Tom Cherry ceecbfc40e Merge "Rename property 'schema' to 'type'" 2018-01-12 19:13:44 +00:00
Tom Cherry c49719fc5d init: always expand args in subcontext
Currently init expands properties in arguments only when those
commands are run in a subcontext.  This creates a hole where
properties that should not be accessible from a given subcontext of
init can be accessed when running a command in the main init
executable (for example `start`).

This change creates a callback in subcontext init that simply expands
and returns arguments back to the main init process, to ensure that
only those properties that a subcontext can access get expanded.

Bug: 62875318
Test: boot bullhead, new unit tests
Change-Id: I2850009e70da877c08e4cc83350c727b0ea98796
2018-01-12 10:35:26 -08:00
TreeHugger Robot adf13fe779 Merge "Add libhealthstoragedefault to make files" 2018-01-12 17:44:17 +00:00
Hridya Valsaraju 89178e79d5 Add libhealthstoragedefault to make files
This is to add empty implementations of methods
reporting storage health.

Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: If6180c22a4b356650084df61b1e24af3de0ca67e
2018-01-11 22:16:16 -08:00
Tom Cherry 4094e5ee2e Rename property 'schema' to 'type'
Bug: 70858511
Test: boot
Change-Id: I8e17596ddd8393f245c7e02ff72765c84d3bb208
2018-01-11 16:26:50 -08:00
Krzysztof Wesolowski b0e17c9e91 Improve ALOGV compatiblity with clang-tidy
Currently used clang tidy does not filter the warnings caused
by macros, even if macros come from filtered headers.

This change allows projects using ALOGV to use
readability-implicit-bool-conversion without spreading //NOLINT everywhere.

Bug: 71533509
Change-Id: Id1b193d1e56d13f00171e04f600292877c5f6cb3
2018-01-11 11:11:20 -08:00
Vasily Tarasov 9ed497517c Merge "Adding per-method clang thread safety annotations" am: 55feb241b1 am: c0bc2616c4
am: cef2b78e6a

Change-Id: I8fc4e19c50c8baeef07680455e020231e25efa6e
2018-01-11 18:03:16 +00:00
Vasily Tarasov cef2b78e6a Merge "Adding per-method clang thread safety annotations" am: 55feb241b1
am: c0bc2616c4

Change-Id: Ic79043ca9243c7a3439733b00063906dcc7f2e4a
2018-01-11 17:59:45 +00:00
Vasily Tarasov c0bc2616c4 Merge "Adding per-method clang thread safety annotations"
am: 55feb241b1

Change-Id: I1801a3a6ca1b297189a5a7b4f3f2315684ba3580
2018-01-11 17:55:17 +00:00
Vasily Tarasov 55feb241b1 Merge "Adding per-method clang thread safety annotations" 2018-01-11 17:48:33 +00:00
Tom Cherry 7df29bbfb2 Merge "Reland: Add getprop to toolbox" am: eac86b0ea9 am: 19c3572414
am: f2e90d9eaf

Change-Id: I1332829476788b9a3f9cc3f6e51ece7f043448d4
2018-01-11 16:43:13 +00:00
Tom Cherry f2e90d9eaf Merge "Reland: Add getprop to toolbox" am: eac86b0ea9
am: 19c3572414

Change-Id: I40033bcc2cb689f5a704d367459fa7adf8409738
2018-01-11 16:40:07 +00:00
Tom Cherry 19c3572414 Merge "Reland: Add getprop to toolbox"
am: eac86b0ea9

Change-Id: Ia0020e6f82e3ca801b191f5b54939dad05b5ebe1
2018-01-11 16:37:39 +00:00
Tom Cherry eac86b0ea9 Merge "Reland: Add getprop to toolbox" 2018-01-11 16:31:50 +00:00
Justin Yun d7bfaea62b Merge "Do not append VNDK version if VNDK is not used" am: 4d281880e0 am: 9c378b0e37
am: 30ac0d7a27

Change-Id: I4493f92bf877d9a792837df5c062570f972a6901
2018-01-10 23:52:34 +00:00
Justin Yun 30ac0d7a27 Merge "Do not append VNDK version if VNDK is not used" am: 4d281880e0
am: 9c378b0e37

Change-Id: I106323cbf711954bf65c9a8ca1dce637571eee14
2018-01-10 23:48:00 +00:00
Justin Yun 9c378b0e37 Merge "Do not append VNDK version if VNDK is not used"
am: 4d281880e0

Change-Id: Icdabede4ffa6a963b79460358266ae0c230d6fc1
2018-01-10 23:44:30 +00:00
Treehugger Robot 4d281880e0 Merge "Do not append VNDK version if VNDK is not used" 2018-01-10 23:30:47 +00:00
Justin Yun dd16301bab Do not append VNDK version if VNDK is not used
If BOARD_VNDK_VERSION is not defined, ro.vndk.version will not be
set. In this case, the device, is not able to use versioned
configuration files.
Check BOARD_VNDK_VERSION to append the VNDK version to the namespace
configuration files.

Bug: 71730104
Test: Check boot on both 2016 and 2017 Pixel devices.
Change-Id: I1df27c75de42a526768a156387f22a934cda6d72
2018-01-11 08:29:54 +09:00
Vasily Tarasov 713f289dd0 Adding per-method clang thread safety annotations
Change-Id: Ic92702a06570f48bf3616e0ee959a49e1eec393c
2018-01-10 12:25:32 -08:00
Tom Cherry 91094e06ce Reland: Add getprop to toolbox
Add a non-toybox version of getprop, so that we can interface with the
new C++ PropertyInfoAreaFile class to return property context
information.

Bug: 36001741
Test: Compared toolbox getprop results with toybox getprop
Change-Id: I4e90aa5b843cb5cfcbe85f05f23ae8e22729b26e
2018-01-10 11:26:24 -08:00
Tom Cherry 781715eab8 Merge "Add toolbox to vendor" am: ea4c7d5727 am: e575b4830c
am: dff7c03f59

Change-Id: Ic948ad609c834ac8e7d66418ea5c6cda3b66a8e3
2018-01-10 18:25:43 +00:00
Tom Cherry dff7c03f59 Merge "Add toolbox to vendor" am: ea4c7d5727
am: e575b4830c

Change-Id: I5caafa6fca1b70b18a16da4bd501beab21fa8380
2018-01-10 18:22:40 +00:00
Tom Cherry e575b4830c Merge "Add toolbox to vendor"
am: ea4c7d5727

Change-Id: I62f3796b693faa5c1bc8dfb70c04a176fa3611f6
2018-01-10 18:19:36 +00:00
Tom Cherry ea4c7d5727 Merge "Add toolbox to vendor" 2018-01-10 18:14:17 +00:00
Yi Jin 1a9ce68d28 Merge "Add AID_STATSD and AID_INCIDENTD for statsd/incidentd daemons." am: e0fc36c47b am: e3decc326b
am: 9619908f81

Change-Id: I9a64529cb53f557a55d8d1acb4137ade1d38643d
2018-01-10 03:02:08 +00:00
Yi Jin 9619908f81 Merge "Add AID_STATSD and AID_INCIDENTD for statsd/incidentd daemons." am: e0fc36c47b
am: e3decc326b

Change-Id: I68cd26b975c2e40ffd0bd718d1a7f5dc58a4f1a0
2018-01-10 02:59:34 +00:00
Elliott Hughes 7be1667f4e Merge "Just check in tools.h." am: 5edeadb53b am: 867c944982
am: d750fbde59

Change-Id: Iec68bcf6db93a8f0c07eb4578e8c8239b7542642
2018-01-10 02:58:37 +00:00
Elliott Hughes d750fbde59 Merge "Just check in tools.h." am: 5edeadb53b
am: 867c944982

Change-Id: I8e564631d8c9beda3f19565fd2ecd0d47faeb260
2018-01-10 02:56:02 +00:00
Yi Jin e3decc326b Merge "Add AID_STATSD and AID_INCIDENTD for statsd/incidentd daemons."
am: e0fc36c47b

Change-Id: I6e90afed40653af01c602b37f03f741fe8f35e39
2018-01-10 02:55:52 +00:00
Elliott Hughes 867c944982 Merge "Just check in tools.h."
am: 5edeadb53b

Change-Id: I2e47504d60f963f994c6486b031a3d9c9588cb0e
2018-01-10 02:52:31 +00:00
Treehugger Robot e0fc36c47b Merge "Add AID_STATSD and AID_INCIDENTD for statsd/incidentd daemons." 2018-01-10 02:51:19 +00:00
Elliott Hughes 5edeadb53b Merge "Just check in tools.h." 2018-01-10 02:45:37 +00:00
Elliott Hughes 8aed3bd299 Merge "Remove obsolete workaround." am: 3553883418 am: 5cae04313e
am: 8e26cb05ab

Change-Id: I79b3499aac4b9926aeab8b6b5f722f80ecfadf90
2018-01-10 02:00:24 +00:00