commit | 2e036c98b4e5d9871840bc87e31db45b38cfec7e | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Mar 07 13:18:12 2017 -0800 |
committer | Yifan Hong <elsk@google.com> | Wed Mar 08 17:08:18 2017 -0800 |
tree | aee1a2e90d99c43b4f332a78a29b780f71ec1db2 | |
parent | 3ac9f70571828f62152e1c0c84b2d655fd2e83bd [diff] |
Disable getDebugInfo address leak for production builds. On production builds debugfs won't be available, so lshal cannot infer binder relationships anyway. The address leak on production builds also expose a security hole for address space attacks. Added a build-time flag to disable the address leak on user builds. The address will still be exposed for eng and userdebug builds so that lshal can work properly. Bug: 34899586 Test: lshal still works Change-Id: Ib28b03fa1aab344cb0c49880640076493db6ff37
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0