ReVanced / revanced-manager

💊 Application to use ReVanced on Android
https://revanced.app
GNU General Public License v3.0
18.21k stars 748 forks source link

"Aborted" #988

Closed Baphomeem closed 1 year ago

Baphomeem commented 1 year ago

Type

Error while running the manager

Bug description

this error appears whenever I try to patch the YouTube app

Steps to reproduce

1-Download Revanced Manager. 2- Download the YouTube App from APKPure. 3-Patch Youtube

Android version

13

Manager version

1.3.8

Target package name

Com.google.android.youtube

Target package version.

18.19.35

Installation type

Non-root

Patches selected.

Screenshot_20230701-144146 Screenshot_20230701-144140

Device logs (exported using Manager settings).

Initializing installer
Creating working directory
Copying original apk
Unpacking input apk
Reading dex files
Decoding AndroidManifest.xml only, because resources are not needed
Merging integrations
Deleting existing resource cache directory
Decoding resources
Executing patches
Applied always-autorepeat
Applied client-spoof
Applied comments
Applied copy-video-url
Applied custom-branding
Applied disable-auto-captions
Applied disable-fullscreen-panels
Applied disable-player-popup-panels
Applied disable-shorts-on-startup
Applied disable-zoom-haptics
Applied enable-debugging
Applied external-downloads
Applied hdr-auto-brightness
Applied hide-ads
Applied hide-album-cards
Applied hide-autoplay-button
Applied hide-breaking-news-shelf
Applied hide-captions-button
Applied hide-cast-button
Applied hide-crowdfunding-box
Applied hide-email-address
Applied hide-endscreen-cards
Applied hide-filter-bar
Applied hide-floating-microphone-button
Applied hide-info-cards
Applied hide-layout-components
Applied hide-load-more-button
Applied hide-player-buttons
Applied hide-player-overlay
Applied hide-seekbar
Applied hide-shorts-components
Applied hide-timestamp
Applied hide-video-action-buttons
Applied hide-watch-in-vr
Applied hide-watermark
Applied minimized-playback
Applied navigation-buttons
Applied old-quality-layout
Applied open-links-externally
Failed to apply premium-heading: The file /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/res/drawable-xxxhdpi/yt_premium_wordmark_header_light.png does not exist in the resources. Therefore, this patch can not succeed.
Applied remember-video-quality
Applied return-youtube-dislike
Applied seekbar-tapping
Applied sponsorblock
Applied spoof-app-version
Applied swipe-controls
Applied tablet-mini-player
Applied theme
Applied vanced-microg-support
Applied video-ads
Applied video-speed
Applied wide-searchbar
Repacking patched apk
Compiling resources
An error occurred! Aborted
Error:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KjQ9PujtY9-ykGB_V8ZLvQ==/app.revanced.manager.flutter-mcoEj6IZRbdOWdD0-berAQ==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/aapt_temp_file, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 1537727936, --version-name, 18.19.35, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL4801743045281267527.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/build/resources.zip]
    at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:484)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:619)
    at app.revanced.patcher.Patcher.save(Patcher.kt:128)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda-20(MainActivity.kt:217)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$Rd-IpIH_jmxD15EWmBEFM-jtGsk(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda13.run(Unknown Source:24)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KjQ9PujtY9-ykGB_V8ZLvQ==/app.revanced.manager.flutter-mcoEj6IZRbdOWdD0-berAQ==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/aapt_temp_file, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 1537727936, --version-name, 18.19.35, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL4801743045281267527.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-HEMQMF/cache/build/resources.zip]
    at brut.util.OS.exec(OS.java:99)
    at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:480)
    ... 6 more

Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].

No response

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

TheAabedKhan commented 1 year ago

Can you also attach a screenshot of the About section located in the Settings page?

Gfreak412 commented 1 year ago

I am facing the same problem with my Samsung Galaxy Tab A 2019

kenethc commented 1 year ago

logcat.txt I am facing the same issue when 'Decoding Resources'.

LisoUseInAIKyrios commented 1 year ago

Clear the app data for manager, and see if that fixes it.

But before doing this, export your keystore from manager. Then after wiping app data, relaunch manager and import the keystore. You can skip this if you don't have any existing patched apps or you are ok with deleting the existing patched apps before repatching.

Gfreak412 commented 1 year ago

It did say initially that patching on ARMv7 devices might fail, but it patched fine & the YT revanced Works perfectly fine

Thanks for responding

Splarkszter commented 1 year ago

I have the same problem. Samsung S9 Android 10.

At first it builded the app, but said it wasn't intalled (i had built the app initally on the S9 to install it on an ARMV7 device [Samsung Galaxy Grand Prime] and it installed fine, that's odd).

Today i want to do it again for the S9 but now it aborts, though i intalled the 1.3.8 update and it builds again but still can't install the patched app. I even did the delete app-data but same behaviour. Nothing seems off, just can't install it.

LisoUseInAIKyrios commented 1 year ago

@Splarkszter if it finishes patching successful, then try exporting the patched apk from Manager and install the export APK from outside Manager. After patching there's an export option somewhere (can't remember exactly where).

Splarkszter commented 1 year ago

@Splarkszter if it finishes patching, install the export APK from outside Manager.

I did it, same, can't install the app.

LisoUseInAIKyrios commented 1 year ago

What error does it give?

Is the unpatched app installed? If so uninstall it first.

BartAgterbosch commented 1 year ago

Same here, upon "Decoding resources": java.lang.reflect.InvocationTargetException. It does this wether cache and data is cleared or not, and/or the old revanced app is deleted or not, and/or temporary files are deleted or not. The official youtube app is at the recommended version of 18.19.35 downloaded from the official youtube repo on apkmirror, selected patches are only the recommended, and it's an unrooted device: galaxy S10+, android 12.

Edit: hm, I thought I had updated to the latest version from within revanced manager, but apparently after uninstalling reinstalling revanced manager manually, it seems it had not updated to the latest version, because now the patch selections changed to the choices "default" and "none". After that patching actually worked, now revanced is working perfectly again.

Earlopain commented 1 year ago

Same issue here, I solved it by downloading the universal apk and using that to patch. I wanted to be clever and used one of these apk extractor apps. I suspect it has something to do with it still being split.

rejuanad99 commented 1 year ago

Screenshot_20230710_015237 I'm getting this error.

kvxrun commented 1 year ago

Receiving the same error here. Tried clearing data, still doesn't work.

kenethc commented 1 year ago

Receiving the same error here. Tried clearing data, still doesn't work.

Download the new version of ReVanced Manager v1.40

hicsuntdragons commented 1 year ago

Same issue here, I solved it by downloading the universal apk and using that to patch. I wanted to be clever and used one of these apk extractor apps. I suspect it has something to do with it still being split.

This solved my issue. i was using an universal apk as well but I downloaded a version that was "broken" i guess. then I searched for a different source and it went through the "compiling resources" stage, now working

Splarkszter commented 1 year ago

i was using an universal apk as well but I downloaded a version that was "broken" i guess. then I searched for a different source and it went through

I usually use apkmirror because seems reputable, don't know how much tho. Are there any truly reputable alternatives?

Ushie commented 1 year ago

APKMirror is the best and most reputable provider out there

fettou commented 1 year ago

Screenshot_2023-07-21-18-56-28-085_app revanced manager flutter i have this issue while patching any app

rapdodge commented 1 year ago

Same issues with when patching YT Music...

revanced-manager_patcher_20230730152142205979.log

ShredRum commented 1 year ago

Same issues with when patching YT Music...

revanced-manager_patcher_20230730152142205979.log

Same revanced-manager_patcher_20230731033159064093.log

xehpuk commented 1 year ago

Same in v1.6.1.

ThePillarist commented 1 year ago

Still getting this issue identical to the #1069. Downloaded from APKMirror, deleted and reinstalled manager, deleted previous YouTube Music Revanced app. Nothing corrects it. Downloading the arm64 version because there isn't a universal for YT Music. Stumped.

dusan-milanovic commented 1 year ago

Seeing this issue as well.

Tried different yt versions (downloaded from apkmirror), but nothing has fixed the issue. I'm using the v1.7.0 of the manager

oSumAtrIX commented 1 year ago

May be fixed, if not, reopen an updated issue.