Skip to content

Commit

Permalink
Disabled kext signing verification (should fix #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-poidevin committed Nov 3, 2017
1 parent d0931f4 commit d59406c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ void MainWindow::on_patchButton_clicked()
}while(errorOutput.contains("try again"));

logger->write(" ********** Starting MBP GPU Fix **********\n");
//Disable signing extension verification
disableKextSigning();
isErrorPatching = patchKernelExtensionFile(&kernelFile);
#ifndef TEST
if(isErrorPatching == false)
Expand Down Expand Up @@ -274,6 +276,18 @@ bool MainWindow::isSIPEnabled(void)
#endif
}

int MainWindow::disableKextSigning()
{
QProcess process;
QString command;
QStringList arguments;

logger->write("Disabling Kext Signing verification : ");
command = "sudo nvram boot-args=kext-dev-mode=1";
arguments.clear();
return executeProcess(&process,command,arguments);
}

int MainWindow::executeProcess(QProcess* process, QString command, QStringList arguments)
{
QString errorOutput;
Expand Down
1 change: 1 addition & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private slots:
QDomElement findElementChild(QDomElement parent, const QString &textToFind);
QDomElement findElementSibling(QDomElement parent, const QString &textToFind);
bool isSIPEnabled(void);
int disableKextSigning(void);
int executeProcess(QProcess* process,QString command,QStringList arguments);
};

Expand Down

0 comments on commit d59406c

Please sign in to comment.