Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend Disable ApkTool Decompile #162

Open
IDXGI opened this issue May 29, 2024 · 0 comments
Open

Recommend Disable ApkTool Decompile #162

IDXGI opened this issue May 29, 2024 · 0 comments

Comments

@IDXGI
Copy link

IDXGI commented May 29, 2024

For simple network settings fix, such as change the xml config file, there's no need to enable ApkTool decompile, bucause it will CAUSE compatibility issue, like this:

I: Baksmaling assets/39285EFA.dex...
Exception in thread "main" com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile$NotADexFile: Not a valid dex magic value: cf 77 4c c7 9b 21 01 cd
at com.android.tools.smali.dexlib2.util.DexUtil.verifyDexHeader(DexUtil.java:92)
at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile.getVersion(DexBackedDexFile.java:172)
at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile.(DexBackedDexFile.java:96)

Then I added the ApkTool parameter '-s' to disable decompile source code, it runs smoothly:

I: Using Apktool 2.9.3 on src0.apk
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\a2441\AppData\Local\apktool\framework\1.apk
I: Decoding values / XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying raw classes.dex file...
I: Copying raw classes2.dex file...
I: Copying raw assets/39285EFA.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
Press any key to continue . . .

If there's no any other change to force decompile, we should disable it.
Hope my issue will help some people, save some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant