Is it possible to change the package name of an Android app on Google Play?

155,861

Solution 1

From Dianne Hackborn:

Things That Cannot Change:

The most obvious and visible of these is the “manifest package name,” the unique name you give to your application in its AndroidManifest.xml. The name uses a Java-language-style naming convention, with Internet domain ownership helping to avoid name collisions. For example, since Google owns the domain “google.com”, the manifest package names of all of our applications should start with “com.google.” It’s important for developers to follow this convention in order to avoid conflicts with other developers.

Once you publish your application under its manifest package name, this is the unique identity of the application forever more. Switching to a different name results in an entirely new application, one that can’t be installed as an update to the existing application.

More on things you cannot change here

Regarding your question on the URL from Google Play, the package defined there is linked to the app's fully qualified package you have in your AndroidManifest.xml file. More on Google Play's link formats here.

Solution 2

Nope, you cannot just change it, you would have to upload a new package as a new app. Have a look at the Google's app Talk, its name was changed to Hangouts, but the package name is still com.google.android.talk. Because it is not doable :) Cheers.

Solution 3

As far as I can tell what you could do is "retire" your previous app and redirect all users to your new app. This procedure is not supported by Google (tsk... tsk...), but it could be implemented in four steps:

  1. Change the current application to show a message to the users about the upgrade and redirect them to the new app listing. Probably a full screen message would do with some friendly text. This message could be triggered remotely ideally, but a cut-off date can be used too. (But then that will be a hard deadline for you, so be careful... ;))

  2. Release the modified old app as an upgrade, maybe with some feature upgrades/bug fixes too, to "sweeten the deal" to the users. Still there is no guarantee that all users will upgrade, but probably the majority will do.

  3. Prepare your new app with the updated package name and upload it to the store, then trigger the message in the old app (or just wait until it expires, if that was your choice).

  4. Unpublish the old app in Play Store to avoid any new installs. Unpublishing an app doesn't mean the users who already installed it won't have access to it anymore, but at least the potential new users won't find it on the market.

Not ideal and can be annoying to the users, sometimes even impossible to implement due to the status/possibilities of the app. But since Google left us no choice this is the only way to migrate the users of the old apps to a "new" one (even if it is not really new). Not to mention that if you don't have access to the sources and code signing details for the old app then all you could do is hoping that he users will notice the new app...

If anybody figured out a better way by all means: please do tell.

Solution 4

No, you cannot change package name unless you're okay with publishing it as a new app in Play Store:

Once you publish your application under its manifest package name, this is the unique identity of the application forever more. Switching to a different name results in an entirely new application, one that can’t be installed as an update to the existing application. Android manual confirms it as well here:

Caution: Once you publish your application, you cannot change the package name. The package name defines your application's identity, so if you change it, then it is considered to be a different application and users of the previous version cannot update to the new version. If you're okay with publishing new version of your app as a completely new entity, you can do it of course - just remove old app from Play Store (if you want) and publish new one, with different package name.

Solution 5

If you are referring to com.example.app, no I understand you can't it would be considered a new app

Share:
155,861
user2426316
Author by

user2426316

Updated on July 29, 2020

Comments

  • user2426316
    user2426316 almost 4 years

    I would like to know whether it is technically possible, not whether it is easy or not, to change the actual package name of an Android app that is on Google Play. What I mean by package name is the name that will show up in the URL. Please, can anyone tell me why this is / is not possible? Thanks!

    • stinepike
      stinepike almost 11 years
      the name that will show up in the URL.. what is that?? give ane example
  • Jasper
    Jasper almost 9 years
    While this is the best one can do to get the new app installed, one must remember that old app will still reside on the device - since this is a not really an upgrade, but new install (unless user manually uninstalls previous one). So you will have old app as well as new app on the device and probably with the same launcher icons - confusing the user about - old vs new one.
  • racs
    racs almost 9 years
    You are right, unfortunately it is not possible to remove the old app as part of the install process of the new app. However, it might be possible to detect the presence of the old app and warn the user to remove it. This can be done either on startup of the new app or in the post install event handler (developer.android.com/reference/android/content/…).
  • lahwran
    lahwran about 8 years
    worth mentioning, since I looked around for this - you can change the package name of the actual package in java, and basically everywhere else besides in the manifest. the one in the manifest is more or less independent of the one everywhere else.
  • Moritz Both
    Moritz Both over 7 years
    Also, the old app could detect the presence of the new one and simply show a toast or so, then start the new one, and exit.
  • datu-puti
    datu-puti over 6 years
    @lahwran I ran into issues with Android Studio building properly when they didn't match - the issues went away when they did.
  • lahwran
    lahwran over 6 years
    Interesting, I wonder if this has changed. I wouldn't be surprised if it worked once to make them different but was never supported.
  • Tejas Pandya
    Tejas Pandya about 6 years
    @Voicu is it possible to change the package name if we uploaded first build in beta mode and no want to change package at release mode
  • Femn Dharamshi
    Femn Dharamshi over 5 years
    so what happens if i have a paid version along with a free version with the same package name ? both on the play store as different apps
  • Karan Harsh Wardhan
    Karan Harsh Wardhan over 5 years
    you'd think google would have realized the problem themselves with this
  • Nilesh Panchal
    Nilesh Panchal over 5 years
    It is possible to change single letter from capital to small case in andorid app package name exist on play store?
  • Luzian
    Luzian almost 5 years
    But why doesn't Google allow this? I can see many reasons why someone might want to update the ApplicationID on Play store. This is a limitation that makes no sense. I would even pay for a change! Also it would probably be an easy change to implement for Google. Just redirect any requests in the Play Store to the new app ID, + handle updates on Android device.
  • Adam B
    Adam B over 2 years
    is there a way to change it BEFORE publishing?