revanced-manager
revanced-manager copied to clipboard
Crash after allowing install from unknown sources
Type
Error at runtime
Bug description
Crashes when coming back to the app after allowing install from unknown sources
Steps to reproduce
- Install app
- Open for the first time
- 'Install apps from unknown sources' page automatically opens
- Allow
- Press back and go to Vanced Manager
- Crash
Android version
11
Manager version
0.0.52
Target package name
N/A
Target package version.
N/A
Installation type
Non-root
Patches selected.
N/A
Device logs (exported using Manager settings).
Logs weren't exporting for some reason so Here's the stack trace from device:
`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
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4552)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4584)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2135)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8037)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
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
at android.app.ActivityThread.deliverResults(ActivityThread.java:5146)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4539)
... 11 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
at com.baseflow.permissionhandler.PermissionManager.onActivityResult(PermissionManager.java:78)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:805)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:428)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:807)
at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:724)
at android.app.Activity.dispatchActivityResult(Activity.java:8531)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5139)
... 12 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
Model: Redmi Note 8 Arch: arm64-v8a
Acknowledgements
- [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
- [X] I have written a short but informative title.
- [X] I filled out all of the requested information in this issue properly.
- [X] The issue is related solely to the ReVanced Manager
@oSumAtrIX is this actually an issue related to the manager? This or #713 ?
I cant reproduce this issue, btw @ILoveOpenSourceApplications mark issues with the "question" label so you can come back to them after time passes, if you leave a question on an issue
Okay, will do that in the future.
Since this issue is months old and no further clarification is given I'm closing this issue. Feel free to comment if it exists still.