• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Optimus S Recovery for MetroPCS...

Status
Not open for further replies.

xboxhacker

Newbie
Jul 19, 2010
11
3
So i thought i would roll the dice and try to flash a custom recovery to the Optimus M.

I used the Optimus S/ Thunderc-sprint

Found here: http://androidforums.com/getitnowmarketing/221382-custom-recovery-optimus-s-thunderc-sprint.html

It flashed just fine, i rebooted to recovery and.... it works...kind of :cool:

I was able to use the Up Vol key to move down, but was not able to move back up or enter any menus. Camera does something, but just jumps up and then back down.

So it would seem that we only need to map the keys out for the MS690...

EDIT: I get a "E:Bad boot message" at the bottom of the screen....

EDITEDIT: This recovery allows full root access, so i tried

> adb shell input keyevent 24 <~~key press event for Downkey
and
# input keyevent 24

NO GO, just trying to trick the phone...LOL
 
Once you get a working recovery then you'll be able to start working on getting gingerbread. Unless metro pushes it out first. I just got one for my girlfriend about two hours ago. They been selling out at all the stores here (orlando). I say that because The better a seller a phone is the better updates a phone will get. I know koush has posted a basic "How to" on porting clockwork mod recovery on his site and I wouldn't really try messing with one from another phone but I am kind of curious if a nandroid backup will work. If so I can make a rom

So the flash_image binary is in /system/bin?
 
Upvote 0
I have taken this recovery and modified it to use the keys from the Optimus M. I reused the the kernel and used the original build.prop from the Optimus M to match this phone. I also enabled adb to be root when connected in recovery...

I have attached 3 files in a zip.
1)flash_image bindary
2)Original recovery.img
3)Modded recovery.img

Anybody want to try?

edit:
I have removed the link because of some issues... Will post soon
 
Upvote 0
I have taken this recovery and modified it to use the keys from the Optimus M. I reused the the kernel and used the original build.prop from the Optimus M to match this phone. I also enabled adb to be root when connected in recovery...

I have attached 3 files in a zip.
1)flash_image bindary
2)Original recovery.img
3)Modded recovery.img

Anybody want to try?

edit:
I have removed the link because of some issues... Will post soon

If you dump your stock recovery.img and give me a cat /proc/mtd I'll make you guys one as time allows. Seeing as I built all the other LG ones it wont be hard at all. Directions to dump are here http://androidforums.com/lg-optimus-s/219777-need-dump-build-recovery.html.

If you try one of my other recoveries like for opt s under recovery menu other I have a keymap out put can you give me key codes for all keys. Key code mapping is in the recovery binary btw richiedaze

Also for mass storage in recovery I'll need to know if opt m uses

/sys/devices/platform/usb_mass_storage/lun0/file

or

/sys/devices/platform/msm_hsusb/gadget/lun0/file
 
Upvote 0
If you dump your stock recovery.img and give me a cat /proc/mtd I'll make you guys one as time allows. Seeing as I built all the other LG ones it wont be hard at all. Directions to dump are here http://androidforums.com/lg-optimus-s/219777-need-dump-build-recovery.html.

If you try one of my other recoveries like for opt s under recovery menu other I have a keymap out put can you give me key codes for all keys. Key code mapping is in the recovery binary btw richiedaze


recovery.img: recovery.img

cat /proc/mtd
dev: size erasesize name
mtd0: 00500000 00020000 "boot"
mtd1: 04340000 00020000 "cache"
mtd2: 00500000 00020000 "recovery"
mtd3: 00140000 00020000 "splash"
mtd4: 00700000 00020000 "FOTA_STO"
mtd5: 0bd00000 00020000 "system"
mtd6: 0c900000 00020000 "userdata"
mtd7: 00080000 00020000 "misc"
mtd8: 00180000 00020000 "persist"
 
Upvote 0
tried to pull the mount info from /sys/devices/platform/msm_hsusb/gadget/lun0/file but all I get is a zero byte file. when i look at the file on the phone in root explorer it's around 5kb. this seems odd to me.

i also have no idea how to get the key codes.

I dont need the file I just need to know which path exists. If "/sys/devices/platform/msm_hsusb/gadget/lun0/file" exists phone uses usb_gadget drivers if "/sys/devices/platform/usb_mass_storage/lun0/file
" exists it uses usb_function driver.

To help me with key codes can someone post what keys exist on the optimus M hardware. IE vol-up, vol-down etc.
 
Upvote 0
Ok here is a beta to try.

Disclaimer :
I do not have this device so its untested by me. This is also assuming the recovery-dump was not corrupted in upload or download as I didn't have an md5 to check against.

recovery-metro-beta.img.zip
md5 =ab302e837750cf35e19c2123baf42d63

to flash please use adb shell not terminal on phone for testing

1st Download both flash_image & recovery-metro-beta.img.zip & unzip both.

2nd copy flash_image and recovery-metro-beta.img to root of your sdcard

Code:
adb shell

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
 
cat /sdcard/flash_image > /system/bin/flash_image
 
chmod 755 /system/bin/flash_image
 
mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
 
mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
 
flash_image [B][COLOR=black]recovery[/COLOR][/B] /sdcard/recovery-metro-beta.img

sync

reboot recovery
If the line mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak returns an error like file not found move on to next step.

flash_image and recovery features can be found here http://androidforums.com/getitnowmarketing/221382-custom-recovery-optimus-s-thunderc-sprint.html

Please use option move recovery log to sd and upload that for bugs and use key test menu under other if key mapping is wrong and post output of all keys. IE menu =139
 
  • Like
Reactions: danyvw and andyo70
Upvote 0
Status
Not open for further replies.

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones