jaredrummler / APKParser

APK parser for Android
Other
637 stars 107 forks source link

Dex class package name is chinese. #10

Open philipphager opened 8 years ago

philipphager commented 8 years ago

First of all, I really like your work on this APKParser!

But when I try to read all the classes from a dex file, and they are all chinese, like 慌摮潲摩猯灵潰瑲愯湮瑯瑡潩⽮敋灥;䰯湡牤楯⽤畳灰牯⽴畣瑳浯慴獢䌯獵.

Do you know what is happening?

philipphager commented 8 years ago

Even though i set the locale, it still spits out all package names in Chinese... any clue?

ApkParser apkParser = ApkParser.create(getPackageManager(), "com.instagram.android");
      apkParser.setPreferredLocale(Locale.US);
      List<DexInfo> dexFiles = apkParser.getDexInfos();
      for (DexInfo dexInfo : dexFiles) {
        DexClass[] dexClasses = dexInfo.classes;
        DexHeader dexHeader = dexInfo.header;
      }
jaredrummler commented 8 years ago

Confirmed. I will look into this when I get more time. You might want to check out apk-parser by caoqianli.

ghost commented 7 years ago

Hello, Did you find a solution for that problem please? I need to get smali files from an apk so i guessed that i can do this using DexClass. Am I right? The problem that i can't even understand DexClass package's name because it is in chinese. Please help me. Thank you in advance for your response.