blob: 6d7ca8fa9874fff7d9d0fe3119186ebf40b08b0e [file] [log] [blame]
// Copyright (c) 2024, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.metadata;
import com.android.tools.r8.keepanno.annotations.KeepForApi;
@KeepForApi
public interface R8DexFileMetadata {
/**
* Returns the SHA-256 checksum of the entire dex file.
*
* <p>This can be used to check if the given dex file has been tampered with after compilation.
*
* <p>Note: This differs from the checksum in the dex format, as the checksum embedded in the dex
* is the adler32 checksum of the dex file excluding the magic value and the checksum itself. See
* also https://source.android.com/docs/core/runtime/dex-format.
*/
String getChecksum();
/** Returns true if a startup profile is given and this dex file is a startup dex file. */
boolean isStartup();
}