Complete guide for compiling /e/

Hi @pjmbraet , yes that is possible. In a custom build you can replace some of the apps added to /e/ by default and put in your own apps. As you would expect there is a process to doing this. You have to also make changes in a couple of places.

To remove a default app : In the docker code take out that app name from the list
Suppose this is the default list of apps
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal AnySoftKeyboard Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain QKSMS LibreOfficeViewer’” \

  1. To remove Light from the list of apps remove it from the parameters and pass this command

-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal AnySoftKeyboard Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend DroidGuard OpenKeychain QKSMS LibreOfficeViewer’” \

Also change the command here :
browse to this location ~/e/src/OREO/vendor/lineage/config$
there in common.mk remove the app name if present.
You will find it here in the very first line

PRODUCT_PACKAGES += ‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Light Weather Notes NominatimNlpBackend DroidGuard OpenKeychain QKSMS LibreOfficeViewer’

  1. To add an app use this folder as an example
    . Browse here ~/e/src/OREO/prebuilts/prebuiltapks$
    . Here you will find a folder Light
    . Open the folder and check the contents. There are two files one an apk and the other an Android.mk file.
    . Similar to this you have to create a folder for the app you want to add.
    Say you want to add Whatsapp :frowning:
    Download the latest apk for Whatsapp from Apkpure
    . Create a folder inside prebuiltsapks with the name Whatsapp
    . Inside this newly created folder add the apk you downloaded and add an Android.mk file.
    The Android.mk file for the Whatsapp app will have two changes

LOCAL_MODULE := Whatsapp
LOCAL_SRC_FILES := theexactwhatsappappname.apk

. Copy paste the complete apk name here including the .apk part

Now return to the common.mk inside ~/e/src/OREO/vendor/lineage/config$
there add the name of the app for which you created the folder…in this example Whatsapp

So the line will now read something like this

PRODUCT_PACKAGES += ‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Whatsapp Light Weather Notes NominatimNlpBackend DroidGuard OpenKeychain QKSMS LibreOfficeViewer’

  1. Now when you run the build command you pass the variable for Whatsapp in the list …something like this

-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal AnySoftKeyboard Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light Whatsapp DroidGuard OpenKeychain QKSMS LibreOfficeViewer’” \

Remember you cannot remove some apps as they are critical for the running of the phone. Try this out and experiment with various options. There are a number of errors conditions this can result in …they would be mainly because the apk name was not correctly added, or there are extra spaces in the command passed.

If you are using Ubuntu ,GEdit changes the color of the code and text lines which makes it easy to understand if your edits are correct. Always use a code editor else you may make mistakes for example if using Notepad of windows you will see everything as text and end up making errors.

Enjoy experimenting!!!

Footnote: Its been more than six months since I have tried this method but it is the standard method of adding and removing so it should work.

3 Likes