R
R
Rozello2018-10-19 14:03:37
reverse engineering
Rozello, 2018-10-19 14:03:37

Is there such a Kotlin Decompiler?

Actually there is a JAR file that needs to be decompiled, it is known that it is written in Kotlin.
Decompiling to Java with decompilers like CFR allows you to get code that can be used to partially understand the structure of the program, but no more.
And I want to get the source code that can be corrected, compiled and used in the future.
Are there specialized Kotlin decompilers? And where to get them?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav Kadun, 2018-10-28
@ZXZs

I'm not sure exactly, but it seems like jar files are archives that you can open and pull files out of them.

V
Viktor Golovanenko, 2020-04-10
@drygdryg

If you want to get the sources, then use the Java decompilers: FernFlower, CFR, etc. As far as I know, at the moment there are no decompilers that produce code in Kotlin.

D
Danil Shekhovtsov, 2020-08-19
@Danil6969

You just get the functionally equivalent Java code. Exactly the same with .NET languages ​​that decompile to C# (even the dotPeek description says that only C# output is supported, regardless of the source language). Machine languages ​​are decompiled to C. All this has to do with the destruction and expansion of syntactic sugar during compilation of a non-standard language like Kotlin, F# and the like. Machine codes generally become procedural after compilation, no matter what the paradigm is at the beginning, respectively, the C code is also procedural.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question