App Localization / Globalization? - Windows Phone 8 Development and Hacking

Hi all!
I'm a fairly inexperienced one-man developer, and I'm looking to make my apps viewable in different languages, in order to increase its popularity/usefulness in other countries.
My apps are quite text-heavy, so ideally it could be as simple as re-directing to text files with the proper language included, but I honestly have NO idea and I haven't been able to find any step-by-step tutorials simple enough to make sense to me.
Can anyone here help? Or at least point me in the right direction?
Thanks.
Also, if this topic is in the wrong section, please feel free to move it....

You can use resources files in Visual Studio. Create a folder named AppLocalResources for just a folder in you project and a folder named App_GlobalResources for your entire solution. In this folders you can add a Resource file name like your objects. See more on MSDN

TrivialPanPan said:
You can use resources files in Visual Studio. Create a folder named AppLocalResources for just a folder in you project and a folder named App_GlobalResources for your entire solution. In this folders you can add a Resource file name like your objects. See more on MSDN
Click to expand...
Click to collapse
thanks for your help .
Here is a link in MSDN :
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff637520(v=vs.105).aspx
hope to help you

Related

Manila editing and lua:tutorial

Hey people,
Many people were pm'ing me n asking me to write tutorials on how to edit manila files n write lua.
As its a very less known topic im one of the few people who knows how to write it and edit it.
I will try to explain the basics first n then the advanced stuff
WHAT WE DO
---
To be frank
manila editing is complicated.Not cause its hard but cause it need a lot of imagination
UnLike other languages that uses graphics like flash or vb or whatever lua and manila editing DOES NOT give you a visual workspace
You have to image what you write in real time and so it needs a lot of trial /error
THE BASICS
What we need
1>m9editor
the files we want to work on
1>As the basics i would like to explain how the background for all tabs mod was made
1.we have a file called 5c9aa261_manila.
for me this is the most important file that a developer needs
in manila this is a file that controls backgrounds
1>For example it runs on every tab and executes its functions on every tab
It is the shadow of tf3d
So anything that you want in the background in every tab or u want to be seen in every tab u put here
So by common sense the slider and the background are in this file
Now what we do for the bgfor all mod
STEP 1
1>Make a png file size 512 X 512
Manila cant take a image of any size.Therea re fixed sizes.i personally always use the size 512 X 512
So now we have a image named lets say sample.png
STEP 2
copy the file 5c9aa261_manila from the windoes folder and open it in m9editor
doubl click it
NOw the hard part
the structure of a manila file was something that took me loads of thinking to figure out
a basic structure
Group (named whatever)
--FIle in group(top most layer)--this is what is seen right on top
--File in group(second layer)--this is what is seen underneath the upper file
and so on a and so forth
LUA
lua files are action script that are recognised by the tf3d
usually lua files are either of two types
1>binaries(damn its just a name nothing more)
using the search button you can search for "binary"
click on it and you will see code in it underneath
2>files that we ad..they always end in .lua ..so using search search for ".lua" and you will find it
Lua is scanned through by tf3d when u start it the first time
lua is usually at the top of the file
so for example lets write a little lua
Code:
money=function()
rotastrainsdonations=whatpeopledonated
if rotastrainsdonations>200$ then
title.String="rotastrainsrich"
else
title.String="need smore donations"
end
end
slider.onPress:money
this is seen by tf3d
whenever you will press the slider this function will be called
and it will display what the function does!!
So when u move around in the file you will see groups and files in them..
if you understand this much its enough to make whatever the hell u want
ok now getting back to what we want to do
Step 3
Searching for the existing background
images are always .qtc files
So search for ".qtc"
you will come to a file called "backgroundlevel1..blahblahblah.qtc"
now that we found it we need to place the file we want on top of it..so thats its seen in right on top and in every tab
so how to make a file that we want?heres secret no1
1>copy any qtc file thats existing by right clicking its entry ..for example the file now is "backgroundlevel1..blahblahblah.qtc"
right click copy
now right click on the entry again
click paste below
so now we have two entries of the same name
Group
--backgroundlevel1..blahblahblah.qtc
--backgroundlevel1..blahblahblah.qtc
change the top entries name
---change this name to whatever you want--for example firstbg
so now we have two entries
--firstbg.qtc
--backgroundlevel1..blahblahblah.qtc
now click ok
move your mouse over the entry
a small popup will appear
with a name like gftfgrh455_manila
thats the name of your file
Write it down somewhere
Click save
owerwrite
Step 4
now we need a qtc file to put ur image in
just take any _manila file from the windeos foler which is a image file
For example the file that i have used in my panoramic background mod
i will attach that here
paste it in the same place as the 5c9aa261_manila file
open it in m9editor
right click it
save as png
open the png file
paste your image in
save
open m9editor
right click the qtc file
load from png
rename the file to what we got earlier "gftfgrh455_manila"
done
Now paste both these files in ur widows folder
and walla
bgforall tabs in a second
This is a basic thing to do
Next step will be to integrate images with lua..
!!
Cheers
Rotastrain
Thank you, thank you!
Awesome... exactly what I was looking for! Please, do go on....
xoxo Maureen
thats a great idea!
you are tha man!
This is very nice... I can not wait for the followup. image editing is pretty nice but I am having more trouble with decompiling the lua files. Also is there an easy way to break out the scripts and files into there directory structure? so that we can find all the internet tab items in one folder and all the common in another? I tried a few of the lua kitchens that I have seen around but most of them seem to crash when I try to use them on the 2.5 manila files. is there a difference?
Thanks for this. It is nice to see someone sharing there knowledge and expertise.
SoBBie

(Maybe) UC v3.0 - Get the BEST from user customization!

Ok, i was bored about rewriting sdconfig.txt everytime i changed the romlanguage, so i decided to make something that will avoid this, and will avoid to write the sdconfig.txt too
What are the main goals of my project?
Install everything you want without careing about romlanguage
automatize every process
How it works?
Simple. Put your cabs/exes/provxml/xml to import/run in your storage card folder "FB_Install"
Ok. You said that I can install exes, but if i need to add arguments to the execution of the file?
Simple again. Create a file (as an example, if your exe is "myexe.exe") naming myexe.arguments. in it write your arguments. You can use the arguments only on exes.
Well, and if i want to skip some files?
Just create (as an example, if your file is "mycab.cab") a mycab.skip file. This works with all types listed here (cabs, xml,provxml,exes)
Well, i need to hide the customization while I install a cab. How to do that?
Again simple. If your cab is mycab.cab, create a file with name mycab.hide
And if i want to don't reset at end?
Create a file with name "NoResetAtEnd"
Ok, i have that folder but right now i don't want to install anything. how to do that?
Create a file with name "SkipCustomization"
Ok. That's nice. But how i can add my own config codes as i done on UCv2?
Create a file "AddToConfig.txt" and add there your config codes. this will be appended after the other config codes generated by the program.
I want to create some shortcuts. How to do that?
Create a Shortcuts.txt containing the shortcuts to create. You have some IDs:
%SD%
%PROGRAMS_STARTMENU%
%PROGRAM_FILES%
%STARTUP%
%MYDOCUMENTS%
This will allow you to create an universal shortcuts.txt without careing about language.
Each line contains a shortcute to create. Example line:
%PROGRAMS_STARTMENU%\Test.lnk:%SD%\myprogram.exe
this will create a "Test.lnk" in \windows\start menu\programs folder pointing to \Storage card\myprogram.exe (that for wwe).
I want to copy some files in the windows folder. How?
Create a folder in FB_Install called "CopyInWindowsFolder". all files there will be copied to the windows folder. You can do that for Programs,Favorites,Fonts,Startup,Program files folders creating folders:
CopyInWindowsFolder
CopyInProgramsFolder
CopyInProgramFilesFolder
CopyInFavoritesFolder
CopyInFontsFolder
CopyInStartupFolder
I want to install some cabs to storage card instead of internal storage. how?
Just create (as an example, if your file is "mycab.cab") a mycab.ToSD file.
I will include that feature on my future ROMs, but if someone is interested i can release it here.
EDIT: yes i know that noonski done something similar but i was searching about something integrated
Nice idea. Good luck.
One thing though. There might be a clutter of files created but users which can get confusing? How about just parsing one file with all directions?
rjmjr69 said:
Nice idea. Good luck.
One thing though. There might be a clutter of files created but users which can get confusing? How about just parsing one file with all directions?
Click to expand...
Click to collapse
thanks. added other features on first post.
Maybe I missed it but is there anyway to automate .cabs to be installed on storage card?
MrDSL said:
Maybe I missed it but is there anyway to automate .cabs to be installed on storage card?
Click to expand...
Click to collapse
i'm working on that too
michyprima said:
i'm working on that too
Click to expand...
Click to collapse
If you can get that to work then it would be awesome..So far theres no automated option that works to install on storage card..
MrDSL said:
If you can get that to work then it would be awesome..So far theres no automated option that works to install on storage card..
Click to expand...
Click to collapse
Well, i can say i now i got it to work. Requires a bit of work but it works. Well, visual studio is EXTREMELY powerful
Looks really good, I really like to try this UC
This is also a nice tool
finally got it to work right.
Now it can install CABs to storage card without problems
I want that in my ROMs too. Can you share it here?
solved problems on installing cabs too. The installation dll will NOT be executed so you won't need to care about user interaction while installing
Definatly interested in checking this out since it can install to storage card.
hope u make it available..
MrDSL said:
Definatly interested in checking this out since it can install to storage card.
hope u make it available..
Click to expand...
Click to collapse
well that's something for cooks not for users (it needs to be cooked in to work) so if i release it you can't use it at least when someone use it in his rom...
To me it looks like MrDSL is a cook. The ROM linked in his signature is made by him.
Are there any news? Will you release it here soon?
A powerfull alternative;
Will it get released? I'm eager to test it Virtually in an Embedded WM6 environment;
Windows (Embedded) CE/WM6 PowerToy: DiskPrep;
http://forum.xda-developers.com/showthread.php?t=655377
I'm glad though that User Customizer DevPrep (CPY2 Storage Card possible) saved my day(s) until now!
Soon most readers from this thread too IMNSHO,
Senax

[HELP] How to register a dll?

I try to create a program which consists of
.asx files (to show online tv channels),
.lnk files (shorcuts to the .asx files) and
a .dll file which contains only some .ico files (icons of the tv channels).
I added all these files to a cab using WinCE Cab Manager and tried to install it on my ppc. So far so good. The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Although I have no idea about computer programming, I have created many cab’s with WinCE Cab Manager for skins I have created for several programs. Anyway, I realized that the problem occurred due to the .dll file, since this is the first time I add such a file in a .cab.
I created my .dll file using a .dll from another program which had only icons in it, as well. I deleted them using Restorator 2007 and I had an “empty” .dll sized 4KB. Then I added my icon files using XN Resource Editor.
I searched the Internet to see what might be the problem with the .dll and I found out that I have to “register” my .dll file. I really have no idea what this means but it needs to be done. I also found an option in WinCE Cab Manager for “self-registering” file, but it didn’t work either.
So, the question to you dev guys is how can I register my .dll file, or should I create it from the beginning with another way?
Please help! Thanks in advance!
sorry to repost but it seems that posts keep coming in this forum and this thread is already in the second page and I'm afraid that noone will see it and reply to it. By the way, is there any special sub-forum for such questions?
This may help. I use his instructions to edit existing DLL's
http://www.modaco.com/content/i9x0-...88904/lisbian-taskbars-for-i910/#entry1023568
It will unsign the dll which will probably fail on your custom dll but it should sign it when you are done editing.
NilsP
Many thanks for your suggestion but unfortunately it didn't work for me.
As you said, this is mainly for resigning already signed .dll files.
Any other help will be appreciated. I can attach it here if anypne is willing to help. Or just tell me the way. Thanks!
I deploy a few dll's with my app, without any problem. If the installer complains about the location, what did you specify where it should go?
There are 2 approaches to solve this problem:
1.) If you have a private key to match a certificate in the device's certificate store, sign the .dll and .cab with this private key and it will be installed with elevated privledges, and be successful. To facilitate this you can install the "SDK Certificates" - and sign with the matching private key (you should be able to find these on a search, term "SDKCerts" or similar)
2.) Look for an "Application Unlocker" or other security reduction tool, run it, and you should be able to install the cab. On this note, if you check here, it will give you a more technical overview of the security policies. You want to change 4101 / 0x1005 to "SECROLE_MANAGER" (8) - which tells the system to install it with elevated privledges. Also make sure 4102 / 0x1006 is set to 1 to allow unsigned applications.
6Fg8
I don't believe that is the location I specified that causes the problem because when I deleted the .dll file from the .cab, it was installed properly. How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Da_G
Thanks but both approaches seem very complicated for me!
So, will I need Visual Basic in order to do this or is there any easier way? Can anyone sign the dll for me?
angelos_cy said:
6Fg8
How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Click to expand...
Click to collapse
Yes with programming, C++ or .net. Never had any issue with signing. I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
6Fg8 said:
I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
Click to expand...
Click to collapse
I have sent them to you by pm. They are not secret at all but I will create a "program" (wannabe ) with that dll and I want that program to be a surprise for users of the forum where I'll post it. I may post it on xda too, but it's nothing important.
Many thanks!
angelos_cy said:
The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Click to expand...
Click to collapse
This happens because you've changed resources in signed file, which changed file checksum and invalidated it's signature, and Windows installer refuses to install file with invalid signature. But it won't refuse to install this file WITHOUT signature at all - so use unsigner (search for it on XDA) to remove signature completely; if you encounter error, try to remove signature from original (unmodified) file, and then change resources in it...
6Fg8
the_ozyrys
Thanks to both of you!
6Fg8 has created and signed the dll for me and it finally worked, but I also tried the_ozyrys' method and it also worked.
So thanks to baniaczek too, since he created the unsigner.exe.
Everything worked fine with the dll. Now the cab is installed properly.
However, I have another problem. Just after the installation of the cab on my ppc, it seems that the device freezes for about a minute. This is propably because my cab contains a lot of shortcuts (.lnk files) that go under Programs folder.
So, I would like to ask for another favour, if it's possible. As I said I intend to give this cab to others too. Since this delay can make them believe that my program has freezed their device, I would like to make the cab restart the device just after installation and after uninstallation as well. I think this is made with the "Setup.dll" which I don't know how to create.
If anyone knows how to do this and has the time for it, could you please create this setup.dll for me. If the cab is needed to do this, just tell me to send it to you.
Thanks in advance!
Anyone? Plzzzzzzz!
If you want to sign .dll or .exe u can use the apps posted in the two posts below
http://forum.xda-developers.com/showthread.php?t=432041
or
http://forum.xda-developers.com/showpost.php?p=3530246&postcount=18
raykisi
Thanks for your answer but 6Fg8 and the_ozyrys already helped me on that.
My question now is how to create a setup.dll in order to make my .cab to prompt the user to restart the device after installation and uninstallation. If anyone can do it for me, I can send you the .cab which I alreday created and you can add the setup.dll with those functions.

[Solved][Q] EXT packages + app.dat = duplicates of files in \windows\

I tried to keep the title as descriptive and short as possible, I hope it makes sense
I picked up the kitchen of nhathoa (a retired Topaz cook) hoping to get it customized to make it exactly the way I want but I'm running into some issues.
Long story short, I'm using Ervius Visual Kitchen (1.8.2) and I noticed that the EXT packages I added end up leaving two copies of the files, a copy under \windows\ and another one in the places I specified using app.dat using:
Code:
Directory("\Program Files\bla\"):-File("bla.exe","\Windows\bla.exe")
Is there some way to get rid of the copy under \Windows\ ??
I know that I could simply leave everything there and discard the app.dat files but I would really prefer having everything organized properly (I have a bit of an OCD when it comes to organizing everything neatly ).
I'm pretty sure that this is a rather simple and noobish issue but I couldn't find anything relevant by searching and I took a look at some ext packages by various cooks and noticed the same behaviour.
MusikMonk said:
I tried to keep the title as descriptive and short as possible, I hope it makes sense
I picked up the kitchen of nhathoa (a retired Topaz cook) hoping to get it customized to make it exactly the way I want but I'm running into some issues.
Long story short, I'm using Ervius Visual Kitchen (1.8.2) and I noticed that the EXT packages I added end up leaving two copies of the files, a copy under \windows\ and another one in the places I specified using app.dat using:
Code:
Directory("\Program Files\bla\"):-File("bla.exe","\Windows\bla.exe")
Is there some way to get rid of the copy under \Windows\ ??
I know that I could simply leave everything there and discard the app.dat files but I would really prefer having everything organized properly (I have a bit of an OCD when it comes to organizing everything neatly ).
I'm pretty sure that this is a rather simple and noobish issue but I couldn't find anything relevant by searching and I took a look at some ext packages by various cooks and noticed the same behaviour.
Click to expand...
Click to collapse
No, it's call Read-Only-Memory (ROM) and is the reason you can hard-reset your phone. Every file you cook into the ROM is in \windows. Two ways I know of to reduce the amount of files would be to zip them and have a mortscript unzip them to the proper location during customization or cook in a cab containing all of the files and have it run during customization.
That makes a lot of sense, I really feel ashamed that I didn't figure it out earlier
EXT packages seemed easier than bothering to read about customization but I guess it's time to start reading about this kind of stuff.
Thread marked as solved.
Thanks for the quick reply!
Yup, files in rom are in rom forever, or until you flash again, lol. The trick is to just run bla.exe from \windows. I would say that 90% of the time, bla.exe runs just fine out of the windows directory (especially if it's the only file in the package). When people create cabs, they naturally install the app in \program files, but in general apps don't need to be in a specific folder. If there are other files present, usually an .exe will search within its own folder for those files. So, if you just cook everything straight into windows, you'll be good to go. It's easy enough to test: just move all the files from program files to windows after installing a cab, fix the shortcut in the start menu, and then try to run the app. It's always a good idea to do a soft reset and try again (found this out the hard way many times). The one thing you have to watch out for is settings files, like .dat files. These files frequently have to be archived (not read-only). Particularly with apps that use net 3.5, if there's a setting file that is read-only, the app won't boot and you'll get an error message. The fix is to name the file settings-1.txt (or whatever) and have an app.dat rename it to settings.txt (and keep it in \windows).
Also, remember to fix the shortcut path in the start menu, and examine the registry entries to see if there are any paths for files present-you may need to change them to point to \windows (this could also be true in settings files).
mwalt2 said:
No, it's call Read-Only-Memory (ROM) and is the reason you can hard-reset your phone. Every file you cook into the ROM is in \windows. Two ways I know of to reduce the amount of files would be to zip them and have a mortscript unzip them to the proper location during customization or cook in a cab containing all of the files and have it run during customization.
Click to expand...
Click to collapse
This actually made me think a little bit. When you think about read only, I always thing can't delete or overwrite. Obviously I can run a cab and replace a file that is located in the \Windows directory, that leads me to believe there is a way to delete a file or maybe even replaced with an empty file of the same name.
You can over-write a rom file, but the rom file is still there. The file system just flags it somehow or another and tells the device to ignore it and instead use the new file.
TMartin03 said:
This actually made me think a little bit. When you think about read only, I always thing can't delete or overwrite. Obviously I can run a cab and replace a file that is located in the \Windows directory, that leads me to believe there is a way to delete a file or maybe even replaced with an empty file of the same name.
Click to expand...
Click to collapse
The new file you copy over goes into the "user" partition of the file system and windows knows to use that file instead. Once you delete this newly copied file from \windows, the old one from the ROM will take its place back in the filesystem.
Farmer Ted said:
Yup, files in rom are in rom forever, or until you flash again, lol. The trick is to just run bla.exe from \windows. I would say that 90% of the time, bla.exe runs just fine out of the windows directory (especially if it's the only file in the package). When people create cabs, they naturally install the app in \program files, but in general apps don't need to be in a specific folder. If there are other files present, usually an .exe will search within its own folder for those files. So, if you just cook everything straight into windows, you'll be good to go. It's easy enough to test: just move all the files from program files to windows after installing a cab, fix the shortcut in the start menu, and then try to run the app. It's always a good idea to do a soft reset and try again (found this out the hard way many times). The one thing you have to watch out for is settings files, like .dat files. These files frequently have to be archived (not read-only). Particularly with apps that use net 3.5, if there's a setting file that is read-only, the app won't boot and you'll get an error message. The fix is to name the file settings-1.txt (or whatever) and have an app.dat rename it to settings.txt (and keep it in \windows).
Also, remember to fix the shortcut path in the start menu, and examine the registry entries to see if there are any paths for files present-you may need to change them to point to \windows (this could also be true in settings files).
Click to expand...
Click to collapse
First of all, a small question about the underlined part, just to make sure that I got it right: it won't be exactly a rename just a copy with a different name, correct?
Some of the apps I use need a specific directory structure for the resources and files they use, so just dumping them in one big folder won't work.
Another possible issue that I think I'll run into is having two files sharing a generic name (let's say settings.xml) while each belongs to a different app. I didn't personally encounter such a situation just yet but my packages are still a work in progress and I did see a post or two about this while searching.
I was still hoping there would be a simple way to arrange the files in folders while keeping them under \windows\ but I can't find such a method either. Doesn't seem like I have other options than to decided on a firstboot customization method: Runcc, autorun, xda_uc or something that I haven't read about yet...
"Runcc" is currently used in the base kitchen so that gives it an edge right now.
Edit:
Remembered that I had another question, and it's probably not worth a new thread.
I was looking at how to manually create .lnk files and I noticed something that I didn't understand and couldn't find info about.
For example:
Code:
21#"\Windows\MSDict.htm"
What exactly does the "21" refer to?? I tried changing it randomly to other values a couple of times and it didn't effect anything.
NRGZ28 said:
The new file you copy over goes into the "user" partition of the file system and windows knows to use that file instead. Once you delete this newly copied file from \windows, the old one from the ROM will take its place back in the filesystem.
Click to expand...
Click to collapse
Ok now that makes a lot of sense. I guess I'm just use to Android and being able to see that separate partition. Thanks for the explanation.
That sort of leaves me to another question. Can't someone develop a way to overwrite directly to the "system" partition? It would almost be like a root/superuser for WinMo.
Sent from my HTC Evo 4G!
MusikMonk said:
First of all, a small question about the underlined part, just to make sure that I got it right: it won't be exactly a rename just a copy with a different name, correct?
Click to expand...
Click to collapse
Yup, that's correct. Another approach is to take all similar files that go into windows and stick them in a zip file that unzips to the windows directory. I do that in a few cases (power radio comes to mind; it has an ini file). What I do in most cases though is use a backup/restore mortscript. The backup copies all settings files (and similar things) on my device to my sd card. During customization, the restore copies them back. It's convenient for apps where I change the settings a lot and I don't want to have to constantly fuss with the packages.
Some of the apps I use need a specific directory structure for the resources and files they use, so just dumping them in one big folder won't work.
Click to expand...
Click to collapse
What you do in that case is move the sub-folders into windows. In this case, I'll use a zip file to unzip those folders into windows. Using app.dat files to copy large numbers of files blows. It increases the rom file count as well as the storage used. A zip file is a single file, and usually it saves space.
Another possible issue that I think I'll run into is having two files sharing a generic name (let's say settings.xml) while each belongs to a different app. I didn't personally encounter such a situation just yet but my packages are still a work in progress and I did see a post or two about this while searching.
Click to expand...
Click to collapse
In that case, you're screwed unless there's a registry key that lets you change the name. I've run into a few complications; tcpmp and OMarket both use a common.dll. My solution was to buy Core Player, lol.
I was still hoping there would be a simple way to arrange the files in folders while keeping them under \windows\ but I can't find such a method either. Doesn't seem like I have other options than to decided on a firstboot customization method: Runcc, autorun, xda_uc or something that I haven't read about yet...
"Runcc" is currently used in the base kitchen so that gives it an edge right now.
Click to expand...
Click to collapse
Using cabs or zip files is the way to go if you want to copy large folders in one shot (with a mortscript; you can also un-rar rar files, but I don't know how. Yet, lol). Zips are easier to make and edit than cabs, but you need to have mortscript cooked in and know how to write the simple script (aka cut-and-paste).
Edit:
Remembered that I had another question, and it's probably not worth a new thread.
I was looking at how to manually create .lnk files and I noticed something that I didn't understand and couldn't find info about.
For example:
Code:
21#"\Windows\MSDict.htm"
What exactly does the "21" refer to?? I tried changing it randomly to other values a couple of times and it didn't effect anything.
Click to expand...
Click to collapse
The 21 is the number of bytes after the #. It doesn't matter. I usually just change the first number to 1. It works fine. Counting bytes blows.
That was extremely helpful. Too bad these boards don't use a rep system
Farmer Ted said:
Yup, that's correct. Another approach is to take all similar files that go into windows and stick them in a zip file that unzips to the windows directory.
Click to expand...
Click to collapse
Well, if I'm going to follow this method, and it seems like I am, I don't see why I would still have to limit myself to the \windows folder. I can just put everything the way I originally wanted to do. I only looked at arranging files under \windows when I found out that there's no way to get rid of the duplicates.
Farmer Ted said:
Using cabs or zip files is the way to go if you want to copy large folders in one shot (with a mortscript; you can also un-rar rar files, but I don't know how. Yet, lol). Zips are easier to make and edit than cabs, but you need to have mortscript cooked in and know how to write the simple script (aka cut-and-paste).
Click to expand...
Click to collapse
I haven't tried writing mortscripts yet but I've seen enough to figure out the basic and notice how easy it is. I'm gonna check how usable is the WM version of 7zip, as long as it accepts arguments combining it with mortscript will be easy and perfect for me.
7z archives can get smaller in size than half of the zip archives for the same files. And cabs are too annoying to work with and keep updated later on.
Only issue remaining now is checking whether I should put the archived files under \windows or use the sdcard for customization. I'm leaning toward the first but I'll have to wait and see how much memory I would be sacrificing that way.
Farmer Ted said:
The 21 is the number of bytes after the #. It doesn't matter. I usually just change the first number to 1. It works fine. Counting bytes blows.
Click to expand...
Click to collapse
Ah! I thought about counting bytes/characters and noticed that it works sometimes. But I thought it was a coincidence after I experimented in changing the value and noticed that it wasn't always the right count in the .lnk files that I found.
[rant]
Nice, I was messing around with some packages to free up ram and storage and I seem to have ended up with a rather b0rked up xTask. And then there's still convincing Resco Explorer that the registry add-in IS in fact there.
Figuring out the causes should keep me happily busy for a while (and probably heavily pissed for another while afterwards).
[/rant]
Edit:
Just for the record, I ended up using xda_uc it's a lot easier than doing things manually. Although it would help if there was some kind of documentation available, took me a while to understand what .xda, xdai, xdas & .xdaz files are supposed to be.
hi by the way is it possible to convert ext packages of QVGA phones to one another?

[SCRIPT] Quickly Convert *.java To *.smali Code

Most of us often want to add custom functionality to an existing apk and know how to do it in java, but don't know the exact dex/smali syntax. Trying to add this, there, test, error, debug, fix & hopefully getting it to work is common. To solve all of that trouble, I bring you this.
I made these little scripts to add an extension to Windows explorer shell for doing a task most people couldn't just do this easy. So now can just write your functionality in java, right-click the file & click Convert To *.smali and tada! You have the dex/smali compatible code which you can then paste it into your apk smali file.
Installation:
Download the attachment & extract the archive.
Run install.cmd as Administrator to install Windows Explorer shortcut.
You can also darg-n-drop files on convert.cmd to convert them.
Nice bro :thumsup:
Thank you very much. This is exactly what I need
Thanks for the information..
I would like you to help me with this issue since I do not want to work the conversion
it not work
where is the converted smali jfile?
Hello.
I click the right button of mouse and click the Convert to*.smali.
But I didn't the converted file.
could you lend me a hand?
vaibhavpandeyvpz said:
Most of us often want to add custom functionality to an existing apk and know how to do it in java, but don't know the exact dex/smali syntax. Trying to add this, there, test, error, debug, fix & hopefully getting it to work is common. To solve all of that trouble, I bring you this.
I made these little scripts to add an extension to Windows explorer shell for doing a task most people couldn't just do this easy. So now can just write your functionality in java, right-click the file & click Convert To *.smali and tada! You have the dex/smali compatible code which you can then paste it into your apk smali file.
Installation:
Download the attachment & extract the archive.
Run install.cmd as Administrator to install Windows Explorer shortcut.
You can also darg-n-drop files on convert.cmd to convert them.
Click to expand...
Click to collapse
Can you please update this. I tried running it on windows 10 and after that I don’t see the right click convert to smali
It's not working on Windows 10....Any updates on it?

Categories

Resources