1. Download our Official Android App: Forums for Android!

Root Enable diag mode without MSL?

Discussion in 'Android Devices' started by cuisinart, Dec 28, 2014.

  1. cuisinart

    cuisinart Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    23
    Joined:
    Jun 13, 2012

    Jun 13, 2012
    23
    4
    16
    While searching around, I recently found these instructions on how to enable diag mode on a recent LG device (LS970) without having the MSL. This seems to partially work on the V4 rom for the Volt - a serial port comes up in device manager, but the Diag window does not show 'enable' via ##diag# after this is done. Can someone who still is using the V3 firmware test this to see if it works for them? This would be a step toward recovering the MSL as the usual avenues do not work (getprop ril.MSL, alogcat)

    From:
    http://forum.xda-developers.com/showthread.php?t=2049701

    *NO PROMPT WHEN YOU HIT ##DIAG#? THIS INFO IS NOT FOR YOU (BUT STILL WORKS)*

    *updated thread to add AOSP scripts*

    On newer LS970's there is a MSL block on ##DIAG# mode. Normally you can hit ##DIAG# and flip the toggle. On recent phones you are given a "Service Code" prompt before we can toggle anything. Once DIAG mode is achieved we can connect the phone to a Windows computer to write a PRL or flash our phones to other carriers or read our MSL. See the tutorial here for how-to on that. The tutorial I have linked assumes your Optimus G does not have this MSL block... so replace step 2 with the information in this thread. That sums up this entire thread.. this thread is another way for step 2 in that tutorial.

    You can get around this block with a simple command in terminal. (You must have root!) It may help to set "charge only" mode first and not MTP. Be sure to have the LG drivers installed before doing any of this.


    su
    echo 1 > /sys/devices/platform/lg_diag_cmd/diag_enable


    If your phone was plugged into the computer already.. unplug it and plug it back in. You will now be in DIAG mode.
    Your Windows Device Manager should look like this...

    [​IMG]

    [​IMG] [​IMG]

    If you wanted to script this, I suggest script manager from the play store then using the widgets to add a shortcut to the homescreen. Open app, menu button > new script and write the script from below. Before launching the script.. be sure to toggle the SU button in the app, then hit save. And when making a shortcut you may have to try twice. You'll see what I mean when you get there. You do not have to unplug your phone if using the script. If it does not toggle diag for some reason, try running it again. I've never had to try more than twice.

    [​IMG]

    STOCK ENABLE
    Code:
    Code (Text):
    1.  
    2. #!/system/bin/sh
    3.  
    4. echo 0 > /sys/class/android_usb/android0/enable
    5. echo 1 > /sys/devices/platform/lg_diag_cmd/diag_enable
    6. echo 1 > /sys/class/android_usb/android0/enable
    7.  
    STOCK DISABLE
    Code:
    Code (Text):
    1.  
    2. #!/system/bin/sh
    3.  
    4. echo 0 > /sys/class/android_usb/android0/enable
    5. echo 0 > /sys/devices/platform/lg_diag_cmd/diag_enable
    6. echo 1 > /sys/class/android_usb/android0/enable
    7.  
    AOSP ENABLE
    Code:
    Code (Text):
    1.  
    2. #!/system/bin/sh
    3.  
    4. stop adbd
    5. echo 0 > /sys/class/android_usb/android0/enable
    6. echo 1004 > /sys/class/android_usb/android0/idVendor
    7. echo 631B > /sys/class/android_usb/android0/idProduct
    8. echo 239 > /sys/class/android_usb/android0/bDeviceClass
    9. echo 2 > /sys/class/android_usb/android0/bDeviceSubClass
    10. echo 1 > /sys/class/android_usb/android0/bDeviceProtocol
    11. echo tty > /sys/class/android_usb/android0/f_acm/acm_transports
    12. echo diag,diag_mdm > /sys/class/android_usb/android0/f_diag/clients
    13. echo acm,diag,mtp,adb > /sys/class/android_usb/android0/functions
    14. echo 1 > /sys/class/android_usb/android0/enable
    15. start adbd
    16.  

    Thanks to MikeEx and everyone else in IRC that helped me look at files and test my script. I did not have my MSL and was unable to toggle anything.. making the script blind.. and eventually found something much easier than what I was previously trying.
     

    Advertisement

  2. kuduku

    kuduku Newbie
    Rank:
     #672
    Points:
    16
    Posts:
    25
    Joined:
    Dec 29, 2014

    Dec 29, 2014
    25
    5
    16
    Male
    @cuisinart have u tried it on volt as not able to get it on my Virgin Volt . It only enables serial port with modem . Please tell how you did it
     
  3. KamiQazi

    KamiQazi Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jan 9, 2015

    Jan 9, 2015
    2
    0
    15
    Both methods also failed to work on my boost mobile lg volt, since the service code pop-up continues to pop up. Is there another way to enable diag mode?
     
  4. kuduku

    kuduku Newbie
    Rank:
     #672
    Points:
    16
    Posts:
    25
    Joined:
    Dec 29, 2014

    Dec 29, 2014
    25
    5
    16
    Male
    @KamiQazi same here haven't found any method . The only option is to buy SPC/MSL from ebay.com where server is down at the moment
    so no luck for the time being
     
  5. KamiQazi

    KamiQazi Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jan 9, 2015

    Jan 9, 2015
    2
    0
    15
    If i were to buy the msl code from ebay, would i have had to activate my phone at one point, or can i still get the msl without having activated it. (I'm trying to get my lg volt to work with pageplus)
     
  6. kuduku

    kuduku Newbie
    Rank:
     #672
    Points:
    16
    Posts:
    25
    Joined:
    Dec 29, 2014

    Dec 29, 2014
    25
    5
    16
    Male
    without activating , when you ##DIAG# it asks SPC/MSL so it for that
    MSL/SPC is also used to flash other carriers , thats another point but you don't require the device to be activated on any carrier to use SPC/MSL
     
  7. EarlyMon

    EarlyMon The PearlyMon
    VIP Member
    Rank:
    None
    Points:
    5,218
    Posts:
    57,631
    Joined:
    Jun 10, 2010

    Jun 10, 2010
    57,631
    70,445
    5,218
    New Mexico, USA
    Actually, more than anything else, your MSL (master subsidy lock number) is to a carrier what your VIN number is on a car to Detroit.

    It takes far, far more to move from carrier to carrier than an MSL change. ;)

    The MSL number certainly is the key to unlocking service menus.
     
  8. cuisinart

    cuisinart Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    23
    Joined:
    Jun 13, 2012

    Jun 13, 2012
    23
    4
    16
    koduku, you are correct, that's what I get as well, it doesn't fully work. I was hoping that this info would spur an idea from someone whom then could solve the method for us. For example, perhaps disassembling/decompiling the dialer app would let us know how it now enables diag mode, and then we could manually do it with a method similar to that described here..
     
  9. kuduku

    kuduku Newbie
    Rank:
     #672
    Points:
    16
    Posts:
    25
    Joined:
    Dec 29, 2014

    Dec 29, 2014
    25
    5
    16
    Male
    went and bought SPC from eaby.com so issue resolved
    yes but the method of enabling diag without spc doesn't work on Volt
     
  10. jason32835

    jason32835 Lurker
    Rank:
    None
    Points:
    6
    Posts:
    7
    Joined:
    Jan 29, 2012

    Jan 29, 2012
    7
    2
    6
    Has anyone figured out how to get into diag mode without the msl? Or how to pull the msl out somehow? My best google ninja skills have turned up nothing.
     
  11. Gendo420

    Gendo420 Android Enthusiast
    Rank:
    None
    Points:
    68
    Posts:
    460
    Joined:
    Jan 24, 2013

    Jan 24, 2013
    460
    144
    68
    Male
    New Orleans
    Why not just call your provider and ask for your MSL?
     
  12. jason32835

    jason32835 Lurker
    Rank:
    None
    Points:
    6
    Posts:
    7
    Joined:
    Jan 29, 2012

    Jan 29, 2012
    7
    2
    6
    I own an unactivated Virgin Volt and so I don't think I stand much chance of getting them to release the MSL to me. I want to try and use it with another carrier but I'd need the MSL.
     
  13. Gendo420

    Gendo420 Android Enthusiast
    Rank:
    None
    Points:
    68
    Posts:
    460
    Joined:
    Jan 24, 2013

    Jan 24, 2013
    460
    144
    68
    Male
    New Orleans
    You own it and it's off contract, they'll give it to you.
     
  14. jason32835

    jason32835 Lurker
    Rank:
    None
    Points:
    6
    Posts:
    7
    Joined:
    Jan 29, 2012

    Jan 29, 2012
    7
    2
    6
    Well I just tried it.. no go. They were very polite but not even begging was going to work. They said they could lose their job if they gave it to me. Ahhhh man, thwarted by Richard Branson.

    Someone smarter than me will figure it out... Common, mountains need climbing!
     
  15. grey26

    grey26 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    Jan 29, 2015

    Jan 29, 2015
    20
    0
    15
    Male
    :(
     
    #15 grey26, Sep 11, 2015
    Last edited: Sep 17, 2015
  16. lazysean

    lazysean Member
    Rank:
    None
    Points:
    18
    Posts:
    34
    Joined:
    Mar 19, 2013

    Mar 19, 2013
    34
    19
    18
  17. grey26

    grey26 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    Jan 29, 2015

    Jan 29, 2015
    20
    0
    15
    Male
    ok
     
    #17 grey26, Sep 13, 2015
    Last edited: Sep 17, 2015
  18. lazysean

    lazysean Member
    Rank:
    None
    Points:
    18
    Posts:
    34
    Joined:
    Mar 19, 2013

    Mar 19, 2013
    34
    19
    18
    I believe that menu is part of the "Software Update" system app - perhaps you've disabled or removed it?
     
  19. grey26

    grey26 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    Jan 29, 2015

    Jan 29, 2015
    20
    0
    15
    Male
    thx
     
    #19 grey26, Sep 14, 2015
    Last edited: Sep 17, 2015
Tags:

Share This Page

Loading...