[Android Software Development] Yoanf_26:
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 fei-ke@XDA 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:​

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

sudo apt-get install python3

Extract the OMCDecoderEncoder.zip file to the root of your hard drive on Windows or to your personnal folder on Linux.

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

python3 OMC_Decoder-Encoder.py

and you come to the next screen.

​

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

​

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:

Put your file(s) in the "_In" folder.

In OMC_Decoder_Encoder choose 1 to decode or 2 to encode and validate.

If there were no problems, your file(s) will be found in the "_Out" folder.

It's finish.

You have several OMC to decode or encode:

Put the OMC folders in the "_InOMC" folder.

In OMC_Decoder_Encoder choose 3 to decode by batch or 4 to batch encode and validate.

Wait while you work. The duration is variable depending on the number of OMC and the working power of your PC.

Once finished, you will find your different csc_feature.xml and csc_featurenetwork.xml files in the "_OutOMC" folder.

Group your OMC folder in "_OutOMC" in "_InOMC" in order to have your OMC folder complete.

It's finished.

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

[YOUTUBE]http://www.youtube.com/watch?v=x_G3SbckbPE[/YOUTUBE]​

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.

​