diff --git a/app/Android.bp b/app/Android.bp index 59a8762..f6098f5 100644 --- a/app/Android.bp +++ b/app/Android.bp @@ -19,11 +19,16 @@ android_app { use_embedded_native_libs: true, + aaptflags: [ + "--rename-manifest-package", + "com.android.camera2", + ], + required: [ "ApertureFrameworksBaseOverlay", "ApertureLensLauncher", - "initial-package-stopped-states-org.lineageos.aperture", - "preinstalled-packages-org.lineageos.aperture", + "initial-package-stopped-states-com.android.camera2", + "preinstalled-packages-com.android.camera2", ], static_libs: [ @@ -68,17 +73,17 @@ android_app { } prebuilt_etc { - name: "initial-package-stopped-states-org.lineageos.aperture", + name: "initial-package-stopped-states-com.android.camera2", product_specific: true, sub_dir: "sysconfig", - src: "initial-package-stopped-states-org.lineageos.aperture.xml", + src: "initial-package-stopped-states-com.android.camera2.xml", filename_from_src: true, } prebuilt_etc { - name: "preinstalled-packages-org.lineageos.aperture", + name: "preinstalled-packages-com.android.camera2", product_specific: true, sub_dir: "sysconfig", - src: "preinstalled-packages-org.lineageos.aperture.xml", + src: "preinstalled-packages-com.android.camera2.xml", filename_from_src: true, } diff --git a/app/build.gradle.kts b/app/build.gradle.kts index db427e0..1a7fb9e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -17,7 +17,7 @@ android { namespace = "org.lineageos.aperture" defaultConfig { - applicationId = "org.lineageos.aperture" + applicationId = "com.android.camera2" minSdk = 26 targetSdk = 35 versionCode = 1 diff --git a/app/initial-package-stopped-states-org.lineageos.aperture.xml b/app/initial-package-stopped-states-com.android.camera2.xml similarity index 67% rename from app/initial-package-stopped-states-org.lineageos.aperture.xml rename to app/initial-package-stopped-states-com.android.camera2.xml index c233967..6889cc8 100644 --- a/app/initial-package-stopped-states-org.lineageos.aperture.xml +++ b/app/initial-package-stopped-states-com.android.camera2.xml @@ -4,5 +4,5 @@ SPDX-License-Identifier: Apache-2.0 --> - + diff --git a/app/preinstalled-packages-org.lineageos.aperture.xml b/app/preinstalled-packages-com.android.camera2.xml similarity index 85% rename from app/preinstalled-packages-org.lineageos.aperture.xml rename to app/preinstalled-packages-com.android.camera2.xml index 84e8492..152d315 100644 --- a/app/preinstalled-packages-org.lineageos.aperture.xml +++ b/app/preinstalled-packages-com.android.camera2.xml @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> - + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e74bedd..6f3805c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -29,8 +29,8 @@ - - + + diff --git a/app/src/main/java/org/lineageos/aperture/utils/RROResources.kt b/app/src/main/java/org/lineageos/aperture/utils/RROResources.kt index 2e624d9..2b55613 100644 --- a/app/src/main/java/org/lineageos/aperture/utils/RROResources.kt +++ b/app/src/main/java/org/lineageos/aperture/utils/RROResources.kt @@ -27,8 +27,8 @@ class RROResources private constructor(val context: Context, private val package companion object { fun getAutoGeneratedRROResources(context: Context) = listOf( - "org.lineageos.aperture.auto_generated_rro_product__", - "org.lineageos.aperture.auto_generated_rro_vendor__", + "com.android.camera2.auto_generated_rro_product__", + "com.android.camera2.auto_generated_rro_vendor__", ).mapNotNull { runCatching { RROResources(context, it) diff --git a/rro_overlays/ApertureFrameworksBaseOverlay/AndroidManifest.xml b/rro_overlays/ApertureFrameworksBaseOverlay/AndroidManifest.xml index 09a0a57..d3cc059 100644 --- a/rro_overlays/ApertureFrameworksBaseOverlay/AndroidManifest.xml +++ b/rro_overlays/ApertureFrameworksBaseOverlay/AndroidManifest.xml @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> diff --git a/rro_overlays/ApertureFrameworksBaseOverlay/res/values/config.xml b/rro_overlays/ApertureFrameworksBaseOverlay/res/values/config.xml index 08c03ba..e64c836 100644 --- a/rro_overlays/ApertureFrameworksBaseOverlay/res/values/config.xml +++ b/rro_overlays/ApertureFrameworksBaseOverlay/res/values/config.xml @@ -5,5 +5,5 @@ --> - org.lineageos.aperture/.QrScannerActivity + com.android.camera2/org.lineageos.aperture.QrScannerActivity