REAndroid / APKEditor

Powerful android apk editor - aapt/aapt2 independent
Apache License 2.0
645 stars 95 forks source link

Program Crashes while decompiling to xml on Android #75

Closed damylolae closed 8 months ago

damylolae commented 8 months ago

Describe the bug A clear and concise description of what the bug is. I have been using since version 1.1.5 so far it was perfect , updating to 1.3.2 didn't go well. Trying to decompile any APK since 1.3.+ causes the program to crash (Android APK). Since Android 8, restrictions were introduced to block access to hidden API (com Android.org.kxml2.io.KxmlParser) which APK Editor makes use of. I changed the package name which prevents the crashes but gives this result https://github.com/REAndroid/APKEditor/issues/76

To Reproduce Steps to reproduce the behavior:

  1. Used version '1.3.1 and 1.3.2'
  2. Operating system ' Android 12 API 31'
  3. Command 'Main.main(new String[] {"d","-i",paths,"-o",outputdir});'

Log/Stacktrace Dropping screenshot as the mobile IDE (code assist on Playstore)I use doesn't support copy logs as plain text (sorry for the stress :( ) Screenshot_20231002-052359 Screenshot_20231001-234629 Screenshot_20231001-232518

Used apk file Attach/share your apk Crashes for all APK files

Additional context Add any other context about the problem here.

damylolae commented 8 months ago

change the package name (of classes in com.android.org.kxml2.io.) to anything else, to prevent conflict with Android classes prevents the crashes .