androidapkapi-key

How to find API key of an apk. file?


I have an .apk file and I want to find the API key of it in UUID format. Because I don't know, where can it be stored, I am asking here.

I tried to decompile it and then find it in AndroidManifest.xml, but it wasn't there. The .apk is programmed in Kotlin, so I tried to convert it to Java, but it didn't also tell me anything.

Where can someone place an API key in .apk file when he tries to hide it?


Solution

  • Finally, I solved this task using grep:

    grep -a -E '\b[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\b' .
    

    -a is for searching in binary files so I did not have to decompile the apk file using apktool or something else.