Application licenses Android are digital keys that confirm the legality of using paid software, subscriptions or premium functions. Over time, they can accumulate on the system, taking up memory space, causing update conflicts, or even blocking the installation of new versions of apps. For example, if you deleted an application, but its license remained in the system, when you reinstall it, you may encounter errors like ERROR_LICENSE_CHECK_FAILED or 492 in Google Play.
In this article we will look at all current methods for removing licenses โfrom standard Android tools to advanced methods using ADB i manual editing of system files. We will pay special attention to the nuances for different OS versions (from Android 10 to Android 15), as well as the risks that arise from incorrect actions. If you have encountered problems after buying a device in person, changing your account Google or resetting the settings, here you will find solutions.
Before you begin, please note: some methods require root access or debugging by USB. If you are unsure of your skills, start with the safe methods (Sections 2-3). For experienced users, we have prepared extended instructions with commands ADB and analysis of system folders.
1. What are Android licenses and why do they need to be removed?
An application license is a unique digital certificate that is tied to:
- ๐ฑ Device (via
Android IDorIMEI) - ๐ค Google account (if the purchase was made via Play Market)
- ๐ณ Payment method (for subscriptions)
Most licenses are stored in secure system folders:
/data/app-lib/ (outdated for new versions),
/data/data/com.android.vending/ (for Google Play),
/data/system/packages.xml (list of all installed packages).
When deleting an application using standard means, the license often remains in these folders, which leads to:
- ๐ Conflicts versions: the new version of the app โseesโ the old license and refuses to work.
- ๐ฐ Problems with payment: Google Play can block purchases, believing that the license is already active.
- ๐ Memory clogging: hundreds of megabytes of unnecessary data in folders
/data.
The problem is especially pressing for devices purchased secondhand. The previous owner may not have deleted his licenses, and now they prevent you from using paid functions. For example, in games like Genshin Impact or Honor of Kings old licenses may block login to your account.
Before deleting licenses, make a backup copy of your data via adb backup or applications like Swift Backup. This will help restore purchases if something goes wrong.
2. Method 1: Removing licenses through Android settings (without root)
The most secure method that works on all devices without additional tools. Suitable for removing licenses for specific applications that you installed through Google Play.
Instructions:
- Open
Settings โ Applications. - Select tab
All applications(orInstalleddepending on the firmware). - Find the application whose license you want to remove and tap on it.
- Select
Storage and cache โ Delete data. - Return to the main application menu and click
Delete(if it is still installed). - Restart the device.
This method will work for most common applications, but will not help with:
- ๐ System licenses (for example, for Google Apps).
- ๐ฎ Games with DRM protection (such as FIFA Mobile or Call of Duty: Mobile).
- ๐ฑ Licenses linked to the account (need to unlink via Google Play).
Why can the license remain after deleting the data?
When deleting through the settings, only the cache and user data of the application are cleared. The license itself is stored in a protected area /data/app-asec/ or in the database. data Google Play Services. To completely remove, you need root access or ADB commands.
If after these steps the license error still appears, proceed to the next method.
3. Method 2: Resetting licenses through Google Play (for subscriptions and purchases)
If the problem is related to paid subscriptions or in-app purchases (for example, YouTube Premium, Spotify, Tinder Gold), they can be reset through the web interface Google Play. This will not physically remove licenses from the device, but will unlink them from your account.
How to do:
- Go to the website play.google.com and log in.
- Open the menu
Account โ Payments and subscriptions โ Order history. - Find the desired application and click
Cancel subscriptionorReturn(if available). - To completely reset licenses, go to
Settings โ Licensesand selectReset.
Important: this method only works for purchases linked to your account Google. If the license was purchased on another account or through a third-party store (for example, Amazon Appstore), it will not appear in Google Play.
| License type | Can I reset via Google Play? | Alternative method |
|---|---|---|
| Paid application (one-time purchase) | โ Yes | Removal via ADB (method 4) |
| Subscription (monthly/annual) | โ Yes | Cancellation via the developer's website |
| DRM license (games, movies) | โ No | Reset to factory settings |
| System licenses (Google Apps) | โ No | root access + editing /system |
Resetting licenses via Google Play does not physically remove them from the device, but only breaks the connection with your account. For complete removal, more radical methods are needed.
4. Method 3: Removing licenses via ADB (without root, but with debugging)
The tool Android Debug Bridge (ADB) allows you to manage system files without obtaining root access. This method is suitable for experienced users and requires connecting the device to a computer.
What you will need:
- ๐ฅ๏ธ A computer with ADB and Fastboot installed.
- ๐ฑ Enabled USB debugging on the phone (
Settings โ About phone โ Build numberโ tap 7 times, thenSettings โ System โ For developers โ USB debugging). - ๐ USB cable (preferably original).
Step-by-step guide:
- Connect your phone to the PC and confirm permission to debug.
- Open the command line (Windows) or terminal (macOS/Linux) and enter:
adb devicesMake sure that the device appears in the list.
- Run the command to remove licenses for a specific package (replace
com.example.appwith the name of the application package):adb shell pm clear com.android.vendingadb shell pm uninstall -k --user 0 com.example.app - To completely reset the cache Google Play Services:
adb shell pm clear com.google.android.gms - Reboot device:
adb reboot
If you do not know the name of the application package, find it using the command:
adb shell pm list packages | grep "application_name"
For example, for Netflix this will be com.netflix.mediaclient.
โ๏ธ Preparing to work with ADB
โ ๏ธ Attention: commands pm clear and pm uninstall can lead to loss of data in the application Do not use them for system components (for example, com.android.systemui), this will cause the OS to crash.
5. Method 4: Manual removal of licenses (root access required)
If the previous methods did not help, and the device has root access, you can delete licenses manually through a file manager with superuser rights (for example, Root Explorer or FX File Explorer).
Where to look for licenses:
| Path | What is stored | Can I delete |
|---|---|---|
/data/app-lib/[application_package] |
Libraries and licenses of older versions of applications | โ Yes |
/data/data/com.android.vending/databases/library.db |
Google Play license database | โ ๏ธ Caution (may disrupt the store) |
/data/system/packages.xml |
List of all installed packages with license tags | โ No (risk of losing all applications) |
/data/app-asec/ |
Encrypted DRM licenses | โ Yes (but requires reboot) |
Instructions:
- Open Root Explorer and provide root access.
- Go to
/data/app-asec/and delete folders with the names of applications whose licenses need to be erased. - Clear the cache Google Play Services in
/data/data/com.google.android.gms/. - Reboot the device.
Critical: deleting files in /data/system/ without a backup can lead to the device being โbrickedโ (completely inoperable). Make a backup before proceeding. via TWRP or Titanium Backup.
How to restore the system after an unsuccessful deletion?
If, after manipulating root, the device does not boot, boot into recovery mode (usually Power + Volume Up) and restore the backup via TWRPIf. There is no backup, you will have to reflash the device.
6. Method 5: Full reset to factory settings (extreme method)
If none of the methods helped, and the licenses interfere with the operation of the device, the only option left is hard reset reset to factory settings. This will delete:
- ๐ฑ All installed applications and their data.
- ๐ All licenses, including system ones.
- ๐ค All accounts and personal settings.
How to reset:
- Go to
Settings โ System โ Reset settings. - Select
Delete all data (factory reset). - Confirm the action (you may need to enter a PIN code or pattern key).
- Wait for the process to complete (it will take 5-15 minutes).
โ ๏ธ Attention: on some devices (for example, Samsung s Knox, Xiaomi s MIUI) after the reset it may work protection FRP (Factory Reset Protection). To unlock the phone, you will need to enter the account information Googlethat was linked before the reset. If you don't remember your password, use Google recovery service.
After reset:
- ๐ Do not restore data from a backup - this may return old licenses.
- ๐ฅ Reinstall applications from Google Play.
- ๐ Link a new account Googleif you are selling the device.
7. How to avoid licensing problems in the future
To avoid encountering license conflicts, follow these rules:
- ๐ Uninstall applications correctly: Use
Delete + Clear datarather than simply uninstalling. - ๐ฅ Do not install pirated APKs: they often contain fake licenses that conflict with legitimate ones.
- ๐ Unlink accounts before selling:
Settings โ Accountsdelete all profiles Google and Samsung/Xiaomi. - ๐ฑ Clear your cache regularly: Use SD Maid or CCleaner to delete unnecessary license files.
If you frequently install and uninstall paid apps, consider use virtual spaces (for example, Island or Shelter). They allow you to isolate applications with their licenses in a separate profile without affecting the main system.
The best prevention of problems with licenses is careful management of applications and regular cleaning of the system from digital debris.
FAQ: Frequently asked questions about licenses for Android
Can I delete a license without deleting the application itself?
Yes, but only for some types of licenses. For example, in Google Play you can cancel your subscription without deleting the application. However, to completely remove license files from the system, you will need to either uninstall the app or manually clean it through ADB/root.
Why does the license remain after deleting the application?
Android stores licenses in protected system folders (/data/app-asec/, /data/data/com.android.vending/) so that when you reinstall, you do not need to reconfirm the purchase. This is convenient for users, but can cause conflicts.
Can licenses be transferred to another phone?
The transfer of licenses depends on the type of purchase:
- ๐ฑ Applications from Google Play: tied to the account, automatically transferred upon authorization.
- ๐ฎ Games with DRM: often tied to the device (for example, Genshin Impact requires re-authorization).
- ๐ณ Subscriptions: transferable, but payment confirmation may be required on the new device.
To transfer system licenses (for example, for Google Camera to Pixel) will be required root access and manual copying of files.
What to do if the application stops working after deleting the license?
You have probably deleted a critical license file. Try:
- Reinstall the application from Google Play.
- Clear cache and data Google Play Services.
- If that doesnโt help, restore the backup (if you have one) or contact the developer support with error logs.
How to check which licenses are installed on my device?
Without root access, you can only see the list of purchased applications in Google Play (Menu โ Library). For a complete analysis:
- Install Termux and run the command:
suls /data/app-asec/ - Use Root Browser to view folders
/data/data/com.android.vending/.
โ ๏ธ Be careful: changing files in these folders without knowledge can break the system.