I want to monitor the https traffic of an Android app downloaded from google play.
This app can only be run at Android N and above.
So I use Charles proxy and follow this document to modify the apk file.
Here's what I have done:
Download the app from google play.
Use apk extractor to get the apk file of the app.
Run
apktool d the_app.apk
to extract the apk file.
Modify
res/xml/network_security_config.xml
andAndroidManifest.xml
based on the description of Charles Proxy document.
Run
apktool b the_app
to package the files back to an apk file.
Install the apk on my Android phone, whose version is 8.
My phone says "App not installed".
Why can't I install the modified apk on my phone?
I've disabled Google Play Protect on my phone.
The apktool
is installed by following the description here.
Is there anything I missed?