Open indywidualny opened 1 year ago
I'm trying to patch LinkedIn app and encountered an issue.
npm install -g apk-mitm
➜ Downloads npx apk-mitm LinkedIn_\ Jobs\ \&\ Business\ News_4.1.764_Apkpure.apk ╭ apk-mitm v1.2.1 ├ apktool v2.6.1 ╰ uber-apk-signer v1.2.1 Using temporary directory: /private/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/apk-mitm-a17b900d9cf54edf9fd535ecbf80d2d6 ✔ Checking prerequisities ✔ Decoding APK file ✔ Applying patches ❯ Encoding patched APK file ↓ Encoding using AAPT2 [skipped] → Failed, falling back to AAPT... ✖ Encoding using AAPT [fallback] → I: Building resources... Signing patched APK file Failed! An error occurred: I: Using Apktool 2.6.1 I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether resources has changed... I: Building resources... W: <tmp_dir>/decode/AndroidManifest.xml:87: error: No resource identifier found for attribute 'localeConfig' in package 'android' W: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/brut_util_Jar_141172523015651568643086682109045216135.tmp, p, --forced-package-id, 127, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 167200, --version-name, 4.1.764, --no-version-vectors, -F, /var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/APKTOOL211370468071187218.tmp, -e, /var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/APKTOOL17849924494531682442.tmp, -0, arsc, -I, <tmp_dir>/framework/1.apk, -S, <tmp_dir>/decode/res, -M, <tmp_dir>/decode/AndroidManifest.xml] The full logs of all commands are available here: /private/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/apk-mitm-a17b900d9cf54edf9fd535ecbf80d2d6/logs
➜ Downloads npx apk-mitm LinkedIn_\ Jobs\ \&\ Business\ News_4.1.764_Apkpure.xapk ╭ apk-mitm v1.2.1 ├ apktool v2.6.1 ╰ uber-apk-signer v1.2.1 Using temporary directory: /private/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/apk-mitm-7c43086a8922a3029a1446bf3e082945 ✔ Extracting APKs ✔ Finding base APK path ❯ Patching base APK ✔ Checking prerequisities ✔ Decoding APK file ✔ Applying patches ❯ Encoding patched APK file ↓ Encoding using AAPT2 [skipped] → Failed, falling back to AAPT... ✖ Encoding using AAPT [fallback] → I: Building resources... Signing patched APK file Signing APKs Compressing APKs Failed! An error occurred: I: Using Apktool 2.6.1 I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether resources has changed... I: Building resources... W: <tmp_dir>/base-apk/decode/AndroidManifest.xml:87: error: No resource identifier found for attribute 'localeConfig' in package 'android' W: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/brut_util_Jar_54822506423848086663807629124202965140.tmp, p, --forced-package-id, 127, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 167200, --version-name, 4.1.764, --no-version-vectors, -F, /var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/APKTOOL12458581100555168823.tmp, -e, /var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/APKTOOL17042718865628417116.tmp, -0, arsc, -I, <tmp_dir>/framework/1.apk, -S, <tmp_dir>/base-apk/decode/res, -M, <tmp_dir>/base-apk/decode/AndroidManifest.xml] The full logs of all commands are available here: /private/var/folders/xz/2x3z79z17js5hhrn6w5fmgfc0000gn/T/apk-mitm-7c43086a8922a3029a1446bf3e082945/logs
App was downloaded from: https://apkpure.com/pl/linkedin-jobs-business-news/com.linkedin.android/versions
Any ideas?
Try using the --wait flag, going into your temp folder, opening android manifest and removing "android:localeConfig" and its attribute
@ilyesgasmi how to do that? can you explain please
I'm trying to patch LinkedIn app and encountered an issue.
App was downloaded from: https://apkpure.com/pl/linkedin-jobs-business-news/com.linkedin.android/versions
Any ideas?