How to apply a restriction on an app for a game store for android lollipop

Like the google chrome app, can we apply a restriction on the Google Play Store app? If someone tried, please respond using the package structure for this.

Thanks in advance!

+4
source share
2 answers

Please check the API below to limit chrome

final DevicePolicyManager manager =
            (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE);
final Bundle settings = new Bundle();
settings.putString("EditBookmarksEnabled", "false");
settings.putString("IncognitoModeAvailability", "1");
settings.putString("ManagedBookmarks",
                   "[{\"name\": \"Chromium\", \"url\": \"http://chromium.org\"}, " +
                   "{\"name\": \"Google\", \"url\": \"https://www.google.com\"}]");
settings.putString("DefaultSearchProviderEnabled", "true");
settings.putString("DefaultSearchProviderName", "\"LMGTFY\"");
settings.putString("DefaultSearchProviderSearchURL",
        "\"any URL\"");
settings.putString("URLBlacklist", "[\"facebook.com\", \"example.org\"]");

Now you can use

manager.setApplicationRestrictions(BasicDeviceAdminReceiver.getComponentName(activity),
                                   packageName,
                                   settings);

to set a limit.

+4
source

The Google Play Store app does not provide any restrictions for customizing the app.

To get a list of application restrictions that the application provides, you can either

0

All Articles