---------- Forwarded message ---------- From: Prabhu Chawandi <prabhuchawa...@gmail.com> Date: Thu, Mar 1, 2012 at 9:02 AM Subject: PID is not switching To: android-kernel@googlegroups.com
Hi all, I am working on GB version, where I have requirement that by default I phone should be in UMS mode, so for my phone I have set *0x61CC *as UMS PID, once the phone boots it will popup, this works fine. But when I enable "debugging" I have to set the PID to *0x618E*, I have changed code like this in android.c under function * android_enable_function*(). With this change I am not getting the PID changed What else I have to do ?? if (!strcmp(f->name, "adb")) { /* We force to change mode even if mass storage is already enabled */ f->disabled = disable; if (!enable) { /* switch to mass storage only */ set_device_class(dev->cdev->desc, USB_CLASS_PER_INTERFACE, 0x00, 0x00); android_set_default_product(LGE_UMSONLY_PID); //0x61CC lgeusb_info("Switch to UMS only %x\n", LGE_UMSONLY_PID); } else { set_device_class(dev->cdev->desc, USB_CLASS_COMM, 0x00, 0x00); //android_set_default_product(dev->product_id); android_set_default_product(0x618E); } product_id = get_product_id(dev); device_desc.idProduct = __constant_cpu_to_le16(product_id); if (dev->cdev) dev->cdev->desc.idProduct = device_desc.idProduct; usb_composite_force_reset(dev->cdev); return; } -- Cheers Prabhu -- Cheers Prabhu -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel