예제 #1
0
        public bool excuteCmdFlashBoot(String s)
        {
            CmdResult result = new CmdResult();
            bool      exist  = File.Exists(s);

            if (exist)
            {
                result = excuteCmd(Enums.CmdType.CMD_FASTBOOT, "flash boot " + s, true);
            }
            else
            {
                s += " is not exist";
                s += "\r\n";
                if ((mIntfShow != null))
                {
                    mIntfShow.showText(s);
                }
            }
            return(exist & result.getResult());
        }
예제 #2
0
        public bool excuteCmdPull(String file)
        {
            CmdResult result = excuteCmd(Enums.CmdType.CMD_ADB, " pull " + file + " " + Enums.Path.CACHE, true);

            return(result.getResult());
        }
예제 #3
0
        public bool excuteCmdSearch(String file)
        {
            CmdResult result = excuteCmd(Enums.CmdType.CMD_ADB, " shell busybox find . -name " + file, true);

            return(result.getResult());
        }
예제 #4
0
        ///
        ///
        public bool excuteCmdExistFile(String s)
        {
            CmdResult res = excuteCmd(Enums.CmdType.CMD_ADB, " shell ls " + s, true);

            return(res.getResult());
        }