Add `lshal debug` command.
Supported command:
lshal debug android.hardware.foo@1.0::IFoo option option
Test: adb unroot && lshal --debug ; echo $?
Test: adb unroot && lshal debug android.hardware.nfc@1.0::INfc ; echo $?
Test: adb root && lshal --debug ; echo $?
Test: adb root && lshal debug android.hardware.nfc@1.0::INfc ; echo $?
Bug: 37954458
Change-Id: Ia2f4c9c0d3fb0a7bb26e76f01d02f49dc426e7f8
diff --git a/cmds/lshal/Lshal.h b/cmds/lshal/Lshal.h
index cabf503..cf77b6b 100644
--- a/cmds/lshal/Lshal.h
+++ b/cmds/lshal/Lshal.h
@@ -38,12 +38,12 @@
NullableOStream<std::ostream> err() const;
NullableOStream<std::ostream> out() const;
- static void emitDebugInfo(
- const sp<hidl::manager::V1_0::IServiceManager> &serviceManager,
+ Status emitDebugInfo(
const std::string &interfaceName,
const std::string &instanceName,
const std::vector<std::string> &options,
- std::ostream &out);
+ std::ostream &out,
+ NullableOStream<std::ostream> err) const;
private:
Status parseArgs(const Arg &arg);
std::string mCommand;