---
agentTools:
  projectIndex: https://ethosmobile.readme.io/llms.txt
---

# New System app on ethOS

The definitive guide.

First create an apk file out of your App.

* Create a Directory for your App under packages/apps. F.e.: for the Three Browser its packages/apps/ethOSBrowser.

Make sure to add these lines to the very top of your AndroidManifest.xml file:

```xml
android:sharedUserId="android.uid.system"
coreApp="true"
```

###

They should be defined right below the “package” definition.

* Add your APK to the dir, and create a File called [Android.mk](https://github.com/EthereumPhone/android_packages_apps_dappstore/blob/main/Android.mk).

The file [Android.mk](https://github.com/EthereumPhone/android_packages_apps_dappstore/blob/main/Android.mk) should look like this:

```makefile Makefile
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := ethOSBrowser
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_SRC_FILES := app-debug.apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE_PATH := $(TARGET_OUT_PRIVILEGED_MODULES)
include $(BUILD_PREBUILT)
```

###

Just replace the LOCAL\_MODULE with your Directory name, and the LOCAL\_SRC\_FILE with the filename of your apk file.

Now edit the file [build/make/target/product/handheld\_system.mk](https://github.com/EthereumPhone/android_build/blob/lineage-18.1/target/product/handheld_system.mk). Add your Directory-Name/LOCAL\_MODULE to the PRODUCT\_PACKAGES section.

###

***

As always, [ping us on discord](https://discord.com/invite/FtVvK7B2KT) if you have any questions or need some help!

##