Aperture: Include as a preinstalled package

Change-Id: I16acf8e7f4ae70b08db5f6f5684d51486918aa28
diff --git a/app/Android.bp b/app/Android.bp
index e8d3aa8..900d033 100644
--- a/app/Android.bp
+++ b/app/Android.bp
@@ -24,6 +24,7 @@
     required: [
         "ApertureFrameworksBaseOverlay",
         "ApertureLensLauncher",
+        "preinstalled-packages-org.lineageos.aperture",
     ],
 
     static_libs: [
@@ -59,3 +60,11 @@
         proguard_flags_files: ["proguard-rules.pro"],
     },
 }
+
+prebuilt_etc {
+    name: "preinstalled-packages-org.lineageos.aperture",
+    product_specific: true,
+    sub_dir: "sysconfig",
+    src: "preinstalled-packages-org.lineageos.aperture.xml",
+    filename_from_src: true,
+}
diff --git a/app/preinstalled-packages-org.lineageos.aperture.xml b/app/preinstalled-packages-org.lineageos.aperture.xml
new file mode 100644
index 0000000..84e8492
--- /dev/null
+++ b/app/preinstalled-packages-org.lineageos.aperture.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     SPDX-FileCopyrightText: 2024 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<config>
+    <install-in-user-type package="org.lineageos.aperture">
+        <install-in user-type="FULL" />
+        <install-in user-type="PROFILE" />
+        <do-not-install-in user-type="android.os.usertype.profile.CLONE" />
+    </install-in-user-type>
+</config>