none
win mobile 6.5- dll overwrite protection removal without activesync RRS feed

  • Question

  • I am writing a OTG driver and I cannot use active sync.

    I would like to update a few usb class drivers. They are not active untill  a USB device is connected. So When i try to overwrite these drivers from an SD card, i am given an error saying they are write protected or being in use. I am sure they are not in use as there are no USB devices attached and i have also checked the active dll registry.

    How to remove the write protection?

    I dont want to build a new image every time as it is time consuming. I can rename both the registry entry and updated dll to a different one than the original dll and it works. Still, i would like to know about the security protection in place and how to remove it. Is there any process by which the dlls added to image during 'makeimg' are made inaccessible from UI's simple copy/paste?

    I am using the digital signing and certificate cab file execution properly.  

    thanks a lot in advance

     

    • Moved by Jesse Jiang Friday, December 9, 2011 3:07 AM (From:Windows Mobile Development)
    Wednesday, December 7, 2011 3:25 AM

All replies

  • Hello,

     

    I think your issue should be raised in the Windows Embedded Compact Platform Development. I believe they will know more information of this issue than us, and I will move this one to that forum.

     

    Thanks for your understanding,

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Friday, December 9, 2011 3:06 AM
  • The kernel is loaded as a ROM. The files in the Windows folder are not "real" files and can not be deleted or replaced. If you want the ability to "overwrite" files originally in the kernel image (showing up in the \Windows folder on the device) then you'll have to shadow the \Windows folder on some internal (non-removable) writable filesystem (like your internal NAND or SD or something similar).

     

    Have a look here: http://msdn.microsoft.com/en-us/library/ms885839.aspx


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Friday, December 9, 2011 8:21 PM
    Moderator