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

Root Working OTG support

Discussion in 'Android Devices' started by ShapeShifter499, Mar 26, 2016.

  1. ShapeShifter499

    ShapeShifter499 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    108
    Posts:
    376
    Joined:
    Apr 3, 2015

    Apr 3, 2015
    376
    262
    108
    Male
    So I have finally gotten OTG to work! Was hard but in the end it was a ridiculously simple fix in the kernel source that got OTG working for the LG Volt. I compared other kernels for other devices that have the MSM8226 chipset and also have OTG. I found out that our LG Volt's kernel has everything required in place, but one line of code in the DTS or device tree files for our device that deliberately turns off OTG support. Why turn off such functionality in the kernel if everything else is already in place, who knows. What I do know is that OTG works now. Below is my compiled kernel, github, and video demonstrating OTG working. Hopefully the other rom developers can figure out the change and port it to the different roms that are for the LG Volt, maybe add it to TWRP as well.


    Video is a bit longer than it should have been and kind of messy but it works in showing you OTG on the LG Volt. Shows a USB thumb drive working and a RTL-SDR dongle working.



    Only for KitKat Stock or Debloated KitKat rom, like the one created by @Curtis1973
    volt_dos_OTG1.zip
    MD5: c8df7f1730eace0436a7e5a6ebed597e
    https://www.androidfilehost.com/?fid=24459283995305288

    You can see my one line edit at the Github
    https://github.com/ShapeShifter499/android_kernel_lge_voltdos

    I want to credit @spock1104 and @whoshotjr2006 for their work on the kernel thus far. OTG support probably never would have happened for the LG Volt without their work.

     

    Advertisement

    #1 ShapeShifter499, Mar 26, 2016
    Last edited: Mar 27, 2016
  2. Curtis1973

    Curtis1973 Android Expert
    Rank:
     #66
    Points:
    353
    Posts:
    2,189
    Joined:
    Jul 1, 2012

    Jul 1, 2012
    2,189
    1,664
    353
    Male
    Greenville,SC USA
    Sorry was late replying to you on this. Work had me tied up. Today has been first free day I have had in two weeks. Any way you got it I see. What functionality do you see it being useful for? I am not aware of otg to be honest.
     
  3. DeltaXzombies

    DeltaXzombies Well-Known Member
    Rank:
    None
    Points:
    88
    Posts:
    182
    Joined:
    Jun 13, 2015

    Jun 13, 2015
    182
    123
    88
    Male
    So I assume this will work fine with CM11 and won't cause and battery/performance differences?
     
  4. dvdavid888

    dvdavid888 Android Enthusiast
    Rank:
    None
    Points:
    63
    Posts:
    256
    Joined:
    Apr 30, 2014

    Apr 30, 2014
    256
    90
    63
    Male
    Stock rom only for now
     
  5. DeltaXzombies

    DeltaXzombies Well-Known Member
    Rank:
    None
    Points:
    88
    Posts:
    182
    Joined:
    Jun 13, 2015

    Jun 13, 2015
    182
    123
    88
    Male
    Ah ok. Good work either way :)
     
  6. ShapeShifter499

    ShapeShifter499 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    108
    Posts:
    376
    Joined:
    Apr 3, 2015

    Apr 3, 2015
    376
    262
    108
    Male
    No worries, I'm just happy I got OTG working at all.

    OTG stands for On-The-Go and is a useful feature that allows you to connect USB devices to your phone via a special cable/adapter. It has so many uses that I can't list them all but here are a few examples.

    Like I showed in the video above I was able to transfer files to a thumb drive and view them; great for being able to get copies of files from USB only sources quickly. Also like I showed I was able to use a DVB-T tuner as a Software Defined Radio on the LG Volt. Allows me to have a much more portable experience scanning around for interesting radio signals or even getting information during an emergancy/natural disaster when other sources could be offline. Many kinds of USB devices and Android specific OTG accessories now can be used.
     
    #6 ShapeShifter499, Mar 27, 2016
    Last edited: Mar 27, 2016
  7. Bad_MOFO_33

    Bad_MOFO_33 Android Enthusiast
    Rank:
    None
    Points:
    148
    Posts:
    419
    Joined:
    Jul 11, 2014

    Jul 11, 2014
    419
    968
    148
    Male
    Hudson Valley, NY
  8. SykkNyzz

    SykkNyzz Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    593
    Joined:
    Nov 10, 2012

    Nov 10, 2012
    593
    324
    133
    Male
    IDK
    Florence, SC
    So would it be a "standalone" kernel that can be flashed without reinstalling the ROMs?
     
  9. DeltaXzombies

    DeltaXzombies Well-Known Member
    Rank:
    None
    Points:
    88
    Posts:
    182
    Joined:
    Jun 13, 2015

    Jun 13, 2015
    182
    123
    88
    Male
    Dang I haven't seen you in awhile :p
     
    ShapeShifter499 and HasH_BrowN like this.
  10. HasH_BrowN

    HasH_BrowN Android Expert
    Rank:
    None
    Points:
    173
    Posts:
    829
    Joined:
    Jun 11, 2015

    Jun 11, 2015
    829
    467
    173
    Male
    Leesburg, Fl
    @ShapeShifter499 I'm not really great with github, working strictly mobile at the moment. Would you please state what the edit was and of what file in the boot.img that it was?

    Great work. I thought this would be possible (the OTG). I'll have to look on my other devices to see if this can be enabled as well.
     
    ShapeShifter499 likes this.
  11. Bad_MOFO_33

    Bad_MOFO_33 Android Enthusiast
    Rank:
    None
    Points:
    148
    Posts:
    419
    Joined:
    Jul 11, 2014

    Jul 11, 2014
    419
    968
    148
    Male
    Hudson Valley, NY
    @SykkNyzz yes it would be flashable through twrp. Maybe I'll update twrp to 3.0 this week. Just got to get motivated again.
     
    ShapeShifter499 and dvdavid888 like this.
  12. HasH_BrowN

    HasH_BrowN Android Expert
    Rank:
    None
    Points:
    173
    Posts:
    829
    Joined:
    Jun 11, 2015

    Jun 11, 2015
    829
    467
    173
    Male
    Leesburg, Fl
    #13 HasH_BrowN, Mar 27, 2016
    Last edited: Mar 27, 2016
    ShapeShifter499 and Bad_MOFO_33 like this.
  13. ShapeShifter499

    ShapeShifter499 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    108
    Posts:
    376
    Joined:
    Apr 3, 2015

    Apr 3, 2015
    376
    262
    108
    Male
    Would you be able to add OTG support to TWRP based off what I got?
     
    HasH_BrowN likes this.
  14. andMego

    andMego Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    604
    Joined:
    Aug 9, 2015

    Aug 9, 2015
    604
    161
    133
    Is the kernel you made the stock kernel with otg turned on or is it volt dos or something like that with otg turned on? Just curious. Thanks so much for getting it working and motivating other devs here.
     
  15. ShapeShifter499

    ShapeShifter499 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    108
    Posts:
    376
    Joined:
    Apr 3, 2015

    Apr 3, 2015
    376
    262
    108
    Male
    I turned on the OTG feature using @spock1104's volt dos source but it seems this code is in place from the beginning. So you should be able to download the LG original source from their open source site and start all over with a fresh stock source if you wanted then apply my one line edit to enable OTG.
     
    HasH_BrowN, SykkNyzz and andMego like this.
  16. doggyworld

    doggyworld Newbie
    Rank:
    None
    Points:
    16
    Posts:
    13
    Joined:
    Mar 11, 2013

    Mar 11, 2013
    13
    2
    16
    This is awesome! Thanks.. just tested it on my Volt running the debloated stock rom and it works great with my USB stick! Hopefully, I can get it to work with my xbox controller.
     
    ShapeShifter499 likes this.
  17. ShapeShifter499

    ShapeShifter499 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    108
    Posts:
    376
    Joined:
    Apr 3, 2015

    Apr 3, 2015
    376
    262
    108
    Male
    Let me know how it goes, I'm not sure if a extra driver needs to be compiled or not for XBox controller support.
     
  18. ASJ80

    ASJ80 Member
    Rank:
    None
    Points:
    18
    Posts:
    47
    Joined:
    Jul 31, 2012

    Jul 31, 2012
    47
    11
    18
  19. SykkNyzz

    SykkNyzz Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    593
    Joined:
    Nov 10, 2012

    Nov 10, 2012
    593
    324
    133
    Male
    IDK
    Florence, SC
    If it would be possible to incorporate the fix to the remix ROMs... You can modify them and we'll redo the posts... I ask BC I don't have a pc atm to do this
     
  20. shahadat688

    shahadat688 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 17, 2016

    Apr 17, 2016
    1
    0
    5
  21. stuartdisco

    stuartdisco Newbie
    Rank:
    None
    Points:
    26
    Posts:
    25
    Joined:
    Mar 9, 2015

    Mar 9, 2015
    25
    8
    26
    Male
    Hi, sorry, I just stumbled on this because I was searching for a way to activate OTG on my Volt. I have, I guess a stock Volt running 4.4.2. I think I had done something to get it rooted when I first got it. Can I make this one byte change manually in the kernel? I don't know much about android. Or do I need to flash something? Any info would be helpful.
    Thanks!
     
  22. SykkNyzz

    SykkNyzz Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    593
    Joined:
    Nov 10, 2012

    Nov 10, 2012
    593
    324
    133
    Male
    IDK
    Florence, SC
  23. andMego

    andMego Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    604
    Joined:
    Aug 9, 2015

    Aug 9, 2015
    604
    161
    133
    Why?
     
  24. SykkNyzz

    SykkNyzz Android Enthusiast
    Rank:
    None
    Points:
    133
    Posts:
    593
    Joined:
    Nov 10, 2012

    Nov 10, 2012
    593
    324
    133
    Male
    IDK
    Florence, SC
    Because it was placed further back on the forums. I bumped it so it can be seen again.
     
Tags:

Share This Page

Loading...