shadows/framework/src/main/java/org/robolectric/shadows/ShadowBackupManager.java
public long getPackageRestoreToken(String packageName) {
    Long token = serviceState.restoredPackages.get(packageName);
    return token != null ? token : 0L;
  }
public long getPackageRestoreToken(String packageName) {
    Long token = serviceState.restoredPackages.get(packageName);
    return token != null ? token : 0L;
  }
Returns the restore token for the given package, or {@code 0} if the package was not restored.