Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the name of the apk file?

I build apk file with help of https://build.phonegap.com/apps/ portal evrey time I build debug or release apk file the names are:

______debug.apk or ______release.apk

I want to change the name of the release apk to something more significant, for example MyProject-v2.apk.

Any idea how can I change the name of the the apk file when it build?

like image 287
Michael Avatar asked Oct 22 '17 10:10

Michael


People also ask

How do I rename an apk file?

Navigate to the folder in which your apk is present. In that folder select your APK file. Right-click on it and click on rename option to rename your APK file.

Is it OK to rename apk file?

You're fine with changing the apk name, as long as you're not changing the extension or breaking the keystore. (This won't happen by just changing the APK name). Please note: changing the apk name does not change 'the app'. It's about the package id (com.

Can we edit apk file?

To edit the files inside, you'll need to decompile (and then recompile) the package using APKtool on a computer. Editing APK files requires knowledge of Java, as well as the file systems on both Windows and Android. This should only be done by advanced users.


2 Answers

No, sadly you cannot control the file name in the config.xml, but the file name doesn't matter. In the config.xml, you specify the name of your app as it will appear to the users on their mobiles, and that's what matters.

If you like to give the file a specific name for your own file management (which is what I do too), you'll have to manually rename the file every time you create a new build.

like image 108
Racil Hilan Avatar answered Nov 14 '22 21:11

Racil Hilan


The thing you should know is that APK names does not matter in its file name, What matters is what you said in the AndroidManifest.xml in the Application label:

 android:label="@string/app_name"

This is the only app name and it can even be different from package name so the apk being called ______debug.apk or ______release.apk doesnt matter it is just to differenciate if it is debug or release. You can just rename it just like any file in your computer even Michael.apk. And still all android phones will ignore the file names and go get the label at android:label="@string/app_name" so just copy the file and change it to anything you want and it works.

like image 33
Xenolion Avatar answered Nov 14 '22 20:11

Xenolion