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

[Crash] Installation permission prompt acceptance. #822

Open
RokeJulianLockhart opened this issue Aug 29, 2024 · 0 comments
Open

[Crash] Installation permission prompt acceptance. #822

RokeJulianLockhart opened this issue Aug 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Aug 29, 2024

Describe the bug

Allowing Droid-ify to install untrusted applications caused Package Installer to crash:

FATAL EXCEPTION: main
Process: com.google.android.packageinstaller, PID: 16376
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.pm.PackageInstaller$SessionInfo.getResolvedBaseApkPath()' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3783)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3923)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2444)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8223)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.pm.PackageInstaller$SessionInfo.getResolvedBaseApkPath()' on a null object reference
	at com.android.packageinstaller.PackageInstallerActivity.onCreate(PackageInstallerActivity.java:371)
	at android.app.Activity.performCreate(Activity.java:8595)
	at android.app.Activity.performCreate(Activity.java:8573)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1457)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)
	... 12 more

I don't know whether the AOSP JVM needs debug symbols, nor how one would install them if so.

To Reproduce

Steps to reproduce the behavior:

  1. Attempt to install https://f-droid.org/packages/us.spotco.malwarescanner/
  2. After the dialog (attributed to Droid-ify, but evidently provided by the OS) to allow Droid-ify to install untrusted applications was accepted and I was taken to com.android.settings, Package Installer crashed, and Scoop caught the trace.

Smartphone :

  • Device: Fairphone FP5
  • OS: Android
  • Version: 14, build FP5.UT20.B.041.20240624

Additional context

I'm unable to cancel the installation, now:

screen-20240829-152837.mp4
@RokeJulianLockhart RokeJulianLockhart added the bug Something isn't working label Aug 29, 2024
@RokeJulianLockhart RokeJulianLockhart changed the title [Crash] Installation prompt. [Crash] Installation permission prompt acceptance. Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant