[Nexus 7 General] webdroidmt:
***THIS FIX APPLIES ONLY TO THE NEXUS 7 (2012) 1ST GEN TABLET***

EDIT 12/30/13*** This vold fix is no longer needed on any CM based or SlimKat roms. A patch has been merged in CM upstream. ***

http://xdaforums.com/showpost.php?p=48974402&postcount=2892

There seems to be some confusion regarding native OTG usb with KitKat roms. In the transition from 4.3 to 4.4, roms like CM or Slim that used to have native OTG lost that capability. I had discussed this briefly with fattire in his "How to build" thread and it appears that something was changed in the vold binary, that ended up breaking native OTG usb. I believe that a vold commit or commits in CM are the culprit and hopefully, someone much more knowledgeable than I will be able to solve this with a revert of the commit, or a patch. EDIT: It now appears that this can be fixed with edits to the CM ramdisk. See here for XDA Recognized Contributor Temasek's patches submitted for approval to CM Gerrit. EDIT: Merged as of 12/30/13 . http://xdaforums.com/showpost.php?p=48746670&postcount=113

Native OTG usb means not having to use an app like stickmount or OTG helper. With native OTG, you can mount and unmount usb storage from within settings/ storage. If your flash drive is plugged in at boot, it will automatically be recognized by the OS in settings/storage and various apps. Additonally, in settings/storage and file managers, you will be able to see the correct total and available space for your flash drive. In applications such as file managers and TB, your flash drive will be automatically recognized and show up as usbdisk.

FYI, stock and stock based roms do not have native OTG capability. These type of roms must use an app like stickmount. This is also true of Omnirom, as it uses the same storage setup of a stock rom.

Anyway, I'll stop rambling and get to the point. :D Through trial and error, I found that by substituting the vold binary in 4.4 with the one in 4.3 roms it worked just as it did in 4.3. So, I made a zip that will provide a fix for native OTG until it gets fixed in CM upstream.

Here is a link to my original post in fattire's thread with download links to the appropriate vold fix zipfile, either CM11 or SlimKat. Simply flash this over your rom and you've got native OTG, that's it! Of course, you'll have to flash this everytime you flash a new rom or update the rom.

http://xdaforums.com/showpost.php?p=47564220&postcount=1665

Again, this does not work with stock or stock based roms, as they have a different storage setup. This will work with all current CM based roms, as well as SlimKat. Here's a list of roms that I tested on and all worked. I have a grouper but it should also work on any CM based rom as well as SlmKat for tilapia, as it uses the same storage.

Official CM11

Unofficial CM11 by koko98

Unofficial CM11 by swordrune10

Unofficial CM11 by Temasek- no longer requires vold fix-native OTG now works right out of the box!

Unoffiical CM11 by Zeljko1234 - no longer requires vold fix-native OTG now works right out of the box!

Unofficial CM11 by (Skanky) makelegs

BS Harmony CM 4.4 by mar5hal

Vanir KitKat betas

SlimKat 4.4/4.4.1/4.4.2

EDIT 12.25: Franco kernel r76 fixed by Osmosis for CM11 now works right out of the box and no longer requires vold fix. http://d-h.st/aZY

Note: For CM11 4.4.1/4.4.2 roms, (builds from Dec 07 and later) this will not work unless you also flash a custom kernel with a CM compatible ramdisk. M-Kernel and Lean Kernel have been tested and they both currently work. See post # 6 in this thread.

This works! If it doesn't work for you, something else may be wrong with your setup ie; OTG cable, flash drive, or N7 usb port. For NTFS support, you will need a third party app like stickmount etc.

Mike T