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: Unable to use selected application #1563

Closed
4 tasks done
Jonav9 opened this issue Dec 11, 2023 · 25 comments
Closed
4 tasks done

bug: Unable to use selected application #1563

Jonav9 opened this issue Dec 11, 2023 · 25 comments
Labels
Bug report Something isn't working Waiting on author Further information is requested

Comments

@Jonav9
Copy link

Jonav9 commented Dec 11, 2023

Bug description

Manager doesn't recognize any app.

STEPS.

  1. tap on "patcher"
  2. tap on "select application"
  3. tap on "Storage"
  4. pick downloaded APK (I tried different apk and different versions, all the same result)
  5. "Unable to use selected application" message shows.
    Screenshot_20231207_180310_ReVanced Manager

Version of ReVanced Manager and version & name of application you tried to patch

Manager v 1.17.1
Youtube music v 6.29.57
Android 13

Installation type

Non-root

Device logs

Sorry, I don't know how to get the log.

Patcher logs

No response

Acknowledgements

  • This request is not a duplicate of an existing issue.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The issue is solely related to the ReVanced Manager
@Jonav9 Jonav9 added the Bug report Something isn't working label Dec 11, 2023
@TheAabedKhan
Copy link
Member

Make sure the APK file is not corrupted. Send a screen recording beginning with downloading of the apk.

@sniff-numeral
Copy link

Same problem here. I was able to patch the same apk with previous Versions

Version of ReVanced Manager and version & name of application you tried to patch

Manager v 1.17.3

com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk

LineageOS 18.1

Installation type
root

Patcher logs
--------- beginning of crash
12-12 14:10:52.367 20639 20639 E AndroidRuntime: FATAL EXCEPTION: main
12-12 14:10:52.367 20639 20639 E AndroidRuntime: Process: app.revanced.manager.flutter, PID: 20639
12-12 14:10:52.367 20639 20639 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=212, result=-1, data=null} to activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4438)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4470)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7664)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=212, result=-1, data=null} to activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5013)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4425)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: ... 11 more
12-12 14:10:52.367 20639 20639 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at com.baseflow.permissionhandler.PermissionManager.onActivityResult(PermissionManager.java:78)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:807)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:430)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:811)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:771)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:8304)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5006)
12-12 14:10:52.367 20639 20639 E AndroidRuntime: ... 12 more
--------- beginning of main
12-12 14:12:02.192 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:02.326 20687 20728 W SQLiteLog: (28) double-quoted string literal: "ADDA96AC52EAA373616DEC5AB369DAE3"
12-12 14:12:02.327 20687 20728 W SQLiteLog: (28) double-quoted string literal: "22D1CC376C54BE531C0A569AA1492CA8"
12-12 14:12:04.194 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:04.283 20687 20687 D CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10211; state: ENABLED
12-12 14:12:06.194 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:08.195 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:10.196 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:12.197 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:14.198 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:16.199 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:18.200 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:20.201 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:22.201 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:24.202 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:25.573 20687 21122 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
12-12 14:12:25.573 20687 21122 E flutter : #0 FlutterI18n.translate (package:flutter_i18n/flutter_i18n.dart:92)
12-12 14:12:25.573 20687 21122 E flutter : #1 HomeViewModel.updateManager (package:revanced_manager/ui/views/home/home_viewmodel.dart:115)
12-12 14:12:25.573 20687 21122 E flutter :
12-12 14:12:25.573 20687 21122 E flutter :
12-12 14:12:26.204 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:28.204 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:30.205 20687 20700 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:46.463 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:46.539 21344 21344 D NetworkSecurityConfig: No Network Security Config specified, using platform default
12-12 14:12:46.539 21344 21344 D NetworkSecurityConfig: No Network Security Config specified, using platform default
12-12 14:12:46.651 21344 21344 W manager.flutter: type=1400 audit(0.0:408): avc: denied { read } for name="max_map_count" dev="proc" ino=60227 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=app.revanced.manager.flutter
12-12 14:12:46.667 21344 21344 I AdrenoGLES: QUALCOMM build : 7331a27, Ieeb4a86f7b
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Build Date : 11/13/19
12-12 14:12:46.667 21344 21344 I AdrenoGLES: OpenGL ES Shader Compiler Version: EV031.27.05.02
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Local Branch :
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Remote Branch :
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Remote Branch :
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Reconstruct Branch :
12-12 14:12:46.667 21344 21344 I AdrenoGLES: Build Config : S L 8.0.12 AArch64
12-12 14:12:46.671 21344 21344 I AdrenoGLES: PFP: 0x005ff110, ME: 0x005ff066
12-12 14:12:46.700 21344 21344 I TetheringManager: registerTetheringEventCallback:app.revanced.manager.flutter
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: onAttachedToEngine - IN
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: doOnAttachedToEngine - IN
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: doOnAttachedToEngine - OUT
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: onAttachedToEngine - OUT
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: onAttachedToActivity
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: doOnAttachedToActivity - IN
12-12 14:12:46.703 21344 21344 D FlutterFileDialogPlugin: doOnAttachedToActivity - OUT
12-12 14:12:46.844 21379 21379 W sh : type=1400 audit(0.0:409): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:46.857 21379 21379 W sh : type=1400 audit(0.0:410): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:46.871 21379 21379 W sh : type=1400 audit(0.0:411): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:46.881 21379 21379 W sh : type=1400 audit(0.0:412): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:46.964 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:47.224 21344 21372 I flutter : dynamic_color: Dynamic color not detected on this device.
12-12 14:12:47.275 21344 21373 I Gralloc4: mapper 4.x is not supported
12-12 14:12:47.276 21344 21373 W Gralloc3: mapper 3.x is not supported
12-12 14:12:47.376 21344 21358 I manager.flutte: WaitForGcToComplete blocked RunEmptyCheckpoint on ProfileSaver for 5.281ms
12-12 14:12:47.715 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:48.840 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:50.528 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:52.529 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:54.530 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:55.614 21520 21520 W sh : type=1400 audit(0.0:418): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:55.627 21520 21520 W sh : type=1400 audit(0.0:419): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:55.644 21520 21520 W sh : type=1400 audit(0.0:420): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:55.657 21520 21520 I chatty : uid=10211(app.revanced.manager.flutter) /system/bin/sh identical 1 line
12-12 14:12:55.677 21520 21520 W sh : type=1400 audit(0.0:422): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:12:56.531 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:12:58.532 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:00.534 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:02.535 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:04.536 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:06.536 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:08.537 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:08.754 21344 21344 D CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10211; state: ENABLED
12-12 14:13:10.538 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:10.549 21344 21344 D FlutterFileDialogPlugin: onMethodCall - IN , method=pickFile
12-12 14:13:10.549 21344 21344 D FlutterFileDialogPlugin: createFileDialog - IN
12-12 14:13:10.550 21344 21344 D FlutterFileDialogPlugin: createFileDialog - OUT
12-12 14:13:10.550 21344 21344 D FileDialog: pickFile - IN, fileExtensionsFilter=[Ljava.lang.String;@84ef537, mimeTypesFilter=null, localOnly=false, copyFileToCacheDir=true
12-12 14:13:10.569 21344 21344 D FileDialog: pickFile - OUT
12-12 14:13:11.876 21344 21344 D FileDialog: Picked file: content://com.android.externalstorage.documents/document/primary%3ADownload%2Fcom.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a%2Carmeabi-v7a%2Cx86%2Cx86_64)(nodpi)_apkmirror.com.apk
12-12 14:13:11.899 21344 21344 I InstallPlugin: handleActivityResult(19111,-1,Intent { dat=content://com.android.externalstorage.documents/document/primary:Download/com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk flg=0x43 })
12-12 14:13:11.905 21344 21344 D FileDialog: Launch...
12-12 14:13:11.905 21344 21344 D FileDialog: Copy on background...
12-12 14:13:11.911 21344 21652 D FileDialog: Copying 'content://com.android.externalstorage.documents/document/primary%3ADownload%2Fcom.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a%2Carmeabi-v7a%2Cx86%2Cx86_64)(nodpi)_apkmirror.com.apk' to '/data/user/0/app.revanced.manager.flutter/cache/com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk'
12-12 14:13:12.540 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:12.728 21344 21652 D FileDialog: Successfully copied file to '/data/user/0/app.revanced.manager.flutter/cache/com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk, bytes=145006278'
12-12 14:13:12.729 21344 21344 D FileDialog: ...copied on background, result: /data/user/0/app.revanced.manager.flutter/cache/com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk
12-12 14:13:12.729 21344 21344 D FileDialog: ...launch
12-12 14:13:12.733 21344 21344 W ziparchive: Zip: bad offsets (dir 144662528, size 736944, eocd 145006256)
12-12 14:13:12.733 21344 21344 E manager.flutte: Failed to open APK '/data/user/0/app.revanced.manager.flutter/cache/com.google.android.youtube_18.45.43-1541152192_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk' Invalid offset
12-12 14:13:14.541 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:16.541 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:18.544 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:20.545 21344 21356 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:20.626 21344 21344 D FlutterFileDialogPlugin: onDetachedFromActivity
12-12 14:13:20.626 21344 21344 D FlutterFileDialogPlugin: doOnDetachedFromActivity - IN
12-12 14:13:20.626 21344 21344 D FlutterFileDialogPlugin: doOnDetachedFromActivity - OUT
12-12 14:13:49.072 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:49.149 21692 21692 D NetworkSecurityConfig: No Network Security Config specified, using platform default
12-12 14:13:49.150 21692 21692 D NetworkSecurityConfig: No Network Security Config specified, using platform default
12-12 14:13:49.221 21692 21692 W manager.flutter: type=1400 audit(0.0:426): avc: denied { read } for name="max_map_count" dev="proc" ino=60227 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=app.revanced.manager.flutter
12-12 14:13:49.236 21692 21692 I AdrenoGLES: QUALCOMM build : 7331a27, Ieeb4a86f7b
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Build Date : 11/13/19
12-12 14:13:49.236 21692 21692 I AdrenoGLES: OpenGL ES Shader Compiler Version: EV031.27.05.02
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Local Branch :
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Remote Branch :
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Remote Branch :
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Reconstruct Branch :
12-12 14:13:49.236 21692 21692 I AdrenoGLES: Build Config : S L 8.0.12 AArch64
12-12 14:13:49.241 21692 21692 I AdrenoGLES: PFP: 0x005ff110, ME: 0x005ff066
12-12 14:13:49.274 21692 21692 I TetheringManager: registerTetheringEventCallback:app.revanced.manager.flutter
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: onAttachedToEngine - IN
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: doOnAttachedToEngine - IN
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: doOnAttachedToEngine - OUT
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: onAttachedToEngine - OUT
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: onAttachedToActivity
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: doOnAttachedToActivity - IN
12-12 14:13:49.277 21692 21692 D FlutterFileDialogPlugin: doOnAttachedToActivity - OUT
12-12 14:13:49.364 21729 21729 W sh : type=1400 audit(0.0:427): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:13:49.391 21729 21729 I chatty : uid=10211(app.revanced.manager.flutter) /system/bin/sh identical 2 lines
12-12 14:13:49.404 21729 21729 W sh : type=1400 audit(0.0:430): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:13:49.573 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:49.780 21692 21722 I flutter : dynamic_color: Dynamic color not detected on this device.
12-12 14:13:49.830 21692 21723 I Gralloc4: mapper 4.x is not supported
12-12 14:13:49.836 21692 21723 W Gralloc3: mapper 3.x is not supported
12-12 14:13:50.324 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:51.001 21846 21846 W sh : type=1400 audit(0.0:436): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:13:51.047 21846 21846 I chatty : uid=10211(app.revanced.manager.flutter) /system/bin/sh identical 3 lines
12-12 14:13:51.061 21846 21846 W sh : type=1400 audit(0.0:440): avc: denied { read } for name="/" dev="sde20" ino=2 scontext=u:r:untrusted_app:s0:c211,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
12-12 14:13:51.449 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:53.137 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:55.138 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:57.139 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused
12-12 14:13:59.140 21692 21704 E manager.flutte: failed to connect to jdwp control socket: Connection refused

@Jonav9
Copy link
Author

Jonav9 commented Dec 12, 2023

Make sure the APK file is not corrupted. Send a screen recording beginning with downloading of the apk.

I updated to 1.17.3 and I keep getting the same message. Here's a video.

revanced.error.mp4

@oSumAtrIX
Copy link
Member

Can you send ReVanced Manager logs after this error occurs

@oSumAtrIX oSumAtrIX added the Waiting on author Further information is requested label Dec 12, 2023
@Jonav9
Copy link
Author

Jonav9 commented Dec 12, 2023

Can you send ReVanced Manager logs after this error occurs

Can you guide me on how to get the logs? Please. I don't know how to get them from the phone.

@KobeW50
Copy link
Contributor

KobeW50 commented Dec 13, 2023

Can you send ReVanced Manager logs after this error occurs

Can you guide me on how to get the logs? Please. I don't know how to get them from the phone.

There's an option in the ReVanced Manager settings to export the logs.

@Jonav9
Copy link
Author

Jonav9 commented Dec 13, 2023

Can you send ReVanced Manager logs after this error occurs
I'm attaching the file cause it was too large to paste here. But In any case, I'm highlighting what I think points to the issue.

12-12 19:39:39.513 30249 30249 D FileDialog: Launch...
12-12 19:39:39.513 30249 30249 D FileDialog: Copy on background...
12-12 19:39:39.516 30249 30249 I SurfaceView@b842baf: finishedDrawing
12-12 19:39:39.516 30249 31191 D FileDialog: Copying 'content://com.android.externalstorage.documents/document/primary%3ADownload%2Fthis%20one%20youtube.music_6.29.58-62958240_minAPI24(arm64-v8a)(nodpi)_apkmirror.com.apk' to '/data/user/0/app.revanced.manager.flutter/cache/this one youtube.music_6.29.58-62958240_minAPI24(arm64-v8a)(nodpi)_apkmirror.com.apk'
12-12 19:39:39.565 30249 30249 E FileDialog: copyFileToCacheDirOnBackground failed
12-12 19:39:39.565 30249 30249 E FileDialog: java.lang.SecurityException: com.android.externalstorage has no access to content://media/external_primary/file/1000016637

rev-manager_logcat_20231212193946395795.log

@tdbeat

This comment was marked as spam.

@Jonav9

This comment was marked as spam.

@Axelen123
Copy link
Member

@Jonav9 are you using a samsung device?

@Jonav9
Copy link
Author

Jonav9 commented Dec 20, 2023 via email

@Axelen123
Copy link
Member

Axelen123 commented Dec 20, 2023

Yes. Galaxy A22

I think this is a general issue on Samsung devices. You need to go into settings and grant some permissions to com.android.externalstorage:

@oSumAtrIX
Copy link
Member

Doesn't this grant all files permission which is what we don't want?

@Axelen123
Copy link
Member

Axelen123 commented Dec 20, 2023

Doesn't this grant all files permission which is what we don't want?

The error occurs because the system file manager on Samsung devices does not have the all files permission for some reason. This has nothing to do with ReVanced Manager, which doesn't need the permission

@oSumAtrIX
Copy link
Member

Other apps can use the system file manager to read files though

@Axelen123
Copy link
Member

Other apps can use the system file manager to read files though

Yes but only through the Android file picker. Again, this has nothing to do with ReVanced Manager.

@Jonav9
Copy link
Author

Jonav9 commented Dec 20, 2023 via email

@RootKE

This comment was marked as spam.

@Artnal
Copy link

Artnal commented Dec 21, 2023

Hi there, bumping up the thread, I have the same issue. It appeared about the time I updated to Android 14 on a Samsung device. It doesn't seem to be related to this (the permission is already granted):

Yes. Galaxy A22

I think this is a general issue on Samsung devices. You need to go into settings and grant some permissions to com.android.externalstorage:

* https://forums.androidcentral.com/threads/im-getting-the-following-error-com-android-externalstorage-has-no-access-to-content.1053625/

* https://www.reddit.com/r/kustom/comments/18fnha2/kwgt_error_comexternalstorage_has_no_access/

Basically, I can browse the folder, but any APK I select gives me the "Unable to use selected application" in Revanced Manager.

@Jonav9
Copy link
Author

Jonav9 commented Dec 21, 2023

Hi there, bumping up the thread, I have the same issue. It appeared about the time I updated to Android 14 on a Samsung device. It doesn't seem to be related to this (the permission is already granted):

Yes. Galaxy A22

I think this is a general issue on Samsung devices. You need to go into settings and grant some permissions to com.android.externalstorage:

* https://forums.androidcentral.com/threads/im-getting-the-following-error-com-android-externalstorage-has-no-access-to-content.1053625/

* https://www.reddit.com/r/kustom/comments/18fnha2/kwgt_error_comexternalstorage_has_no_access/

Basically, I can browse the folder, but any APK I select gives me the "Unable to use selected application" in Revanced Manager.

Look for a similar setting that's related to permissions. It worked for me on Samsung.

@Jonav9
Copy link
Author

Jonav9 commented Dec 21, 2023

I'll go ahead and close this since the solution worked for me. If anyone else keeps having issues, then try opening a new issue with your specific phone model.

@Jonav9 Jonav9 closed this as completed Dec 21, 2023
@karstyanick
Copy link

karstyanick commented Dec 23, 2023

I had the same issue on a galaxy s20.
For me the solution was to, as explained in the shared thread, go to:
settings -> special access -> all file access.
Then for me the culprit was a missing permission on the "Download Manager". Once activated works like a charm. It seems depending on where you are trying to open the apk from changes which permission it needs (mine was in the downloads folder). Thx for the help!

@ez2remember
Copy link

I was having the same issue, but I think what fixed it was making sure I downloaded the nodpi version of the apk. I downloaded the 240-640dpi version and I think that was causing the issue. Make sure to dowload the universal or nodpi version.

@nathanhtaylor
Copy link

Adding in, had this same issue but all apps previously mentioned in this issue already had All files access. Granting the applications MTP Host and MTP Application to All files access fixed the issue for me.

@Enissay
Copy link

Enissay commented Nov 1, 2024

I had the same issue on a galaxy s20.
For me the solution was to, as explained in the shared thread, go to:
settings -> special access -> all file access.
Then for me the culprit was a missing permission on the "Download Manager". Once activated works like a charm. It seems depending on where you are trying to open the apk from changes which permission it needs (mine was in the downloads folder). Thx for the help!

Be blessed.
It was indeed the evil download manager that was driving me nuts 😑

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 Waiting on author Further information is requested
Projects
None yet
Development

No branches or pull requests