commit | 9c74a5b76b0c3672ac640fc0750ccbd2b39943a1 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Apr 04 13:27:25 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue Apr 04 15:43:53 2017 -0700 |
tree | 3d009bdf0650e9780843971c244ef9c2b9fabde6 | |
parent | 200209cb76dfb63d1cb3d97a821690ef40b31055 [diff] |
Fix getService should retry on DEAD_OBJECT If getService sees DEAD_OBJECT or nullptr when calling interfaceChain on the retrieved service, it should retry. Otherwise (e.g. TRANSACTION_FAILED for selinux denials), it should bail out. This retry doesn't happen for tryGetService. Test: calling Debug.getMemoryInfo from apps does not hang Test: kill system_server, audio_server restarts exactly once (tested 10/10 times) Test: taking screenshots / using camera / using maps Test: adb push $OUT/data/nativetest/VtsHalNfcV1_0TargetTest/VtsHalNfcV1_0TargetTest /data/local/tmp && adb shell /data/local/tmp/VtsHalNfcV1_0TargetTest Test: hidl_test Bug: 36153684 Bug: 36611652 Change-Id: Ibc0de0953dffea52acb366faf09f397176554502
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