Code Monkey home page Code Monkey logo

Comments (8)

shroudedcode avatar shroudedcode commented on June 1, 2024

Thanks for reporting! I have a few solutions for this problem in mind, but I can't test them without the APK file you used. Would you mind sharing it? If it's on Google Play, the name and version of the app is enough. If it's private, you can send it to me via email or Telegram.

from apk-mitm.

jzarca01 avatar jzarca01 commented on June 1, 2024

I got the same error using the latest version of uber Uber_v4.279.10002_apkpure.com.apk

from apk-mitm.

shroudedcode avatar shroudedcode commented on June 1, 2024

@jzarca01 That's odd. I was able to successfully patch that APK using apk-mitm v0.3.0:

$ apk-mitm uber.apk

  ╭ apk-mitm v0.3.0
  ├ apktool v2.4.1 SNAPSHOT@197d46
  ╰ uber-apk-signer v1.1.0
  
  Using temporary directory:
  /tmp/26c10f4763acf921ef5247e68f368c0e

  ✔ Decoding APK file
  ✔ Modifying app manifest
  ✔ Modifying network security config
  ✔ Disabling certificate pinning
  ✔ Encoding patched APK file
  ✔ Signing patched APK file

   Done!  Patched APK: ./uber-patched.apk

Could you make sure you're on the latest version and, in case the error occurs again, send me the logs?

from apk-mitm.

jzarca01 avatar jzarca01 commented on June 1, 2024

you're right using the latest version of Apktool it works fine
i didnt know where to find that version v2.4.1 SNAPSHOT@197d46 so I just built it from sources

from apk-mitm.

shroudedcode avatar shroudedcode commented on June 1, 2024

@jzarca01 You wouldn't have needed to build it yourself as the Apktool version that is logged at the top (currently v2.4.1 SNAPSHOT@197d46 — a version I built myself) is already bundled with the apk-mitm package. Updating apk-mitm would've been enough.

from apk-mitm.

okarakose avatar okarakose commented on June 1, 2024

@shroudedcode My test apk was Akbank Mobile app which you can find in this link :

https://play.google.com/store/apps/details?id=com.akbank.android.apps.akbank_direkt

Some information :

About Apk-Mitm
- apk-mitm : v0.2.2
- apktool : v2.4.1 SNAPSHOT@197d46
- uber-apk-signer : v1.1.0

About Node && Npm
- Node version : 8.12.0
- NPM version : 6.4.1

About Patching Apk
- Akbank mobile version : v4.0.2

from apk-mitm.

shroudedcode avatar shroudedcode commented on June 1, 2024

@okarakose It turns out that APK builds perfectly fine when the legacy version of AAPT is used. apk-mitm uses AAPT2 by default though which seems to cause issues with some APKs. That's why I've decided to have apk-mitm fall back to AAPT when building with AAPT2 fails.

I've just released version 0.4.0 with this feature, so you should be able to patch that APK file now. You can run this command to force npx to download the new version:

npx apk-mitm@^0.4.0 app-release.apk

from apk-mitm.

okarakose avatar okarakose commented on June 1, 2024

@shroudedcode Yes, you are right. It is worked with 0.4.0 version. Thank you

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.