E:/Tools/aapt.exe dump badging D:/dev.apk | find "application-label:"
同样的命令 在cmd下得到的是
application-label:'xxxx'
而java 调用得到的确实没有过滤 application-label:的整个内容
或者如何得到像命令行那样的结果?
String cmd="E:/Tools/aapt.exe dump badging D:/dev.apk | find \"application-label:\""
Process p = Runtime.getRuntime().exec(cmd);
InputStream is = p.getInputStream();
String val = new String(Streams.readBytesAndClose(is));
System.out.println(val);