Exemplo n.º 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);
}
Exemplo n.º 2
0
int DMAgent::clearRebootFlag() {
	XLOGD("[REBOOT_FLAG] : enter clearRebootFlag");
	//boot to android the command is null
	char cmd[] = "";
	return writeRebootFlash(cmd);
}
Exemplo n.º 3
0
int GoogleOtaAgent::setRebootFlag()
{

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