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: Compilation error on a rooted armv9 device #908

Closed
4 tasks done
DeeparthGupta opened this issue May 28, 2023 · 6 comments
Closed
4 tasks done

bug: Compilation error on a rooted armv9 device #908

DeeparthGupta opened this issue May 28, 2023 · 6 comments
Labels
Bug report Something isn't working

Comments

@DeeparthGupta
Copy link

Type

Error at runtime

Bug description

I get a compilation error when trying to patch youtube v18.19.35 on a Oneplus 10 pro. I've unselected microG support. When I hit patch I get a dialog that says patching on arm-v7 is not supported. My phone runs on armv9. I had successfully patched 18.16 some time ago before the latest manager update. I found similar bug reports but the user was either on arm-v9 or trying to get microG support.

Steps to reproduce

Patch youtube via the manager as intended.

Android version

Oxygen OS 13.0

Manager version

1.3.0

Target package name

com.google.android.youtube

Target package version.

18.19.35

Installation type

Root

Patches selected.

client-spoof
copy-video-url
custom-branding
disable-auto-captions
disable-fullscreen-panels
disable-player-popup-panels
disable-shorts-on-startup
disable-zoom-haptics
downloads
hide-ads
hide-cast-button
hide-crowdfunding-box
hide-get-premium
hide-player-overlay
hide-shorts-components
minimized-playback
navigation-buttons
open-links-externally
predictive-back-gesture
remember-video-quality
remove-screenshot-restriction
seekbar-tapping
swipe-controls
theme
video-ads

Device logs (exported using Manager settings).

--------- beginning of system
05-28 20:41:26.479  9269  9269 I Quality : Skipped: false 1 cost 14.737514 refreshRate 8337187 bit true processName app.revanced.manager.flutter
05-28 20:42:27.579  9269  9269 I Quality : Skipped: false 6 cost 52.889637 refreshRate 8333333 bit true processName app.revanced.manager.flutter
--------- beginning of main
05-28 20:43:10.684  9269 13740 D VRI[MainActivity]: dispatchAppVisibility visible:true
05-28 20:43:10.692  9269 13740 D ColorModeChangeItem: preExecute mColorMode=0,token=android.os.BinderProxy@6d40057
05-28 20:43:10.692  9269  9269 D VRI[MainActivity]: setWindowStopped stopped:false
05-28 20:43:10.710  9269  9269 D BufferQueueConsumer: [](id:243500000018,api:0,p:-1,c:9269) connect: controlledByApp=false
05-28 20:43:10.710  9269  9269 E IPCThreadState: attemptIncStrongHandle(72): Not supported
05-28 20:43:10.710  9269  9269 E IPCThreadState: attemptIncStrongHandle(61): Not supported
05-28 20:43:10.713  9269  9269 D BufferQueueConsumer: [](id:243500000019,api:0,p:-1,c:9269) connect: controlledByApp=false
05-28 20:43:10.713  9269  9269 I SurfaceView: 49142516 visibleChanged -- surfaceCreated 
05-28 20:43:10.713  9269 12023 D BufferQueueProducer: [SurfaceView[app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity]#25(BLAST Consumer)25](id:243500000019,api:1,p:9269,c:9269) connect: api=1 producerControlledByApp=true
05-28 20:43:10.714  9269 12017 D BufferQueueProducer: [VRI[MainActivity]#24(BLAST Consumer)24](id:243500000018,api:1,p:9269,c:9269) connect: api=1 producerControlledByApp=true
05-28 20:43:10.715  9269  9269 I SurfaceView: 49142516 surfaceChanged -- format=4 w=1440 h=3216
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=0
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=1
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=2
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=3
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=4
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=5
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=6
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=7
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=8
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=9
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=10
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=11
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=12
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=13
05-28 20:43:10.717  9269  9269 E SurfaceSyncer: Failed to find sync for id=14
05-28 20:43:10.717  9269  9269 D VRI[MainActivity]: registerCallbacksForSync syncBuffer=false
05-28 20:43:10.720  9269 12017 D VRI[MainActivity]: Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true syncBuffer=false
05-28 20:43:10.720  9269  9269 D VRI[MainActivity]: draw finished.
05-28 20:43:10.836  9269  9269 D VRI[MainActivity]: onFocusEvent true

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

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
Applied client-spoof
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 downloads
Applied hide-ads
Applied hide-cast-button
Applied hide-crowdfunding-box
Applied hide-get-premium
Applied hide-player-overlay
Applied hide-shorts-components
Applied minimized-playback
Applied navigation-buttons
Applied open-links-externally
Applied predictive-back-gesture
Applied remember-video-quality
Applied remove-screenshot-restriction
Applied seekbar-tapping
Applied swipe-controls
Applied theme
Applied video-ads
Repacking patched apk
Compiling resources
An error occurred! Aborting
Error:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~W74MAAzcx2fCAtrlsU1rIg==/app.revanced.manager.flutter-dV0w9hKB_CTx9BVNu8jrcw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/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/APKTOOL6142542904496432905.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/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:126)
	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/~~W74MAAzcx2fCAtrlsU1rIg==/app.revanced.manager.flutter-dV0w9hKB_CTx9BVNu8jrcw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/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/APKTOOL6142542904496432905.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ERRXTS/cache/build/resources.zip]
	at brut.util.OS.exec(OS.java:99)
	at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:480)
	... 6 more

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
  • The issue is related solely to the ReVanced Manager and not related to patching errors or patches
@DeeparthGupta DeeparthGupta added the Bug report Something isn't working label May 28, 2023
@ILoveOpenSourceApplications

Can you try patching without predictive-back-gesture and remove-screenshot-restriction and report back.

@DeeparthGupta
Copy link
Author

DeeparthGupta commented May 28, 2023

Still fails to compile.

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
Applied client-spoof
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 downloads
Applied hide-ads
Applied hide-cast-button
Applied hide-crowdfunding-box
Applied hide-get-premium
Applied hide-player-overlay
Applied hide-shorts-components
Applied minimized-playback
Applied navigation-buttons
Applied open-links-externally
Applied remember-video-quality
Applied seekbar-tapping
Applied swipe-controls
Applied theme
Applied video-ads
Repacking patched apk
Compiling resources
An error occurred! Aborting
Error:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~W74MAAzcx2fCAtrlsU1rIg==/app.revanced.manager.flutter-dV0w9hKB_CTx9BVNu8jrcw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/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/APKTOOL476946670821494192.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/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:126)
	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/~~W74MAAzcx2fCAtrlsU1rIg==/app.revanced.manager.flutter-dV0w9hKB_CTx9BVNu8jrcw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/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/APKTOOL476946670821494192.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-OPJQXV/cache/build/resources.zip]
	at brut.util.OS.exec(OS.java:99)
	at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:480)
	... 6 more`

@m9dfukc

This comment was marked as spam.

@MaiSan9999

This comment was marked as spam.

@SakuraJensen

This comment was marked as spam.

@ReVanced ReVanced locked as spam and limited conversation to collaborators Jun 1, 2023
@oSumAtrIX
Copy link
Member

This is not an issue with ReVanced Manager, but AAPT that is used by ReVanced Patcher. Closing therefor.

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

No branches or pull requests

6 participants