View Single Post
  #47 (permalink)  
Old 1st Mar 2009, 11:17 am
Hit Hit is offline
Member
I love my MPx player
 
Join Date: Sep 2006
Posts: 86
Default

Found the string of code that unveils the Hidden Partition

Quote:
void UsbPowonInit(void)
{
MY_FILE *usbTagFile;

//071213,HUANGSL,CHECK OPEN C:,BEFORE UsbBlkInitialize
usbTagFile = FSFileOpen(gpSysConfig->UsbTageFileName , "rb");
if (usbTagFile != NULL)
{
gpSysConfig->UsbDiskMask |= (0x0001 << 1);
FSFileClose(usbTagFile);
}

UsbConnected = 0;
Intr_RegISR(INTC_UDC, UDC_ISR);
UsbBlkInitialize();

USB_PHY_RST();
SOFT_CONNECT();
//UsbVbusIsr();

}
"gpSysConfig->UsbTageFileName"
Referrers to
Quote:
"D:\\Rkusb.Tag", //3UsbTageFileName
Apparently "D:\\Rkusb.Tag" is changed in my player, therefor I can't unlock hidden partition
Was hoping to find an alternative method of unveiling it but it seems there isn't
And I suppose there isn't a way to change the UsbTageFileName either

Btw what it does it it changed the USBDiskMask setting in the config from 0x0007 to 0x0017 making the hidden partition mounted except of normal partition when connecting usb
Doing this with this piece of code
Quote:
if (gpSysConfig->UsbDiskMask & (0x0001 << 2))
{
gUsbMscDevice[ii].IoCtrl = FlashUserIoCtrl;
gUsbMscDevice[ii].ReadData = FlashUserReadSector;
gUsbMscDevice[ii].WriteData = FlashUserWriteSector;
ii++;
}
Reply With Quote
Sponsored Links