Comments (8)
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.
I got the same error using the latest version of uber Uber_v4.279.10002_apkpure.com.apk
from apk-mitm.
@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.
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.
@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.
@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.
@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.
@shroudedcode Yes, you are right. It is worked with 0.4.0 version. Thank you
from apk-mitm.
Related Issues (20)
- Update Apktool HOT 2
- error: No resource identifier found for attribute 'enableOnBackInvokedCallback' in package 'android' HOT 6
- No resource found that matches the given name 'com.google.firebase.crashlytics'. HOT 2
- Is the using of the tool will lead to the absence of certificate pinning of the mobile app.
- Facing error for Uber app
- Any alternative for IOS app and how to bypass USB detection in android apk HOT 1
- apk-mitm installation?
- Allowing specific certificates --certificate broken - manual workaround
- error: unexpected element <uses-native-library> found in <manifest><application>. HOT 2
- Netflix not working HOT 1
- error in ubuntu and termux but not in windows, why? HOT 1
- ClassNotFoundException HOT 1
- "Error: ENOENT: no such file or directory" when opening AndroidManifest.xml HOT 1
- Doesn't work for Flutter and ReactNative
- could not align: could not execute zipalign HOT 2
- Androidmanifest invalid ampersand after patching
- Encoding process failed HOT 5
- Error while encoding APK file with apk-mitm and Apktool HOT 3
- After patching, not all endpoints can be monitored in Charles proxy HOT 1
- error: xml parser error: not well-formed (invalid token). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apk-mitm.