public String getType() { mCmd.excuteCmdPull("/system/build.prop"); FileInfo info = new FileInfo(Enums.Path.BUILD); if (info.Exists == false) { Console.WriteLine("getType failed 1 " + Enums.Path.BUILD); return(null); } String s = mParse.getLineString(Enums.Path.BUILD, "ro.product.model"); if (s == null) { Console.WriteLine("getType failed 2 " + Enums.Path.BUILD); return(null); } else { if (s.Length > 17) { return(s.Substring(17)); } else { Console.WriteLine("getType failed 3 " + Enums.Path.BUILD); return(null); } } }
private void pullThread(Object obj) { String s = (String)obj; bool ret = true; ret = mCmd.excuteCmdPull(s); mIntfResult.setResult(Enums.CmdType.PULL, ret); }