ItsUtils license ? - Windows Mobile Development and Hacking General

I would like to reuse some parts of itsutils.dll
to extend the haret functionality, otherwise
it will be necessary to rewrite them.
Is the first option possible, or should i use
the second one ?

Related

Check IMEI before CAB installation (Is it possible?)

Hi,
We have a provisioning website where a user logs in, enters the device IMEI #, phone # and submits. Now, this site will generate a unique CAB file on the fly for this individual and push it to his/her device. This CAB will will have a _setup.xml file which modifies a registry entry on the device. However, this will be unique to this device only, and hence should run only if the IMEI # matches.
Question 1 - Is it possible for a CAB file to check phone's IMEI # before installing the CAB (Windows mobile 6)?
Answer: Looks like it is using SETUP.DLL file link
Question 2 - How can I pass the IMEI # this individual submitted in the form as a parameter to SETUP.DLL so that SETUP.DLL can read the device IMEI and compare it to this one? Is it possible to add it to _setup.xml?
Answer: ??
The goal is to create a CAB file that can be installed on one device only (I believe IMEI will be the best thing to restrict it to one device)
Thanks in advanced..
you know the code right? use a script or something (i'm not a winmo coder kinda guy or even a coder, but i'll try my best)
if IMEI=XXXXXXXXXXXXXXX
then run XXXXX.cab
else exit
thats how good i am at code (not good)
I need to house everything inside one CAB on the fly. Also, I have modified my op.. so please check it. I found the answer to the first question - SETUP.DLL can make the check and run _setup.xml only if it meets the criteria.
Now, I don't know how to pass the IMEI # the user put in the webform as a parameter to this SETUP.DLL when I creating this custom CAB on the fly.
is it absolutely 100% necessary to have a cab file as the end user solution? An executable could run the code and the run a cab file that is inside the executable. I'm pretty sure this is possible
Unfortunately, it has to be a CAB file since it is seamless. The user get's a SMS with a link to his/her unique CAB on the device.. clicks on it.. and installs it.
Easy workaround for "end user": extract the CAB on the PC...
Rather the main app EXE should check its validity, not the CAB file.
do not use cab, use application (executable) you can easy use this logic
if IMEI#=XXXXXXXXXXXXX (the IMEI that should be)
then modify registry this way (and add the needed changes)
if IMEI# not equal
bring error message
you can not make the cab to perform tasks before running it
or maybe there is something you can do in setup.dll
so the prosedure will be
run cab instalation setup.dll checks if imei = _setup.xml given imei then proceed with instalation if it is not equal then fail instalation
i am not programmer too but it seems that these are the 2 variants, sorry i can not give you any technical tips about this (like sample code)

[DEV] ROM Tools

Hi,
I'm currently working on a few tools, and want to know what features would be liked by cooks/users or anyone really.
The first tool is an exe generator for hot fixes. Simply put, you plug some files into it, and it generates an exe that can be run on the target device which will do all the hot fixes.
The advantages it gives:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Since it's written in native C++, it should run without a hitch on WM5+ devices, whether or not they have .Net whatever...
The second tool is an AutoRun/UC/whatever like system that simply searches through a folder, finds all cabs/xmls/provxmls and then installs them. This means there's no reliance on autorun for parsing config files, or any other requirements. Again, it's written in native C++ so is better
Any suggestions/ideas would be welcome!
Oh, and once I've got slightly further, both these will be released as open source. Probably.
l3v5y said:
Hi,
I'm currently working on a few tools, and want to know what features would be liked by cooks/users or anyone really.
The first tool is an exe generator for hot fixes. Simply put, you plug some files into it, and it generates an exe that can be run on the target device which will do all the hot fixes.
The advantages it gives:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Since it's written in native C++, it should run without a hitch on WM5+ devices, whether or not they have .Net whatever...
The second tool is an AutoRun/UC/whatever like system that simply searches through a folder, finds all cabs/xmls/provxmls and then installs them. This means there's no reliance on autorun for parsing config files, or any other requirements. Again, it's written in native C++ so is better
Any suggestions/ideas would be welcome!
Oh, and once I've got slightly further, both these will be released as open source. Probably.
Click to expand...
Click to collapse
Wow, this sounds very very promising. Can't wait!
dwizzy130
yeah some user friendly and easy to understand specialy editing the rom or making add/remove programs EASILY is the best specialy to noobs like me when cooking ROMS all in one tool with advance AI for error checking
Sounds very attractive. go on my friend.....
Sounds good mate
I'm looking for a tool to easily make a setup.dll. Like setup.dll maker/generator/wizard.
Seems the only tools I can ever found is from e-pocketsetup, but that company was sold to another company and the product was never available since then.
I know cooks hate a cabs with a setup.dll. But seems without setup.dll a cab installer can not execute some little complicated actions. And it is impossible to make a setup.dll without grasp a computer language like c++.
Edit: Found another one: setupdllcreator , but it's not strong enough and not freeware.
Edit: If these can be realized, a setup.dll maker is much less needed:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Click to expand...
Click to collapse
But we need above mentioned fubctionalities to be DYNAMIC, like:
Can detect availability of certain reg entries or installed apps, base on the result to decide which variants of install files to be installed, or whether some supporting apps like netcf or mortscript to be installed. Or can detect device id, resolutions, drivers to decide what to do.
Otherwise it still can not completely replace setup.dll.
But if dynamic actions can be executed, wow that's a dream of developers & hackers and even common users can benefit from that, a real revolution !
woww can wait for realese
l3v5y said:
Any suggestions/ideas would be welcome!
Click to expand...
Click to collapse
So I'm posting my requests again, the idea is this: It will be much helpful if I can know what is happening/changed in the registry after I did anything to my WM devices. So maybe you can develop a tool to monitor & log the real-time changes of registry. Or at least we can have a registry-comparision tool on ppc.
Another thing is it seems we don't have a file structure viewer on ppc, not the stuff like total commander etc., want to export the file structure to a file like .txt or .jpg.
Update: Now my idea is clearer for this, what I suggest would be a System Snopshot program to realize this:
Can make a system snapshot to record the registry content, file structure, ram usage etc.
The snapshot can be initialized in the similiar way of CapSure screen capture program, i.e., a hardwre button, a fixed time, a screen tap, a program launch, etc., defined by user.
Can choose a full system snapshot or only on selected part of registr, file system etc.
Can generate a file containing the recorded system condition.
Can compare any two system snapshot result and generate a comparision chart/change log.
So I've posted my requests as per your request, whether or not you'll do it is not my business lol.
Update: Found SK Tracker, cost EUR9.95, so forget this one. Why I did not know it in the past?!

Proposal - Automated But Configurable User Configuration (ABC-UC)

Hello all,
I am planning to start a new project on Automated But Configurable User Configuration (ABC-UC), if I get good feedback from the community. The goal is to provide a simple user configuration interface for the end user. Complexity of Chef’s job will remain the same. A small binary will be required to be cooked in ROM and the rest will be on SD card.
Motivation for yet another UC:
1. Automated execution - If you are a dummy user like me, you for sure do not like the itsy-bitsy of UC – SDConfig.txt, making sure the paths are OK etc. We have XDA_UC that does everything automatically. My tool will include (possibly almost) every feature of XDA_UC.
2. More configurability – sometimes I find SDConfig.txt to be too restrictive. To get a way around I write an (ad hoc) Mortscript file. At different point in the SDConfig.txt I execute the script file. Based on the place from where the script is executed, it does different tasks. I never found this ad hoc solution interesting. For advance users, ABC-UC will be configurable. An advance user may control the order of actions from ABC-UC – like the order of different directory managed by ABC-UC, install registry or cab first, confirm each action or not, etc.
3. Extended command support – besides command for installing cab, copy single file, provisioning, ABC-UC will provide extended file management command support. At this point most of the users use a combination of XML and Mortscript to do this job. However, not everyone can write those scripts and writing an error free XML is not always easy. At this point I am planning to include following commands copy (single or multiple files with wild card or an entire directory), move (single or multiple files with wild card or an entire directory), delete (single or multiple files with wild card or an entire directory), makedir (make all the directories in a given path), exec (without the space constraints), attrib (change attribute of a single or multiple files with wild card or an entire directory).
Do you think the effort will be worthy?
If you think the effort is worthy, then what other features do you want to see here?
Thanks for your input,
mma123
Whilst i think the goals of your project are great, i honestly dont see a need for it.
A tool which would allow new users to quickly generate the correct XML code could be a good idea, but the complexity of the requirements is likely to very quickly make the tool outdated & incorrect, or not complete enough for advanced users.
I keep thinking that i might start to reduce the UC thread into a more user friendly guide or even a wiki based guide (so that it can be updated easily as required), but then never quite get round to it!
I honestly believe the information within the UC thread is sufficient for even new - non tech users to build an automated setup as long as they are prepared to spend a little time to read & try. The big problem is that its currently spread out over 138 pages!
That aside - if you want to make a new tool - good luck, and i'll happily try it as you develope it & give feedback if required.
Edit:
Hmm, my comments were made regarding the original UC thread, i havent used XDA_UC (yet!)

HELP: How to hack a executable file

hi buddies, does anyone one know how to hack an app? for example, change a predefined (hard coded) path like "\storage card" to any other locations. I tried to use hex editor but couldn't find any paths hard coded. I know there's a program called "Olly Debugger" for Win32 which can change binary code to machine code. However it doesn't support PPC applications. Can anyone help?
Many thanks!!
If the path does not appear in the executable then it is not hard coded in the program.
Hard coded strings, string tables, static data and the like, get bundled together by the linker into a separate data segment. They would all appear in the same area within the exe.
The program is probably using FindFirstFlashCard() and FindNextFlashCard() functions to emumerate storage devices. "Storage Card" would be returned by this/these function(s) at run time.
Another reason may be that the executable has been 'signed'. In this case the code is encrypted with the certificate so the hard coded stuff cannot be seen. Altering the code here will invalidate the checksum and the operating system will refuse to run it.
hi stephj, thanks for your info! finally i can figure out the location is hard coded in a dll file instead.
btw do you know how to convert a module (in the form of folders) into a binary dll?
thanks!!
Not quite certain what you mean. A DLL file is the same structure as a .EXE except that it does not have a WinMain() function that a .EXE file has that the loader calls once it is loaded.
Once a DLL is loaded the loader can resolve the real address(es) of its exported function(s).
sorry, i was talking about the modules in rom cooking. after dumping the rom, some DLLs appear in the form of modules (which are folders). what I want to know is the ways to convert these folders into binary files.
In that case it's over to the chefs. My expertise is in the area of application development.
Thanks stephj!!
To convert module to file, look for recmod
It will give you a plain .exe/.dll you want to modify.
After you do it, restore it using reversmod

[Q] Are modules not required cert but files required?

I try to cook a ROM for my Acer neoTouch S200(F1), I could finish it for me, thanks hdubli, DimICE and rafyvitto
I just use a few tools but not GUI kitchen so that I could learn more about making ROMs:
xidump.exe for dumping
osnbtool.exe for dumping and rebuild the ROM
RecMod.exe
ImgfsFromDump.exe, BuildOS.exe, EXTReloc.exe
XIPPort.exe
f1extromtool.exe for ExtROM
At the same time, I'm porting EZInput CHT form HD2 Leo...
Of cause, I want to porting EZinput CHT in cab from, for anyone who don't use custom ROM besides HTC.
Questions:
1. I'm not sure that was RecMod disadvantage or bugs, it seems that the files after RecMod would lost the cert... (#2)
2. Then it could cause a ton of problems, such as how can I indicate files needed to re-sign? Any tools could port a cert to another file?
Or have to patch a ton of files even a whole OEM packages?
3. Would the modules at Slot 61 could reduces the actual free RAM of process (shown in the memory page), even the process not using these modules? Then, how to estimate the minimum RAM used?
You can't sign the modules - only the files.
utak3r said:
You can't sign the modules - only the files.
Click to expand...
Click to collapse
Then, could the SDKcert could be hacked for changing name of signer?
or how to make the cert for it?
Moreover, the difficult problems is that how to sign all the unsign dll and exe with SDKcert easier?
You can just cert patch the nk.exe and not have to worry about the problem (with EVK, just check a box). More to the point, what errors are you getting, and are you sure it's actually a certificate error and not a 'missing component' error?
Farmer Ted said:
You can just cert patch the nk.exe and not have to worry about the problem (with EVK, just check a box). More to the point, what errors are you getting, and are you sure it's actually a certificate error and not a 'missing component' error?
Click to expand...
Click to collapse
I'm not using EVK, because I'm cooking for Acer S200, then I just use a few tools...
Emmm, no any certificate error or 'missing component' error, just the services or programs could not be able to auto start.
Patch nk.exe could be a good choice for cook, but not the best for the user, I think.
However, for patch nk.exe, it still followes this thread?
http://forum.xda-developers.com/showthread.php?t=384137
Nagato Yuki said:
I'm not using EVK, because I'm cooking for Acer S200, then I just use a few tools...
Emmm, no any certificate error or 'missing component' error, just the services or programs could not be able to auto start.
Patch nk.exe could be a good choice for cook, but not the best for the user, I think.
However, for patch nk.exe, it still followes this thread?
http://forum.xda-developers.com/showthread.php?t=384137
Click to expand...
Click to collapse
so please tell us what is exactly your trouble... cause:
1.- cert patches are now a unusual issue cause the kitchens already has certs pkg included to void this things.
2.- use the xipporterexe in EVK to patch your nk.exe thats all then readd your nk to your kitchen.
3.- certs issues are
a) when you tap... it shows a dialog saying is not trusted signed or has missing compoenents...
a1.- this means (obviously after you add the certs pkg or enable the kit5chen option or whatever to fix it) that the lnk is pointed to a non complete PKG it has missed some files, due to "maybe" it needs the app files in program files or a bad pkg creation (app.reg or app.dat) (or initflash oem pkgs)
4.- why patch nk.exe is not the best option to users??? i guess is the best cause if they use a devs app it will works with a cert patched nk
5.- the service or apps wont auto launch.... mmmm you must to xplain better cause it seems not related to certs matbe autoshortcut.. initflashfiles or app.dat troubles or corrupted PKGS.
Advice: please please... post your device model, kitchen name and version, and sys oem version if posible
once you redesign your question i will change if you wish the name of the thread just have more help
keep it up
Much BIG THANKS for your reply
Because I am not use any GUI kitchens, at this time, it seems that no GUI kitchens for Acer S200, then I don't try EVR before.
(BTW, it seems that we lack of Universal GUI kitchens for any device? Because the process to make ROM could be much similar, except decompose and assemble back the ROM files. I'm trying to use osKichens... )
In my case, there no any dialog saying not trusted signed or has missing compoenents... It just doesn't run for apps.
For services, they could not be able to start automatically, but I could start them manually though Dotfred's TaskMgr, no any dialog happen also, but they could run correct functionally !
Then I sign with SDKcert, they work normally.
For patching nk.exe, it could be very difficult for users who just want to use official ROM, but want to use apps form dev. But sign the cert and import the sign could be much easier...
Then it leads the second question. I'm seeking any effect ways to Recmod and sign them with sdkcert ...
Of cause, I want sign them much look like OEM ones (subject's and issuer's names), but just using SDKcert only for running.
Moreover, XipporterEx for patching nk.exe, it seems that there is no standalone one for porting WM 6.5.x one. And also I'm not sure that besides EXTReloc, Is there any Reloc programs compatible for Acer S200/WM6.5?
p.s. I could try to modify my questions later, but if someone help could be much nicer. So, +Que, please feel free to change my topic for better one

Categories

Resources