hsiafan/apk-parser

get wrong appname

Opened this issue · 2 comments

Hi,
when I download apk from url:"http://maimai.cn/dlc?c=Organic&p=maimai.apk".The parser result is "FaceVerification".But the true result is "脉脉".
How can I solve the problem?

I'm pretty sure it's displaying the name the other language on your phone because your phone language is not set to language, The parser is getting the english name for the app.

@LynxKik is right.

try:

 try (ApkFile apkFile = new ApkFile("path/to/apk")) {
    apkFile.setPreferredLocale(Locale.CHINA);
    System.out.println(apkFile.getApkMeta().getName());
}