Class ShadowAppIntegrityManager

java.lang.Object
org.robolectric.shadows.ShadowAppIntegrityManager

@Implements(value=android.content.integrity.AppIntegrityManager.class, minSdk=30, isInAndroidSdk=false) public class ShadowAppIntegrityManager extends Object
Shadow of AppIntegrityManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default shadow constructor that resets the recordedRuleSet.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    Overrides the implementation of the getCurrentRuleSetProvider method to return the gmscore package name for all the requests when a rule set exists.
    protected String
    Overrides the implementation of the getCurrentRuleSetVersion method to return the version stored in the recorded rule set.
    protected void
    updateRuleSet(android.content.integrity.RuleSet updateRequest, IntentSender statusReceiver)
    Overrides the implementation of the updateRuleSet method so that a copy of the pushed rule set is kept within the shadow class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShadowAppIntegrityManager

      public ShadowAppIntegrityManager()
      Default shadow constructor that resets the recordedRuleSet.
  • Method Details

    • updateRuleSet

      @Implementation protected void updateRuleSet(android.content.integrity.RuleSet updateRequest, IntentSender statusReceiver)
      Overrides the implementation of the updateRuleSet method so that a copy of the pushed rule set is kept within the shadow class.
    • getCurrentRuleSetVersion

      @Implementation protected String getCurrentRuleSetVersion()
      Overrides the implementation of the getCurrentRuleSetVersion method to return the version stored in the recorded rule set. The method returns "None" if there is no such rule set available.
    • getCurrentRuleSetProvider

      @Implementation protected String getCurrentRuleSetProvider()
      Overrides the implementation of the getCurrentRuleSetProvider method to return the gmscore package name for all the requests when a rule set exists.