Modifying OEM ROM - 8125, K-JAM, P4300, MDA Vario General

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.

Related

Custom Setup After Hard Reset

Guys, Have been searching the site for a couple of weeks now and cant find a solution to my problem.
I work for a company that deals with alot of XDA2 units, so far I have managed to develop a custom extended rom that works fine, but have not been able to find a way to remove links from the start menu and the program menu. seen several threat on the site but no solution. The links have to be removed if a hard reset occurs. At present It has to be done by cloning an image onto the unit (1600 in total)
Any help would be appreciated.
popeye
I would love a program which based on a txt file would "delete","rename"... files and/or registry.
Something that could be executed from config.txt
there was a thread about a .bat interpreter but i don't think they got it working.
M4io said:
I would love a program which based on a txt file would "delete","rename"... files and/or registry.
Something that could be executed from config.txt
there was a thread about a .bat interpreter but i don't think they got it working.
Click to expand...
Click to collapse
I'm using Restorator utility (search through the forum) to do the aforementioned things and much more. Works flawlessly with new Second Edition rom
thx, I completely forgot about that utility. I will defenitely give it a try
http://forum.xda-developers.com/viewtopic.php?t=9333&highlight=restorator

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 upgrade - how to create your own rom-questions ???

hi i have been looking through this formu but cannot really find what i am after. sorry in advance but if it was covered in other threads please give links.
i would like to upgrade my rom (current i am using pre-installed tmobile mda pro rom) to something batter. the problem is there is so many things in this forum that makes me conufused.
Is it possible (probably it is- but how) to upgrade my ROM by creating my own ROM eg take the best radio rom and extended rom with the stuff i want eg some application i am using right now - instead of normal keyboard get resco keyboard and instead of file explorer get resco explorer and so on and on and put them to the extended rom .
is there any soft to do it ? can someone provide me with links where i can find out something more about ROM cos wiki isnt really helpful and seems to be out of date.
any help wanted !
cheers, cudo
ps. or put tomtom to the extRom...rom that would feauture all the good stuff.
what a pity nobady is willing to help me..maybe u vac just point me to some accurate threads within this forum, if ther are some.
cheers, cudo
To put another Radio ROM in is trivial.
Take out the other two (ExtROM and OS) ROM images and just flash in the Radio file. I did this and didn't even need a hard reset.
To put TomTom into your ExtROM is easy too.
Once you have done your hard reset with your new ROM images and the ExtROM has loaded, you have 10MB of space that you can reclaim. There are instructions at the top of this forum for unlocking the ExtROM and making it appear as another memory area.
Please use backup software regularly so that you don't have to reflash the unit until the next OS upgrade.
Creating a ROM image is more hard work, and I don't know for sure that all the information is accurate. This is only my understanding of the process.
Install the programs that you want in your ROM to your PDA and make a note of the locations of all files and registry entries that are installed.
Take a recent ROM image and unpack it to your desktop.
Delete the programs that you don't want to install, and then search through the hives for the entries that relate to those programs. Delete those too.
Put the files and registry entries of the programs you are putting into your ROM into their post-installed locations.
Rebuild the ROM image.
Flash it in.
Hopefully this won't break your PDA if you get it wrong, I'm guessing that this is very much a trial and error process.
I haven't tried this.
Use this information at your own risk, it could break your PDA.
how do i separate the rom images from each other..i mean radio, os and extended roms ? when i unzip the UNI_TMUK_130114_130232_11003_WWE_BL101_Ship i am getting loads of files but cannot see the right ones.
cheers, cudo

[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

Hello Wm61 question

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 :]

Categories

Resources