revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

bug: Manager crashes after selecting APK from storage

Open pulsarice opened this issue 3 years ago • 11 comments

Type

Error while running the manager

Branch

Flutter

Bug description

After selecting the APK from storage the manager closes.

Steps to reproduce

  1. Download YouTube v17.33.42 full APK from APK mirror.
  2. Point manager to the downloaded file.
  3. Select video ads patch
  4. Start patching

Relevant log output

I don't know how to upload the logcat. 
Full log text doesn't fit here!

kotlin.io.NoSuchFileException: /data/local/tmp/revanced-manager/com.google.android.youtube/original.apk: The source file doesn't exist.

Screenshots or videos

No response

Solution

No response

Additional context

Log file: https://file.io/v5bnKSZjw6ig

pulsarice avatar Sep 17 '22 07:09 pulsarice

https://file.io/v5bnKSZjw6ig Link to log file

pulsarice avatar Sep 17 '22 07:09 pulsarice

Android version?

Aunali321 avatar Sep 17 '22 07:09 Aunali321

Android version?

12

pulsarice avatar Sep 17 '22 07:09 pulsarice

include microg for non root. if you want root install you need to install youtube first.

Aunali321 avatar Sep 17 '22 07:09 Aunali321

include microg for non root. if you want root install you need to install youtube first.

I did that first, but YouTube kept crashing upon start after being patched Tried install as root and also regular install (regular after uninstalling YouTube to prevent signature mismatch error)

pulsarice avatar Sep 17 '22 07:09 pulsarice

You also need microg installed on device for non root.

Aunali321 avatar Sep 17 '22 07:09 Aunali321

I deleted /data/local/tmp/revanced-manager directory and that specific error stopped happening. At least now the patching process finishes.

pulsarice avatar Sep 17 '22 07:09 pulsarice

@ponces can you take a look why this happens exactly? i think moving away from File.CopyTo() caused it.

Aunali321 avatar Sep 17 '22 07:09 Aunali321

Can you test v0.0.16 and check if it is fixed?

ponces avatar Sep 20 '22 02:09 ponces

i tested this with .17 and it was still happening had to manually remove the tmp folder to get it working same behaviour for tiktok and youtube aswell

dmirtillo avatar Sep 22 '22 14:09 dmirtillo