Skip to content

Commit dacf6a8

Browse files
committed
First usable version(Keys,Filesystems,etc)...
1 parent 1805cfe commit dacf6a8

9 files changed

+369
-55
lines changed

Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LOCAL_MODULE := recovery
4444

4545
LOCAL_FORCE_STATIC_EXECUTABLE := true
4646

47-
RECOVERY_VERSION := ClockworkMod Recovery v2.5.1.0
47+
RECOVERY_VERSION := CMod Recovery v2.5.1.0 + XM0.1
4848
LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
4949
RECOVERY_API_VERSION := 2
5050
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)

common.h

+58
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,65 @@ void ui_reset_progress();
9696
#define LOGD(...) do {} while (0)
9797
#endif
9898

99+
// Dream-specific key codes by LeshaK
100+
// Modify for Samsung Spica i5700
101+
102+
#define KEY_DREAM_HOME 227 // = KEY_HOME
103+
#define KEY_DREAM_RED 249 // = KEY_END
104+
#define KEY_DREAM_VOLUMEDOWN 209 // = KEY_VOLUMEDOWN
105+
#define KEY_DREAM_VOLUMEUP 201 // = KEY_VOLUMEUP
106+
#define KEY_DREAM_SYM 127 // = KEY_COMPOSE
107+
#define KEY_DREAM_MENU 211 // = KEY_MENU
108+
#define KEY_DREAM_BACK 212 // = KEY_BACK
109+
#define KEY_DREAM_FOCUS 211 // = KEY_HP (light touch on camera)
110+
#define KEY_DREAM_CAMERA 250 // = KEY_CAMERA
111+
#define KEY_DREAM_AT 215 // = KEY_EMAIL
112+
#define KEY_DREAM_GREEN 231
113+
#define KEY_DREAM_FATTOUCH 258 // = BTN_2 ???
114+
#define KEY_DREAM_BALL 272 // = BTN_MOUSE
115+
#define KEY_DREAM_TOUCH 330 // = BTN_TOUCH
116+
117+
// For Samsung by LeshaK
118+
#define KEY_I5700_CENTER 204
119+
#define KEY_I5700_DOWN 210
120+
#define KEY_I5700_UP 202
121+
122+
//Redefine defaults
123+
#undef KEY_HOME
124+
#define KEY_HOME KEY_DREAM_HOME
125+
#undef KEY_END
126+
#define KEY_END KEY_DREAM_RED
127+
#undef KEY_VOLUMEDOWN
128+
#define KEY_VOLUMEDOWN KEY_DREAM_VOLUMEDOWN
129+
#undef KEY_VOLUMEUP
130+
#define KEY_VOLUMEUP KEY_DREAM_VOLUMEUP
131+
#undef KEY_COMPOSE
132+
#define KEY_COMPOSE KEY_DREAM_SYM
133+
#undef KEY_MENU
134+
#define KEY_MENU KEY_DREAM_MENU
135+
#undef KEY_BACK
136+
#define KEY_BACK KEY_DREAM_BACK
137+
#undef KEY_HP
138+
#define KEY_HP KEY_DREAM_FOCUS
139+
#undef KEY_CAMERA
140+
#define KEY_CAMERA KEY_DREAM_CAMERA
141+
#undef KEY_EMAIL
142+
#define KEY_EMAIL KEY_DREAM_AT
143+
#undef BTN_2
144+
#define BTN_2 KEY_DREAM_FATTOUCH
145+
#undef BTN_MOUSE
146+
#define BTN_MOUSE KEY_DREAM_BALL
147+
#undef BTN_TOUCH
148+
#define BTN_TOUCH KEY_DREAM_TOUCH
149+
#undef KEY_DOWN
150+
#define KEY_DOWN KEY_I5700_DOWN
151+
#undef KEY_UP
152+
#define KEY_UP KEY_I5700_UP
153+
#undef KEY_SEND
154+
#define KEY_SEND KEY_I5700_CENTER
155+
99156
#define STRINGIFY(x) #x
100157
#define EXPAND(x) STRINGIFY(x)
158+
//#define DEBUG 1
101159

102160
#endif // RECOVERY_COMMON_H

extendedcommands.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void show_choose_zip_menu()
332332

333333
// This was pulled from bionic: The default system command always looks
334334
// for shell in /system/bin/sh. This is bad.
335-
#define _PATH_BSHELL "/sbin/sh"
335+
#define _PATH_BSHELL "/sbin/ash"
336336

337337
extern char **environ;
338338
int
@@ -692,7 +692,7 @@ void show_nandroid_advanced_restore_menu()
692692
NULL
693693
};
694694

695-
char* file = choose_file_menu("/sdcard/clockworkmod/backup/", NULL, advancedheaders);
695+
char* file = choose_file_menu("/sdcard/clockworkdmod/backup/", NULL, advancedheaders);
696696
if (file == NULL)
697697
return;
698698

@@ -959,4 +959,4 @@ void handle_failure(int ret)
959959
mkdir("/sdcard/clockworkmod", S_IRWXU);
960960
__system("cp /tmp/recovery.log /sdcard/clockworkmod/recovery.log");
961961
ui_print("/tmp/recovery.log was copied to /sdcard/clockworkmod/recovery.log. Please open ROM Manager to report the issue.\n");
962-
}
962+
}

minui/graphics.c

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static void get_memory_surface(GGLSurface* ms) {
112112

113113
static void set_active_framebuffer(unsigned n)
114114
{
115+
return;
115116
if (n > 1) return;
116117
vi.yres_virtual = vi.yres * 2;
117118
vi.yoffset = n * vi.yres;

0 commit comments

Comments
 (0)