Provisioning with XML questions - Windows Mobile Development and Hacking General

Hi,
I am using XML to provision and configure my PDA with settings and I have a couple of questions for anyone who has done this before. I have some settings working so I got cocky and thought I could do some more but I now need a little help with this...
Needless to say I am very grateful for any help/advice I can get on these...
1. Using XML I want to be able to delete unhelpful registry entries such as today items
2. I would also like to be able to set the following values in seconds:
BattSuspendTimeout
ACSuspendTimeout
3. I would like to be able to increase my Screen\Text Size up one level from the default
4. I would like to be able to creat shortcuts in the program menu for Office via the XML/CPF route but do not know the correct syntax
Is there a good resource for making these changes? I have serahced Google and come across various MS Visual Studio elements but not much for the XML, MakeCab, CPF route.
All the best, and thank you for anyone who can help me,
Sam.

PianoSam said:
Hi,
I am using XML to provision and configure my PDA with settings and I have a couple of questions for anyone who has done this before. I have some settings working so I got cocky and thought I could do some more but I now need a little help with this...
Needless to say I am very grateful for any help/advice I can get on these...
1. Using XML I want to be able to delete unhelpful registry entries such as today items
2. I would also like to be able to set the following values in seconds:
BattSuspendTimeout
ACSuspendTimeout
3. I would like to be able to increase my Screen\Text Size up one level from the default
4. I would like to be able to creat shortcuts in the program menu for Office via the XML/CPF route but do not know the correct syntax
Is there a good resource for making these changes? I have serahced Google and come across various MS Visual Studio elements but not much for the XML, MakeCab, CPF route.
All the best, and thank you for anyone who can help me,
Sam.
Click to expand...
Click to collapse
The best place to look is the MSDN books.
If you do a search of XML syntax it has all the options.

Related

Setup.dll editing what it does on install...

Ok so I have been missing around with an app. and found out that its setup.dll on install adds a shortcut in the programs menu and messes with the default today items settings. I have used ResHacker to look @ it but it doesnt seem to show the shortcut or anything else, it simply has the EULA accept info as far as I see with ResHacker. So my question is, is there a way to stop it from doing so? Would I need to just try and create my own Setup.dll for it? Or is there a better dll editor?
Thanks for any help,
Mike
No such thing as "DLL editor". Resource hacker only shoes resources, that is dialogs bitmaps icons and any text the writer chose to put in a string table so it would be easily changed. I guess the shortcut is hard-coded.
Now I am not sure what your background in programing is, so don't be offended if this explanation is too basic.
DLL is basically a program, only it isn't started by itself but called by another program.
You could try removing it from the CAB all together, but it could be performing other functions critical to program installation. You would need to know about them and be able to code in c / c++ to write a replacement.
There is a powerful disassembler called IDA for ARM code but you need to know assembler on a good level to do anything with it.
Thanks so much for the reply. Well im not that new to .cabs, roms, and what not but c+ or c# im a complete n00b. Didnt know there wasnt a dll editor, my mistake. You learn something new everyday. That being said...I removed it before posting and should have said that. This setup.dll is needed and wont work without it. But I figured what you said a new one would probably be the only way. But you mention disassembler....so since im new which would u suggest would be easier? I do have the tools to write one....but i dont have anything for the disassembler method.
Thanks,
Mike
Writing an app is much easier than disassembling one, since reading assembler is no joy (at leas for normal and semi normal people, some consider it their second / first language).
But like I wrote before you face one basic problem: What is it that this DLL does that the program won't run without?
If you know that, writing a new one will not be a problem. People on the forum could help you with the C++ code if you have basic knowledge of the language. C# won't work for this.
be aware that the dll that dose the installation is normally stored in the windows directory for performing the uninstallation at a later time. Modifying it could prevent propper removal of the program.
If the shortcut is hard coded into the dll it is probably visible as readable text in the dll (as long as the author did not try to obfuscate it). If so you may be able to just replace the string. I gave it a try on a similar dll but just editing the text screws up the dll. Someone else may be able to tell how to do it properly (please).
I think I figured out what the issue was and why it wouldnt work without the setup.dll. Its just a reg edit that the setup.dll does and thats what was missing when its removed. When I added it to the .cab everything worked smoothly! Thanks for the replys guys and I appreciate the help! BTW thanks for being so nice about it levenum. I would have responded sooner just been busy.
~Mike

Cab creating

OK - having become a bit of a serial flasher, I am now trying to reduce my reinstall times by using various cabs to set up my M3100.
I have searched and by cribbing various cabs etc am making some progress. But, I have hit a few problems I cannot find solutions to currently.
I do have occassional access to both CabManager and Visual Studio 2005, but don't really know much so would need step by step help especially with the latter.
Particular questions:
Owner Name - I have cribbed a cab to install this in the registry, but all it seems to do is clear the entry, not put in the name. I have combined this with the rabdo cab i use for network set up.
I understand from other posts that I cannot embed the serial numbers in the cabs for my applications, and so will have to live with that.
SPB Weather - I use the BBC template and two specific city codes for work and Home. Whilst I have got the template to copy onto the device with SPB Weather, I cannot work out how to embed the two city options and also install the template as a weather source as part of the install.
O2plus. I only use the shortcuts menu, battery meter and running programs options on this. I want to remove the rest which I should be able to manage on my own. What I would like to do is set up the tabs and list of programmes etc as part of the install? Again, any suggestions would be greatly appreciated.
I would also like to set up a cab to install my exchange certificate and then my exchange setup details as well - If anyone could give me some pointers re the setup then I can go away and try and work it out after that.
I have tried to search for answers/examples and apologise for stupid questions, but a few pointers would really help to kickstart me again.
Cheers
C.

advice on creating cabs

hi all
I would like to email a friend with some registry changes (to sort out the joint stereo problem).
what is the best way to do this?
i assume that it is less straight forward than doing the same in xp given the lack of an inbuilt reg editor..
he has no idea of how to use a reg editor.
do i need to create a cab and if so could you point me in the write direction. Or is there an easier method?
thanks
daryl

How to forbid *.exe & *.cab installing in WM6

Hello All,
I want to make some application for PPC's under WM6 that restrict users from installation any software on PPC.
Does somebody faced with this?
I was looking for some tweakers or smth, to look how it gonna be, but nothing found for WM6.
I was looking for some registry hacks, but no luck.
Any ideas are welcome.
Cheers.
what a thread, so this could help:
1. dont give it to your brother,
2. ask your daddy to buy him his own ppc
3. make a backup
4. give the mio to your mom and go back to kindergarden
5.and just open a thread on a developers side if you have something usefull.
hope i could help you
Well I can see this being as the device used for demonstration purpose and OP wants to forbid people from messing it up.
One thing I can think of is to make the windows folder and registry files "read-only" so no other things can be added or used on the phone, after configure the phone the way you wanted.
I'm sure its possible, as a Exchange Activesync security policy.
Surur
vanuska said:
Hello All,
I want to make some application for PPC's under WM6 that restrict users from installation any software on PPC.
Does somebody faced with this?
I was looking for some tweakers or smth, to look how it gonna be, but nothing found for WM6.
I was looking for some registry hacks, but no luck.
Any ideas are welcome.
Cheers.
Click to expand...
Click to collapse
Forbidding an EXE from installing would also prevent EXE's from running. Thus rendering everything on the device inopperable.
Preventing CAB files from running though, should just be a matter of altering the registry and what the associated actions for CAB files are.
look in \HKEY_CLASSES_ROOT\cabfile\Shell\Open\Command\
The default string value is wceload.exe "%1" /XXXXXX (XXXXX can be a value of either /delete or /nodelete)
Anyway breaking this string will prevent cab's from installing.
The only other method of doing something like you want, that I can come up with at the moment, would be to create an app that either runs at startup or as a service. It's function would be as suggested above would be to restrict new files from being created in specified storage/registry locations.
I say NEW files as you would not want to restrict modification of existing files in those locations otherwise you risk breaking functionality of pre installed apps.

Is There Any Registry Editor for Samsung Galaxy S2 Android

hi sry for this dumb question but Is There Any Registry Editor for Samsung Galaxy S2 Android thanks
Only Windows has a registry. What are you wanting to do?
pjfriend said:
Only Windows has a registry. What are you wanting to do?
Click to expand...
Click to collapse
same things i used to do on my old HTC HD2 tweeking wifi and make it little more faster
You might be able to achieve what you want if you have a specific question...
SII has 'N' class radio anyway so it should be a great deal quicker than your HD2.
Ahh , you mean editing the build.prop which resides in system. Must be rooted(stand to be corrected?) and opened through root explorer/ astro/estrongs file explorer
Sent from my GT-P1000 using XDA Premium App
I saw this thread and thought 'Thats the first question I asked when I moved from wm6.5 to android!'. Welcome to Android mate
No, is basically the answer
thanks pjfriend
turborider said:
is that so hard for u to understand what Registry Editor mean? lol
Click to expand...
Click to collapse
Is it so hard for you to understand that system register is Windows-specific? There is no such thing on a Linux, MacOS X, DOS, BSD, Android, iOS, Bada OS, Symbian and so on.
Cheers Brut.all
turborider said:
wow i never thought polish plp have mobile phones in there,dont be smart azz on me dude,i never used android before,bloody hell i wish plp be more helpful than answering crap,i just wanted to know if Yes or No on Registry Editor
Click to expand...
Click to collapse
What's wrong with you? There were like 4 people who told you that there just isn't a registry editor for Android because Android does not have a registry! And you just seem to ignore those people, and insulte Brut.all because of his origin. We don't need people like you in our Android community.
This is getting to be like a monty python comedy sketch LISTEN turborider, there is NO registry, there is NO registry like service or system on android. You can make some modifications using a text editor to build.prop to change some system behaviour.
ice_coffee said:
This is getting to be like a monty python comedy sketch LISTEN turborider, there is NO registry, there is NO registry like service or system on android. You can make some modifications using a text editor to build.prop to change some system behaviour.
Click to expand...
Click to collapse
tyvm matey for your help
Instead of insulting people who try to help, maybe rather actually read the replies properly
Sent from my GT-P1000 using XDA Premium App
please Moderators close this thread sry for my post and ty again ice_coffee
@turborider
Ok, I think I'll explain this further to you.
Windows stores much of its configuration in a system register. Most of other systems, including Android, store config in many configuration files. They're usually textual and human readable, so you could open and edit them using any text editor, even notepad. Usually every installed service/daemon has its own configuration file(s).
This approach has pros and cons over system register. Config files are less standardized: some of them are xml files, others are ini-like or even custom format. So it's quite messy comparing to system register. On the other hand developer could choose format which is most suitable for his needs and you don't need any special software to edit system configuration. Config files are also very simple from technical point of view and this is good.
Unix systems usually store their config files in /etc/ directory. On Android it's /system/etc/ - there you will find a lot of files and you could open any of them, look into, edit, etc. Of course it's not a good idea to do some random changes I don't think you'll find complete guide to Android config files, because every device/ROM is different. Fortunately most of these files aren't specific to Android, but Linux/Unix or some service, so you should be able to find some help in Google.
Happy hacking
P.S.
Yes, we have mobile phones in Poland ;-)
EDIT:
Advanced options for wifi are in /system/etc/wifi/tiwlan.ini, but I'm not sure whether every device uses tiwlan driver. Of course these options aren't the same as in Windows configuration.
Brut.all said:
@turborider
Ok, I think I'll explain this further to you.
Windows stores much of its configuration in a system register. Most of other systems, including Android, store config in many configuration files. They're usually textual and human readable, so you could open and edit them using any text editor, even notepad. Usually every installed service/daemon has its own configuration file(s).
This approach has pros and cons over system register. Config files are less standardized: some of them are xml files, others are ini-like or even custom format. So it's quite messy comparing to system register. On the other hand developer could choose format which is most suitable for his needs and you don't need any special software to edit system configuration. Config files are also very simple from technical point of view and this is good.
Unix systems usually store their config files in /etc/ directory. On Android it's /system/etc/ - there you will find a lot of files and you could open any of them, look into, edit, etc. Of course it's not a good idea to do some random changes I don't think you'll find complete guide to Android config files, because every device/ROM is different. Fortunately most of these files aren't specific to Android, but Linux/Unix or some service, so you should be able to find some help in Google.
Happy hacking
P.S.
Yes, we have mobile phones in Poland ;-)
EDIT:
Advanced options for wifi are in /system/etc/wifi/tiwlan.ini, but I'm not sure whether every device uses tiwlan driver. Of course these options aren't the same as in Windows configuration.
Click to expand...
Click to collapse
ty mate sry for the last post
android options are stored usually (and always for the system's settings) in sqlite3 format and the dbs are around in /data (look for settings.db)
you can edit them on the device via adb shell and sqlite commands, but i suppose there might be some gui for it as well
this is akin to registry on windows, just op just doesn't know the technical differences. no need to be aggressive pricks about it -
Only Windows Operating System has registries. Unix-based one's store configuration files in /etc directory, eliminating the need for a registry.
bilboa1 said:
...this is akin to registry on windows, just op just doesn't know the technical differences. no need to be aggressive ****** about it -
Click to expand...
Click to collapse
+1 to that. A clearly teachable moment wasted by some nasty responses.
@turborider, as already mentioned, the build.prop file can be modified to make some tweaks (and some Android systems might also let you create a file called local.prop that can do some of the same things) but these are not nearly as far ranging as the windows registry. There are many forums and threads which describe the various tweaks and which can be found by searching for ["build.prop" tweaks]. Speaking of searching, for questions like this it is usually more productive to find existing threads covering the topic because such tutorials are likley to have higher traffic than a thread that asks a single question. One simple example of a build.prop tweak that I recently used was to change a value (switching between 1 and 0) which enabled/disabled a particular audio feature (audio offloading, to be precise) while testing a bug in Lineage OS, but there are more significant things that can be done by tweaking the build.prop. There are also other ways to tweak Android OS as suggested by @bilboa1. Search, and you'll find that stuff.

Categories

Resources