Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

[Bug] Patched app (messenger) on Android 13/12 crashes on startup with VerifyError #216

Open
1 task done
Mino260806 opened this issue Jul 4, 2023 · 3 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Mino260806
Copy link

Mino260806 commented Jul 4, 2023

Steps to reproduce/复现步骤

  1. Download messenger v415 apk (see Apk File section)
  2. Patch it without embedding any module with
java -jar lspatch.jar "messenger415.apk"
  1. Install and open it

Expected behaviour/预期行为

Messenger should run normally as if not patched

Actual behaviour/实际行为

Messenger crashes

Xposed Module List/Xposed 模块列表

N/A

LSPatch version/LSPatch 版本

0.5.1 (360)

Android version/Android 版本

13 & 12

Shizuku version/Shizuku 版本

N/A

Version requirement/版本要求

  • I am using latest debug CI version of LSPatch and enable verbose log/我正在使用最新 CI 调试版本且启用详细日志

Apk file/Apk 文件

Messenger V415

Logs/日志

Patching Log ``` Processing C:\Users\dmezg\Desktop\AndroidFun\projects\orca\lspatch\..\messenger416.apk -> C:\Users\dmezg\Desktop\AndroidFun\projects\orca\lspatch\.\dist\messenger416-none.apk\messenger416-360-lspatched.apk apk path: C:\Users\dmezg\Desktop\AndroidFun\projects\orca\lspatch\..\messenger416.apk Parsing original apk... Register apk signer with default keystore... Original signature 30820268308201d102044a9c4610300d06092a864886f70d0101040500307a310b3009060355040613025553310b3009060355040813024341311230100603550407130950616c6f20416c746f31183016060355040a130f46616365626f6f6b204d6f62696c653111300f060355040b130846616365626f6f6b311d301b0603550403131446616365626f6f6b20436f72706f726174696f6e3020170d3039303833313231353231365a180f32303530303932353231353231365a307a310b3009060355040613025553310b3009060355040813024341311230100603550407130950616c6f20416c746f31183016060355040a130f46616365626f6f6b204d6f62696c653111300f060355040b130846616365626f6f6b311d301b0603550403131446616365626f6f6b20436f72706f726174696f6e30819f300d06092a864886f70d010101050003818d0030818902818100c207d51df8eb8c97d93ba0c8c1002c928fab00dc1b42fca5e66e99cc3023ed2d214d822bc59e8e35ddcf5f44c7ae8ade50d7e0c434f500e6c131f4a2834f987fc46406115de2018ebbb0d5a3c261bd97581ccfef76afc7135a6d59e8855ecd7eacc8f8737e794c60a761c536b72b11fac8e603f5da1a2d54aa103b8a13c0dbc10203010001300d06092a864886f70d0101040500038181005ee9be8bcbb250648d3b741290a82a1c9dc2e76a0af2f2228f1d9f9c4007529c446a70175c5a900d5141812866db46be6559e2141616483998211f4a673149fb2232a10d247663b26a9031e15f84bc1c74d141ff98a02d76f85b2c8ab2571b6469b232d8e768a7f7ca04f7abe4a775615916c07940656b58717457b42bd928a2 original appComponentFactory class: com.facebook.common.zapp_component_factory.m4a.M4aAppComponentFactory Patching apk... Adding config... Adding metaloader dex... Adding loader dex... Adding native lib... added assets/lspatch/so/x86_64/liblspatch.so added assets/lspatch/so/x86/liblspatch.so added assets/lspatch/so/armeabi-v7a/liblspatch.so added assets/lspatch/so/arm64-v8a/liblspatch.so Embedding modules... Creating nested apk link... Writing apk... Done. Output APK: C:\Users\dmezg\Desktop\AndroidFun\projects\orca\lspatch\.\dist\messenger416-none.apk\messenger416-360-lspatched.apk ```
VerifyError that causes crash 07-04 16:49:19.196 I/LSPosed-Bridge(11170): Crash unexpectedly: java.lang.VerifyError: Verifier rejected class X.18c: X.3EH X.18c.A06(java.io.OutputStream) failed to verify: X.3EH X.18c.A06(java.io.OutputStream): [0x1D] cannot access instance field X.18o X.3EI.A01 from object of type Unresolved Reference: X.3EH (declaration of 'X.18c' appears in /data/user/0/com.facebook.orca/cache/lspatch/origin/2570655576.apk!classes2.dex)

Full device log after crash
logs-2023-07-04-16-50-00.zip

@Mino260806 Mino260806 added the bug Something isn't working label Jul 4, 2023
@Mino260806 Mino260806 changed the title [Bug] Patching app on Android 13 causes VerifyError [Bug] Running patched app (messenger) on Android 13/12 causes VerifyError Jul 8, 2023
@Mino260806 Mino260806 changed the title [Bug] Running patched app (messenger) on Android 13/12 causes VerifyError [Bug] Patched app (messenger) on Android 13/12 crashes on startup with VerifyError Jul 8, 2023
@master12346
Copy link

Please, fix it.

@MuhammadBayiz
Copy link

Up vote

@MuhammadBayiz
Copy link

Crash log

type: crash
osVersion: Xiaomi/davinci/davinci:11/RKQ1.200826.002/V12.1.4.0.RFJMIXM:user/release-keys
package: com.facebook.orca:313203012
process: com.facebook.orca
processUptime: 1948 + 232 ms

java.lang.VerifyError: Verifier rejected class X.1BP: X.1Ct X.1BP.AIf() failed to verify: X.1Ct X.1BP.AIf(): [0x1B] copyRes1 v5<- result0 type=Conflict (declaration of 'X.1BP' appears in /data/user/0/com.facebook.orca/cache/lspatch/origin/674047538.apk!classes2.dex)
	at Z.init(1689064887990-836ba15b-0ec8-4ff4-d0f7-77484df132bb)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants