Glimpse: Include as a preinstalled package
Change-Id: I16acf8e7f4ae70b08db5f6f5684d51486918aa28
diff --git a/app/Android.bp b/app/Android.bp
index d35edef..1b6e958 100644
--- a/app/Android.bp
+++ b/app/Android.bp
@@ -30,6 +30,7 @@
required: [
"GlimpseFrameworksBaseOverlay",
+ "preinstalled-packages-org.lineageos.glimpse",
],
static_libs: [
@@ -60,3 +61,11 @@
proguard_flags_files: ["proguard-rules.pro"],
},
}
+
+prebuilt_etc {
+ name: "preinstalled-packages-org.lineageos.glimpse",
+ product_specific: true,
+ sub_dir: "sysconfig",
+ src: "preinstalled-packages-org.lineageos.glimpse.xml",
+ filename_from_src: true,
+}
diff --git a/app/preinstalled-packages-org.lineageos.glimpse.xml b/app/preinstalled-packages-org.lineageos.glimpse.xml
new file mode 100644
index 0000000..ad83050
--- /dev/null
+++ b/app/preinstalled-packages-org.lineageos.glimpse.xml
@@ -0,0 +1,13 @@
+<?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.glimpse">
+ <install-in user-type="FULL" />
+ <install-in user-type="PROFILE" />
+ <do-not-install-in user-type="android.os.usertype.profile.CLONE" />
+ <do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
+ </install-in-user-type>
+</config>