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: patcher claims that original.apk source file doesn't exist when patching youtube despite it existing #1006

Closed
4 tasks done
BLucky-gh opened this issue Jul 9, 2023 · 1 comment
Labels
Bug report Something isn't working

Comments

@BLucky-gh
Copy link

Type

Error while running the manager

Bug description

YouTube was annoying me with "uosate available" notifications so I downloaded the latest revanced recommended version from apkmirror and installed it fresh but when patching I an error that I pasted in the relevant logs section in this issue. Note that original.apk actually does exist at the path in the logs.

Steps to reproduce

I'm not sure which of these steps are irrelevant but here's how I did it:

  1. have a patched youtube installed already
  2. get a newer version of the apk from apkmirror
  3. install that apk to update youtube (and consequently unpatch it)
  4. open revanced manager
  5. choose youtube
  6. try patching

Android version

LineageOS 20
corresponds to android 13

Manager version

1.3.8

Target package name

youtube

Target package version.

18.23.35

Installation type

Root

Patches selected.

The list is pretty long and the bug happens before the patches are even attempted, so I'll leave this empty and will send the patch list if it ends up being needed

Device logs (exported using Manager settings).

Initializing installer
Creating working directory
Copying original apk
An error occurred! Aborted
Error:
kotlin.io.NoSuchFileException: /data/adb/revanced/com.google.android.youtube/original.apk: The source file doesn't exist.
	at kotlin.io.FilesKt__UtilsKt.copyTo(Utils.kt:219)
	at kotlin.io.FilesKt__UtilsKt.copyTo$default(Utils.kt:217)
	at app.revanced.manager.flutter.MainActivity.runPatcher$lambda-20(MainActivity.kt:114)
	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)

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

No response

Screenshots or videos

screen-20230709-110624.mp4

Solution

pressing "Delete temporary files" in settings doesn't help, but using root to open /data/adb/revanced/com.google.android.youtube/ and delete base.apk and original.apk with a file manager and then trying to patch again works.

Additional context

https://discord.com/channels/952946952348270622/1127275480333168640

ReVanced/revanced-patcher#205

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
@BLucky-gh BLucky-gh added the Bug report Something isn't working label Jul 9, 2023
@TheAabedKhan
Copy link
Member

Duplicate of #975

@TheAabedKhan TheAabedKhan marked this as a duplicate of #975 Jul 9, 2023
@TheAabedKhan TheAabedKhan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2023
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

2 participants