Prebuilt apps missing from unofficial `v2.x` build (Iode, IodeBrowser, News, MagicEarth)
The problematic apps are all from this repos: Iode, IodeBrowser, News, and Magic Earth.
For all of these apps, they are present in the ROM build directory, and on the device, in system/product/app
BUT
- they are not present in the Trebuchet app drawer;
- they are not present in the list of installed apps from
Settings | Apps and notifications
, even withShow system
enabled; - the Homescreen shortcut containing both Iode and News is not present;
- when selecting
Preinstalled apps
fromSettings | Apps and notifications
(which should start Iode), a blank white screen is shown for a short while, then the mainSettings
screen is displayed. Tryon agin, the same happens, then theSettings keeps stopping
dialog is shown. The relevant lines from the (attachedlogcat
output) are
--------- beginning of crash
03-09 10:19:14.312 10920 10920 E AndroidRuntime: FATAL EXCEPTION: main
03-09 10:19:14.312 10920 10920 E AndroidRuntime: Process: com.android.settings, PID: 10920
03-09 10:19:14.312 10920 10920 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=iode://settings }
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2071)
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1731)
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:5314)
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:527)
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:5272)
03-09 10:19:14.312 10920 10920 E AndroidRuntime: at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:513)
<snip>
--------- switch to events
03-09 10:19:14.313 1288 4186 I am_crash: [10920,0,com.android.settings,952745541,android.content.ActivityNotFoundException,No Activity found to handle Intent { act=android.intent.action.VIEW dat=iode://settings },Instrumentation.java,2071]
<snip>
--------- switch to system
03-09 10:19:14.316 1288 4186 W ActivityTaskManager: Force finishing activity com.android.settings/.SubSettings
--------- switch to events
03-09 10:19:14.316 1288 4186 I wm_finish_activity: [0,83860376,13,com.android.settings/.SubSettings,force-crash
I have seen a similar problems when building LOS 20 / Android 13 ROMs. They were caused by apk signatures being stripped during the build, and the installed apps on the device were then incorrectly signed and so could not be run. I was able to work around some of these issues, by adding the following line in the Android.mk
for the affected apps
LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/$(LOCAL_MODULE).apk
I tried that, and other workarounds but none worked.
I will probably come back to this, when I've finished making an up-to-date v4.x
build for lilac
(and maybe sunfish
). If anyone has any idea how to proceed, I would be very grateful - I'm fresh out of ideas