How this is done in practice. And where to start ...(instruction :)
In short, it looks like this:
Vvs1961mobile @ 8.12.18, 10:32
this is Excel, and it has 64 gamma values ​​from 0 to 1, in the library it is doubles, double = 8 bytes. Wikipedia The gamma block is 512 bytes. 512/8 = 64. Therefore, we take HexWorkshop, climb into the library, take out the Google numbers, insert them into Excel, see the curve. We rule by the eye;), we put it back ... I explained it in a patsan way ... And according to the clever one, in this block there are coefficients, for multiplying the pixel values ​​in par when converting to jpg. That is why the picture depends on this scale. DCRaw, RawTherapee, RawDigger, RawViewer .....
... and now, step by step:
1. It is necessary to extract the gamma from apk. I do it in
APK Editorusually this version
APK Editor Pro_1.8.20.apk(6.99 MB)
Selecting the desired apk, select from the menu:
Replacing files.Select "FILES". And in them, select the folder "lib"
Open this folder and find: libgcam.so
Click on the icon with a floppy disk and save lib in the folder in which it is convenient.
* On a computer, you can simply WinRar type archiver, immediately from apk, extract the lib directly into the computer.Further, we will need Exel, Hex Workshop Professional (which can be downloaded on most torrents) and a bookmark, which will translate the values ​​into figures that are clear to Excel.
Open on the computer
Hex workshop close as unnecessary window
Structures and in the window
Compare Results click on the bottom right of the tab
Bookmarks
and we get three windows like this:
in them all the magic will happen)
Now, take the previously extracted Libu and through the conductor or so, drag it into the upper left window.
After loading, instead of a blank field, codes will appear in the window.
To translate these codes into numbers that are clear to Excel, in the lower window, open the bookmark
libgcam5.1.018.rar(54.67 KB)
for Gcam5.1 or
6.1.021.zip(449 bytes)
for Gcam6.1
The green square represents the tone graph. Blue, the gamma plot, which has 64 values.
Open the template in Excel
Gammas 5.1-template-Gmm15.rar(34.23 KB)
where the first column is a chart of the stock Google range, and the second, for example, the gmm15 scale
and a few empty bars where you can model your scales. Immediately comparing them with other graphs that interest you.
Further, everything is quite simple.
The resulting values ​​of your new gamma in Excel, copy / paste, transfer to Bookmark and click on top save or save as ... so that your new schedule is saved in Libe.
There is one more version of the bookmark, where besides the tone and the range itself, other values ​​are visible and can be changed:
libgcam5.1.018 (2) .rar(68.68 KB)
But, since their meaning to me today is not known, so as not to accidentally mess up, I prefer to use the first version.
Also, if someone has a desire to tinker with the gamma for Gcam3.2.045, then here is a bookmark on her lib
libgcam3.2 (2) _1.rar(54.67 KB)
And now, the final stage:
We return to the mod and make a cloneMove the lib in smart and open there APK Editor.
In the menu, choose which mode we want to install the new lib in
Next, choose again
Replacing files .
Open the folder
arm64-v8ain folder
liband find there the file libgcam.so (in Gcam6.1, it goes like libgcam_jni.so)
In mods, where there are several gamuts (lib), they are either signed as lib01, lib02, and stand in the same sequence as in the settings menu, or else like that ... But, for reference, under each gib, usually is her garter in the form of
libgcam_swig_jni.soTherefore, it will not be difficult to find the replacement you need to replace.
Now, near the selected one, click the icon
to change.
And we point the way to your altered lib.
If you need someone, then at this stage you can immediately replace the icon.
After replacements made, click
Save and we get pseudoclone, which is located at the address as in the screenshot.
Pseudo - because it is already modified apk, but also with the same package name as the original. So, during the installation, it will not be as close as a clone, but will wipe the original with itself or knock out an error.
To make it a full-fledged clone, go to the ApkEditor / tmp folder in Apacaeditor. Rename it, for example, by adding at the end 0
And choose
General editing In line
Application Name You can write what you want. This is the name that will appear on your desktop.
And so that this clone does not overlap other applications, we will definitely change
Package Name !
There, it is quite enough to add or change a couple of letters.
... and click
SAVE And after saving, you can now install it.
The file itself is a new clone in the same folder
tmp.
from where you can transfer it to a convenient storage location, as well as rename the file itself so as not to confuse it with other clones.
*******************************************************
* Gamma tuned and giving the desired result on one device, as a rule, will give exactly the same result on other devices.
The main thing is that the library in which it is located, after the change, is placed in the appropriate version of Gcam.
Those. if gamma sawed under Gcam5.1, then it will only work on Gcam5.1
The same applies to other versions of Gcam. It doesn't matter whether it is Gcam3.2 or it is Gcam6.1