Guest dejf Posted November 23, 2012 Report Posted November 23, 2012 HI, when i was testing ics4blade_alpha17.zip, I flashed very strange CWM recovery which can only turn on/off the screen. I have broken display so I have to turn my display off and then on to get display working. I need this function in CWM, so I downloaded sources and found the bootable/recovery/default_recovery_ui.c file, then changed line int device_toggle_display(volatile char* key_pressed, int key_code) { int alt = key_pressed[KEY_LEFTALT] || key_pressed[KEY_RIGHTALT]; if (alt && key_code == KEY_L) return 1; // allow toggling of the display if the correct key is pressed, and the display toggle is allowed or the display is currently off if (ui_get_showing_back_button()) { return 0; //return get_allow_toggle_display() && (key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_END); } return get_allow_toggle_display() && (key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_END); to int device_toggle_display(volatile char* key_pressed, int key_code) { int alt = key_pressed[KEY_LEFTALT] || key_pressed[KEY_RIGHTALT]; if (alt && key_code == KEY_L) return 1; // allow toggling of the display if the correct key is pressed, and the display toggle is allowed or the display is currently off if (ui_get_showing_back_button()) { return 0; //return get_allow_toggle_display() && (key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_END); } return get_allow_toggle_display() && (key_code == KEY_POWER); and built recovery. When I flashed recovery.img and hit power button, nothing happens. So my question is: What should I do for activate this function? I'm not a programmer. Sorry for my English, I'm not native speaker.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now