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

[BUG] The coding of Chinese characters in decompilation and decompilation. #3033

Closed
SONGjiemo opened this issue Mar 20, 2023 · 5 comments
Closed

Comments

@SONGjiemo
Copy link

SONGjiemo commented Mar 20, 2023

Information

  1. Apktool Version (apktool -version): 2.7.0
  2. Operating System (Mac, Linux, Windows): win11 22h2
  3. Visual Studio Code apklab

Steps to Reproduce

The problem with decompiling APK.
Download size: 0.00 MB
Downloaded Infinity%
Download size: 0.00 MB
Downloaded Infinity%

Decoding 当贝桌面4.0.0 去广告版v2.apk into c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21

java -jar C:\Users\SONG.apklab\apktool_2.7.0.jar d c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v2.apk -o c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21 --only-main-classes
I: Using Apktool 2.7.0 on ��������4.0.0 ȥ����v2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\SONG\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Decoding process was successful

Initializing c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21 as Git repository

cd /d "c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21" && git init && git config core.safecrlf false && git add -A && git commit -q -m "Initial APKLab project"
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Initializing Git process exited with code 1
image

After recompiling, there is a failure.

Rebuilding 当贝桌面4.0.0 去广告版v2.apk into 当贝桌面4.0.0 去广告版v21\dist

java -jar C:\Users\SONG.apklab\apktool_2.7.0.jar b c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21 --use-aapt2
I: Using Apktool 2.7.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
W: c:\Users\SONG\Downloads\当贝桌面4.0.0 去广告版v21\res: error: failed to open directory: 系统找不到指定的文件�? (2).
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\SONG\AppData\Local\Temp\brut_util_Jar_172791153815051393034569223542023765311.tmp, compile, --dir, c:\Users\SONG\Downloads\��������4.0.0 ȥ����v21\res, --legacy, -o, c:\Users\SONG\Downloads\��������4.0.0 ȥ����v21\build\resources.zip]
Rebuilding process exited with code 1
image

@iBotPeaches
Copy link
Owner

Have a chance to test a non-windows machine? Curious if this is isolated to charsets on Windows.

@SONGjiemo
Copy link
Author

有机会测试非窗户机器吗?好奇这是否与Windows上的字符集隔离。

Have a chance to test a non-windows machine? Curious if this is isolated to charsets on Windows.

Sorry, I only have win system.
Hopefully I can test what the problem is, but I don't think it's an isolated character set.

@iBotPeaches
Copy link
Owner

Okay thanks. I don't have access to Windows machine for a few weeks or month, so I'll have this sit for a bit.

@Anonymous2716
Copy link

@SONGjiemo you can test in Windows Subsystem for Linux (WSL) I think.

@iBotPeaches
Copy link
Owner

Going to close for this issue - #1460

It discusses character mapping on Windows.

@iBotPeaches iBotPeaches closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2023
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

3 participants