Hello Wm61 question - Windows Mobile Development and Hacking General

Hello,
Hoping someone could clear up a couple things for me. At my work we use the mc9090 RFID scanners which run windows mobile 6.1 currently. Currently we use motorola osupdate to push applications in a CAR file once the OS update util flashes the stock rom which are .sig files and .bin files. My question is do i have any chance of dumping the rom and if so would I be able to get it back on the device. Currently i was able to use imgfs tools to dump the os partition into a .raw files but that is as far as i got with dumping. So since they are signed files how would or is it possible for me to get them back on the device? I just didn't want to waste anymore time if i am not going to get anywhere on this. Also not saying that I would be able to use it but is package builder for wm what actually generates the .sig files?
Any ideas about how i could make this work would be awesome or any other ideas. The goal here is for us to have a base wm6.1 with all of our software on it and configured when we image a gun. I am sure motorola would hook us up with microsoft to do this but trying to figure out if anyway i could pull this off internally since we update so much..
thanks

jphilpot said:
Hello,
Hoping someone could clear up a couple things for me. At my work we use the mc9090 RFID scanners which run windows mobile 6.1 currently. Currently we use motorola osupdate to push applications in a CAR file once the OS update util flashes the stock rom which are .sig files and .bin files. My question is do i have any chance of dumping the rom and if so would I be able to get it back on the device. Currently i was able to use imgfs tools to dump the os partition into a .raw files but that is as far as i got with dumping. So since they are signed files how would or is it possible for me to get them back on the device? I just didn't want to waste anymore time if i am not going to get anywhere on this. Also not saying that I would be able to use it but is package builder for wm what actually generates the .sig files?
Any ideas about how i could make this work would be awesome or any other ideas. The goal here is for us to have a base wm6.1 with all of our software on it and configured when we image a gun. I am sure motorola would hook us up with microsoft to do this but trying to figure out if anyway i could pull this off internally since we update so much..
thanks
Click to expand...
Click to collapse
My suggestion is to set up one of your devices with all the setting and configurations exactly the way you want them, and then image that device using a program like Sprite Backup http://www.spritesoftware.com/ It's a tool I use to keep my device secure, since I do a lot of tweaking on it.This way, if any of my adjustments end up breaking it, I can always restore to a configuration that I know works. The same principal should work for what you need.

sprite
Unit ZER0 said:
My suggestion is to set up one of your devices with all the setting and configurations exactly the way you want them, and then image that device using a program like Sprite Backup http://www.spritesoftware.com/ It's a tool I use to keep my device secure, since I do a lot of tweaking on it.This way, if any of my adjustments end up breaking it, I can always restore to a configuration that I know works. The same principal should work for what you need.
Click to expand...
Click to collapse
We tried sprite clone in the beginning and didn't work out right. Some stuff didn't come across right, so not saying i havent learned
enough now to fix that stuff but as far as us implementing it i don't see that happening.
I will give it another look since we have 100 licenses :]

Related

Make Part to ROM - Urgent

Please please reply it.
I want to make my application part of ROM my three PDAs. ( I have XDA2i, PDA2K and K-Jam), so machine will have application after hard reset. (i don’t want to write FLASH Memory \Storage\1257 etc i think any one can delete that)
Q1) is there any installer available which deploy to ROM and make desired application part of ROM.
Q2) to upgrade any ROM , is it must to have base ROM ?
I really thankful for your feedbacks
Khurram
Hi Khurram!
There are no installers that can put apps in to device ROM. If you want to add to the ROM you need to do the following:
1)Extract ROM image (or get one for your device from somewhere).
2)Decrypt the image (nbf file) and extract all files.
3)Add your app
4)Repackage and encrypt the image.
5)Reflash your device with the new image.
The tools to do it are on this site (check out ROM kitchen), but this is a complicated process, and there is a good chance you will wind up with a useless device which won't boot.
So you should read up on ROM cooking and be very careful when altering ROM images.
Good luck!
Hello levenum,
Great reply , thanks a lot . you are the only person who replied me now and in past as well.
in past, you suggested the "file store".
Problem: it is not a secure way , any person can remove it from the device.
does any one have idea about Extended ROM or any other secure and risk free way ?
Thanks
[/list]
Hi Khurram!
When you first posted you didn't specify your program was sensitive, and you didn't want people deleting it.
If it's really important Extended ROM is not good ether since it can be unlocked and manipulated just like the File store. There are unlocking tools in this forum.
If your program is some kind of anti-theft app. (in case your phone gets stolen) the only way to ensure no one messes with it is to put it in ROM.
Of course even then someone could re-flash the device with an original ROM,
so nothing is 100% secure.
Great , really impressed in way you picked my point.
i am working on such a application , actually 3 months ago I lost my newly purchased XDA2i , luckily i got that back with the help of mobile operator but I want to developed such a application which will lock the machine totally and will not allow re-flashing as well.
Q: stop to re-flash is possible?
Q: any existing tools for anti-theft ( i saw something at ROM Kitchen but it is for specific versions only)
any further help will be appreciated.
Thanks Again.
Yes, there are projects like this here:
http://forum.xda-developers.com/viewtopic.php?t=46174
Although, I don't remember anyone trying to put the app in ROM.
As for preventing device from re-flashing:
It is possible theoretically, but would require serious programming skills, and good knowledge of hardware.
There is a special program, called bootloader, which is responsible for loading the OS or writing a ROM update to the device. The only way to prevent re-flashing would be to write one of your own, and even then getting it on the device would be tricky.
Any way, that kind of knowledge is way beyond me.
But I do have one question you should consider:
Does your program need to save data, like SIM details for authorized SIMs or changing password?
Since this data cannot be written to ROM dynamiccaly, you would have to compile your program for each user\device specifically, and the password would have to be hard coded.
yes my application will be extention of existing security tools with more control of device something confidentional :twisted: .
the only problem is prevent from deletion so thats why i am worried about it
I didn't mean for you to tell me what your program saves.
I just wanted to point out that while preventing a program from being deleted is possible (I don't think many thieves would bother re-flashing a device, specially if your program would make it look as if the device is malfunctioning and not locked, only the user will know what to do)
its impossible to save settings so they will not be deleted.
If you are making this program only for your self, than fixed password, or SIM info is not a problem, but if you intend this for other people you will have to come up with some solution to store the settings securely.
At leas for this you may have to use the File store.

ROM Kitchen for Herald

Here is a new rom kitchen which also can be used for Herald roms.
Anichillus is working on it to make it completely automatic for Herald. At the moment some files have to be copied manually - but it works.
Just have a look at:
http://forum.xda-developers.com/showthread.php?t=309562
really really sweet, anichillus, awesome! but i'll wait for the Herald compatibility first
Thats definitly good news for the Herald community
Yeah it already works great. I used it to create a wm6 rom based off the wing os dump and it couldn't be easier (coming from a first time cook). I definitely recommend giving it a whirl if you're interested.
Guys, sorry i said that i will upload your kitchen today...but i might not
I think i have been hacked ...so the website doesn't work, and i lost all my stuff cos i had to format my PC (it wouldn't start lol)...I downloaded the one i customised for the hermes and i will start modding on yours, but it might take little more so i don't know if i can finish it today considering i have some personal stuff to do...
Untill then, tell me what RUU to include in yours...or other method for flashing ?
For now it was only meant to be installed in the system drive...and most of us have that drive only for windows.. So i figured that if i am going to modify it, i might as well make it path free so you can install wherever you want...and that also eats little time...
Cheers
anichillus said:
Guys, sorry i said that i will upload your kitchen today...but i might not
I think i have been hacked ...so the website doesn't work, and i lost all my stuff cos i had to format my PC (it wouldn't start lol)...I downloaded the one i customised for the hermes and i will start modding on yours, but it might take little more so i don't know if i can finish it today considering i have some personal stuff to do...
Untill then, tell me what RUU to include in yours...or other method for flashing ?
For now it was only meant to be installed in the system drive...and most of us have that drive only for windows.. So i figured that if i am going to modify it, i might as well make it path free so you can install wherever you want...and that also eats little time...
Cheers
Click to expand...
Click to collapse
Here you are. It is the Aserg-Zip folder only containing teh programs for flashing (perhaps you can delete some unused ones) and i deleted the OS.nb. But the RUU doesn´t work for herald.
An sorry for your PC - don´t get in trouble.

[Help Request] Live ROM Update

Objective :
Create an Update Utility based on the Windows Update in Official ROMs
Description :
My idea is to create a ROM that can be updated without the need of RUU we use now. For example, you have Core2.0n version of my ROM and since you installed it, I created another version, for example Core3. In order to update you'd normally have to download the latest ROM to your PC and re-flash your HTC Wizard.
I want to allow you to go online directly from your Wizard and check for new version. If new version found, then automatically download and flash. All you'd need is an Internet connection.
Limits/Problems :
There are some problems about this. This is where I need help.
Usually the PPC turns OFF and then the RUU writes the ROM. With the way I want it, the ROM must be written while the device is ON...and then it would do a Hard Reset in order to complete the Update.
I don't know yet if this is possible, but I am willing to try.
What I need :
People with Assembler knowledge
People with good PPC knowledge and understanding
Huge amount of luck
I remember someone here already tried to restore the Windows Update components. Unfortunately I can't remember who and if he succeeded or not.
I'll search for his thread and post any update.
The ORIGINAL thread is located HERE. Please feel free to join the development crew.​
The idea looks cool, it will allow us to redistribute updates and fixes to our roms more easy
But we have to figure out how the windows update feature is working, and how it manages to flash the downloaded update
I think that it downloads the updates to the storage card (in most cases there is not enough space in storage to store whole rom image) and then instructs the boot loader to flash the file from the card (this way it will be logical)
Also that way will be similar for all devices not just the wizard.
So the rom cookers can personalize windows update settings to update their roms trough it (of course separetely for every device)
xplode said:
The idea looks cool, it will allow us to redistribute updates and fixes to our roms more easy
But we have to figure out how the windows update feature is working, and how it manages to flash the downloaded update
I think that it downloads the updates to the storage card (in most cases there is not enough space in storage to store whole rom image) and then instructs the boot loader to flash the file from the card (this way it will be logical)
Click to expand...
Click to collapse
I think we'll try to do that. However I doubt that Microsoft intended to use a Storage Card for update. This makes me curious on what method they would have used.
Other problem would be error checking...We must know for certain the OS is not corrupted before attempting the update.
Maybe I didn't said it...but I will say it now. My intention is only to flash through the air an OS, that means no other components, like SPL, IPL , radio or SplashScreens will be altered by the Update so no chance of bricking the device plus making the whole process easier to accomplish.
Other idea is to study the way that security programs (anti theft) use they're software so that the data is included in the rom with a simple install.(they say the program will be there even after a hard reset...though i didn't tried any)
I am sad to notice so little enthusiasm from people around here.
This would affect chefs more than regular people but still.
Back to business...
Questions :
Is it possible to flash directly the ROM with the PDA turned on ?
If so, how can we access the ROM directly ?
How to use .pkg ? Can we make use of them ?
Considering the Update deals only with relative minor changes, this means we can leave the XIP out. We can think of new Builds as major upgrades and require the use of normal flash. The big problem..and unfortunately the thing I know less about it's managing to insert the new update in a very "raw" manner.
I am firmly convinced that few people here posses the knowledge to do this.
Please come in front and let's make this thing happen.
I could try to reverse engineer the default windows update but it would take a great deal of time and I would probably get stuck without some help.
P.S. I managed to find the thread I was talking about before. It's located here.
I think is a great idea my friend. However there are many things to think before trying to do it. First of all to flash the new files you shall need to make a pdoc write but i have now idea how can be made via the device itself.
Where are the "patches" being stored before they are updated?
May be the process of hard reset shold be manual. This are only some toughts.
i would help u as much as i can...
great idea !
the update can be on the storage card and one can put the device into
bootloader/update mode by running this little program in the windows dir
to switch it to the 3 color screen.
With this WM5torage program i can acces the romchip itself and write it.
not sure wether it messes up things.
not sure if this will delete contents of the storagecard itself...
another thought... why not make the updatepackage and let windowsupdate install it for you ?
I think the best way to procede is to find out how to make a pkg file (faria seems to know) and then to sniff what the windows update app does when connecting to the MS server and see if we can emulate that on a test server.
Midget_1990 said:
I think the best way to procede is to find out how to make a pkg file (faria seems to know) and then to sniff what the windows update app does when connecting to the MS server and see if we can emulate that on a test server.
Click to expand...
Click to collapse
All your ideas are great. But this was exactly what i had in mind. It seems the easiest way....only so little time right now. So...where`s Faria ?
P.S. Sorry for late reply...i thought ppl don`t care and i didn`t checked the thread
Does somebody of you have such a pkg file?
As I understand it right, this file will be delivered by windows update to the client?
I never got an Update via Windows Update... Everytime I try, there are no updates available ^^
Sniffing the Windows Update would be easy, I think. I could bet that all this stuff is done via a Webservice. That's the I would do it
Has anyone ever updated anything using that Windows Update? It's highly unlikely it will download a whole new ROM, maybe just some cabs which won't touch the ROM altogether, just mess around in registry.
And who needs to keep the device on while updating if you'd make a hard reset afterwards?
It can even be done now...
any back-up program
a cook who's willing to release ROMS on some stable host (NOT rapidshare where address changes)
a diff utility to download only the parts of the ROM that changed
A small app which writes XXXXIMG.BIN to storage card and enters bootloader.
Much harder task is to get rid of ROMs altogether and take control of the only advantage they give: XIP. I mean, why don't use a tool to convert the new apps to XIP format making them a part of the ROM?
@anichillus
I can provide u with the package but it will take some time..u see i have WM6 Emulator..but cant make it to use Internet Connection of my PC..so the Update manager starts but doesent download (no connectivity)..will see what i can do
i got the internet working..but when i click update..it doesent give any packages..what now

Modifying OEM ROM

This is my first shot at doing anything with a Device's ROM so forgive me if I mention something stupid.
Basically what I'm trying to do is add one program to the install process, so when a Device is hard reset it goes back to factory + this one other program that I want to install.
I currently have it as a .cab package and the company I work for has given me an I-Mate K-Jam to learn how to do this, and then adapt it for newer devices. (which I'm sure will be a fun task).
I'm using the guide for creating a new ROM found here: (which is fantastic)
http://forum.xda-developers.com/showthread.php?t=303406/
The only problem is that I have no idea how to tell the package where to put files. The cab I have wants to put files in these directories.
[DestinationDirs]
CopyFiles1=0,"%CE2%"
CopyFiles2=0,"%CE4%"
CopyFiles3=0,"\Temp
If someone could explain this to me, or if there is an easier way to go about doing what I'm doing any help would be greatly appreciated.

Batch installation and update of settings

Hi,
I'm looking for a bit of help with this if possible, basically at work, i have to constantly setup a load of HTC P6500 devices all running on windows mobile 6.1.
On each device I have to install certain programs from an sd card and update quite a few system settings.
Is there any way this can be done with a batch file perhaps, that would install all the software and update all the settings I need it to?
"XDA UC" could be what you are looking for, but it needs to be cooked in into WM.
I think there already is such a machanism in WM, but I don't really remember it's name...
.cab
make a .cab which has all the programs and settings.
maybe RunCC is in your ROM...
thanks for the help everyone, managed to get around this using SPB backup trial which let me essentially clone the device, and restore this back to the rest.

Categories

Resources