New tool : DSMBuilder - Windows Mobile Software Development

Hi,
I'm developed a tool named DSMBuilder.
It's a GUI tool for make dsm files.
Package = DSM File
You can :
- Create a new package (DSM file),
- Load a existing package and modify it,
- Load new certificate for package,
- Save the certifcate of package for use in another package,
- Load new dependency packages
- Remove certificate
- Rebuild the file and module list,
- Change the friendly name of package and other attributes.
- View list of Dependency packages and Shadow GUI List
- DSM Information updated with new structure.
- Remove one dependency package
- Clear list of dependencys package and shadow GUI list
- Beta version. Tested and generate a valid DSM file with all parts.
Changelog:
2008-08-08 :
- bug fix. DSM file not saved where attributes Hidden, System or ReadOnly is setting in file.
2008-07-28:
- Initial release.
Excuse me for my bad english.

what is the difference between this and the one in BuildOS

ather90 said:
what is the difference between this and the one in BuildOS
Click to expand...
Click to collapse
With this tool, is possible load/save certificates and change friendly name of dsm files, buildOS generate a basic dsm file missing certificate.

Thanks anmendes !

Updated DSMBuilder
Updated version, see post#1 for details

anmendes said:
Updated version, see post#1 for details
Click to expand...
Click to collapse
looks like a good tool. will test it out mate
thanks.

anmendes said:
Updated version, see post#1 for details
Click to expand...
Click to collapse
great tool bro
my observations/suggestions:
1. tool doesn't work on hidden files.
2. some menu's are not in english.
3. may be u can add an option to delete the certificate from dsm
4. is it possible to edit the dependent packages list?

htctouchp said:
great tool bro
my observations/suggestions:
1. tool doesn't work on hidden files.
2. some menu's are not in english.
3. may be u can add an option to delete the certificate from dsm
4. is it possible to edit the dependent packages list?
Click to expand...
Click to collapse
-----------------------
1 - I will correct this bug.
2 - Me say what are the options that are not in English? (So I can fix them)
3 - I will add this option
4 - I'm planning functions for add and delete dependent packages list and shadown GUI list
I'm too plannig another tool based in this (mixed of pkgtool and BuildOS)
and DSM files will be saves in a xml file (also as xxxxx.dsm.xml, incorporate the actual option.xml) for future edit and manipulations.
What do you think about this?

anmendes said:
I'm too plannig another tool based in this (mixed of pkgtool and BuildOS)
and DSM files will be saves in a xml file (also as xxxxx.dsm.xml, incorporate the actual option.xml) for future edit and manipulations.
Click to expand...
Click to collapse
good idea
anmendes said:
2 - Me say what are the options that are not in English? (So I can fix them)
Click to expand...
Click to collapse
check the screenshot for my observtion.

htctouchp said:
good idea
check the screenshot for my observtion.
Click to expand...
Click to collapse
A non english text is generate for my compiler with lib in portuguese language. I fix this

Updated version. See post #1 for details

anmendes said:
Updated version. See post #1 for details
Click to expand...
Click to collapse
Hey anmendes, a changelog would be helpful

anmendes said:
Updated version. See post #1 for details
Click to expand...
Click to collapse
many improvements mate . but i still have some observations:
1. tool doesn't modify the DSM if it is having 'read only', 'system' & 'hidden' attributes. i've to remove those attributes first if i want to modify a dsm. it would be better if the tool can modify the dsm without having to remove these attributes (at least we shouldn't need to remove 'system' and 'hidden' atrributes).
2. pls add the option to minimize the tool
and i've a question, what's the use of 'dependency package list' and 'shadow gui list'? what will happen if i remove all of these dependencies from a dsm like the dsm in Shell?

htctouchp said:
many improvements mate . but i still have some observations:
1. tool doesn't modify the DSM if it is having 'system' & 'hidden' attributes. i've to remove those attributes first if i want to modify a dsm. it would be better if the tool can modify them without having to remove these attributes
Click to expand...
Click to collapse
I tried to use this new build. I dont face this problem I can see all the files (hidden & system) when I refresh the file listing

ababrekar said:
I tried to use this new build. I dont face this problem I can see all the files (hidden & system) when I refresh the file listing
Click to expand...
Click to collapse
u didnt get my point
refresh the list, make some changes and try to save that DSM which is 'hidden' and 'system'.

Great tool, works like a charm,thanks a lot bro

htctouchp said:
u didnt get my point
refresh the list, make some changes and try to save that DSM which is 'hidden' and 'system'.
Click to expand...
Click to collapse
Well, actually I removed a few modules from the folders and opened the dsm in this proggy. Refreshed the list, it still shows me all the files

ababrekar said:
Hey anmendes, a changelog would be helpful
Click to expand...
Click to collapse
I am a novice in this matter, a changelog would be something like me post a new version, increasing their number and say what was modified? Because I'm already doing something like this, but without specifying the version number.

htctouchp said:
many improvements mate . but i still have some observations:
1. tool doesn't modify the DSM if it is having 'read only', 'system' & 'hidden' attributes. i've to remove those attributes first if i want to modify a dsm. it would be better if the tool can modify the dsm without having to remove these attributes (at least we shouldn't need to remove 'system' and 'hidden' atrributes).
2. pls add the option to minimize the tool
and i've a question, what's the use of 'dependency package list' and 'shadow gui list'? what will happen if i remove all of these dependencies from a dsm like the dsm in Shell?
Click to expand...
Click to collapse
1- 2 : I will check this and put a fix. Thank you!
Good question! The dependencies are used to indicate that packages must be present so that it functions properly. The "Shadow GUI List" is a mystery to be solved. The correct that we would be tools of manipulation of ROMS to examine it and say what is missing. You are in my plans to create a new tool to manipulate ROMS with these characteristics.

@anmendes, could you pls explain this:
what's the use of 'dependency package list' and 'shadow gui list'? what will happen if i remove all of these dependencies from a dsm like the dsm in Shell or any other dsm in SYS?
Click to expand...
Click to collapse

Related

[App][WM6.5] CHome Visual Editor - compatible with all kinds of CPR

[31/08/2009] New release is avaliable, you can download the new verison from: http://cve.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=32228
CHome Visual Editor is a visual CPR editor for Windows Mobile 6.5.
** You need install .net 3.5 sp1 in your computer in order to run CVE. **
With CVE, you can edit:
Titanium
LS_AlarmScene
LS_LockScene
LS_PhoneAlertScene
LS_PhoneCallScene
LS_SimplePinScene
StartMenu_GridScene
For this release, you can:
Open CPR file visually and move elements visually.
Modify all properties of the selected element by the property grid on the right side.
Change & Save (auto) the screen resolution.
Change & Save (auto) the scale rate.
Undo/Redo
Setup folder mapping between PPC and your OS.
Import registry file to load the element values (text, image source)
Save the modification.
More functions not listed.
This release only provide two language resource. The embedded language is Chinese, en-US is provided. If your OS language is not en-US, you may need to open configuration.xml and add one line to display en-US:
<language>en-us</language>
or you will get Chinese character.
wow.. looks like very good application
downloading & trying it now!!!!
Looks good indeed! Just downloaded but I can't try it now...
Got some problem here, I can't open any .cpr file to edit???
morningmoon said:
Got some problem here, I can't open any .cpr file to edit???
Click to expand...
Click to collapse
do you mean the application crash when you open *.cpr? can you upload error.log file here under CVE folder? it's all about the exceptions, none private will recorded in this file.
<?xml version="1.0"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<scale>1</scale>
<language>en-us</language>
<resolution>
<Width>240</Width>
<Height>320</Height>
</resolution>
<directory name="\Windows">
<mapping>Windows</mapping>
<mapping>E:\WindowsMobile\i780_21501_Kitchen\SYS\Lockscreen_DPI_96</mapping>
</directory>
<directory name="\Program Files">
<mapping>Program Files</mapping>
</directory>
</configuration>
Click to expand...
Click to collapse
Placed the language line in like above. But still no English.
Is there some thing we need to do more.
ebsbow said:
Placed the language line in like above. But still no English.
Is there some thing we need to do more.
Click to expand...
Click to collapse
This is strange, i copied your configuration and tested it in my comupoter, it works fine.
If you opened CVE and close it normally (the configuration will be saved again while cloing), the configuration should not not looks like your posted. the lanuguage should be the first element of configuration node. It may caused by path you placed CVE or permission issue.
JerryJiang said:
do you mean the application crash when you open *.cpr? can you upload error.log file here under CVE folder? it's all about the exceptions, none private will recorded in this file.
Click to expand...
Click to collapse
No. not crash, just can't get the Open File box to display, so I can't choose any file to open???
morningmoon said:
No. not crash, just can't get the Open File box to display, so I can't choose any file to open???
Click to expand...
Click to collapse
I never wrap the open file dialog. The open file dialog i am using is system provided, do you have any other WPF application in your computer that with a open file feature, if so, can you tested it whether it works fine?
error
Opening any CPR file the application is crashing. I am uploading the error log file. Please look and give a resolution.
Copied the "<language>en-us</language>" just below the configuration tag. But the problem is still the same.
All is in Chinees. is there anything else I need to check?
I have added the last error log.
ajeshm said:
Opening any CPR file the application is crashing. I am uploading the error log file. Please look and give a resolution.
Click to expand...
Click to collapse
The exception is caused by some color string of TextStage element in your CPR file, normally, i define the color in CPR file use the #FFxxxxxx pattern.
it seems that the color definition between WM and WPF have inconsistent rules. So can you look through the CPR file and try to find out whether there is any color definition in <TextStage/> section is not follow the rule?
I will update my code to fix the problem if you can kindlly post the inconsistant rule. Thx.
ebsbow said:
Copied the "<language>en-us</language>" just below the configuration tag. But the problem is still the same.
All is in Chinees. is there anything else I need to check?
I have added the last error log.
Click to expand...
Click to collapse
<?xml version="1.0"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<language>en-US</language>
<enable_effect>true</enable_effect>
<scale>1</scale>
<resolution>
<Width>240</Width>
<Height>320</Height>
</resolution>
<directory name="\Windows">
<mapping>Windows</mapping>
</directory>
<directory name="\Program Files">
<mapping>Program Files</mapping>
</directory>
</configuration>
karim_31 said:
<?xml version="1.0"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<language>en-US</language>
<enable_effect>true</enable_effect>
<scale>1</scale>
<resolution>
<Width>240</Width>
<Height>320</Height>
</resolution>
<directory name="\Windows">
<mapping>Windows</mapping>
</directory>
<directory name="\Program Files">
<mapping>Program Files</mapping>
</directory>
</configuration>
Click to expand...
Click to collapse
Thanks for posting your configuration. I should update my build package to include the language element instead of let the users update the xml by themselves.
ebsbow said:
Copied the "<language>en-us</language>" just below the configuration tag. But the problem is still the same.
All is in Chinees. is there anything else I need to check?
I have added the last error log.
Click to expand...
Click to collapse
Could you please try again with karim_31's configuration?
Unfortunately I don't have one. Still can't use this application
Any suggestion? What do I need to install for the open file to work?
Thanks!
JerryJiang said:
I never wrap the open file dialog. The open file dialog i am using is system provided, do you have any other WPF application in your computer that with a open file feature, if so, can you tested it whether it works fine?
Click to expand...
Click to collapse
The language works now,
Thanks, but the app seems to crash a lot when loading an cpr.
Disabling effects helps, but the apps crashes on other actions as well.
ebsbow said:
The language works now,
Thanks, but the app seems to crash a lot when loading an cpr.
Disabling effects helps, but the apps crashes on other actions as well.
Click to expand...
Click to collapse
Can you upload your error.log so that i can do some analysis to improve the quality of the application.
Sure. Here you go.
ebsbow said:
Sure. Here you go.
Click to expand...
Click to collapse
It's caused by color token:
http://forum.xda-developers.com/showpost.php?p=3952898&postcount=12
i will add more check of the token, by unless i get the inconsistant token, the color may not display correctly.
I cant even launch it
No error log... so where do i need to install all the files? it simply says that the app fails... thats all!
what im a doing wrong?
I set all in C:\ and the stwater added to windows directory

[X1/X2] Editing camera interface (v1.2, PC)

Blob Editor for PC
Version: 1.2
I've made a little tool that helps to edit camera's interface.
Supports both X1 and X2.
As you know, interface is packed into images.blob. Now you can replace any image there.
Also you can edit sounds.blob with it
Version history:
v1.2:
-fixed sounds replacing bug
v1.1:
-added command line support. Now you can assign it to *.blob files.
-F1 and F2 now replace or extract current file
-minor interface fixes
v1.0: initial release
Mini-Guide:
1) Get you images.blob or sounds.blob file from \Program Files\XperiaCamera\Resources
2) Open it in BlobEditor
3) Find any images you want to replace and press "Replace". It is better to extract all files (they will have internal hex-identifiers, not just an order)
4) Save. Move to \Program Files\XperiaCamera\Resources. Enjoy!
Screenshot:
Attachments:
BlobEdit - editing tool.
ExampleUI - little changed X1's UI. Changed arrows in options and "play" image in gallery.
images_x2 - may be someone wants to "port" X2's interface to X1? You are welcomed!
sounds_x2 - sounds from X2
Maybe write a mini-guide on how to replace the files? I thought it was a .cab app for xperia and all the work was done on the phone.. But I dont know where the .blob files are located in the phone memory in order to replace them :/ Any help appreciated ^^
Hi
If I'm not wrong, you're "ultrashot" from "mobilefree"?!
You & your friends converted my K750 to nearly a smartphone.
Glad to see you here!
@ all: ultrashot is a master in developing.
Thank you for all your works.hope to learn a lot of things from you.
I tried the editor and it works for me.
If you add "Drag & Drop" feature it's better I think.
thanks
@ chichoko:
It's a computer Program.
By default the files are here in X1:
/Program Files/XperiaCamera/Resources/
PS:
could you share X2 Camera Sounds too?!
chichoko said:
Maybe write a mini-guide on how to replace the files? I thought it was a .cab app for xperia and all the work was done on the phone.. But I dont know where the .blob files are located in the phone memory in order to replace them :/ Any help appreciated ^^
Click to expand...
Click to collapse
Ok, added to first post
SJD-Vampire said:
Hi
If I'm not wrong, you're "ultrashot" from "mobilefree"?!
Click to expand...
Click to collapse
Yes, you are right
SJD-Vampire said:
I tried the editor and it works for me.
If you add "Drag & Drop" feature it's better I think.
thanks
Click to expand...
Click to collapse
Good idea, but I decided not to do this because of some reasons. But I've added F1/F2 shortcuts.
SJD-Vampire said:
PS:
could you share X2 Camera Sounds too?!
Click to expand...
Click to collapse
Ok, shared. They seem to be the same as X1's (only one empty sound added)
Thank you very much.
I'm sure you will bring new eXPERIence to XPERIA
I hope learn many things from you.
cool..cool...hmnn..ultrashot..y is there a [OP] next to your name..what does it mean?
rotastrain said:
cool..cool...hmnn..ultrashot..y is there a [OP] next to your name..what does it mean?
Click to expand...
Click to collapse
I am also interested in that
ultrashot said:
I am also interested in that
Click to expand...
Click to collapse
i think it means "ORIGINAL POSTER"
rotastrain is right. Quoted from Wikipedia:
"OP, short for original post or original poster. Used on online message boards and forums to denote the first post (or posting) on a topic often containing the original question or topic of discussion."
Appreciated for the mini-guide! Will give it a shot later on when I get home.. Cheers!
chichoko said:
Appreciated for the mini-guide! Will give it a shot later on when I get home.. Cheers!
Click to expand...
Click to collapse
It is not harder than MS notepad. You can extract all files, redraw them as you want and then replace all needed files.
So Great
Thankx
ultrashot said:
It is not harder than MS notepad. You can extract all files, redraw them as you want and then replace all needed files.
Click to expand...
Click to collapse
Well.. how do I make an audio file a *.bin file, so that I can select it with the application? Just renaming the *.wav to *.bin does give an error..
Other than that: Great, I've always wanted to get rid of some the camera sounds..
dsip, thanks, fixed. Check first post.
Oh, it wasn't actually me. Thanks for fixing it, works perfectly now.
I might very well imagine it, but using your sound.blob with the extra "slot" for Sound "D" felt like it made the menu of the camera somwhat slower. I haven't tested it or anything, and I just replaced the sounds in the old sounds.blob without a "D" in it. (Using an X1 that is, obviously.)

Contents.xml

SystemFS\User\MultiStage\Contents.xml
You could extract this file from *.FFS or grab from handset.
Maybe some tweaking possible...
S5PC110_EVT1_UM10.pdf
2D Graphic Engine
− BitBLT
− Supports maximum 8000x8000 image size
Click to expand...
Click to collapse
<FileFormat>
<JPG>
<MaxFileSize value="4096000"/>
<MaxWidth value="5000"/>
<MaxHeight value="5000"/>
<ThumbNail>
<MaxWidth value="1280"/>
<MaxHeight value="1024"/>
</ThumbNail>
</JPG>
There are more infos in this file...
<MaxInstallCount>
<NativeApp value="100"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
</AStore>
</Contents>
</SDP>
Check out, maybe interesting or helpfull.
Best Regards
I already tryed to increase the max. resolution to 8000x8000px for jpg a week ago but it didnt worked
This file exists 2 times and I flashed them correctly to the wave (tested with sTunes after flash), the limits seems to be set somewhere else...
The image sizelimit is also higher than 4096000 byte (or what it is) - about 10 mb.
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
SystemFS\User\MultiStage
User\MultiStage
@ st0rmi
Thanks.
Yes, via sTune this file is twice.
It seems writeprotected files are most in folder SystemFS... as Backup.
If you check via TriX Firmware files. Then Contents.xml is in *.FFS... maybe edit before flashing. Then changes in both files on handset.
Not tested yet...
@ rex4u
At the moment I have nothing changed in this file, so no idea what happens.
Maybe soon few tests...
Best Regards
@adfree: Yeah thats what I have done
I just used sTunes to copy the contents.xml back to my pc and view if the edited xlm are really on my phone because it didnt worked...
@adfree
No bro' I was offering my own suggestions to this configuration file.
It might allow us to install more than 100 apps in phone and show in Menu.
Second it might show Java apps icons in Menu.
My 2 cents
xml parser
please help me
a want to parser punker xml data base.
rex4u said:
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
Click to expand...
Click to collapse
it's into the 'app counter' field, '-1' may be means 'unlimited' number of java apps installable, but I haven't read yet the whole xml... anyway if it is editable it's an interesting thing..
I saw that file a while ago while looking for something inside my phone (very special thing that made me to copy the whole phone)
there is a lot of interesting things but i never tried tweaking it
Maybe if someone have enough knowledge to add few new extensions and test them
Also removing some stupid limits would be awsome
Sorry i've no time to test that with you guys but would appreciate results
Best Regards
You dont need modif ffs or other just use pfs file to modif what you want and in real time direct phone flash pfs file and not have write protect problem
Just says Thank
Example file : dont give attention of boot img cause i dont take time to do it in 800x480 but its 400x240 then its make bug but with pfs file you can upload anything you want to change !!!
Good hack !!!
Maybe with this you can create dual boot or i dont know what a pro smoker can do, you can also try to put her rc2 or rc1 directory i dont try it !!!
Download example, in this one you can see SystemFS and Registry directory, off course you can put her all directory you want to flash pfs, using trix to modified or wave remaker more faster :
https://rapidshare.com/files/809973956/Circle.pfs
An idea its like you can make your one firmware with personal Widget installed and other idea welcome....Just take file registry and Widget folder on phone and put it on PFS
i can not open new thread
i went to parser an xml file with structure like this.
<?xml version="1.0"?>
<node1>
<node2>
<node3>
<node4>
<node5>
text
</node5>
</node4>
</node3>
</node2>
</node1>
Click to expand...
Click to collapse

[ROM][2/12/11][CHINESE] MIUI for G2 (v1.2.11)

http://bbs.gfan.com/android-575451-1-1.html
ignore the link at the top that one is mostly chinese the english version is provided hear thanks to da900
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.[/QUOTE]
please aware that this rom is only contain about 20% english , most of words are chinese
u should be able to change it to english in the language and input settings
Is this newer than the QnD 1.2.4 rom?
Look at the number lol. 1.2.11 > 1.2.4
no that one has chinese this one does to thou dnt flash nevermind
dictionary said:
Look at the number lol. 1.2.11 > 1.2.4
Click to expand...
Click to collapse
XD I was thinking 4 > 1.
here's the changelog:
MIUI 1.2.11 version update:
Phone:
Add in the phone settings to add "call from the sensors used in the process" of setting
Fix the call log to the Canadian people through IP numbers to send SMS / MMS will bring IP prefix, resulting in the issue could not be sent
Theme:
Add support for setting alarm
Ringing in the new system comes with the option "mute"
Optimize the system comes with the choice of ring tones
Repair some of the theme of the correct format does not show the problem package
System Update:
Add WIFI connection can support the Ad-Hoc (peer to peer) network
Press the Backspace key fixed the problem miscarriage of justice
Local Backup:
Installed on the sd card repair program can not be the problem with the backup and recovery
Click to expand...
Click to collapse
terrelltp said:
no that one has chinese this one does to thou dnt flash nevermind
Click to expand...
Click to collapse
What? Slow down and make sense lol. Are you saying that you screwed up, and there is next to no English in the build?
terrelltp said:
u should be able to change it to english in the language and input settings
Click to expand...
Click to collapse
i repeat :
this rom does contain 20% of english translation only !
Even you change to english language :
your 80% of menu still display "Chinese".
So, this is useless unless you understand simplified Chinese. I'll wait on g4rb4g3 to release a port.
Sent from my htc.desireZED
Weren't there language packs you could install
Sent from my HTC Vision
Device Specific Language Packs
I think that language packs are device specific.. I haven't been able to find a language pack on the net for the G2.. though I did manage to a how to guide but I'm green to this stuff..
If somebody out here is familiar with how to do this guide and create a language pack for the G2 for us.. that would be helpful.
djmcnz said:
Okay guys, there's a lot of demand for this rom and for language packs but not yet a lot of people who know how to make the packs. Whilst I set up the crowdin translation project I can not create or maintain language packs.
So, here's a summary of the instructions required to create a language pack for MIUI (indeed for any app/rom). You need a collection of tools and a little patience but the process isn't too difficult so do give it a go.
Also note that this summary includes generalisations for brevity. These instructions assume you have a deodexed rom.
Introduction
For the purposes of this post language information is stored in XML strings in files on the Android system. In the case of MIUI and these instructions we will be dealing with .apk files (applications).
Within the apk files is a resources directory (/res) and within this are various values directories, there is a default values directory (/res/values) and alternative language values directories (e.g. /res/values-DE and /res/values-IT).
If the rom is set to use it's default language it will read values from /res/values although these may NOT be in English. In MIUI, all of the common Android ASOP values in /res/values are English but the (additional) custom MIUI strings are in Simplified Chinese.
If you select a different language in the ROM than the default then the appropriate values directory will be searched. If a suitable string that matches your language selection is found in the alternative /res/values-xx directory then that string will be used instead. If an alternative does not exist then the default will be used.
Example:
Code:
/res/[COLOR="red"]values[/COLOR]/strings.xml
<stop_button_text>[COLOR="Red"]Stop[/COLOR]</stop_button_text>
/res/[COLOR="red"]values-DE[/COLOR]/strings.xml
<stop_button_text>[COLOR="red"]Halt[/COLOR]</stop_button_text>
/res/[COLOR="red"]values-IT[/COLOR]/strings.xml
<stop_button_text>[COLOR="red"]Basta[/COLOR]</stop_button_text>
In this example, if the language is set to the default the word "Stop" will be used, if it is set to German the word "Halt" will be substituted in, likewise "Basta" for Italian.
So, to add languages to a rom (or app) or to make an app multi-lingual you need to either change the default strings in /res/values/strings.xml to the ones you want to use or, and this is the preferable approach, add a /res/values-xx/strings.xml with the translations you want. The first approach will work (changing the default strings) but is not recommended because the Android Open Source Project and Android development in general, defaults to English. It's best to use the built in language substitution capabilities of Android rather than to work around them. Indeed, if the MIUI devs actually added their strings in English to /res/values/strings.xml and the Chinese equivalents in the appropriate directory this rom would already be in English!
Adding Languages
To add a translation file (strings.xml) to an apk you need to:
decode the apk
create a language directory
add the translation files
recompile the strings
add the new strings to the apk
Which all sounds a little daunting but it's really quite straight-forward, rewarding when you see the result and a good way to understand how parts of Android work. Here's how you can do it.
1. decode the apk
You will need the excellent apktool from brut.all which you can get from the link below. apktool is relatively easy to use but includes some little tricks so you will need to read the wiki and thread about it.
Do NOT just post problems about apktool if you can't get it to work. The tool DOES work so if it's not decoding (or encoding) your apps correctly then you're probably doing something wrong. If you start with this understand BEFORE you ask for support you'll get a lot more help...
apktool: http://code.google.com/p/android-apktool/
wiki: http://code.google.com/p/android-apktool/w/list
thread: http://forum.xda-developers.com/showthread.php?t=640592
Please make sure you run the following command to include the MIUI framework in apktool. You only need to do this once for each framework. If apktool works with one rom and not the next then (re)install the framework for that rom.
Code:
apktool if framework-res.apk
Where framework-res.apk is the one from the rom you are working with. Make sure apktool can find (the correct) framework-res.apk before you run this command.
This thread is not for apktool support.
Now, before you proceed, decode a simple app from MIUI (such as updater.apk) using apktool, do not make ANY changes, then re-encode it using apktool. For example:
Code:
apktool d Updater.apk ./decoded/
apktool b ./decoded/ new_updater.apk
Use the -v (verbose) flag in apktool if you have problems and need to diagnose further.
Remember, Android uses a case-sensitive file system, make sure your capitalisation is correct.
Typically you will not be able to install this apk because it is not signed so if you want to test the process further you can now just try step 5 below using the two apks you have.​
2. create a language directory
Assuming you can decode/encode now, this is the easy bit. For your decoded app, navigate to the directory it was decoded in, then to the /res/ directory and simply create an empty directory for your language (e.g. /values-FR/) - use international naming conventions.​
3. add the translation files
Again, not too difficult this. Download the appropriate language file for your apk from the crowdin project linked below and, using the same structure as exists in /res/values/strings.xml create a new file called strings.xml in your alternative language directory (e.g. /res/values-ES/strings.xml).
The news strings.xml may contain as many or as few translations as you like. Remember, if a translation does not exist the default value from /res/values/strings.xml will be used.
Crowdin: http://crowdin.net/project/miui-rom-translation/invite
The xml formatting and tag names need to match exactly with the default strings.xml in /res/values although the translated file does NOT need to be complete.
It is worth remembering here that unless your source apk is already translated to English then some of the default values in /res/values/strings.xml will still be in Chinese, it would pay to check these.​
4. recompile the strings
Now, if you've done everything carefully and correctly this step is really easy, all you need to do is recompile the apk with apktool using the b (for Build) switch.
Code:
apktool b ./<decoded_apk_dir>/ <output_apk_name>.apk
If this throws errors or does not work then use the -v switch to turn on verbose mode and diagnose your problem. If you did the test in step #1 and it worked then any problem at this step is likely related to your news strings.xml. Back out the changes one by one until you have found the problem and try again.
If you simply can't get it to compile with your changes then try just making a single change to the default strings.xml file in /res/values and see if that works for you.
Do NOT sign the apk!​
5. add the new strings to the apk
Easy. Open your new apk with a zip program (like 7Zip for Windows) and copy out the resources.arsc file in the root directory of the apk. Now take that file and copy it into the source apk from the rom overwriting the existing one. This process replaces the strings but keeps the integrity of the signatures on the files.
You can now push the modified file to your phone, replacing the stock one, reboot and you're translated. Push the file using "adb push" or copy it into place using a root file manager, do not "install" the new apk. Make sure you put it in the correct place (replace the original) and reboot.​
Conclusion
This process will help you add languages to any app including those in the MIUI rom. Because it's a rom the strings are contained in many different apps as well as framework-res.apk. To completely translate the rom you will need to edit every apk that has strings in it.
You will need to do this every time an apk in the rom changes. If a new version is released and say launcher2.apk is changed but updater.apk is not, then you can retain your updater.apk but you'll need to re-edit your launcher2.apk.
When an app changes the default strings.xml may also change. In this case you will need to make corresponding changes to your translations.
Good luck and if you get really stuck there's lots of people in this that have achieved success and may be willing to help!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=789566
MIUI 1.2.11 for Vision ENG
Hi, all. I like the MIUI ROM and as most of you want to have latest version as soon as posible. But I am not a dev and my skills in android development are very very poor. So, i followed the versions of MIUI by g4rb4g3. They all are very stable and fast. And i want to say once more HUGE THANX to him for his work.
But when i found this thread today in the morning i decide to make it in english. So, putting together the ROM from 1st post and ENG pack for N1 from MIUI-DEV.COM with some additional editing of built.prop and adding some apps. I made a pack. Flashed it and it is working fine.
P.S. The only chinese words that i found are in MIUI account registration in Accounts&sync.
Adding: Facebook, Twitter, VoiceSearch, Google Search, gMaps, Street, GMail etc. (all apks are up to date).
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.
ok cool so basically u made a english version for that latest update cool cool
terrelltp said:
ok cool so basically u made a english version for that latest update cool cool
Click to expand...
Click to collapse
Maybe, you could add the link to ENG version to 1st post of this thread. Could you?
da900 said:
Maybe, you could add the link to ENG version to 1st post of this thread. Could you?
Click to expand...
Click to collapse
i thought thats what u did isint that link u posted the english version
terrelltp said:
i thought thats what u did isint that link u posted the english version
Click to expand...
Click to collapse
I think he means add the link that HE provided to your first post, so that users will actually have an ENG version, instead of the one you posted.
dictionary said:
I think he means add the link that HE provided to your first post, so that users will actually have an ENG version, instead of the one you posted.
Click to expand...
Click to collapse
That's what i mean. Thanx.
lol yes i did that now
da900 said:
Hi, all. I like the MIUI ROM and as most of you want to have latest version as soon as posible. But I am not a dev and my skills in android development are very very poor. So, i followed the versions of MIUI by g4rb4g3. They all are very stable and fast. And i want to say once more HUGE THANX to him for his work.
But when i found this thread today in the morning i decide to make it in english. So, putting together the ROM from 1st post and ENG pack for N1 from MIUI-DEV.COM with some additional editing of built.prop and adding some apps. I made a pack. Flashed it and it is working fine.
P.S. The only chinese words that i found are in MIUI account registration in Accounts&sync.
Adding: Facebook, Twitter, VoiceSearch, Google Search, gMaps, Street, GMail etc. (all apks are up to date).
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.
Click to expand...
Click to collapse
WOOOO..good job . it's perfect !!!!!!!! work very well ~!! thanks a lot

wf Phone Tools 0.2 alpha

Hi!!!
I started a small project to install xap and other stuff.. you can find it here!
If anyone wants to try it...
SMS works only with devices supported from SMSBackup (thanks to shinichi_wtn)!
http://wpmanagertool.codeplex.com/
It allows to (in this version)
- Install new application on device
- Update existing application on device
- Show the list of installed applications (only developer installed)
- Launch, Kill and uninstall applications
- Explore isolated storage of applications
- Download files and folders from isolated storage
- Download SMS from device (in combination with smsBackup XAP)
from v.0.2
- Load pdf on adobe reader (need to uninstall the builtin version and reinstall from xap)
- Load office documents on device
- added debug functions
- corrected various bug (install from wrong xap, sms duplicates, ....)
- added resources from AppResLib
- added "copy" and "export" for sms
... and more to come...
In next versions:
- load provisioning xml
- folders?
I may recommend you to use http://resourcelib.codeplex.com/, to extract localized strings and display correct app name instead of @AppResLib.dll,-100
getting error
i found only this
http://msdn.microsoft.com/en-us/vstudio/bb735936.aspx
is this ok???? someone say v3 is v10...
edit: is not... not working.... where to download v10???
I keep getting an error when trying to launch the app. It says that a required assembly "Microsoft.VisualBasic.PowerPacks.vs Version 10.0.0.0 be installed in the Global Assembly Cache first." When I Binged looking for an answer to this, I found this on the Microsoft MSDN Forums:
I was able to fix this by de-selecting these items in the properties window of my project file.
In the Publish Tab, under Install Mode & Settings, Click the "Prerequisites" button, then only select the Items you need to install.
Click to expand...
Click to collapse
I downloaded the Microsoft Visual Basic Power Pack 3.0 installer, and that didn't help fix the issue.
---------- Post added at 09:48 AM ---------- Previous post was at 09:46 AM ----------
@dxdy: I think andreacorti has to fix the Click-to-Install installer, as it's including some prereq's that clients do not have or need, as just having the correct .NET Client Framework is all that should be needed to run the application.
chrislynch said:
I keep getting an error when trying to launch the app. It says that a required assembly "Microsoft.VisualBasic.PowerPacks.vs Version 10.0.0.0 be installed in the Global Assembly Cache first." When I Binged looking for an answer to this, I found this on the Microsoft MSDN Forums:
I downloaded the Microsoft Visual Basic Power Pack 3.0 installer, and that didn't help fix the issue.
---------- Post added at 09:48 AM ---------- Previous post was at 09:46 AM ----------
@dxdy: I think andreacorti has to fix the Click-to-Install installer, as it's including some prereq's that clients do not have or need, as just having the correct .NET Client Framework is all that should be needed to run the application.
Click to expand...
Click to collapse
Hi.. the correct framework version is selected (4.0) .
the power pack dll is actually needed, i use a control from that dll..
I included also the power pack in the package and in the requisites.. could you please check if it's working? thanks!!
(the dll with guid {250BEABB-55E8-43bb-AC97-2D95674ECE14} - C:\Program Files\Common Files\Microsoft Shared\Phone Tools\CoreCon\10.0\Bin\ConMan2.dll - is needed and I cannot include in the package.. I think zune or the sdk install it )
Awsome, Looks great, can't wait to get home from work to try this...
Exactly what I have been looking for. Too many different apps to install XAP files and others to do other things.
andreacorti said:
Hi.. the correct framework version is selected (4.0) .
the power pack dll is actually needed, i use a control from that dll..
I included also the power pack in the package and in the requisites.. could you please check if it's working? thanks!!
(the dll with guid {250BEABB-55E8-43bb-AC97-2D95674ECE14} - C:\Program Files\Common Files\Microsoft Shared\Phone Tools\CoreCon\10.0\Bin\ConMan2.dll - is needed and I cannot include in the package.. I think zune or the sdk install it )
Click to expand...
Click to collapse
I do have .NET 4.0 installed on my system (run plenty of other .NET 4.0 software.) I just looked on my system, and I don't have a BIN folder under C:\Program Files(x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon\10.0\. BTW, I do have Zune installed, as well as the Windows Phone 7.1 SDK. I don't know why this file doesn't exist on my system.
Ok, so I tried your updated Click-to-Install and it's now working. Well, the application launches. Do our devices need to be Interop-Unlocked for this to work? My Focus S is just developer unlocked.
thanks for the tip, will add it to the site
Edit: A small XAP 205KB, has been hanging for more than 5 min claiming installing. Tried it with another app, it was done in 5 seconds...
Got it running, it cuts off the bottom of the buttons more than 1/2 way, extending the window does not fix.
Attached image if you want to see what I mean...
I know it's a small bug....but, it's a bug.
Anyplan you might make a regular .exe app? This .application is not working for me. I have .net fw 4 but I can't get this to deploy. Just an unknown file extension.
Thanks for helping me get 'Samsung extra settings' app off my phone. The auto brightness setting would not disable on my Focus. It, Ministry of sound and App Highlights were the three apps it detected that were installed before using your tool.
Again, big thank you!!!
DavidinCT said:
Edit: A small XAP 205KB, has been hanging for more than 5 min claiming installing. Tried it with another app, it was done in 5 seconds...
Got it running, it cuts off the bottom of the buttons more than 1/2 way, extending the window does not fix.
Attached image if you want to see what I mean...
I know it's a small bug....but, it's a bug.
Click to expand...
Click to collapse
already solved, both of them.. today new version
stan2 said:
Anyplan you might make a regular .exe app? This .application is not working for me. I have .net fw 4 but I can't get this to deploy. Just an unknown file extension.
Click to expand...
Click to collapse
yes, no problem... I will publish it later..
it won't update automatically..
Any plans to impliment export SMS on Desktop using this tool. Also is the PDf and Doc Uploader is same as Book Uploader tool which came out recently ?
wpxbox said:
Any plans to impliment export SMS on Desktop using this tool. Also is the PDf and Doc Uploader is same as Book Uploader tool which came out recently ?
Click to expand...
Click to collapse
yes, i'm doing it now.. "copy" button and "save sms file as..."
...
yes, the uploader works the same way..
Thanks a lot for your app
Downloading issue
I have the following issue and it isn't possible to download it
LATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.239
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.239 (RTMGDR.030319-2300)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : https://wpmanagertool.codeplex.com/releases/clickOnce/wf Phone Tools.application
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET
X-AspNet-Version: 4.0.30319
Deployment Provider url : http://wpmanagertool.codeplex.com/releases/clickonce/wf Phone Tools.application
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET
X-AspNet-Version: 4.0.30319
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of https://wpmanagertool.codeplex.com/releases/clickOnce/wf Phone Tools.application resulted in exception. Following failure messages were detected:
+ Your Web browser settings do not allow you to run unsigned applications.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [20/1/2012 15:45:59] : Activation of https://wpmanagertool.codeplex.com/releases/clickOnce/wf Phone Tools.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [20/1/2012 15:46:08] System.Deployment.Application.InvalidDeploymentException (Manifest)
- Your Web browser settings do not allow you to run unsigned applications.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ApplicationActivator.BrowserSettings.Validate(String manifestPath)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
PLEASE upload the file somewhere else?
totalcmdext said:
I have the following issue and it isn't possible to download it
.....
PLEASE upload the file somewhere else?
Click to expand...
Click to collapse
I uploaded also the non click once version,
you can also try to set this parameter (during installation) http://www.netlinq.dk/Teknik/tabid/...cation-signed-with-a-chained-certificate.aspx
Awesome. We did a review of this tool at WPXBOX.
One problem is with the Isolated Storage which always remain blank but if I open it from Advance Tab it displays the PDF file uploaded.
Secondly icons for Homebrew tools aren't displayed properly.
andreacorti said:
yes, i'm doing it now.. "copy" button and "save sms file as..."
...
yes, the uploader works the same way..
Click to expand...
Click to collapse

Categories

Resources