Why the .cod files change download to download?

I do some tests on my BlackBerry (Bold 9700) of security and when I use JavaLoader.exe to download the .cod files I noticed that some of them will be different from download to download.

For example if I do the following:

> JavaLoader.exe save Sudoku_v46_480x360

> cp Sudoku_v46_480x360.cod Sudoku_v46_480x360.cod.1

> JavaLoader.exe save Sudoku_v46_480x360

> diff Sudoku_v46_480x360.cod Sudoku_v46_480x360.cod.1

The files will be different.  I compared the in a hex editor and the differences are small (single-byte) and coherent (0x07 in 0x77) in 10 places in the file.  They seem to be divided as wel.

-What is JavaLoader.exe done or there at - it something on the device itself that constantly updates the application?

Thanks for any idea!

Never mind, just found out why this is happening.  Some of the .cod files (if there is more than 64 k I think) will decompose in a zip format and zip headers may be slightly different (last modified time may change) then the global .cod file will be binary different.

Tags: BlackBerry Developers

Similar Questions

  • How can I move my contacts from "Windows Mail" app list in Vista to Windows Live Hotmail online? I can't find the Contacts file to download.

    How can I move my contacts from "Windows Mail" app list in Vista to Windows Live Hotmail online? I can't find the Contacts file to download. Why is it so difficult?

    Hi JohnKoelling,

    When you use Windows Live Hotmail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Solution Center Hotmail Portal

    http://windowslivehelp.com/product.aspx?ProductID=1

     

    I hope this helps.

  • Why the apps that I download on Appletv appear on iPhone too?

    Why the apps that I download on Appletv 4 appear on the iPhone too?

    example, just download new channel AMC and also appears on the iPhone.

    Do you have an automatic download enabled for applications on the iPhone? Settings > iTunes and App Store > Apps = IT?

    See you soon,.

    GB

  • JAD params of the reading of the JAD file that is changed after the cod file is built?

    Hello

    We have a requirement in which, you must change the jad file, after the cod file is generated.

    But when I try to do is not able to read the newly added params to MIDlet.getAppProperty() . He can read the jad attributes that were there in the jad file before creating the cod file.

    Example:

    existing JAD has "KeyA" whose value is "A." Now package for the project and generate the blah.cod file

    Add a parameter more "KeyNew" with the value "ValueNew.

    Print the source MIDlet.getAppProperty("KeyA") andMIDlet.getAppProperty("KeyNew")

    Step 1. Existing.jad

    KeyA: A.

    Step 2. Build the cod

    Step 3. Add another parameter to Existing.jad

    KeyA: A.

    KeyNew: ValueNew

    Step 4. Existing.jad of charge using javaloader.

    load Javaloader u Existing.jad

    Step 5. Run the application

    Actual output: it prints only a. and not ValueNew

    I read that this is possible in JDE 4.3 + and I'm working on JDE 5.0

    Help, please.

    ~ Joey

    Apparently it only works if we install the Jad with Javaloader file. Having an installation OTA of the Jad file works.

  • Problems with the .cod files

    Hello

    I'm selling my app in MobiHand but I'm having a problem downloading my app to download.  I am trying to download my .jad and .cod files but I get this error message:

    "Some of the COD files mentioned in the JAD file, are not uploaded"

    If I look in my .jad file I can see a reference to a - 1.cod beside that file: RIM-COD-URL-1:

    I read that if you change the extension of the .cod file in a zip file, you can then extract other .cod files.  This has not worked for me. I have only 1 file of cod in my build directory.  I use the eclipse plugin.

    Thanks for any help.

    Make sure you are deleing files JAD and cod before making your build of 'production '.

    If you app has crossed the line of 64K at a time, then came back, your JAD will still retain this obsolete reference to the unused COD file.

  • Why multiple COD files?

    Hello world

    I have compiled a little test app for WebWorks 7.0 and I noticed that there are 6 COD and a JAD file in the OTAInstall. Why are there so many COD file? Should what files I try to install on my device 9900 7.1?

    Kind regards

    Alon

    Hello Alon,

    This has to do with the maximum file size of COD:

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/the-maximum-size-of-a-BlackBerry-smart...

    Specifically, one COD file is limited to 64 KB of source code and 64 k of resources; These two pools of space cannot be shared (i.e. space unused resources not be used as the source code.)

    When one of these limits are exceeded, a new COD file is created to contain the content remaining, to a maximum of 127 files brother COD.

    If you look at the standard install COD file, you can actually open this COD file with an editor of the archive (WinRAR, WinZip, etc.) and you will actually find the same files from brother COD contained in the larger cod file. In reality, this large COD file is actually just a renamed ZIP file containing all the COD files.

    So, why do this?

    Well, when the biggest (archive) is installed via USB, Desktop Manager and command line tools know to provide each COD file in the sequence of the archive, and each is installed correctly.

    However, when installing OTA, while some web servers know how to make this communication, often they do not, and if the full (archive) COD is attempted to be installed OTA, it will fail. Even in cases where the server is smart enough to perform this communication, he sends actually archive ENTIRE for each sibling. Meaning:

    • Brother of queries Device #1.
    • The server sends archive entire and device extracts / installs sibling #1.
    • Device queries brother #2.
    • The server sends archive entire and device extracts / installs sibling #2.
    • etc.

    You can see that, to a very large archive with cod of brother a lot, this can cause a LOT of unnecessary traffic. Therefore, if you are hosting OTA, the recommendation is to host the ALX file and all brother COD files that are located in the OTAInstall folder.

    Alternatively, you can DECOMPRESS the ARCHIVE COD and use these cod of brother (as well as the ALX file) as well, but you may NOT host the whole cod of online ARCHIVE.

    All that being said, if you use JavaLoader to deploy, you can actually invoke the command on the JAD file to perform the installation:

    JavaLoader u install myapp.jad

    Similar to OTA, JAD file operation is just a descriptor of all the COD files required for the application text and JavaLoader can use this information to install each file as required.

    There is some information up there, so please let me know if something makes no sense.

  • How to decompile the *.cod file

    Hello!

    It might look like you a stupid question or kind of odd or even exceptional.

    But the lack of time available to us, I hope that one of you might be able to point me in the right direction.

    However, ist the problem/question I face in fact:

    We have a few files *.cod which one of our developers has written and compiled in cod-files.

    Now, it is not available for all of us and we need to modufy these files - it you just change the hardcoded IP addresses.

    We do not find the binaries, because none of us have access to its local workstation.

    Is there a way to decompile the *.cod file and so, HOW do I doi it?

    Cod files are for the 8110 and the BB Storm!

    I hope you mind or will not be bothered to help me!

    Best regards and many thanks in advance

    ciphercore

    Unfortunately you're practically no chance, the only 'real' decompilers for * .cod are flaky and when they work they spit of bytecode, not Java just so to change an address IP will be more than one test then you might think depending on the size of the application.

    In other words, you want to either try hard to find the person or his computer because otherwise a complete rewrite may be a better idea.

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • Problem when u - save the *.cod file using javaloader.exe

    I have a project for coding in c#.

    When I runing comand u save using javaloader.exe and then only to save file to the same folder as javaloader.exe .cod.

    So, how can I save to a different directory (folder).?
    Please tell my way. ! Thank you very much. !

    Yes, thank you replied.

    Now I got it in c#, I used the "FileInfo" and "MoveTo" properties

    Affter all recorded the *.cod file in the same directory with javaloader, I call "MoveTo" to move all in my repertoire *.cod file (file made by myself).

    That's all

    Code:

    for (int j = 0; j)< dem;="">
    {
    String filename = list_modules. CheckedItems [j]. ToString();
    FileInfo info = new FileInfo (path1 + "\" + name + ".cod");
    info. MoveTo (path2 + folder_name + "\" + info.) Name ());
    }

  • where is the COD file

    Hi as you can see from the title, I can't find the file .cod from the application of load on the real device.

    I use eclipse IDE version 3.5. All I can find in the folder of the workspace is .alx file in the following directory:

    C:\Users\***\workspace\HelloWorld\deliverables\Standard\

    I look at all the folder within the workspace directory and found nothing but the .class and .java files.

    How to create the .cod file?

    Construction of as much as I KNOW is simply compiling your project...

    But packaging and even debug your project the deployable project on the device...

    Now the project is deployable with the help of:

    . COD

    .alx files

    .jad

    .jar

    files... If these files are generated on the packaging or debug the project...

    One last thing, I would say, check your antivirus settings, maybe it is intended to prevent the creation of these executable files.

  • How to identify resource files in the cod file?

    I want to create a file manager application, I put some png files in the "res/img/iconSet /" folder that the images of the icons, some files are named in this form: "rar_zip_7z.png"(une icône pour le fichier 3), so as a first step, I can analyze the file name and build a relationship between the type of image and icon file. ""

    My question is is there a method to list the resource files in the cod file, like list() in FileConnection?

    Yes, seems no way to I have generate a list on pc and read it as a workaround.

  • Cannot add properties of jad for the compatibility mode for the COD file metadata.

    Hi all.

    I need to disable the application that are installed compatibility mode using the ALX file. I read in an another messages it is possible to add custom file JAD directly properties in the COD file. I tried to create test projects using Blackberry JDE, Blackberry Eclipse plugin generation tools and use Eclipse with ant. Then I tried to add a JAD file for projects and by adding the following properties:

    RIM-TouchCompatibilityMode: false
    RIM-TouchCompatibilityMode-UserChangeable: true
    

    Also I tried specifying the properties of this:

    RIM-TouchCompatibilityMode: 0
    RIM-TouchCompatibilityMode-UserChangeable: 1
    

    But it seems that it does not help to automatically avoid compatibility mode for applications that are built using JDE4.2.1 or earlier. I ran the test on Storm 9530 camera with 5.0.0.32 8 preinstalled JDE. I also wipe my phone several times to avoid the capabilities that the compatibility mode settings is saved.

    In addition, before installing the application I also checked this jar file compatibility mode properties which was built contained in this manifesto.

    Please, anobody can advise which go bad. Or it seems that there is no possibility to implement the solution that are built with the JDE at first then 4.7 and are installed using the ALX file.

    I never could get this job.

    Sorry, don't know what the deal is.

  • What compiler is used to make the .cod files?

    What compiler is used in the development of Blackberry to make the .cod files? Is - this cap?

    Yes you are right.

    CAP takes to the entry of the .java files list or a JAR file and generates a .cod file that can be loaded onto the handset BlackBerry.

  • Why the temporary files are created?

    Original title: temporary files

    Hi, I searched the Web for a long time to know "why the temporary files are created?"
    what I understand so far is there are temporary files created by MS WINDOWS, and others created by other applications like MS OFFICE APPS? RIGHT?

    - and understand that they are created for purposes of backup in the case of MS OFFICE applications,- and I do not know how? they are created when the App crash or every few minutes or what?

    - and I do not understand why "windows Temp files are created?"

    Show me examples please.

    Thank you

    Hello

    There are many reasons why temporary files may need to be created.

    Windows temporary files
    https://support.Microsoft.com/en-us/KB/92635/

    Wiki - temporary file
    http://en.Wikipedia.org/wiki/Temporary_file

    Wiki - temporary Internet files
    http://en.Wikipedia.org/wiki/Temporary_Internet_Files

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Why the prores files original with stereo tracks into first on the single audio track?

    Why the Prores files original with stereo tracks into first on the single audio track?

    Here are a few ways.

    Adobe Premiere Pro CC: Separate Audio channels. Larry Jordan

Maybe you are looking for

  • Confirm THAT KDL-46EX500 is voltage?

    Hello I looked for similar topics here and from what I understand, the official word is that * all * Bravia TVs are voltage (110-240v 50-60 Hz); I moved my Canadian-purchased game to Australia recently and was sure it was good, but if someone can con

  • G6-2206tx: hard drive crashed and I have not created any recovery media

    My flat hard has been planted I brought a new but to restore my hp of hai geniune windows 8 tools I created recovery media and when I opened my laptop it says: no operating system someone help pls

  • Upgrade Vista to HP7 on laptop at the Qatar. __

    Shop does not allow me to download upgrade Vista to HP7 because there is no site of Middle East and I have no American or British billing with zip codes or mail address.  Where can I download using recognised international credit cards, Amex, Diners,

  • Windows Media Center crashes when I click on "Save" or "Series Record" in the Guide

    I had a problem with MC of Win 7 (ehrecvr and ehsched services does not) that has been resolved, EXCEPT that whenever I hit "Record" or "Series Record" in the Guide, MC crashes. upon restart, it shows no record for the entry of guide. Any ideas? Than

  • How to remove CR + LF?

    I use this method for reading text files public static String readTextFile(String fName) { String result = null; FileConnection fconn = null; DataInputStream is = null; try { fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE); is =