Code Monkey home page Code Monkey logo

Comments (2)

shroudedcode avatar shroudedcode commented on May 20, 2024

First of all - Thank you for this amazing tool! It works flawlessly on two apps I already tried.

Thanks! 😄

Would you be able to help here / point me into the right direction (looking into issues in the apk tool library you built this tool on) ?

In case any of these errors are actually the result of a bug, then it would definitely be in Apktool as the only things apk-mitm is concerned with are files that have to do with certificate pinning in some way. But this might also be the fault of the app developer since there's not much Apktool can do when an APK contains files that are invalid in some way.

Regarding your logs: 99% of the problems you run into with Apktool result in a brut.common.BrutException, so you can basically ignore that part, it doesn't hold any meaning. Instead, look at the W: lines before that. You might think they're just warnings, but they often contain the reason a command failed.

From your logs, these are the most relevant lines:

W: ...\decode\res\drawable-nodpi\placeholder.png: error: failed to read PNG signature: file does not start with PNG signature.
W: ...\decode\res\drawable-nodpi\placeholder.png: error: file failed to compile.
W: libpng error: Not a PNG file
W: ERROR: Failure processing PNG image C:\Users\\AppData\Local\Temp\apk-mitm-e0aca39ecedcc4a02dfbff425e785cac\decode\res\drawable-nodpi\placeholder.png
W: ...\decode\res\values\styles.xml:318: error: Resource entry AppTheme already has bag item colorPrimary.
W: ...\decode\res\values\styles.xml:317: Originally defined here.
W: Cant find 9patch chunk in file: "drawable-xhdpi-v4/com_facebook_tooltip_blue_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png". Renaming it to *.png.
...

You can try searching Apktool's issues for these messages, maybe you'll find a way to fix these errors. Note that you can always make manual changes to an APK (preferably with APKLab) get it to re-encode successfully.

from apk-mitm.

shroudedcode avatar shroudedcode commented on May 20, 2024

Closing this because none of the errors seem to be caused by apk-mitm itself.

from apk-mitm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.