Uninstalling SDK Certs but keeping the sdk-signed drivers - Upgrading, Modifying and Unlocking

Q: Are the SDK certs only required for installation of drivers, or do they have to remain on my device for the drivers to continue to function after installation?
I'd like to use a particular enhancement (Rhodium Keyboard Controller), that includes a driver replacement. As with a lot of stuff here, it is signed with SDK certificates. I don't mind installing the SDK certs once to get it installed, but I'd rather not leave them on in perpetuity. My searches thus far, as well as my query in the RKC thread, haven't turned up the answer.
Also, where would you uninstall the SDK certificates? In remove programs, in the certificates setting area, or manually in file explorer? (Edit: discovered that certificates can be deleted by tapping, holding and waiting for a view/delete menu)
Thanks for your help

bump
My plan is to go ahead and experiment with it over the holidays, and I'll report back. However, if someone already knows, I do welcome their insights.

reporting back
Q: Are the SDK certs only required for installation of drivers, or do they have to remain on my device for the drivers to continue to function after installation?
Click to expand...
Click to collapse
As promised, I'm reporting my findings for anyone else who might be curious.
It is in fact necessary to leave the SDK certs on continued functioning of the drivers. I experimented by installing the certs, then adding the modified drivers, making sure they worked, then removing the certificates. The drivers would eventually cease working (possibly only after a reset?).
Also, where would you uninstall the SDK certificates?
Click to expand...
Click to collapse
The only way I found to remove the certificates was to use the remove sdkcerts cab, found here. I was unable to find them with the other certificates in settings.

Related

HTC sync, do I really need it?

Ok, here's the deal:
I don't like installing software on my computer that I don't need, and as far as I can tell, HTC sync is primarily aimed at synchronizing contacts and calendar to your computer, none of which I want or need. It also offers installation of apps to the phone, but for that I would prefer using either the adb tool from the sdk or just putting the apk files on the memory card and installing via a file manager on the phone.
First question:
I realize that I need the adb driver for my phone, and this driver is installed alongside/by HTC sync, so it is clearly packaged inside the HTC sync setup file. Does anyone know if it is possible to extract just the driver from the setup file? I know there is a zip floating around with the adb driver (I've downloaded that), but if it can be extracted from the setup file that's even better, since it would be an easy way to obtain the latest version.
Second question:
At some point in the future I expect there will be ROM updates to the phone. These are self contained exe-files, but according to the HTC support pages you need to have HTC sync installed to install them. Is this really true, or is it sufficient to have the adb driver installed?
Third question:
If I want to use the phone for USB tethering to give the computer internet access, which driver is needed for that? The ADB driver? Or must I have the full HTC sync installed for that to work?
Any answers appreciated!
Best regards
-Øyvind
Here are my answers to the best of my knowledge:
#1 - I have not found the driver available on it's on yet. However, I'm sure Mircosoft is soon to be adding it to it's list of drivers.
#2 - Most updates to the phones are done OTA ( Over the air), so you need not worry about about the HTC sync doing updates.
#3 - You will need the driver to tether your phone, but not the HTC desktop app.
For my setup I ran the setup file than uninstalled the HTC Sync but left the driver and everything seems to be ok.
Hope this helps
Thanks. Regarding #1, as I mentioned in the OP, a reportedly working ADB driver can be found in this post, but if it can be extracted from the HTC sync setup that would be even better. I've looked at it, but none of the files inside the setup file looked very promising (no inf-file to be found).
I know about OTA updates, but for older HTC phones (the Hero, for instance) there are downloadable rom updates. Are the exact same updates usually also sent out as OTAs?
As for #3, I know a driver is required, I just wanted to know which driver it was, and if it can be found separately.
Your tip on installing HTC sync to get the driver and then unistalling has been noted. Thanks.
+1 on installing and then uninstalling.
HTC sync installs two items, the second one, HTC Driver Installer, contains the ADB driver and the Tethering driver.
This was really helpful!
I tried installing HTC sync in a virtual machine to avoid cluttering my real machine, and during the install I chose "Custom". There I deselected the option for "Sync Manager" and installed only the "Application Installer" item.
I also monitored the install with a utility uninstaller, and it turns out that there is actually a "HTC Driver Installer" lurking inside the setup file. This file is temporarily extracted during the install, and I was able to manually make a copy of it before it was removed. The file name is HTCDriver.msi, and it contains all the driver files (both 32 and 64 bit). It can be used for a standalone install of just the drivers.
Thanks again! I think I'm fully sorted now!
Hi any chance of uploading the msi?
s4vva said:
Hi any chance of uploading the msi?
Click to expand...
Click to collapse
The file is ~14 MB, so it is too big to attach here. Any preferred site where I could upload it? The msi has been extracted from HTC sync version 2.0.33, btw.
Edit: I found out that 7zip actually could compress the file a lot more, so I have attached it. Please be aware that even though it has a .zip extension, it is really a 7z-file. Had to rename it to zip to get it to upload. The mods could perhaps allow 7z-files in addition to .zip?
MegaUpload or SendSpace personally
EddyOS said:
MegaUpload or SendSpace personally
Click to expand...
Click to collapse
I've edited my post. I found a way to attach it after my initial posting.
The wonders of 7-Zip!!
Thanks a lot!! I use HTC Sync but this is handy
Thanks, just what I needed.
mroek said:
This was really helpful!
I tried installing HTC sync in a virtual machine to avoid cluttering my real machine, and during the install I chose "Custom". There I deselected the option for "Sync Manager" and installed only the "Application Installer" item.
I also monitored the install with a utility uninstaller, and it turns out that there is actually a "HTC Driver Installer" lurking inside the setup file. This file is temporarily extracted during the install, and I was able to manually make a copy of it before it was removed. The file name is HTCDriver.msi, and it contains all the driver files (both 32 and 64 bit). It can be used for a standalone install of just the drivers.
Thanks again! I think I'm fully sorted now!
Click to expand...
Click to collapse
Hi,
Can you please share the HTCDriver.msi OR can the procedure or extracting the same from the setup exe?
Many thanks!
Vivek
This file seems useless to my windows 10 laptop....

Installation of cab files throws errors

Hi. I just recently purchased an HTC Touch Pro2 from T-Mobile running WinMo 6.5. That being said, I have not been able to open any cab files on the device to install some software. Basically I'll transfer the cab to the device and attempt to open it. I get one of three messages depending on the app I guess. the most basic is "Installation was unsuccessful" to "Installation was unsuccessful. The program or setting...not digitally signed...trusted certificate" (this was from MobileFTPClient). Installing Opera Mini 5 gives a simple: "Installation of mini5wm.cab was unsuccessful".
Ok, so being a software developer for 10 years I've been looking into some registry values and can't seem to find what I need to get anything to install. If I download from the Windows Marketplace that's all good, but nothing else.
What do I need to do to be able to install cab flils directly? Honestly if I can't get this to work this phone is going back. I moved from an iPhone to this phone specifically so I can install apps and monkey around with the device, but so far I'm done before I started.
Thanks for any info you can give me.
its in one of your phone/device settings to let u download and install apps or cabs not digitally signed. thats all, i believe. just find it and check it off. or look for advanced config cab if u can find it and install that. it has an option in there also to let u download/install whatever..
mullethunter said:
Hi. I just recently purchased an HTC Touch Pro2 from T-Mobile running WinMo 6.5. That being said, I have not been able to open any cab files on the device to install some software. Basically I'll transfer the cab to the device and attempt to open it. I get one of three messages depending on the app I guess. the most basic is "Installation was unsuccessful" to "Installation was unsuccessful. The program or setting...not digitally signed...trusted certificate" (this was from MobileFTPClient). Installing Opera Mini 5 gives a simple: "Installation of mini5wm.cab was unsuccessful".
Ok, so being a software developer for 10 years I've been looking into some registry values and can't seem to find what I need to get anything to install. If I download from the Windows Marketplace that's all good, but nothing else.
What do I need to do to be able to install cab flils directly? Honestly if I can't get this to work this phone is going back. I moved from an iPhone to this phone specifically so I can install apps and monkey around with the device, but so far I'm done before I started.
Thanks for any info you can give me.
Click to expand...
Click to collapse
The cab I have attached may help you...it's some SDK certificates that will allow installation of certain unsigned apps, but I don't know if this is what the ones you're running are requiring and missing. It won't harm anything to try this one, and you can easily uninstall it if it doesn't do the trick
Thanks guys. Sirphunkee - that cab actually installed, but I'm having the same problem. Another forum has suggested that I take the device back to T-Mobile, but it just seems like there's a setting that's not right in the OS. Demandarin - I've looked for various security permissions in the UI with no luck. I've mucked around with some Policy values in the registry per some threads on this forum, but still nothing.
I'll keep trying, and thanks.
So...weird; Opera Mini and Weather Bug (well known apps) wouldn't install, but an SMS notification disable cab installed (from the xda site) as did Evernote (evernote.com). I have no clue what the deal is, but it's getting beyond stupid that I can't install just any cab file.
mullethunter said:
So...weird; Opera Mini and Weather Bug (well known apps) wouldn't install, but an SMS notification disable cab installed (from the xda site) as did Evernote (evernote.com). I have no clue what the deal is, but it's getting beyond stupid that I can't install just any cab file.
Click to expand...
Click to collapse
Have you already installed .Net 3.5? It's a framework that many other programs use (and need) to install, and it's not on the TP2 by default...it's the only other think I could think of that would keep you from installing stuff. Cab is attached, if you don't have it already.
Got it. I installed the Device Security Manager PowerToy and was able to change the configuration there. Opera Mini 5 just installed.
Never would have thought the phone would come that locked down, but so far so good. Thanks for all of the ideas.
mullethunter said:
Got it. I installed the Device Security Manager PowerToy and was able to change the configuration there. Opera Mini 5 just installed.
Never would have thought the phone would come that locked down, but so far so good. Thanks for all of the ideas.
Click to expand...
Click to collapse
Well yeah what's weird is that I never had to use that to get any of those apps installed

Can't deploy apps

Hi all
Great forum...
I am trying to deploy an application from Visual Studio 2005 to my Zest phone. I have done this a hundred times in the past but for some reason it is now failing with an error:
The device security configuration disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your SDK documentation for proper security settings for connecting to this device.
I have wasted two days now trawling the net trying to find a solution but with no luck.
I have tried to instal the SDKCerts.cab but it simply wont install.
I have tried to edit the registry using mobile registry editor but get access is denied.
I have tried to install enablerapi but that fails to install also.
I have move the .exe manually and tried to run it but it complains that the app is not signed with a trusted certificate.
I am not too clued up on certificates so I really don't know where to go next.
Any help really apprciciated.

[GUIDE]How To make your HTC Mango Rom suits Old System Apps.

HTC new drivers Mango Rom will not allow old system apps to get root access, like TouchXplorer does not work on 4.xx above roms.So these days i found a way to make my custom rom based on htc 5.10 rom work perfect with old system apps.
Step 1
get an old htc offical rom, like 1.xx, get a htc offical 4.0x rom.dump them.copy HTCFileUtility.dll and HTCRegUtility.dll from 1.xx rom dump, and HTCProvisionDrv.dll from 4.0x rom dump.(they are both in OEM\HTC_AppDrivers)
Step 2
use the three files(modules) copied above to replace your custom rom, if u are using 4.0x rom as your base skip step 3.
Step 3
replace the ApprovedlistDB.db(in OEM\CSConn_DB) by my uploaded one.
Step 4
use OSBuilder to relloc your modules, or relloc them by yourself(just like me, cause OSBuilder is hard for me to understand how to use it)
Step 5
package your custom rom, and flash it, then you will get a new rom that TouchXplorer and RegistryEditor(this works much faster than before) can work like charm
Step 6
thx DFT bring us HSPL & Julien Schapman bring us magic system tools!
remarkable,thx 4 sharing
Would be awesome if there was a way to restore the old versions in-place without re-flashing the whole phone. CAB maybe? I don't think you can overwrite ROM modules any other way. I've avoided installing the latest HTC updates because I've written a couple apps that rely on the File and Reg DLLs, but that also means I don't have things like the Connected Media app working.
GoodDayToDie said:
Would be awesome if there was a way to restore the old versions in-place without re-flashing the whole phone. CAB maybe? I don't think you can overwrite ROM modules any other way. I've avoided installing the latest HTC updates because I've written a couple apps that rely on the File and Reg DLLs, but that also means I don't have things like the Connected Media app working.
Click to expand...
Click to collapse
if you can put files in \windows folder, and change reg key under HKLM\Drivers\BuiltIn\, you can make it works without flash a rom.
cause we could get drivers from htc orginal update cabs then rename them to put into \windows folder and change reg key to make these drivers load, no need to replace.
Well, if you care about this at all, you're already interop-unlocked.
If you're interop-unlocked, then you can set registry values and move files (using provxml).
So... yes, this sounds pretty exciting. Having the official HTC updates but still being able to use TouchXplorer would be awesome.
So, would it just be a matter of copying the old files under new names to the Windows folder and changing the "Dll" value of "HKLM\Drivers\BuiltIn\HTCFileUtility" and such? Or would something need to be done with the DB as well? I'm not sure if that can be changed on a running device.
Tell me what needs to be done and I'll create a tool to do it.
GoodDayToDie said:
Well, if you care about this at all, you're already interop-unlocked.
If you're interop-unlocked, then you can set registry values and move files (using provxml).
So... yes, this sounds pretty exciting. Having the official HTC updates but still being able to use TouchXplorer would be awesome.
So, would it just be a matter of copying the old files under new names to the Windows folder and changing the "Dll" value of "HKLM\Drivers\BuiltIn\HTCFileUtility" and such? Or would something need to be done with the DB as well? I'm not sure if that can be changed on a running device.
Tell me what needs to be done and I'll create a tool to do it.
Click to expand...
Click to collapse
you are on the way, m8.
get drivers from htc update cab, then u'll get files not modules
Code:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCFileUtility]
"Dll"="HTCFileUtility_new.dll"
if you make new HTCFileUtility.dll work, you will have enough power to replace files.
then make your new reg drivers work.
Code:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCRegUtility]
"Dll"="HTCRegUtility_new.dll"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCProvisionDrv]
"Dll"="HTCProvisionDrv_new.dll"
thanks for sharing, waiting for this method for along time.
Thanks ted. I'll update my backup (so I can roll back to working version if I need to) and go hunt down those files.
I don't think I'll need to overwrite HTCProvisionDrv, the current version seems to work just fine. In fact, if it doesn't, there won't be any way to do the overwrite. It's just the registry and filesystem drivers that were broken.
Now I'm wondering what the other HTC drivers do. There's a specific one for Connection Setup and for HTC YouTube, plus drivers for "HTCBgService" (a way to run tasks in the background, I assume) and "HTCVersionUtility" (probably not useful, but maybe?). It would be interesting to examine the APIs of those.
For that matter, it would be interesting to examine the API of things like the provision driver. It appears to have full permissions, but the DMXMLCOM.DLL library used to interface with it has a fairly limited API (no way to get the result of a provxml query, for example). Talking directly to the driver may work better.
Anyhow, off to find the correct CAB!
Sounds pretty awesome! New drivers in Mango with support for old apps - cool! Really hoping for a tool to do this, i've never cooked my own ROM, I solely rely on the experts for this
Hi Ted (or anybody), do you knwo where I can get the pre-Mango HTC cabs? All the cabs I've been able to find are for the Mango HTC updates, and have the wrong versions of the files.
EDIT: Found some that might work. They aren't labeled but the datestamp is from January.
Pretty sure xboxmod has a thread with all the official cabs linked somewhere on xda.
Sent from my HD7 T9292 using XDA Windows Phone 7 App
Thanks. I'll see if the files I found work. They're old enough, and are supposedly from an official update, but it's hard to be sure. Their file sizes are different from the ones in the latest update, but not by much.
The real trick, of course, is seeing whether I can install my own drivers at all or not. I know I can place files and change registry values, we just have to see if the phone will use them.
ted973 said:
HTC new drivers Mango Rom will not allow old system apps to get root access, like TouchXplorer does not work on 4.xx above roms.So these days i found a way to make my custom rom based on htc 5.10 rom work perfect with old system apps.
...
Click to expand...
Click to collapse
Any chance you would release your custom ROM? Can you make one for Trophy, only one using 5.10 version are Ansar's, your's sounds nicer!
Well, I didn't find Xboxmod's cabs, so I'm using the ones linked in Heathcliff74's thread. Unfortunately all the reliable ones are pretty recent, so I don't think they'll work. Last resort I'll try pulling them off my phone's filesystem, but that gets weird with modules.
I've successfully broken TouchXplorer and Connection Setup, and then fixed them again. I think this constitutes progress. Next step: try some older drivers, and see if I can install them without breaking anything. If so, then I'll try updating my phone with the official HTC update, and see if it's still working. If so, I'll clean up the XAP a little and publish.
EDIT: Additional discovery: Connection Setup relies on HTCFileUtility.dll. Installing the broken FileUtility driver causes Connection Setup to complain that there's no database installed on the phone, and then quit. Now I *really* wonder what HTCConnectionSetUp.dll is used for. Also, I'm not gonna touch the Provision driver unless I have to; this testing takes long enough when every step requires a reboot. If I mess up the provision driver I'll probably need to restore the phone backup.
EDIT2: The new HTCConnectionSetUp.dll driver is several times the size of the old one, but it doesn't seem to change how Connection Setup works when I use it. In particular, it still processes CustClear.provxml.
EDIT3: Still not working, even with very old drivers (January). I have a few possible ideas as to why, but it looks like I may need to run this with drivers from my "working" phone instead of from a CAB.
OK, I haven't been able to get this working with any of the DLLs I've been able to pull from CABs, and the DLL modules on the filesystem can't be moved, renamed, or read (ERROR_ACCESS_DENIED when I try to read one using ComFileRW.dll).
I either need the right CAB, the special sauce to make it work with the wrong CAB, or a way to extract those modules as files. I suspect it's at least partially a "special sauce" situation - the errors I get when I try using different drivers are not the same as the errors I get with the official update that breaks third-party apps trying to use those drivers.
I would *REALLY* appreciate some assistance with this. It has the potential to provide an easier interop-unlock (if the official update doesn't reset the driver DLL paths) and even if that doesn't work, it would be a big step forward for HTC homebrew. However, I know nothing about ROM assembly - not even how to extract a file from a shipped ROM. I'm trying to learn, but if somebody wants to point me in the right direction that would be a big help.
EDIT: I managed to extract the ROM module (took some doing; HTCRIE will crash at the drop of a hat if you aren't careful). I can't rebuild the file though - recmod doesn't seem to like it.
if you can use Provxml i have some way to replace module in \Windows dir
1.
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\System\Explorer\Shell Folders">
<parm name="My Ringtones" value="\Windows" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
copy this to notepad and save as File.Provxml file
2.Install DiagProvXMLv0.91
3.Use Chevron Ringtone Installer to copy .Provxml to your phone
4.Run DiagProvXML and go to " File Operations" tab , select Copy (to isoStore)
in Source Path use
\My Documents\My Ringtones\
Click to expand...
Click to collapse
and Source File use
File.Provxml
Click to expand...
Click to collapse
,,
Press (+) to save ,,
and now go to provxml tab and Press Publish (disk icon) ,,
go to iso store tab and Hold press at File and select Excute ,,
restart your phone and now you can use Chevron Ringtone installer to Add File you need to \Windows\ (sure as module , and defaultcert.dat for cab sender)
Best Regard
PPJD
@peeks20: Thanks (sort of) but your method is both overly complicated and doesn't solve the actual problem. If you're already interop-unlocked (and you have to be, to use DiagProvXML), then it's trivial to write a small app that just uses DMXMLCOM.dll to process whatever provxml commands you want. That includes copying files to the Windows directory.
The problem is that I'm not sure what file to copy, and I'm not sure it'll work even if I have the right file (I've tried multiple official files from various update CABs, and none of them have worked). There's probably either a version-matching function that's getting in the way, or a database somewhere that needs to register the new drivers (beyind just changing the path in the Dll value in the registry). Heck, maybe it's both. The point is, it doesn't work.
Now, if there's something about deploying the files using the Chevron ringtone installer instead of using pvroxml that will make all the difference, that would be cool. I really doubt it, though. The files copy just fine, and can be accessed and opened. They jut don't actually work. I get the same errors as if I point the Dll path in the registry to completely bogus paths ("Dll"="ThisFileDoesNotExist.dll").
GoodDayToDie said:
@peeks20: Thanks (sort of) but your method is both overly complicated and doesn't solve the actual problem. If you're already interop-unlocked (and you have to be, to use DiagProvXML), then it's trivial to write a small app that just uses DMXMLCOM.dll to process whatever provxml commands you want. That includes copying files to the Windows directory.
The problem is that I'm not sure what file to copy, and I'm not sure it'll work even if I have the right file (I've tried multiple official files from various update CABs, and none of them have worked). There's probably either a version-matching function that's getting in the way, or a database somewhere that needs to register the new drivers (beyind just changing the path in the Dll value in the registry). Heck, maybe it's both. The point is, it doesn't work.
Now, if there's something about deploying the files using the Chevron ringtone installer instead of using pvroxml that will make all the difference, that would be cool. I really doubt it, though. The files copy just fine, and can be accessed and opened. They jut don't actually work. I get the same errors as if I point the Dll path in the registry to completely bogus paths ("Dll"="ThisFileDoesNotExist.dll").
Click to expand...
Click to collapse
i uploaded HTC Appdrivers from Mozart 1.32 & 4.06 update cabs, maybe you can continue your test
Thanks, I'll give them a try. However, I've got to ask - what is Approvedlist.db, and if you have to modify it for a custom ROM, would I also need to modify it for this app? I can't shake the feeling that there's more to installing a driver than just changing a registry value.
GoodDayToDie said:
Thanks, I'll give them a try. However, I've got to ask - what is Approvedlist.db, and if you have to modify it for a custom ROM, would I also need to modify it for this app? I can't shake the feeling that there's more to installing a driver than just changing a registry value.
Click to expand...
Click to collapse
hard for me to explain this in english, this file decides which Registry keys allow apps to change.its format changed in 5.xx rom, so RegistryEditor v1.2.0.0 didn't work on these roms, we need to use old version HTCRegUtility & HTCProvisionDrv and old format ApprovedlistDB.db to make htc apps and 3rd Registry tools works perfect, that's why you need to replace ApprovedlistDB.db.

[Q]USB Ethenet Drivers

Yes, I know Microsoft did changed the root certificate that the binaries need to be chained to, but while researching around the internet I managed to get the ASIX drivers installed on my Surface RT running Windows 8.1. Yet I am having a Code 52 error which says
"Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source."
The USB Ethernet is also not working. I have tried connecting it to my router, but I am not getting any internet from it. Hope anyone can help to get this sorted out! Thanks!
It's possible to install signed drivers, but they won't work (the kernel won't load them) unless the signature is trusted by the OS. That's probably the problem.
GoodDayToDie said:
It's possible to install signed drivers, but they won't work (the kernel won't load them) unless the signature is trusted by the OS. That's probably the problem.
Click to expand...
Click to collapse
So theres no way to get the drivers to be trusted by the OS?
On RT8.1? Not currently, unless they're signed with a key whose certificate chains to the new root certificate for the OS.
xWolf13 said:
Yes, I know Microsoft did changed the root certificate that the binaries need to be chained to, but while researching around the internet I managed to get the ASIX drivers installed on my Surface RT running Windows 8.1. Yet I am having a Code 52 error which says
"Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source."
The USB Ethernet is also not working. I have tried connecting it to my router, but I am not getting any internet from it. Hope anyone can help to get this sorted out! Thanks!
Click to expand...
Click to collapse
Until there's a new jailbreak, and perhaps even after that, this driver isn't going to work.

Categories

Resources