CAB file help - "Installation unsuccessful" on HTC - Windows Mobile Development and Hacking General

Hello all,
Attached is a simple CAB file that should have set the PIE user-agent stuff to be identifying the thing as IE6. I think there may be others around, I know I've seen it in a larger cab, so don't worry about this specific function. My question is regarding the fact that when I try to run it on my HTC Wizard (running WM5), I get "Installation of PIE_as_IE6.cab was unsuccessful".
I built the CAB off of the "CAB Template.cab" from http://forum.xda-developers.com/viewtopic.php?p=113615#113615 - just in case I'd run into that version issue with WM5.
Any thoughts out there on what's wrong with the CAB? Or is there a different reason it won't install?

Hi, what CSP are you using to change those settings and how are you deploying it to the device? Chances are access to that provider is restricted to a higher security role than what the cab file has permissions to do. RAPI still has access to most service providers by default but if you're downloading the cab over the air to the device it'll probably need to be signed with a suitable certificate before it's allowed to make setting changes. Mobile 5.0 security has been beefed up and its now a bit of a mission to do what was reasonable simple to do on 2003. All cpf files need to be signed if not deployed over RAPI as well, for even something trivial like adding a browser favourite.

editor is OCP Software's WinCe Cab Manager (version: 1.1)
deploy method is copy over USB cable by ActiveSync through Total Commander+WinCe Device access plugin. Execution of CAB is on the device itself through Total Commander CE or Explorer.
No CSP in use (err.. afaik).
You may be right that the part of the registry in question may simply be unavailable to access without special signing. I'll have to dig for those keywords a bit.

Yeah...the more I research Mobile 5.0 security the steeper it gets. It seems security permissions extend all the way to file IO access. Writing certain recognized system files (like theme files) without adequit permissions effectively renders those files as untrusted and they stop behaving in their expected manner. Its a pain.

Related

Remote Application Install

Hi Everyone,
I am just starting to explore developing software for mobile devices. I want to be able to develop an application, generate a CAB file, copy them to a selected device and the make the device automatically expand and install the CAB file.
Does anyone know of an easy way of automating the installation of a CAB file on devices - this is basically so that the end user does not have to be involved in the installation of new software.
Thanks
Dan
I'm interested in it too!
Do you mean that you want to remotely update the software installed in the mobile? Do you plan to send the new installation file by GPRS?
You can't push files over GPRS unless you have a VPN or similar tunnel (most people don't.)
While developing I like to run Eiichiro Ito's ftpd for Windows CE (works with any version from 2.0 to 5.0 - http://www.oohito.com/wince/arm_j.htm) and I have a rule in my Makefile which automatically uploads the new binary to the storage card, ready to run.
Of course if you only want your program to check for updates and install them automatically, then it is just a matter of making it check a website and download available updates each time it is run. This requires extra code in your application but it's the only way to do it for released software. Also it will annoy the user by trying to connect to GPRS every time they run the program.
It sounds like to me you want to know how to make a cab file. Is that right?
If so I can offer some code. The part about getting the cab to automatically work is not so easy. Unless you have some process already running that expects the cab, what will execute it?(unless of cource you mean the device is synched)
Give more detail.

MachinaGod RAPI Unlocker - certificate disable on WM5 v0.1

Hi,
Just an util I got together in no time.
Rapi Enabler, certificate disabler.
Enable all the security on your Windows Mobile 5 phone.
Credits to the author of the ce remote tools.
Instructions:
1. Download the attached file (you have to be logged into xda-dev);
2. Extract it somewhere in your computer
3. Connect your phone via activesync
4. Run the EnableRapi.bat (on your computer)
5. Done.
Have fun,
Ricardo
How does it differ from this CAB file I pulled off the HTC Apache?
I use this in my Extended ROM so that I can run unsigned applications, CAB files, and CPF files during the initialization procedure after a hard reset.
Hi BTT,
This is based on that exact cab. The only difference in enabling RAPI calls also, and doing it without needing user interaction, only needing a activesync connection.
Is a little utility I use for integration into batch files.
Bye,
Ricardo
Certificate disabler..
Probably a dumb question, but is it a replacement fort certchk on 2003 devices? Still looking for such a program.
Thx
Thanks Machinegod, this worked well. I used it on an XDA exec will it work with all WM5 devices?
Hi Machinagod
Is there a way i can call your routine from code?
I have developed software for WM5 but cannot access the database with the standard MS settings. I would like to give my users the option to unlock the rapi calls and install automatically.
Thanks in advance
Steve
ronaldovic said:
Certificate disabler..
Probably a dumb question, but is it a replacement fort certchk on 2003 devices? Still looking for such a program.
Thx
Click to expand...
Click to collapse
to ronaldovic: I believe this utility is for disabling signed applications so you can install apps that have not been signed. I have used BTT cert cab in my extended rom since he posted it (Thanks BTT, It has been very usefull)
If you are looking for disable cert check so you can activesync with MS exchange without a a SSL . Certificate connection, Micro$oft still offers a download to disable the cert sync check..
see http://www.microsoft.com/downloads/...b8-8b3a-4f1d-8e94-530a67614df1&displaylang=en
Miracle Registry
i checked many registry of "Security policies" in different device, and also SDK.
http://asukal.seesaa.net/article/12583144.html
You can understand how change it for your neccesity.
this was for your refference.
and also i got made one registry file which has many "Certificate Sotre"
from different setting devicees and CABs and SDK Emu.
This registry make your device to enable working many kinds of dll and exe or any other files without digital signed(not for all)
multi user interface files also can effect without digital signatures.
(shellress still can not, but worked with Smartphone signature)
The security revel will be same or lower than SDK emu.
but not completely finish to edit it.
so possibility of some side-effect or unkown problem.
Hope understand this point and use it as test.
But once you use this registry, you got understand why i said it miracle.
just import this registry and make soft reset.
"syntac error" displayed when you import this, but works.i will cheking the reason of this error.
lets test it.
Re: MachinaGod RAPI Unlocker - certificate disable on WM5 v0
I try to use it on my new Jamin but nothing happen.... Prog still not work.
Pls I'm a newbe, Can you help me ?
Thanks a l ot
Hi MachinaGod,
Could you tell me please what exactly this RAPI unclocker is doing? Is it possible to undo it? RAPI locker or something? Is there any security threat after you execute tis program?
Thank you!
cingular
please tell me what tool can unlock (simlock) my cingular 8525, Thank you very much!
hmmmmmmmmytfghvghdgfgfdtrsdr
unlocking spv m1500
hello,
i tried the RAPI unlocker but it did not work,
could it be because my Pocket pc is running 2003 CE?
hi
someone can send me the file i can download him pls
and one qwuestion this unlock mi simlock???
htc 8125 need help please
machinagod said:
Hi,
Just an util I got together in no time.
Rapi Enabler, certificate disabler.
Enable all the security on your Windows Mobile 5 phone.
Credits to the author of the ce remote tools.
Instructions:
1. Download the attached file (you have to be logged into xda-dev);
2. Extract it somewhere in your computer
3. Connect your phone via activesync
4. Run the EnableRapi.bat (on your computer)
5. Done.
Have fun,
Ricardo
Click to expand...
Click to collapse
i have a htc 8125 and tried your method and it never gave me a code but when i put my sim card in it says sim lock and unlock? explain how to unlock this d$$m phone.It is a cingular phone but i dont have that service.it is version 2.25
[email protected]

How can one scan and modify every IP packet that goes thru PPP (dial-up)?

Hello. I want to scan and modify every IP packet that goes thru PPP (dial-up) (or thru all interfaces if easier). I've done a lot of research and found that maybe the only way to achieve this on lousy wince is to patch the OS itself...I am an x86 programmer and I've done this relatively easily on winxp...
P.S. How can one debug wince os code in ROM with software debuggers?
P.P.S. So far I don't have any solution to my problem so it would be a success to do this even with one device (I have htc universal for tests...)
Today I've finally downloaded the platform builder and so called "Shared" code of wince 6.0...To my surprise I found ARM4 .lib files instead of source code for everything that I needed to look in (ip*.*) . However there is a binmod utility and other stuff for editing rom that you might need. I don't need to modify rom since i can neither debug ROM nor have it's source even from a different version of wince (I need for 5.0). M$ is sh*t as usual.
It is the har work to modify ppp packets on pocket pc (wince).
Yo can try the passthru sample in PB:
\PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\PASSTHRU
and
\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\ASYNCMAC
i think you have to modify the drivers.
good luck !

wifi with certificate

Dear All
I need to connect my htc tyn to my work wifi configuration. The problem is the wifi is based on a root certificate permission. Obviously i have the certiface but with wm5 i can't configure the wifi with the root certificate. I try to use odyssey client for windows mobile but it allow me to use only personal certificate. Can someone help me
Thanks for your great support
Bas
It can be done, it's just not much fun!!!
It's a bit of a convoluted process, but you can install a root certificate on a WM device - only problem is, you have to use a CAB file.
There is an article on one of the MSDN blogs that you can use (I've used it myself about 12 months ago and I still have the CAB on my SD card!). Have a look at >THIS PAGE< to find out how to do it! By the way, the "makecab" program is part of Windows XP, so you don't need to go downloading SDK's etc.
Have a go, hope this helps!
Mark.
I have loaded my certs by exporting them on WinXp to .CER files, copying them to my Jasjam and then opening them in file manager.
You should be prompted to install the cert.
Worked for me.
Dear all
The problem is not to import the "root" certificate to wm5, but how to use it with the wifi (weap) structure.

Samsung i616 problem with localization

Hi all!
I 've tried to localize this device but without success.
I've found somewhere cab file with czech localization for WM6 tornado, but
I cannot it install.
Installer says: "Installation was unsuccessful. The program or settings ca not be installed because it does not have sufficient system permissions."
When I copied mui files to \Windows with total commander for wm and
added to registry
"HKLM\MUI\Available
parm name="0405" value="Czech" datatype="string"",
switched to Czech and restarted phone, nothing was changed.
I think that I have problem with certificates and privilege level of running application. For example I cannot edit all registry keys with Windows commander.
I've tried to use Security configuration manager form WM6 SDK but it didn't
change device's security mode.
I have these questions:
1) How can I install Czech localization to i616?
2) Is it possible to add my own certificate to provide my application running in privilege level?
3) Or is there way to switch security level of my device to allow applications run in privilege level?
Thanks you all.
ps: sorry for my poor english

Categories

Resources