APKEditor
APKEditor copied to clipboard
How can I repackage after renaming the class
When I rename the class and package it, it prompts that I cannot find the Application class
val apk = ApkModule.loadApkFile(logger, inFile)
val directory = DexDirectory.fromZip(apk.zipEntryMap)
directory.rename(TypeKey.parse("xxx"), TypeKey.parse("xxxxx))
val builder = ApkBuilder(apk, directory)
builder.apply()
directory.refresh()
directory.shrink()
directory.merge()
directory.refreshFull()
directory.save()
apk.writeApk(outFile)