APKParser icon indicating copy to clipboard operation
APKParser copied to clipboard

Question: is it possible to inspect code of APK using this library?

Open AndroidDeveloperLB opened this issue 3 years ago • 0 comments

For example like this website:

http://www.javadecompilers.com/

I tried to use the library to get to the dex files, hoping it's the classes, but I got Chinese/Japanese strings:

        thread{
            val appInfo = packageManager.getApplicationInfo("com.whatsapp", 0)
            val apkParser = ApkParser.create(appInfo)
            val dexFiles = apkParser.dexInfos
            for (dexInfo in dexFiles) {
                val dexClasses: Array<DexClass> = dexInfo.classes
                val dexHeader: DexHeader = dexInfo.header
                Log.d("AppLog", "")
            }
        }

image

DeobfuscationSample.zip

AndroidDeveloperLB avatar Jan 09 '21 12:01 AndroidDeveloperLB