Hidden APP LAUNCHER APK Android in os version 10 to 12

104 Views Asked by At

I'm here because I don't know where to go anymore to get some idea of the following:

In my android code I have this:

private void deleteLabelIcon(Context context){
ComponentName CTD = new ComponentName(context, mainActivity.class);
context.getPackageManager().setComponentEnabledSetting(CTD, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
        }

With this only what I do in versions 11 and 10 or 12 of android is that the application cannot be uninstalled in configuration/application or it does not let you enter the application to force stop or uninstall the application.

But if I can drag it or give the application in the submenu to uninstall.

What I want to do is hide the application or that it cannot be uninstalled under any option.

I have seen that this code that I have from what I have read in versions prior to 10 seems that it hides the application but in 10 onwards it does not hide.

I would need help on how I have to proceed or ideas on how I can hide the application or something like that.

0

There are 0 best solutions below