diff options
author | 2017-01-21 21:24:59 +0000 | |
---|---|---|
committer | 2017-01-21 21:24:59 +0000 | |
commit | bb7afe6ac9ba568416c48eb44428578238ac12f8 (patch) | |
tree | d5951258a959769499b1a0c509a4881838621153 /cmds/dumpsys/main.cpp | |
parent | f876f22584750e6d951ad318e5f39e236861bd06 (diff) | |
parent | 42b3ff58a650b78b68c6c4a2ac3c5b340ad9de79 (diff) |
Merge "dumpsys: add option to list hardware services." am: 4d741ebedc am: 57d82aa9fd
am: 42b3ff58a6
Change-Id: If9c58d07862e23e96ce89dc0fa282f49302379bb
Diffstat (limited to 'cmds/dumpsys/main.cpp')
-rw-r--r-- | cmds/dumpsys/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/dumpsys/main.cpp b/cmds/dumpsys/main.cpp index 8ba0eba0fa..b180c98e79 100644 --- a/cmds/dumpsys/main.cpp +++ b/cmds/dumpsys/main.cpp @@ -27,6 +27,7 @@ #include <stdio.h> using namespace android; +using HServiceManager = android::hidl::manager::V1_0::IServiceManager; int main(int argc, char* const argv[]) { signal(SIGPIPE, SIG_IGN); @@ -38,6 +39,8 @@ int main(int argc, char* const argv[]) { return 20; } - Dumpsys dumpsys(sm.get()); + sp<HServiceManager> hm = HServiceManager::getService("manager"); + + Dumpsys dumpsys(sm.get(), hm.get()); return dumpsys.main(argc, argv); } |