Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't patch the app #93

Open
sevimlikedicik opened this issue Feb 24, 2022 · 4 comments
Open

Can't patch the app #93

sevimlikedicik opened this issue Feb 24, 2022 · 4 comments

Comments

@sevimlikedicik
Copy link

I was able to patch previous apks of this app but latest version caused this error for me:

(base) murad@murad-HVY-WXX9:~/Downloads$ apk-mitm com.deliveroo.driverapp.22653.apk 

  ╭ apk-mitm v1.2.0
  ├ apktool v2.6.0
  ╰ uber-apk-signer v1.2.1
  
  Using temporary directory:
  /tmp/apk-mitm-e9db742b0739046637bb25c4a84738f3

  ✔ 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.0
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 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: invalid resource directory name: <tmp_dir>/decode/res navigation
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_124675231844353432457461036289540206023.tmp, p, --forced-package-id, 127, --min-sdk-version, 23, --target-sdk-version, 30, --version-code, 22653, --version-name, 22.02.09_22653, --no-version-vectors, -F, /tmp/APKTOOL2235762449803605412.tmp, -e, /tmp/APKTOOL9931290549659700609.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:
  /tmp/apk-mitm-e9db742b0739046637bb25c4a84738f3/logs
@Gholbigrinn
Copy link

I have the same problem, is there any solution?

@loviuz
Copy link

loviuz commented Jun 19, 2022

@PratikBodawala
Copy link

I had the same problem, I provided --wait flag in the argument and in waiting state, I have removed android:localeConfig="@xml/locales_config" from AndroidManifest.xml file. and it worked.

@tibonvill
Copy link

specify a path newer version of apktool.jar with the --apktool flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants