APKParser
APKParser copied to clipboard
Question: is it possible to inspect code of APK using this library?
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", "")
}
}