Optimus S Recovery for MetroPCS...


Thread Status:
Not open for further replies.

Last Updated:

  1. xboxhacker

    xboxhacker Member This Topic's Starter

    Joined:
    Jul 19, 2010
    Messages:
    11
    Likes Received:
    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
     

    Advertisement
  2. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    So basically you bricked your phone?
     
  3. xboxhacker

    xboxhacker Member This Topic's Starter

    Joined:
    Jul 19, 2010
    Messages:
    11
    Likes Received:
    3
    NO, i flashed a recovery with the wrong key mapping. Pop the battery out and the phone restarts fine.
     
  4. MikesTooLz

    MikesTooLz Well-Known Member

    Joined:
    Nov 24, 2010
    Messages:
    547
    Likes Received:
    157

    So whats the advantage of using a custom ROM?
     
  5. tekmac

    tekmac Active Member

    Joined:
    Oct 23, 2010
    Messages:
    33
    Likes Received:
    1
    The custom ROM can improve performance any often you can build it off the newest android OS which would give you the newest firmware.
     
  6. MikesTooLz

    MikesTooLz Well-Known Member

    Joined:
    Nov 24, 2010
    Messages:
    547
    Likes Received:
    157
    so when will we see Gingerbread?

    From my past experience with LG and also the way that they have removed to check for updates section in settings it will probably be up to use to get Gingerbread on the phone once it comes out, who knows if or when LG/Metro would put out an update.
     
  7. asadullah

    asadullah Well-Known Member

    Joined:
    Aug 24, 2010
    Messages:
    448
    Likes Received:
    253
    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?
     
  8. richiedaze

    richiedaze Well-Known Member

    Joined:
    Dec 24, 2010
    Messages:
    150
    Likes Received:
    43
    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
     
    rawthentic and bvr127 like this.
  9. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    You still need a tester for this?
     
  10. Aplus

    Aplus Well-Known Member

    Joined:
    Dec 12, 2010
    Messages:
    653
    Likes Received:
    255
    LOL!! I thought you were done guinea pigging!
     
  11. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    I'm a liar like that and besides richie really seems to know what he's doing. Ever see his work on the G1? Amazing shit man.
     
  12. Aplus

    Aplus Well-Known Member

    Joined:
    Dec 12, 2010
    Messages:
    653
    Likes Received:
    255
    Well, you both have been a big help. I can't wait to see what he comes up with!
     
  13. getitnowmarketing

    getitnowmarketing Well-Known Member Developer

    Joined:
    Apr 27, 2010
    Messages:
    477
    Likes Received:
    788
    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
     
  14. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173

    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"
     
  15. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    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.
     
  16. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    Let's me restore this thing to factory and start fresh. Right now I'm on a custom boot.img by richiedaze that doesn't seem to let the display stay on 100%, just flickers and I have the optimus s recovery installed.
     
  17. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    All back on fresh restore. Still can't get that file though.
     
  18. getitnowmarketing

    getitnowmarketing Well-Known Member Developer

    Joined:
    Apr 27, 2010
    Messages:
    477
    Likes Received:
    788
    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.
     
  19. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    power/lock, vol. up, vol. down, menu, home, back and search.
     
  20. edodonnell

    edodonnell Well-Known Member

    Joined:
    Jan 4, 2011
    Messages:
    48
    Likes Received:
    38
    And camera
     
  21. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    oh yeah that too. :p
     
  22. getitnowmarketing

    getitnowmarketing Well-Known Member Developer

    Joined:
    Apr 27, 2010
    Messages:
    477
    Likes Received:
    788
    Can someone post the stock kernel config? Adb pull /proc/config.gz to get it. I might just make you guys an overclocked kernel too. Please post here rather than pm me as my inbox get full quickly as I'm involved in many project for many phones.
     
    nutech1.0 likes this.
  23. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    Oops, sorry. I get PM happy.

    Anyway heres the file: config.gz
     
  24. getitnowmarketing

    getitnowmarketing Well-Known Member Developer

    Joined:
    Apr 27, 2010
    Messages:
    477
    Likes Received:
    788
    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 (Text):
    1.  
    2.  
    3. adb shell
    4.  
    5. su
    6.  
    7. mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
    8.  
    9. cat /sdcard/flash_image > /system/bin/flash_image
    10.  
    11. chmod 755 /system/bin/flash_image
    12.  
    13. mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
    14.  
    15. mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
    16.  
    17. flash_image [B][COLOR=black]recovery[/COLOR][/B] /sdcard/recovery-metro-beta.img
    18.  
    19. sync
    20.  
    21. reboot recovery
    22.  
    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
     
    danyvw and andyo70 like this.
  25. andyo70

    andyo70 Well-Known Member

    Joined:
    Dec 2, 2010
    Messages:
    538
    Likes Received:
    173
    HELL YEAH SON!!!!!! This works! Up and down vol. buttons go up and down the menu. Menu button selects and Back button goes back. I have root as soon as I type adb shell. :D This is fantastic. Guess the first thing I should do is a Nandroid back up?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...