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

Crashes on install #19

Closed
lucker999 opened this issue Dec 28, 2020 · 4 comments
Closed

Crashes on install #19

lucker999 opened this issue Dec 28, 2020 · 4 comments

Comments

@lucker999
Copy link

The app has successfully downloads Firefox Klar, verified checksum, but if i pouch the button Install, it attempted an installation and crashes.

It happens both with FF installed (directly from the link) and if I try to install FF with the FFupdater.

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.CONFIRM_PERMISSIONS pkg=com.android.packageinstaller (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1836)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1556)
at android.app.Activity.startActivityForResult(Activity.java:3787)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:675)
at android.app.Activity.startActivityForResult(Activity.java:3744)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:662)
at android.app.Activity.startActivity(Activity.java:4096)
at android.app.Activity.startActivity(Activity.java:4026)
at de.marmaro.krt.ffupdater.InstallActivity.onNewIntent(InstallActivity.java:324)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1234)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1246)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2639)
at android.app.ActivityThread.performNewIntents(ActivityThread.java:2651)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2660)
at android.app.ActivityThread.access$1600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1518)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5528)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:952)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)

@Tobi823
Copy link
Owner

Tobi823 commented Jan 4, 2021

Was this bug introduced with the latest FFUpdater version?
Can you install and test older FFUpdater versions? (F-Droid allows to downgrade any app)

I can't reproduce this bug with the Android emulator. I need your help to fix it.

@Tobi823
Copy link
Owner

Tobi823 commented Jan 4, 2021

Can you test this version?
ffupdater-debug.zip

You should be able to install Firefox Klar (and other apps).
Because this is just a quick hack, FFUpdater will not report the successful app installation.

Tobi823 added a commit that referenced this issue Jan 4, 2021
Tobiwan/ffupdater#2

quick hack for discovering the bug
@lucker999
Copy link
Author

Thank you for the suggestions.

The previous two versions prior 70 (65.5 & 65&4 I guess) both work a bit better: they allow me to choose an app to install ff with, but in the list there is no "package installer", so it is impossible to install downloaded ff klar. At least it doesn't crash if I try to update manually installed ff klar. If I try to install ff klar (not to update), the app crashes.

The debug version works, it correctly download ff klar, performs fingerprint check, and install the latest version. Although the installer notification I the app keeps spinning even the ff is installed and could be used.

Some suggestions:

  • it would be really nice to reuse a downloaded file if a ff browser for the repeated installation, bit to download it each time
  • information about the app (version, link to issue, etc) in the menu would be nice to have

@Tobi823
Copy link
Owner

Tobi823 commented Feb 14, 2021

The issue should now be fixed (in version 71.0.0).

FFUpdater retries up to two times before crashing (when contacting the server for available versions)

it would be really nice to reuse a downloaded file if a ff browser for the repeated installation, bit to download it each time
This is quite tricky because I have to store many information.

information about the app (version, link to issue, etc) in the menu would be nice to have
Sounds good #26

@Tobi823 Tobi823 closed this as completed Feb 14, 2021
Tobi823 added a commit that referenced this issue Feb 14, 2021
#19

 - when consuming an API and an exception occurs, then retry up to two times before throwing an exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants