microG exposure plugin fails to install
- /e/ version: v0.15-q
- Device model(s): j5y17lte
Summary
/e/ Apps app crashes when trying to install the microG exposure plugin. This does happen on LOCAL builds only. This seems to not happen in official /e/ builds!
Verified with another user having the same issue
The problem
Steps to reproduce
- build locally (tested by vendor/e and builde approach, testing the docker method will come next)
- clean flash (format data)
- start Apps
- search microG and find the exposure plugin
- (same applies when using android settings -> microG -> install exposure plugin which is just a quick search bookmark to the above steps)
- click install
- Apps crashing
What is the current behavior?
Apps crashes and exposure notifications don't get installed
What is the expected correct behavior?
obvious
Technical informations
Relevant logs (adb logcat
)
03-19 09:12:17.660 0 0 W [0: logcat: 8015] audit: audit_lost=2855 audit_rate_limit=5 audit_backlog_limit=64
03-19 09:12:17.660 0 0 E [0: logcat: 8015] audit: rate limit exceeded
03-19 09:12:17.675 0 0 D [3: logd.reader: 2728] logd: logdr: UID=2000 GID=2000 PID=8015 b tail=0 logMask=ff pid=0 start=0ns timeout=0ns
03-19 09:12:17.925 0 0 I : [0:wifi@1.0-servic: 2894] CFG80211-INFO) wl_cfgvendor_lstats_get_info : wl_cfgvendor_lstats_get_info: Enter
--------- beginning of radio
03-19 09:12:11.541 2945 3070 I chatty : uid=1001(radio) ESAR expire 1 line
03-19 09:12:14.541 2945 3070 E RILC : signalLevelInfosChanged: sehRadioService[0]->mSehRadioIndication == NULL
03-19 09:12:18.308 3677 3677 W MmTelFeatureConnection: create: binder is null! Slot Id: 0
03-19 09:12:18.311 3677 3677 W MmTelFeatureConnection: create: binder is null! Slot Id: 1
03-19 09:12:19.019 0 0 W : [0:irq/10-ist30xx_: 1158] [sec_input][ TSP ] p1
03-19 09:12:19.019 0 0 W : [0:irq/10-ist30xx_: 1158] [sec_input][ TSP ] p1 (p:0, ma:1, mi:1) (0)
03-19 09:12:19.075 7856 7856 E MicroGStatus: false
03-19 09:12:19.077 7856 7885 E AndroidRuntime: FATAL EXCEPTION: Thread-2
03-19 09:12:19.077 7856 7885 E AndroidRuntime: Process: foundation.e.apps, PID: 7856
03-19 09:12:19.077 7856 7885 E AndroidRuntime: java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs:
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at android.app.DownloadManager$Request.<init>(DownloadManager.java:468)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.application.model.Downloader.initialiseDownloadManagerRequestForSystemApps(Downloader.kt:112)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.application.model.Downloader.downloadSystemApp(Downloader.kt:79)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.application.model.Application.download(Application.kt:175)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.applicationmanager.ApplicationManager.startInstalls(ApplicationManager.kt:58)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.applicationmanager.ApplicationManager.access$startInstalls(ApplicationManager.kt:25)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at foundation.e.apps.applicationmanager.ApplicationManager$start$1.run(ApplicationManager.kt:51)
03-19 09:12:19.077 7856 7885 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
03-19 09:12:19.075 7856 7856 E MicroGStatus: false
03-19 09:12:19.078 2876 5649 V audio_hw_primary: start_output_stream+, out->device : 00000002 , out->type = 1
03-19 09:12:19.079 3125 3207 I am_crash: [7856,0,foundation.e.apps,953728581,java.lang.IllegalArgumentException,Can only download HTTP/HTTPS URIs: ,DownloadManager.java,468]
03-19 09:12:19.077 0 0 W : [0:irq/10-ist30xx_: 1158] [sec_input][ TSP ] r1 mc:1 (0x20217) (0,P01T0217)
03-19 09:12:19.083 0 0 E : [0: writer: 5649] audmixer 14880000.s1402x: (*) audmixer_runtime_resume (count = 62)
03-19 09:12:19.083 0 0 E : [0: writer: 5649] audmixer 14880000.s1402x: lpass_get_sync: audiomixer (use:1)
03-19 09:12:19.083 0 0 E : [0: writer: 5649] samsung-lpass 148f0000.lpass: lpass_enable (count = 61)
--------- beginning of system
03-19 09:12:19.080 3125 8018 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
03-19 09:12:19.080 3125 3207 W ActivityTaskManager: Force finishing activity foundation.e.apps/.MainActivity
03-19 09:12:19.081 3125 3207 I am_finish_activity: [0,207375872,20,foundation.e.apps/.MainActivity,force-crash]
03-19 09:12:19.081 3125 3207 I am_focused_stack: [0,0,0,15,finishActivity adjustFocus]
03-19 09:12:19.082 3125 3207 I wm_task_moved: [6,0,2147483647]
03-19 09:12:19.082 7856 7856 I am_on_top_resumed_lost_called: [0,foundation.e.apps.MainActivity,topStateChangedWhenResumed]
03-19 09:12:19.083 3125 3207 I am_set_resumed_activity: [0,foundation.e.blisslauncher/.features.launcher.LauncherActivity,finishActivity adjustFocus]
03-19 09:12:19.083 3125 3207 I am_set_resumed_activity: [0,foundation.e.blisslauncher/.features.launcher.LauncherActivity,finishActivity]
03-19 09:12:19.093 3125 3207 I am_pause_activity: [0,207375872,foundation.e.apps/.MainActivity,userLeaving=false]
03-19 09:12:19.095 2885 2885 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
03-19 09:12:19.095 2885 2885 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
03-19 09:12:19.099 3125 3207 I sysui_multi_action: [757,316,758,4,759,-1]
03-19 09:12:19.099 7856 7856 I am_on_paused_called: [0,foundation.e.apps.MainActivity,performPause]
03-19 09:12:19.100 3125 6159 I am_add_to_stopping: [0,207375872,foundation.e.apps/.MainActivity,finishCurrentActivityLocked]
03-19 09:12:19.102 3125 6159 I am_set_resumed_activity: [0,foundation.e.blisslauncher/.features.launcher.LauncherActivity,resumeTopActivityInnerLocked]
03-19 09:12:19.103 3125 6159 I am_resume_activity: [0,55863183,6,foundation.e.blisslauncher/.features.launcher.LauncherActivity]
interesting part is that after the error message "Can only download HTTP/HTTPS URIs:
" it should show the uri (see link in "Possible fixes") but it is just empty so its clear why the download manager crashes but not why the uri is empty.
Relevant screenshots
Solutions
Workaround
none
Possible fixes
relevant stuff I found:
- microg implementation: https://gitlab.e.foundation/e/apps/apps/-/commit/351287809e564b1518fb1be771cc3d05e11eadf0
- DownloadManager (where the error gets thrown): https://gitlab.e.foundation/e/os/android_frameworks_base/-/blob/v1-q/core/java/android/app/DownloadManager.java#L468
- Apps Download URI (likely?): https://gitlab.e.foundation/e/apps/apps/-/blob/master/app/src/main/java/foundation/e/apps/application/model/Downloader.kt#L99