Open Recovery works on 2.51 rom "How to" added

walter79

Recognized Developer
Dec 18, 2006
4,100
4,618
263
ONLY FOR DEVELOPERS



It is possible to install open recovery using XT720 method. It did not overwrite tenfars recovery. Did not work if you use FROYO ROM. White screen with and without usb debugging

http://modmymobile.com/forums/563-m.../531599-open-recovery-v1-46-11-21-2010-a.html

I can boot into openrecovery. (can test it with 2.51 rom)

!!!!! Need fix for select key !!!!!


Maybe with openrecovery it is possible to backup / restore the bootloader. (maybe a fix for downgrade from defy 2.51 rom)

openrecovery supports ADB.

Could somebody help to modify openrecovery?


How to install:

Download attached file

1) Unpack the "OpenRecovery" folder and "OpenRecovery.zip" to the root folder of the sdcard.
2) Open adb shell or Terminal and (ensure that the phone isn't in Memory Card mode in USB connection):
Code:

Code:
su
cp /sdcard/OpenRecovery/orbootstrap/install_script.sh /tmp
chmod 755 /tmp/install_script.sh
/tmp/install_script.sh STR
Usage
1) you can reboot by typing "reboot openrecovery" to shell
2) If no error occurs, you're now in Open Recovery. If error occurs you're in Open Recovery Lite.
 

Attachments

Last edited:
  • Like
Reactions: Sqoerk and chaihg

chaihg

Senior Member
Nov 15, 2010
497
53
0
Walter, the Tenfar Recovery we use is based on this Open Recovery. If i remember Tenfar also uses the same.
It has already been modified to suit Defy. Correct me if I am wrong.
Good to see you back to work though :)
 

walter79

Recognized Developer
Dec 18, 2006
4,100
4,618
263
Walter, the Tenfar Recovery we use is based on this Open Recovery. If i remember Tenfar also uses the same.
It has already been modified to suit Defy. Correct me if I am wrong.
Good to see you back to work though :)
That right, but with tenfars recovery i can`t backup bootloader.

My biggest problem is since i update to 2.51. i can`t use system dumps to build new roms. With 2.21. and 2.34. it was no problem to build a small update.zip with system dump and it boots. But since 2.51. it doesn`t work any more.
 
  • Like
Reactions: chaihg

Sqoerk

Senior Member
Jun 2, 2009
342
120
0
how can we help?
Can I install the file without destroing my phone?
I would like to help you downgrading your bootloader :p
 

walter79

Recognized Developer
Dec 18, 2006
4,100
4,618
263
Ok, recovery boots.

Volup and down works but Key for select is set to camera key. How can i change it to Power buttom?
 

Sqoerk

Senior Member
Jun 2, 2009
342
120
0
on the openrecovery.zip you have a etc folder. It includes a keyboard file. This contaions only this here:

So US Keyboard layout is selectet by default. What about changing the layout then? I think you don't need to change the keyIDs. You need to change the names. :confused:
 

walter79

Recognized Developer
Dec 18, 2006
4,100
4,618
263
on the openrecovery.zip you have a etc folder. It includes a keyboard file. This contaions only this here:



So US Keyboard layout is selectet by default. What about changing the layout then? I think you don't need to change the keyIDs. You need to change the names. :confused:
I will try. No luck. I think this is only for Milestone Keyboard if you use shell.

/openrecovery/keychars/QWERTY/sholesp2a-keypad.kl
 
Last edited:

chaihg

Senior Member
Nov 15, 2010
497
53
0
OK lets see if this works. In the folder openrecovery/keychars/qwerty/sholesp2a-keypad.kl there are some numbers that walter just mentioned. Can you please modify it and see if the power button can be remapped.

EDIT: Oh damn i dint see your post before mine.

EDIT2: Can you open apk files and have a look. If yes, then tenfar recovery has the keys mapped. It should be comparable.
 
Last edited:

Sqoerk

Senior Member
Jun 2, 2009
342
120
0
There it is:
Code:
int device_handle_key(int key_code, int visible) {
    if (visible) {
        switch (key_code) {
            case KEY_DOWN:
            case KEY_VOLUMEDOWN:
                return HIGHLIGHT_DOWN;

            case KEY_UP:
            case KEY_VOLUMEUP:
                return HIGHLIGHT_UP;

            case KEY_CENTER:
            case KEY_CAMERA:
            case KEY_ENTER:
                return SELECT_ITEM;
        }
    }

    return NO_ACTION;
}
Code:
case KEY_POWER:
is missing

To find in: droid-openrecovery\src\bootable\open_recovery\default_recovery_ui.c

Found in the source code of the open recovery:
http://gitorious.org/droid/openrecovery/trees/master

So solve it man :) :cool:
 

Sqoerk

Senior Member
Jun 2, 2009
342
120
0
I dont think so. Its a recovery system, so you can get your bricked defy back to live more easy. All without using a pc....

Sent from my ME525 using XDA App
 

xabierd

Senior Member
Jul 17, 2008
301
41
48
I dont think so. Its a recovery system, so you can get your bricked defy back to live more easy. All without using a pc....

Sent from my ME525 using XDA App
Not sure about that because you can't boot with a key, you need to go into a WORKING rom and then reboot to recovery
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone