如何在xposed下获取被hook的软件内的百度地图定位SDK版本

问题遇到的现象和发生背景

如何在xposed下获取被hook的软件内的百度地图定位SDK版本

用代码块功能插入代码,请勿粘贴截图

我尝试用要callMethod让目标APP运行getVersion(),但xp崩溃并不能获得

ClassLoader classLoader = loadPackageParam.classLoader;
Class c = XposedHelpers.findClass("com.baidu.location.LocationClient", classLoader);
String obj =(String) XposedHelpers.callMethod(obj, "getVersion");
XposedBridge.log(obj);