Stay organized with collections
Save and categorize content based on your preferences.
MissingSplitsManager
public
interface
MissingSplitsManager
com.google.android.play.core.missingsplits.MissingSplitsManager
|
This interface is deprecated.
the feature is now obsolete. Installs with missing splits are now blocked on devices
which have Play Protect active or run on Android 10.
Handles situations when the installed app is missing required split APKs.
To learn more, read Verify
non-Google Play app installs.
Summary
Public methods |
abstract
boolean
|
disableAppIfMissingRequiredSplits()
This method is deprecated.
the feature is now obsolete. Installs with missing splits are now blocked on
devices which have Play Protect active or run on Android 10.
|
abstract
boolean
|
isMissingRequiredSplits()
This method is deprecated.
the feature is now obsolete. Installs with missing splits are now blocked on
devices which have Play Protect active or run on Android 10.
|
Public methods
disableAppIfMissingRequiredSplits
public abstract boolean disableAppIfMissingRequiredSplits ()
This method is deprecated.
the feature is now obsolete. Installs with missing splits are now blocked on
devices which have Play Protect active or run on Android 10.
If your app is missing a required split APK, this API gracefully closes the app. Additionally,
if the app is started by an explicit user action, the user is informed that the app is not
installed correctly.
Using this API might include the following side effects:
- If a required split APK is missing, disables all non-activity app components.
- if no required split APK is missing and all non-activity components are currently
disabled (indicating that their state was manipulated by PlayCore), resets all non
activity app components to their default enabled state.
- Stops the current OS process (including explicitly cancelling all app tasks via
ActivityManager.AppTask.finishAndRemoveTask()
) and starts a new OS process for PlayCoreMissingSplitsActivity.
For examples of typical use cases, including usages in Application.onCreate()
, see
Check for
missing app components.
Returns |
boolean |
true if the app is missing some required splits, false otherwise |
isMissingRequiredSplits
public abstract boolean isMissingRequiredSplits ()
This method is deprecated.
the feature is now obsolete. Installs with missing splits are now blocked on
devices which have Play Protect active or run on Android 10.
Checks whether the app is missing a required split APK, without any side effects, such as
disabling the app.
You should typically use this API to manually skip initialization logic of custom ContentProvider
implementations. That's because ContentProvider
instances are
initialized before the Application
.
For examples of typical use cases, including usage in ContentProvider.onCreate()
,
see Check for
missing app components.
Returns |
boolean |
true if the app is missing some required splits, false otherwise |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MissingSplitsManager\n====================\n\n\n`\npublic\n\n\ninterface\nMissingSplitsManager\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------|\n| com.google.android.play.core.missingsplits.MissingSplitsManager |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface is deprecated.** \n\nthe feature is now obsolete. Installs with missing splits are now blocked on devices\nwhich have Play Protect active or run on Android 10.\n\nHandles situations when the installed app is missing required split APKs.\n\nTo learn more, read [Verify\nnon-Google Play app installs](https://d.android.com/guide/app-bundle/sideload-check).\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[disableAppIfMissingRequiredSplits](../../../../../../../reference/com/google/android/play/core/missingsplits/MissingSplitsManager.html#disableAppIfMissingRequiredSplits())`() ` *This method is deprecated. the feature is now obsolete. Installs with missing splits are now blocked on devices which have Play Protect active or run on Android 10.* |\n| ` abstract boolean` | ` `[isMissingRequiredSplits](../../../../../../../reference/com/google/android/play/core/missingsplits/MissingSplitsManager.html#isMissingRequiredSplits())`() ` *This method is deprecated. the feature is now obsolete. Installs with missing splits are now blocked on devices which have Play Protect active or run on Android 10.* |\n\nPublic methods\n--------------\n\n### disableAppIfMissingRequiredSplits\n\n```\npublic abstract boolean disableAppIfMissingRequiredSplits ()\n```\n\n\n**This method is deprecated.** \n\nthe feature is now obsolete. Installs with missing splits are now blocked on\ndevices which have Play Protect active or run on Android 10.\n\nIf your app is missing a required split APK, this API gracefully closes the app. Additionally,\nif the app is started by an explicit user action, the user is informed that the app is not\ninstalled correctly.\n\nUsing this API might include the following side effects:\n\n- If a required split APK is missing, disables all non-activity app components.\n- if no required split APK is missing and all non-activity components are currently disabled (indicating that their state was manipulated by PlayCore), resets all non activity app components to their default enabled state.\n- Stops the current OS process (including explicitly cancelling all app tasks via [ActivityManager.AppTask.finishAndRemoveTask()](https://developer.android.com/reference/android/app/ActivityManager.AppTask.html#finishAndRemoveTask())) and starts a new OS process for PlayCoreMissingSplitsActivity.\n\nFor examples of typical use cases, including usages in [Application.onCreate()](https://developer.android.com/reference/android/app/Application.html#onCreate()), see\n[Check for\nmissing app components](https://d.android.com/guide/app-bundle/sideload-check#missing_splits).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|-------------------------------------------------------------------------|\n| `boolean` | true if the app is missing some required splits, false otherwise \u003cbr /\u003e |\n\n### isMissingRequiredSplits\n\n```\npublic abstract boolean isMissingRequiredSplits ()\n```\n\n\n**This method is deprecated.** \n\nthe feature is now obsolete. Installs with missing splits are now blocked on\ndevices which have Play Protect active or run on Android 10.\n\nChecks whether the app is missing a required split APK, without any side effects, such as\ndisabling the app.\n\nYou should typically use this API to manually skip initialization logic of custom [ContentProvider](https://developer.android.com/reference/android/content/ContentProvider.html) implementations. That's because [ContentProvider](https://developer.android.com/reference/android/content/ContentProvider.html) instances are\ninitialized before the [Application](https://developer.android.com/reference/android/app/Application.html).\n\nFor examples of typical use cases, including usage in [ContentProvider.onCreate()](https://developer.android.com/reference/android/content/ContentProvider.html#onCreate()),\nsee [Check for\nmissing app components](https://d.android.com/guide/app-bundle/sideload-check#missing_splits).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|-------------------------------------------------------------------------|\n| `boolean` | true if the app is missing some required splits, false otherwise \u003cbr /\u003e |"]]