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.
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.
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 apksignerenabled me to install the application via ADB.