FORUMS

Decode or Encode OMC Files with OMC Decoder Encoder

220 posts
Thanks Meter: 215
 
By Yoanf_26, Senior Member on 16th May 2018, 10:19 PM
Post Reply Email Thread
Decode or Encode OMC Files with OMC Decoder Encoder





Warning: I'm not responsible for any problem on your pc or mobile. This manipulation is at your own risk.
This tutorial and this OMC Decoder Encoder script comes from my own work. No mirror link is accepted.


Source : HERE

Presentation:

You face coded OMCs. You could now decode them to make them readable...

First, thanks to [email protected] for creating its omc-decoder.jar.
His GitHub is available HERE and his tutorial is available HERE.

This file is a Python script to facilitate decoding and encoding of cscfeature.xml and cscfeature_network.xml files found on Samsung S8/S8+, S9/S9+ and Note 8 phones. It is multi-OS compatible (Windows, Linux. ..)

I created this script to make it easier to use. This avoids typing the command lines to do the job. It is therefore perfectly automated.

This script allows you to directly decode or encode the cscfeature.xml and the cscfeature_network.xml directly, but also to do batch processing if you have multiple OMC to process.


Prerequisites:

  • Have a Windows PC or Linux PC
  • Have Java installed. It is available HERE.
  • Have Python3 install. See the installation part.
  • Having downloaded OMC Decoder Encoder HERE


Installation:

  1. If you do not have Python3 installed (Otherwise, go to point 2):
    • Windows:
      • For Windows 32 Bits,HERE or for Windows 64 Bits,HERE.
      • Launch the Python 3 installer and follow the instructions on the screen.
    • Linux:
      • Start the terminal.
      • Type the command
        Code:
        sudo apt-get install python3
  2. Extract the OMCDecoderEncoder.zip file to the root of your hard drive on Windows or to your personnal folder on Linux.
  3. On Windows, launch it by double clicking on OMC_Decoder-Encoder.exe or on Linux, from the OMCEncoderDecoder folder, right-click and click Open in a terminal and type the following command
    Code:
    python3 OMC_Decoder-Encoder.py
    and you come to the next screen.

  4. As you can see, there has been a change in OMC_Decoder_Encoder folder.


  5. And that's it, OMC_Decoder_Encoder is ready for use. You can go to the explication section.


    Usage:

    • You just have the cscfeature.xml and the cscfeature_network.xml of a single csc to decode or encode:
      1. Put your file(s) in the "_In" folder.
      2. In OMC_Decoder_Encoder choose 1 to decode or 2 to encode and validate.
      3. If there were no problems, your file(s) will be found in the "_Out" folder.
      4. It's finish.
    • You have several OMC to decode or encode:
      1. Put the OMC folders in the "_InOMC" folder.
      2. In OMC_Decoder_Encoder choose 3 to decode by batch or 4 to batch encode and validate.
      3. Wait while you work. The duration is variable depending on the number of OMC and the working power of your PC.
      4. Once finished, you will find your different csc_feature.xml and csc_featurenetwork.xml files in the "_OutOMC" folder.
      5. Group your OMC folder in "_OutOMC" in "_InOMC" in order to have your OMC folder complete.
      6. It's finished.

Here is a video if some points seem incomprehensible to you.


And now, the tutorial ends. I hope this little utility will help you and above all you will simplify the task.

I thank fei-ke for creating its beautiful omc-decoder.jar. Without him, this script would not exist.
I thank my brother Edzamber for his advice on this script and especially his tests.
I thank Gayos24 for converting my Batch script to Python script to make it multi-OS compatible.

I spent a lot of time doing the script to test it, correct it, improve it, create the icon .... And it is with pleasure that I share it for free.
If you want to give me a donation for the realization of this script, because for encoding and decoding, the merit goes to fei-ke, click on the image below.

The Following 12 Users Say Thank You to Yoanf_26 For This Useful Post: [ View ] Gift Yoanf_26 Ad-Free
16th May 2018, 11:21 PM |#2  
edzamber's Avatar
Senior Member
Thanks Meter: 3,532
 
Donate to Me
More
Very great job bro, as always
17th May 2018, 06:59 AM |#3  
OP Senior Member
Thanks Meter: 215
 
Donate to Me
More
My pleasure bro
18th May 2018, 09:58 PM |#4  
OP Senior Member
Thanks Meter: 215
 
Donate to Me
More
Hi

Updated with small corrections

Enjoy
The Following User Says Thank You to Yoanf_26 For This Useful Post: [ View ] Gift Yoanf_26 Ad-Free
24th July 2018, 07:43 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Thanks for great job! sure I will donate but

Can I copy and replace edited csc files to odm/omc/THR/conf ?
after restart nothing takes effect ?
THR=my local region tehran

I want to enable the bixby vision and changed my cfs to:

Quote:

<CscFeature_Vision_ConfigBeauty>NLLXX</CscFeature_Vision_ConfigBeauty>
<CscFeature_Vision_ConfigFood>NLLXX</CscFeature_Vision_ConfigFood>
<CscFeature_Vision_ConfigPlaceLandmark>NLLXX</CscFeature_Vision_ConfigPlaceLandmark>
<CscFeature_Vision_ConfigPlaceMap>NLLXX</CscFeature_Vision_ConfigPlaceMap>
<CscFeature_Vision_ConfigPlaceWeather>NLLXX</CscFeature_Vision_ConfigPlaceWeather>
<CscFeature_Vision_ConfigImageSearch>PTRXX</CscFeature_Vision_ConfigImageSearch>
<CscFeature_Vision_ConfigPlace>FSRXX</CscFeature_Vision_ConfigPlace>
<CscFeature_Vision_ConfigPlaceUnit>FETXX</CscFeature_Vision_ConfigPlaceUnit>
<CscFeature_Vision_ConfigShopping>AMZUS</CscFeature_Vision_ConfigShopping>
<CscFeature_Vision_ConfigTextTranslator>GGLXX</CscFeature_Vision_ConfigTextTranslator>
<CscFeature_Vision_ConfigWine>VVNXX</CscFeature_Vision_ConfigWine>

But nothing changed
25th July 2018, 07:26 PM |#6  
OP Senior Member
Thanks Meter: 215
 
Donate to Me
More
Hi, you can replace these files.

But, how are you doing?
22nd September 2018, 10:21 AM |#8  
OP Senior Member
Thanks Meter: 215
 
Donate to Me
More
My pleasure

Envoyé de mon SM-G960F en utilisant Tapatalk
The Following User Says Thank You to Yoanf_26 For This Useful Post: [ View ] Gift Yoanf_26 Ad-Free
20th January 2019, 02:12 AM |#9  
Senior Member
Thanks Meter: 215
 
More
Does this still work on Android Pie?
20th January 2019, 09:18 AM |#10  
OP Senior Member
Thanks Meter: 215
 
Donate to Me
More
Yes. I don't have problem with csc Pie on S9.

Envoyé de mon SM-G960F en utilisant Tapatalk
12th February 2019, 04:47 PM |#11  
Spartacus500's Avatar
Senior Member
Thanks Meter: 87
 
More
Error: Unable to access jarfile D:\Nowy
Please help. Im not open OMC_Decoder.exe, onlu open file .py
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes