- How To Find Package Name Of An Android App
- Package Name Of An Android App
- 3 Methods To Change Or Rename Android App Package Name in Android Studio
- Method I – How to rename android app package name in Android Studio
- STEP 1
- STEP 2
- STEP 3
- STEP 4
- STEP 5
- STEP 6
- STEP 7
- STEP 8
- STEP 9
- STEP 10
- STEP 11
- Method 2 – How to change full package name of project by creating new package
- STEP 1
- STEP 2
- STEP 3
- STEP 4
- STEP 5
- STEP 6
- STEP 7
- STEP 8
- STEP 9
- STEP 10
- STEP 11
- STEP 12
- Method III – How to rename android app package name in Android Studio using existing package
- STEP 1
- STEP 2
- STEP 3
- STEP 4
- STEP 5
- STEP 6
- STEP 7
- STEP 8
- STEP 9
- STEP 10
- How to Get App Package Name on Android [3 Methods]
- Method 1: Get Android App Package Name via Play Store URL
- On PC
- On Mobile
- Method 2: Get Android App Package Name via a Third-Party App
- Method 3: Get Android App Package Name via ADB Commands
- About Chief Editor
- Sadique Hassan
How To Find Package Name Of An Android App
Last updated on 04/12/2017 by Pradeep Kumar ( Twitter) | Short URL: https://device.is/2Bw4Yvu
This is a very simple tip to find the package name of an Android app. This tip will be useful for you when you download APK files from Google Play Store. Some online tools require you to provide package name for the Android app you are going to download, so we decided to write this tip here. When I first heard the word “package name” I thought this will be technical, but honestly it is no where near to that.
Package Name Of An Android App
Go to Google Play Store, search and open your desired Android app. Now see the link in the address bar. I decided to open the link of “Subway Surfers” app. It’ll look like this:
Here the Package name of “Subway Surfers” Android app is com.kiloo.subwaysurf
https://play.google.com/store/apps/details?id=com.kiloo.subwaysurf
Similarly you can check this with other popular Android apps, we tried it once again with “WhatsApp” app. See the screenshot below.
Almost all the Android application package names will begin with “com”, heard it is used to avoid name-collisions between applications. After finding the package name for your desired app, you can easily download its APK file from Google Play Store.
Having any queries regarding this? Facing any trouble? Do you have any other easy method? Feel free to share them in the comments below.
Источник
3 Methods To Change Or Rename Android App Package Name in Android Studio
Sometimes, we make our app using the code from youtube tutorials and blogs and may forget to change the package name at the start. Yes, this happens, most of the time.
We don’t want to display other website name or Youtube channel name to be as our package name, We want a package name that defines us. If you are searching for a tutorial about how to change or rename the Android app package name in Android Studio, then this post is for you.
Method I – How to rename android app package name in Android Studio
In this example, we will change package name com.androidride.myapplication” to “com.xyz.yourapplication”.
STEP 1
- Open Android Studio project, Select package name or Java, Click the gear icon.
STEP 2
- Deselect Hide Empty Middle Packages. This breaks your folder structure into parts.
- The package is brocken down.
STEP 3
- Right Click on AndroidRide, Refactor -> Rename . You can also use Shift + F6.
A warning will appear.
STEP 4
- Click on Rename package
STEP 5
- Clear AndroidRide and put new Name in it. Here “xyz”
STEP 6
- Click Do Refactor
STEP 7
- Repeat the same process.
- Right click on myapplication,Refactor -> Rename and Rename package.
STEP 8
- Change myapplication to yourapplication
STEP 9
- Click on Do Refactor.
STEP 10
- After changing the package name, open build.gradle(module) and change Application Id
STEP 11
- change applicationid “com.androidride.myapplication” to “com.xyz.yourapplication”.
- After changing applicationid, click on sync now.
Method 2 – How to change full package name of project by creating new package
In this method, We are going to change package name “com.androidride.myapplication” to “info.xyz.yourapplication”
STEP 1
- Right click on com.androidride.myapplication package and select Refactor->Move
STEP 2
- Choose Move package “com.androidride.myapplication” to another package and click on OK.
STEP 3
Now you will get a warning dialog shows Multiple directories correspond to package com.androidride.myapplication
- Click on Yes
STEP 4
- Enter the new package name except the last level, For example. If you want to make package name as “info.xyz.yourapplication” then type “info.xyz” only, like above. Avoid the last part, here “yourapplication”.
STEP 5
- Click YES for creating new package.
STEP 6
- Click on Do Refactor. Now package name “com.androidride.myapplication” changes into “info.xyz.myapplication“.
STEP 7
Now we have to change the last package level name,
- Right click on package name -> Refactor -> Rename
STEP 8
- Click on Rename package
STEP 9
- Rename “myapplication” in to “yourapplication”.
STEP 10
- Click on “Do Refactor”
STEP 11
- Use CTRL key and select each package related to old package name and delete. You can use DELETE key in keyboard or right click after selecting old packages and click on delete option from the menu.
STEP 12
- Open build.gradle file, change applicationId and Click on sync now.
Package name successfully changed to “info.xyz.yourapplication“.
Method III – How to rename android app package name in Android Studio using existing package
This method is also same as the second method. Just like second, we change package name “com.androidride.myapplication” to “info.xyz.yourapplication“.
STEP 1
- Right click on Java and select New -> Package
STEP 2
- Next dialog box appears, choose …app\src\main\java as Destination Directory.
STEP 3
- Enter your package name, here info.xyz.yourapplication
STEP 4
- Now move old package files into new package. Here move files from “com.androidride.myapplication” to “info.xyz.yourapplication“. Just use CTRL key to select all files and drag it to new package.
STEP 5
- Open AndroidManifest.xml and change package name into “info.xyz.yourapplication“
STEP 6
- Open build.gradle (Module: app) file, change applicationId also. Change it to “info.xyz.yourapplication” and Click on Sync now.Now you might get errors. It is due to the R file import. There are two scenarios, we can do.
- Remove R file import line from both files and check the error still exists. If not then you can delete old package files now
It’s done. You have successfully changed the package name.
Otherwise, If the error still exists, do the below steps.
STEP 7
- Select R file import line just like above and press CTRL + SHIFT + R . Replace with new package name. Click on replace all.
STEP 8
- Click on replace
STEP 9
- Delete old package and related files
STEP 10
Yes, the package name is changed.
Express your thoughts below and tell your friends about this post. Thank you.
Источник
How to Get App Package Name on Android [3 Methods]
In this guide, we will share three different methods to get the package name of all the installed apps on your Android device. The apps installed on your device are labeled via two different methods. The first one is the general name that you usually come across such as Facebook, WhatsApp, etc. These are the name that the everyday users deals with and searches for on Play Store.
On the other hand, there’s an associated application ID or app package name, which acts as a unique identifier for each app. For example, Facebook has the package name com.facebook.katana and WhatsApp has com.whatsapp. These are the names used by backend people and developers alike. Furthermore, while you may come across many apps on the Play Store by the name of Facebook, but none could have the com.facebook.katana as their package.
So if you have ever any doubt regarding the app’s authenticity, then you may count on this factor. With that said, how could you get hold of the package name of all the installed apps on your Android device? Well, there are three different methods for the same, and in this guide, we will make you aware of all these three approaches. So without further ado, let’s get started.
Table of Contents
Method 1: Get Android App Package Name via Play Store URL
This method is extremely easy to execute. However, if you are looking to get the name of various installed apps in one go, then it would require quite a lot of manual effort. But for a few apps, this should be your go-to method. Here’s how to use it:
On PC
- First off, head over to the Play Store website on your PC.
- Now search for the desired app (as an example, let’s go with Facebook)
- Then head over to its search bar and check out its URL, it will be something along this line:
- As an example, in the case of Facebook, the URL will be
- Now the portion after be the app’s package name. So for Facebook, it turns out to be com.facebook.katana.
So this was the first method to get the app package name via Play Store and PC. Let’s see how to try out this Play Store trick on your phone.
On Mobile
- Open the Play Store app on your device and search for the desired app (let’s say WhatsApp).
- Under the app listing’s page, tap on the overflow icon situated at the top right and select Share.
- Now just share/save this URL anywhere you wish. The URL will be of the same format as mentioned above, i.e.
- As an example, in the case of WhatsApp, the URL turns out to be
- As before the app package name will be the portion after So for WhatsApp, it turns out to be com.whatsapp.
The other method involves opening the Play Store website on your smartphone browser, changing its view to Desktop Mode, and then getting hold of the URL. With that, we round off this first method to get the package name of all the installed apps on your Android device. Let’s now turn our attention towards the other two methods.
Method 2: Get Android App Package Name via a Third-Party App
The benefit of this method is the fact that you require minimal effort. Furthermore, it is able to display both the user installed as well as system apps. The UI is also user-friendly. However, I have never been in favor of using third-party apps and giving them access to my device, unless it is of paramount importance. With that said, if you wish to try it out, then follow the below instructions:
- To begin with, download the App Package Viewer 2.0 from Play Store.
- Then launch it and select the desired app from the list.
- Now tap on that app’s name and you should get its associated package name.
That’s it. This is perhaps the easiest method to get the package name of all the installed apps on your Android device. Now let’s check out the third and final method to carry out this task.
Method 3: Get Android App Package Name via ADB Commands
The benefit of this method is the fact that apart from getting the app’s package name, you could even remove the user-installed and system-installed apps on your device via these ADB Commands. Without Root! On the flip side, this method requires a few prerequisites and some level of technicalities as well. But if you are ready to challenge your inner-geek, then this method is tailored made for you. Follow along.
- To begin with, download and install the Android SDK Platform Tools on your PC. These are the official ABD binary files provided by Google.
- Extract its content to any convenient location on your PC and you should get the platform-tools folder.
- Now head over to your Android device and enable USB Debugging. This will make your device recognizable by your PC in ADB mode. So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Developer Options > Enable USB Debugging.
- When that is done, connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
- Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
- Now type in the below command in the CMD window and hit Enter:
Then type in the below command and you should get a list of all the installed apps:
List of Apps on my OnePlus 7T. View Full-Size Image
That’s it. With this, we conclude the guide on how to get the package name of all the installed apps on your Android device. We have shared three different methods for the same, do let us know in the comments which one you ultimately settled for.
About Chief Editor
Sadique Hassan
A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”
Источник