Sign Up Now FAQ
Signup Now
In order to make a post or to start a new thread and or to interact with other
members of this board, you wil need to create an account first.
If this is your first visit, be sure to check out the FAQ. You have to register before you can post. If you have any problems, please contact us.
Flash a phone to Cricket Wireless CDMA Flasher (navbar text link) Become a supporting member of Cricket Users Forum

 
Welcome to Cricket Users!



Results 1 to 6 of 6
  1. #1
    Jumpmaster
    Points: 1,810,898, Level: 100
    Overall activity: 58.0%
    Chris Rodriguez's Avatar
    Reputation
    Reputation 385
    Join Date
    Oct 2010
    Customer Since
    Sept 2010
    Location
    Des Moines, IA
    Posts
    4,266
    Phone
    Note 3 / Galaxy S5



    [AOSP] Enable USB Modem/Diag Mode on Samsung CDMA Devices

    This can come in very handy for those who have migrated away from the standard TouchWiz based ROMs.

    Credit goes to Autoprime of XDA. Thanks to avillal87 of CU for pointing this out.

    Original Thread:
    [SOLVED][AOSP] Enable USB Modem/Diag Mode on Samsung CDMA Devices - xda-developers




    [SOLVED][AOSP] Enable USB Modem/Diag Mode on Samsung CDMA Devices


    Confirmed working on the SPH-D700 Epic 4g, SPH-D710 Epic 4G Touch, SPH-L700/SCH-I515 Galaxy Nexus and SPH-L710 Galaxy S III

    No more flashing back to Touchwiz! The following scripts enable USB Modem/Diag mode in AOSP roms(CM9/CM10/AOKP/etc). For those new to this, USB Modem mode is used to interface with Windows CDMA tools such as QPST,
    QXDM


    ,
    DFS


    and
    CDMA Workshop


    . Modem mode has always been possible in stock Touchwiz roms using dialer codes. The issue has been AOSP roms not working with the modem mode dialer codes... requiring flashing back to stock TW to use it.

    <--------- Doesn't work in AOSP

    Few examples of what modem mode could be used for:

    [HOW-TO][FIX] Repair your IMEI with QPST - updated w/ info




    [How To] Upload a custom PRL to your Epic Touch 4G




    [CDMA] 威盛 VIA Repair and Reprogramming





    You can use a
    script manager


    to run the script. Open script manager, browse to script files on SD card, select script, set to run as SU and hit save. Do this with both scripts. Now you can use the script manager in the Widgets section to create shortcuts on the desktop for easy access. Hopefully these scripts get built into CM10 so this method is no longer needed.

    You may or may not have to unplug/plugin the usb cable after new mode is set.


    Samsung Epic 4G SPH-D700

    Use in terminal emulator/adb or add to script.

    Modem

    Code:
    echo MODEM USB > /sys/class/sec/switch/usb_sel
    PDA

    Code:
    echo PDA USB > /sys/class/sec/switch/usb_sel
    Samsung Epic 4G Touch SPH-D710

    E4GT is working but being picky. If not detected in QPST correctly... connect phone to USB cable. While phone is in normal USB PDA mode open up QPST Service Programming > Server > Stop QPST Server. Now run the CP script(or run the commands in terminal emulator as SU) then pull out the USB cable then put it back in. Wait a second.. you should see a serial port being detected in Windows Device Manager. After port has been added and drivers installed.. go back to QPST Service Programming and enable the QPST Server. Your device should now be detected properly. If you disconnect your phone while QPST Server is running you will have to toggle it off/on again for the phone to show back up.

    CP

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo CP > /sys/class/sec/switch/set_usb_path 
    echo 1 > /sys/class/android_usb/android0/enable
    CP v2

    thx2squash

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo disable_wimax > /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo enable_cp > /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo disable_ap >  /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo CP > /sys/class/sec/switch/set_usb_path 
    echo 1 > /sys/class/android_usb/android0/enable
    ALL (AP+CP)

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo ALL > /sys/class/sec/switch/set_usb_path 
    echo 1 > /sys/class/android_usb/android0/enable
    AP

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo AP > /sys/class/sec/switch/set_usb_path 
    echo 1 > /sys/class/android_usb/android0/enable
    AP v2
    thx2squash

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo disable_wimax > /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo enable_ap > /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo disable_cp >  /sys/devices/platform/i2c-gpio.17/i2c-17/17-0008/port 
    echo AP > /sys/class/sec/switch/set_usb_path 
    echo 1 > /sys/class/android_usb/android0/enable
    Samsung Galaxy Nexus (Sprint/Verizon)

    Script works great for me on my Sprint Gnex. Varied reports about script working on Verizons. If script fails use terminal emulator instead.

    MODEM

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable
    echo MODEM > /sys/devices/tuna_otg/usb_sel 
    echo 1 > /sys/class/android_usb/android0/enable
    PDA

    Code:
    #/system/bin/sh  
    
    echo 0 > /sys/class/android_usb/android0/enable 
    echo PDA > /sys/devices/tuna_otg/usb_sel 
    echo 1 > /sys/class/android_usb/android0/enable
    Samsung Galaxy S III (Sprint/Verizon/US Cellular/AT&T/T-Mobile)

    Use the script!

    DIAG+ADB

    Code:
    #/system/bin/sh  
    
    # sets DIAG mode 
    echo 0 > /sys/class/android_usb/android0/enable 
    echo 04E8 > /sys/class/android_usb/android0/idVendor 
    echo 6860 > /sys/class/android_usb/android0/idProduct echo diag > /sys/class/android_usb/android0/f_diag/clients 
    echo 1 > /sys/class/android_usb/android0/f_acm/instances echo diag,acm,adb > /sys/class/android_usb/android0/functions 
    echo 1 > /sys/class/android_usb/android0/enable start adbd
    MTP+ADB

    Code:
    #/system/bin/sh  
    
    # sets default USB mode 
    echo 0 > /sys/class/android_usb/android0/enable 
    echo 04E8 > /sys/class/android_usb/android0/idVendor 
    echo 6860 > /sys/class/android_usb/android0/idProduct 
    echo 1 > /sys/class/android_usb/android0/f_acm/instances echo mtp,acm,adb > /sys/class/android_usb/android0/functions 
    echo 1 > /sys/class/android_usb/android0/enable start adbd
    Original post has been removed since this has been solved. For reference it has been moved to
    post 5


    .

    Attached Files

    Sprint_Gnex_Diag_Scripts.zip


    - [Click for QR Code] (1.6 KB, 151 views)

    GS3 Diag Scripts.zip


    - [Click for QR Code] (2.6 KB, 77 views)

    E4GT Diag Scripts.zip


    - [Click for QR Code] (3.9 KB, 75 views)
























    Last edited by mraabhimself; 09-01-2012 at 07:58 PM.
    Please check the forum and post there before PMing me. I have over 597 unread PMs due to the fact that they are issues which should have been addressed here.

    If you need to buy something from (Ebay), please use this LINK every time and support the forum!

  2. Remove this advertisement.
  3. #2
    Gold Member
    Points: 11,142, Level: 69
    Overall activity: 35.0%

    Reputation
    Reputation 62
    Join Date
    Sep 2011
    Posts
    714



    Thanks to the above and those involved, i understood how to get my lowly Dinc into diag mode with a new ROM. I updated to CM9 but the script i used for CM7 wouldnt install. So i extracted the diagon.sh and diagoff.sh from the zip and put it on the SD root. Then used Smanager as mentioned above to make shortcuts. Thanks!

  4. #3
    Member
    Points: 1,099, Level: 17
    Overall activity: 4.0%
    ciabatoni's Avatar
    Reputation
    Reputation 10
    Join Date
    Sep 2011
    Location
    Atlantic City. New Jersey
    Posts
    33



    ​I could really use a hand, I flashed my verizon s4 that I flashed with dfs 4.0.0.3. with no problem using this guide and the same info in all his tabs.. Now, I bought a sprint s4 due to the vzw dying, Anyway, I used the same info, again with the same DFS 4.0.0.3 just a different SSID and PRL bc Im not sure what one I used last time, as for the ssid I used the one on my secondary cricket line which I dont have anymore. Also, all the previous sprint info I flashed over and never screen shot it, However, I did a full nandroid and master backup before the flash and I also did a NV-items and EFS backup, so im wondering if that holds the old sprint info... One last thing, after flashing in diag mode in PDA dm+modem+adb, Then after flashing clicking back to MTP+adb then selecting CDMA, well cdma wont select, its not even highlighted to be able to select, weird. I could select it with no prob before the flash, What gives, Any help would surely be appreciated, and if I get it straightened out with the help of someone, Ill surely donate. Im no newb Ive been at these things for a while, But im dumb founded at the moment..

  5. #4
    Gold Member
    Points: 1,185, Level: 18
    Overall activity: 2.0%
    thebizerker20061981's Avatar
    Reputation
    Reputation 10
    Join Date
    Jun 2011
    Location
    East Nashville, Tennessee, United States
    Posts
    12



    Hello, I have windows 8.1 Pro and every time I try this method I get an error saying: Unable to find software on your computer that can recognize your device. Can someone please help?
    "The Bizerker"

  6. #5
    Jumpmaster
    Points: 1,810,898, Level: 100
    Overall activity: 58.0%
    Chris Rodriguez's Avatar
    Reputation
    Reputation 385
    Join Date
    Oct 2010
    Customer Since
    Sept 2010
    Location
    Des Moines, IA
    Posts
    4,266
    Phone
    Note 3 / Galaxy S5



    Quote Originally Posted by thebizerker20061981 View Post
    Hello, I have windows 8.1 Pro and every time I try this method I get an error saying: Unable to find software on your computer that can recognize your device. Can someone please help?
    So have you installed drivers for your device prior to plugging it in and using this method? Does it appear in the device manager?
    Please check the forum and post there before PMing me. I have over 597 unread PMs due to the fact that they are issues which should have been addressed here.

    If you need to buy something from (Ebay), please use this LINK every time and support the forum!

  7. #6
    Gold Member
    Points: 1,185, Level: 18
    Overall activity: 2.0%
    thebizerker20061981's Avatar
    Reputation
    Reputation 10
    Join Date
    Jun 2011
    Location
    East Nashville, Tennessee, United States
    Posts
    12



    Yes I did. And yes it does. shows up as (com 9) but every time I go to flash nothing writes to the phone. I tried DFS and QPST. Do I have to have a Sim card in order to flash this phone? I have also tried another method I managed to fish out online by using ##DMMODE# it brings up a enable or disable DM Mode, but that shows up as (com 7). Tried to flash as well and to still nothing writes to phone. Not even the PRL. Can you please help me?
    "The Bizerker"

 

 

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Advertise With Us?
Advertise with us? (Position 1 - Advertise with Us) Advertise with us? (Position 2 - QualityCricketPhones) Advertise with us? (Position 3 - Advertise with Us) Advertise with us? (Position 4 - Advertise with Us) Small Banner