예제 #1
0
        private void buttonExFrameware_Click(object sender, EventArgs e)
        {
            bool adbState = mCmd.excuteCmdGetAdbState();

            if (!adbState)
            {
                MessageBox.Show(Enums.Error.ADB, Enums.Title.ERROR);
                return;
            }

            CmdOption option = new CmdOption(2);

            option.path[0]       = PATH_NET + Enums.AndroidPath.SYSTEM_FRAMEWORK + Enums.UpdateFileName.FRAMEWORK2_JAR;
            option.dst[0]        = Enums.AndroidPath.SYSTEM_FRAMEWORK + Enums.UpdateFileName.FRAMEWORK2_JAR;
            option.permission[0] = Enums.LinuxPermission.NO_CHANGE;
            option.path[1]       = PATH_NET + @Enums.AndroidPath.SYSTEM_FRAMEWORK + Enums.UpdateFileName.FRAMEWORK2_JAR;
            option.dst[1]        = Enums.AndroidPath.SYSTEM_FRAMEWORK + Enums.UpdateFileName.FRAMEWORK2_JAR;
            option.permission[1] = Enums.LinuxPermission.NO_CHANGE;

            mThreadCmd.startCmdUpdateThread(option, mProgressBarUpdate);
        }
예제 #2
0
        private void buttonExBusybox_Click(object sender, EventArgs e)
        {
            bool adbState = mCmd.excuteCmdGetAdbState();

            if (!adbState)
            {
                MessageBox.Show(Enums.Error.ADB, Enums.Title.ERROR);
                return;
            }

            CmdOption option = new CmdOption(1);

            option.path[0]       = Enums.Path.PATH_SRC + Enums.ThirdAppFileName.BUSYBOX;
            option.dst[0]        = Enums.AndroidPath.SYSTEM_BIN + Enums.ThirdAppFileName.BUSYBOX;
            option.permission[0] = Enums.LinuxPermission.RWX_RWX_RWX;
            mThreadCmd.startCmdUpdateThread(option, mProgressBarUpdate);
        }
예제 #3
0
 private void funcClickFramware()
 {
     mThread.startCmdUpdateThread(mOption, mBar);
 }