OSDN Git Service

Add `lshal debug` command.
authorYifan Hong <elsk@google.com>
Wed, 10 May 2017 02:33:08 +0000 (19:33 -0700)
committerYifan Hong <elsk@google.com>
Fri, 12 May 2017 19:47:43 +0000 (12:47 -0700)
commit48dc9f8586c288e152bdd5e14423281764f8db5f
treefd168878fff560b5b8d4e3cd69408cf91ebea743
parent443df7932cedd88d523164ac7175fa19ec553c7b
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
cmds/lshal/Android.bp
cmds/lshal/DebugCommand.cpp [new file with mode: 0644]
cmds/lshal/DebugCommand.h [new file with mode: 0644]
cmds/lshal/ListCommand.cpp
cmds/lshal/Lshal.cpp
cmds/lshal/Lshal.h
cmds/lshal/utils.h