ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.35k stars 271 forks source link

Tiktok patch failed #3688

Closed xhealme closed 3 weeks ago

xhealme commented 3 weeks ago

Bug description

Tiktok 36.5.4 can't be patched. Tried a few apks, all produced same results.

After compiling 22nd dex I think, revanced would just prompt a failed message.

Error logs

- Device Info
ReVanced Manager: 1.22.0
Model: SM-F731B
Android version: 14
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: No

- Patch Info
App: com.zhiliaoapp.musically v36.5.4 (Suggested: 36.5.4)
Patches version: v4.15.0
Patches added: SIM spoof
Patches removed: Disable login requirement, Fix Google login
Default patch options changed: None

- Settings
Allow changing patch selection: true
Version compatibility check: true
Show universal patches: false
Patches source: revanced/revanced-patches
Integration source: revanced/revanced-integrations

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Executing patches
Applied 7 patches
Compiling patched dex files
Compiled 22 dex files
An error occurred:
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 4935488 free bytes and 4819KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
    at com.android.tools.smali.dexlib2.dexbacked.util.ParameterIterator.next(SourceFile:0)
    at com.android.tools.smali.dexlib2.dexbacked.util.ParameterIterator.next(SourceFile:0)
    at com.android.tools.smali.dexlib2.writer.pool.ClassPool.internDebug(Unknown Source:14)
    at com.android.tools.smali.dexlib2.writer.pool.ClassPool.intern(Unknown Source:222)
    at com.android.tools.smali.dexlib2.writer.pool.DexPool.internClass(Unknown Source:4)
    at lanchon.multidexlib2.DexIO.writeMultiDexDirectoryCommon(Unknown Source:27)
    at lanchon.multidexlib2.DexIO.access$000(Unknown Source:0)
    at lanchon.multidexlib2.DexIO$1.call(SourceFile:0)
    at lanchon.multidexlib2.DexIO$1.call(SourceFile:0)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
Something went wrong:
PathNotFoundException: Cannot copy file to '/data/user/0/app.revanced.manager.flutter/files/lastPatchedApp.apk', path = '/data/user/0/app.revanced.manager.flutter/files/patcher/tmp-DILHGD/out.apk' (OS Error: No such file or directory, errno = 2)

Solution

No response

Additional context

No response

Acknowledgements

LisoUseInAIKyrios commented 3 weeks ago

https://github.com/ReVanced/revanced-patches/issues/3684