[FREE] APKInfo v2 - Get information from an APK file


(Yusuf Cihan) #1

Hello everyone,

This is my first extension and made with Kodular IDE. And thanks to Kodular for their IDE very much! It was a great experience to work with Kodular IDE.


About

This extension allows getting some information from an APK file (this can be every apk file) without installing to device.

Blocks

Notes

  • preferNames value
    If you set true for preferNames, you will get these values:

    • auto
    • internalOnly
    • preferExternal

    If you set false for preferNames, you will get constant values according to Android Developer Docs:

    • 0 (= auto)
    • 1 (= internalOnly)
    • 2 (= preferExternal)
  • About Version block
    Version block will return CSV value:
    16,A1.4

    • “16” is Version Code.
    • “A1.4” is Version Name.

    You need to use “list from CSV text” block to parse result.

Exception/Errors

All code is using try, catch, so you won’t get any errors from the app. All of the blocks will return an empty string if there is an error, such as wrong file etc.

Download

com.yusufcihan.apkinfo.aix (10.5 KB)


(Nathan) #2

I have another competitor on the block :joy: Nice extension friend!


(Shreyash) #3

Great start @yusufcihan!
Keep it up. :+1:


(Yusuf Cihan) #4

Update v2

Now you don’t need apkPath value for every block. I added File property for that.

So these blocks don’t need apkPath value anymore.
image

New Block!

This method can export APK icon from APK as PNG format. You need to have permission to write storage.

I tried this block for one of my apps’ apk file, and I got 294x294 app icon.


I updated first post, you can download it from there.