# Android: Overriding Application Package Name/ID

**URL:** <https://discuss.px4.io/t/android-overriding-application-package-name-id/47285>\
**Category:** Development\
**Created:** [September 2, 2025, 4:42pm UTC](https://discuss.px4.io/t/android-overriding-application-package-name-id/47285 "2025-09-02T16:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyorig](https://discuss.px4.io/user_avatar/discuss.px4.io/lyorig/32/20253_2.png) [@lyorig](https://discuss.px4.io/u/lyorig)\
**Post date:** [September 2, 2025, 4:42pm UTC](https://discuss.px4.io/t/android-overriding-application-package-name-id/47285/1 "2025-09-02T16:42:15Z")

</div>

Hi, I’ve changed both `QGC_PACKAGE_NAME` and `QGC_ANDROID_PACKAGE_NAME` in my custom directory’s `CustomOverrides.cmake` (and verified via `ccmake` that they’re correctly set before building), but the resulting APK still has an ID of `org.mavlink.qgroundcontrol` (checked via `apkanalyzer manifest application-id <apk>`). Is there something else I need to do? Thanks.

---

<div class="post-metadata">

**Author:** ![DevJhones](https://discuss.px4.io/user_avatar/discuss.px4.io/devjhones/32/16112_2.png) [@DevJhones](https://discuss.px4.io/u/DevJhones)\
**Post date:** [September 2, 2025, 7:43pm UTC](https://discuss.px4.io/t/android-overriding-application-package-name-id/47285/2 "2025-09-02T19:43:14Z")

</div>

Hello, in the Android manifest, change android:label to the desired name and generate a new APK, it should work. Just like a logo, just change it in the Android Drawable.

---

<div class="post-metadata">

**Author:** ![lyorig](https://discuss.px4.io/user_avatar/discuss.px4.io/lyorig/32/20253_2.png) [@lyorig](https://discuss.px4.io/u/lyorig)\
**Post date:** [September 3, 2025, 6:49am UTC](https://discuss.px4.io/t/android-overriding-application-package-name-id/47285/3 "2025-09-03T06:49:38Z")

</div>

Sadly, that doesn’t appear to have worked. To add some context, I’m trying to build QGC for Herelink and the last step I’m stuck on is the fact that Herelink comes with QGC, which you apparently cannot uninstall. This causes the installation process to fail because the signing keys are different.

From what I’ve gathered, the app ID should be configurable via the `applicationId` property in `build.gradle`, but doing that errors out again:

> Could not set unknown property ‘applicationId’ for extension ‘android’ of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

Oh well. 🥲

**EDIT:** I’ve managed to (quite crudely, I should say) achieve the end result—disassembling the APK with `apktool d <apk>`, manually editing the `package` attribute in `AndroidManifest.xml`, re-packing it with `apktool b <dir>`, and lastly signing with `apksigner`enabled me to install the application via ADB.
