示例#1
0
int DMAgent::setRebootFlag() {
	XLOGD("[REBOOT_FLAG] : enter setRebootFlag");
	char cmd[] = "boot-recovery";
	int ret = writeRebootFlash(cmd);
	if (ret < 1) {
		XLOGE("Write boot-recovery to misc error");
		return ret;
	}

	ret = setRecoveryCommand();
	if (ret < 1) {
		XLOGE("Wirte recovery command error");
	}

	return ret;
	//	char cmd[] = "boot-recovery";
	//	return writeRebootFlash(cmd);
}
示例#2
0
int DMAgent::clearRebootFlag() {
	XLOGD("[REBOOT_FLAG] : enter clearRebootFlag");
	//boot to android the command is null
	char cmd[] = "";
	return writeRebootFlash(cmd);
}
int GoogleOtaAgent::setRebootFlag()
{

    char cmd[] = "boot-recovery";
    return writeRebootFlash(cmd);
}