Disable connecting USB as media device with Jelly Bean
I have no XPs with JB but Google closed UMS (USB Mass Storage) support. My device with Android 4.2.2 suppors only MTP and PTP protocols and I can switch between them in the storage settings. Check this out.