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

bug: TikTok 25.9.4 patch error #2199

Closed
KrystianQur opened this issue Sep 2, 2022 · 3 comments
Closed

bug: TikTok 25.9.4 patch error #2199

KrystianQur opened this issue Sep 2, 2022 · 3 comments
Labels
Bug report Something isn't working

Comments

@KrystianQur
Copy link

Type

Error while patching

Bug description

I cant patch TikTok (other applications i can)

Steps to reproduce

  1. Download TikTok v25.9.4
  2. Download patches v2.50.3, integrations v0.36.5, cli v2.9.5
  3. Run command java -jar revancedcli.jar -a tiktok.apk -c -o revanced-tiktok.apk -b revancedpatches.jar -m integrations.apk

Relevant log output

INFO: Deleting existing resource cache directory
INFO: Decoding resources
WARNING: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7b060000
WARNING: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7b060000
WARNING: Could not decode attr value, using undecoded value instead: ns=android, name=resource, value=0x6e020000
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
SEVERE: Could not decode file, replacing by FALSE value: o/gq.9.png
INFO: Reading dex files
INFO: Merging integrations.apk
WARNING: Skipping timeline-ads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.twitter.android
WARNING: Skipping premium-icon-reddit: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.reddit.frontpage
WARNING: Skipping general-reddit-ads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.reddit.frontpage
WARNING: Skipping pflotsh-ecmwf-subscription-unlock: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.garzotto.pflotsh.ecmwf_a
WARNING: Skipping minimized-playback-music: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping tasteBuilder-remover: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping hide-get-premium: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
INFO: Skipping compact-header: Not explicitly included
WARNING: Skipping upgrade-button-remover: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping background-play: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping music-microg-support: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping music-video-ads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping codecs-unlock: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping exclusive-audio-playback: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.apps.youtube.music
WARNING: Skipping promo-code-unlock: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with de.dwd.warnapp
WARNING: Skipping swipe-controls: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping downloads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping seekbar-tapping: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping amoled: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping disable-create-button: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hide-cast-button: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping return-youtube-dislike: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hide-autoplay-button: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping premium-heading: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping custom-branding: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping disable-fullscreen-panels: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping old-quality-layout: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hide-shorts-button: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hide-watermark: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping sponsorblock: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping enable-wide-searchbar: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping tablet-mini-player: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping minimized-playback: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping client-spoof: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube, com.vanced.android.youtube
WARNING: Skipping custom-video-buffer: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping always-autorepeat: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping microg-support: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping settings: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
INFO: Skipping enable-debugging: Not explicitly included
WARNING: Skipping custom-playback-speed: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hdr-auto-brightness: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping remember-video-quality: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping video-ads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping general-ads: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
WARNING: Skipping hide-infocard-suggestions: Incompatible with com.zhiliaoapp.musically. This patch is only compatible with com.google.android.youtube
INFO: tiktok-download succeeded
INFO: tiktok-seekbar succeeded
INFO: tiktok-ads succeeded
INFO: Compiling resources
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\animator\a.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\animator\a.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cw.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cw.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cx.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cx.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cy.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cy.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cz.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\cz.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\d0.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\d0.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\d1.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\d1.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\dv.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\dv.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\g8.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\g8.xml: error: file failed to compile.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\g9.xml:2: error: duplicate attribute.
WARNING: C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res\color\g9.xml: error: file failed to compile.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Krystian\AppData\Local\Temp\brut_util_Jar_21636649069467214101600066007714636384.tmp, compile, --dir, C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res, --legacy, -o, C:\Users\Krystian\Desktop\ReVanced\revanced-cache\build\resources.zip]
        at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:372)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:626)
        at app.revanced.patcher.Patcher.save(Patcher.kt:204)
        at app.revanced.cli.patcher.Patcher.start$revanced_cli(Patcher.kt:28)
        at app.revanced.cli.command.MainCommand.run(MainCommand.kt:160)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at app.revanced.cli.main.MainKt.main(Main.kt:7)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Krystian\AppData\Local\Temp\brut_util_Jar_21636649069467214101600066007714636384.tmp, compile, --dir, C:\Users\Krystian\Desktop\ReVanced\revanced-cache\res, --legacy, -o, C:\Users\Krystian\Desktop\ReVanced\revanced-cache\build\resources.zip]
        at brut.util.OS.exec(OS.java:99)
        at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:368)
        ... 13 more

Screenshots or videos

No response

Solution

No response

Additional context

I cant patch TikTok on every version.

@KrystianQur KrystianQur added the Bug report Something isn't working label Sep 2, 2022
@oSumAtrIX
Copy link
Member

Use the option -r.

@ayoubdya
Copy link

ayoubdya commented Sep 2, 2022

@oSumAtrIX @KrystianQur I had the same problem and I used this fix and it worked 👍
java -Xmx1024m -jar revanced-cli-v2.9.5.jar -a tiktok.apk -c -r -o revanced-tiktok.apk -b revanced-patches-v2.50.3.jar -m revanced-integrations-v0.36.5.apk
I think Java needed more memory you can also use -Xmx2048m instead of -Xmx1024m

@CnC-Robert
Copy link
Member

Also you only have to merge integrations for youtube and yt music

@revanced-bot revanced-bot transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@oSumAtrIX oSumAtrIX transferred this issue from another repository Dec 14, 2023
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.175.0-dev.16](ReVanced/revanced-patches@v2.175.0-dev.15...v2.175.0-dev.16) (2023-05-30)

### Bug Fixes

* **spoof-wifi-connection:** use updated instruction indices ([ReVanced#2199](ReVanced/revanced-patches#2199)) ([76fb700](ReVanced/revanced-patches@815f764))
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.175.0](ReVanced/revanced-patches@v2.174.0...v2.175.0) (2023-05-31)

### Bug Fixes

* **settings:** sort setting preferences using lowercase ([ReVanced#2312](ReVanced/revanced-patches#2312)) ([2743a95](ReVanced/revanced-patches@38e433d))
* **spoof-wifi-connection:** use updated instruction indices ([ReVanced#2199](ReVanced/revanced-patches#2199)) ([76fb700](ReVanced/revanced-patches@815f764))
* **youtube/downloads:** rename patch to `external-downloads` ([ReVanced#2274](ReVanced/revanced-patches#2274)) ([4480911](ReVanced/revanced-patches@238f7f2))
* **youtube/hide-info-cards:** fix hide-info-cards setting does not work ([ReVanced#2246](ReVanced/revanced-patches#2246)) ([72773ac](ReVanced/revanced-patches@5163022))
* **youtube/hide-player-buttons:** fix previous/next button showing if previous video exists ([ReVanced#2261](ReVanced/revanced-patches#2261)) ([91d1aab](ReVanced/revanced-patches@258c550))
* **youtube/hide-shorts-components:** clarify settings switch ([ReVanced#2276](ReVanced/revanced-patches#2276)) ([3e6d052](ReVanced/revanced-patches@8caa103))
* **youtube/integrations:** fix playback of embedded videos ([ReVanced#2304](ReVanced/revanced-patches#2304)) ([1dffbaf](ReVanced/revanced-patches@ec8c4e2))
* **youtube/remember-video-quality:** fix typo in video resolutions ([ReVanced#2323](ReVanced/revanced-patches#2323)) ([a99cef8](ReVanced/revanced-patches@8d58d48))
* **youtube/remove-player-controls-background:** use correct patch name and description ([8732a84](ReVanced/revanced-patches@a8ca870))
* **youtube/theme:** use dynamic background color for custom splash screen ([ReVanced#2319](ReVanced/revanced-patches#2319)) ([28594f3](ReVanced/revanced-patches@4552fe7))

### Features

* **nfctoolsse:** add `unlock-pro` patch ([ReVanced#2272](ReVanced/revanced-patches#2272)) ([9789ad3](ReVanced/revanced-patches@a107e1e))
* **remove-screen-capture-restriction:** remove app constraint ([ReVanced#2260](ReVanced/revanced-patches#2260)) ([49ce47c](ReVanced/revanced-patches@ee1d7fb))
* **scbeasy:** add `remove-debugging-detection` patch ([ReVanced#2287](ReVanced/revanced-patches#2287)) ([53d91e3](ReVanced/revanced-patches@1fc06ff))
* **tiktok:** remove compatibility version constraints ([ReVanced#2306](ReVanced/revanced-patches#2306)) ([a12c4bb](ReVanced/revanced-patches@86a4867))
* **youtube/general-ads:** merge `hide-get-premium` patch into `general-ads` patch ([5195dd8](ReVanced/revanced-patches@2a88347))
* **youtube/hide-seekbar:** more fine grained hiding of seekbar ([ReVanced#2252](ReVanced/revanced-patches#2252)) ([0f07bf4](ReVanced/revanced-patches@5d39f64))
* **youtube/hide-shorts-components:** hide channel bar & sound button ([749c83d](ReVanced/revanced-patches@7ef8526))
* **youtube/hide-shorts-components:** hide shorts info panel ([ReVanced#2278](ReVanced/revanced-patches#2278)) ([a5b323d](ReVanced/revanced-patches@dc28b9a))
* **youtube/navigation-buttons:** use a better preference screen title ([5d7772b](ReVanced/revanced-patches@ecc70ad))
tamnguyenchi93 pushed a commit to tamnguyenchi93/revanced-patches that referenced this issue Mar 24, 2024
# [2.175.0-dev.16](ReVanced/revanced-patches@v2.175.0-dev.15...v2.175.0-dev.16) (2023-05-30)

### Bug Fixes

* **spoof-wifi-connection:** use updated instruction indices ([ReVanced#2199](ReVanced/revanced-patches#2199)) ([76fb700](ReVanced/revanced-patches@76fb700))
tamnguyenchi93 pushed a commit to tamnguyenchi93/revanced-patches that referenced this issue Mar 24, 2024
# [2.175.0](ReVanced/revanced-patches@v2.174.0...v2.175.0) (2023-05-31)

### Bug Fixes

* **settings:** sort setting preferences using lowercase ([ReVanced#2312](ReVanced/revanced-patches#2312)) ([2743a95](ReVanced/revanced-patches@2743a95))
* **spoof-wifi-connection:** use updated instruction indices ([ReVanced#2199](ReVanced/revanced-patches#2199)) ([76fb700](ReVanced/revanced-patches@76fb700))
* **youtube/downloads:** rename patch to `external-downloads` ([ReVanced#2274](ReVanced/revanced-patches#2274)) ([4480911](ReVanced/revanced-patches@4480911))
* **youtube/hide-info-cards:** fix hide-info-cards setting does not work ([ReVanced#2246](ReVanced/revanced-patches#2246)) ([72773ac](ReVanced/revanced-patches@72773ac))
* **youtube/hide-player-buttons:** fix previous/next button showing if previous video exists ([ReVanced#2261](ReVanced/revanced-patches#2261)) ([91d1aab](ReVanced/revanced-patches@91d1aab))
* **youtube/hide-shorts-components:** clarify settings switch ([ReVanced#2276](ReVanced/revanced-patches#2276)) ([3e6d052](ReVanced/revanced-patches@3e6d052))
* **youtube/integrations:** fix playback of embedded videos ([ReVanced#2304](ReVanced/revanced-patches#2304)) ([1dffbaf](ReVanced/revanced-patches@1dffbaf))
* **youtube/remember-video-quality:** fix typo in video resolutions ([ReVanced#2323](ReVanced/revanced-patches#2323)) ([a99cef8](ReVanced/revanced-patches@a99cef8))
* **youtube/remove-player-controls-background:** use correct patch name and description ([8732a84](ReVanced/revanced-patches@8732a84))
* **youtube/theme:** use dynamic background color for custom splash screen ([ReVanced#2319](ReVanced/revanced-patches#2319)) ([28594f3](ReVanced/revanced-patches@28594f3))

### Features

* **nfctoolsse:** add `unlock-pro` patch ([ReVanced#2272](ReVanced/revanced-patches#2272)) ([9789ad3](ReVanced/revanced-patches@9789ad3))
* **remove-screen-capture-restriction:** remove app constraint ([ReVanced#2260](ReVanced/revanced-patches#2260)) ([49ce47c](ReVanced/revanced-patches@49ce47c))
* **scbeasy:** add `remove-debugging-detection` patch ([ReVanced#2287](ReVanced/revanced-patches#2287)) ([53d91e3](ReVanced/revanced-patches@53d91e3))
* **tiktok:** remove compatibility version constraints ([ReVanced#2306](ReVanced/revanced-patches#2306)) ([a12c4bb](ReVanced/revanced-patches@a12c4bb))
* **youtube/general-ads:** merge `hide-get-premium` patch into `general-ads` patch ([5195dd8](ReVanced/revanced-patches@5195dd8))
* **youtube/hide-seekbar:** more fine grained hiding of seekbar ([ReVanced#2252](ReVanced/revanced-patches#2252)) ([0f07bf4](ReVanced/revanced-patches@0f07bf4))
* **youtube/hide-shorts-components:** hide channel bar & sound button ([749c83d](ReVanced/revanced-patches@749c83d))
* **youtube/hide-shorts-components:** hide shorts info panel ([ReVanced#2278](ReVanced/revanced-patches#2278)) ([a5b323d](ReVanced/revanced-patches@a5b323d))
* **youtube/navigation-buttons:** use a better preference screen title ([5d7772b](ReVanced/revanced-patches@5d7772b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants