TWRP-ify AOSP code

Pull in most TWRP sources
Stub out partition management code
Make it compile -- probably will not boot
Kind of a mess but have to start somewhere
This commit is contained in:
Dees_Troy
2012-09-05 15:24:24 -04:00
parent 240e4a7247
commit 51a0e82eb2
757 changed files with 165707 additions and 109 deletions
+5 -1
View File
@@ -33,6 +33,10 @@
#include "minui/minui.h"
#include "screen_ui.h"
#include "ui.h"
extern "C" {
#include "minuitwrp/minui.h"
int twgr_text(int x, int y, const char *s);
}
#define CHAR_WIDTH 10
#define CHAR_HEIGHT 18
@@ -162,7 +166,7 @@ void ScreenRecoveryUI::draw_progress_locked()
void ScreenRecoveryUI::draw_text_line(int row, const char* t) {
if (t[0] != '\0') {
gr_text(0, (row+1)*CHAR_HEIGHT-1, t);
twgr_text(0, (row+1)*CHAR_HEIGHT-1, t);
}
}