Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change apk name by editing manifest file?

Tags:

I want to change my apk name in the project workspace. How to do it by editing the AndroidManifest.xml file?

like image 902
indira Avatar asked Jul 21 '11 14:07

indira


People also ask

How do I change the name of 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.

How do I edit an apk manifest?

To edit the apk, open explorer and navigate to the folder apktool is unzipped to, and open the folder with the name of your apk. Inside you'll find a bunch of folders and a file called AndroidManifest. xml. If you want to edit the icon, open res -> drawable.

Can we change package name of apk?

I would recommend unpacking the apk with apktool, and then edit the apktool. yml, setting renameManifestPackage to the new package name. Then when you rebuild the apk with apktool, it should use aapt's --rename-manifest-package functionality to change the package name.


2 Answers

In manifest file, you can change the application label only. If you want to change the apk file name, you should change your project name. To do this, you just right click on your project in Navigator windows, choose Refactor>Rename and type a new name for it.

like image 86
Nguyen Minh Binh Avatar answered Dec 03 '22 07:12

Nguyen Minh Binh


android update project --name your_desired_name --path . 

This changes the ANT project name in build.xml.

like image 37
Alexander Bunkenburg Avatar answered Dec 03 '22 07:12

Alexander Bunkenburg