A partir de 27 de março de 2025, recomendamos usar android-latest-release
em vez de aosp-main
para criar e contribuir com o AOSP. Para mais informações, consulte Mudanças no AOSP.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
NativePocStatusAsserter
public class NativePocStatusAsserter
extends Object
java.lang.Object |
↳ | com.android.sts.common.NativePocStatusAsserter |
Resumo
Construtores públicos
NativePocStatusAsserter
public NativePocStatusAsserter ()
Métodos públicos
assertNotExitCode
public static NativePocAsserter assertNotExitCode (int badExitCode)
Retorne um NativePocAsserter
que garante que o PoC não saiu com determinado código.
Parâmetros |
---|
badExitCode | int |
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2023-12-01 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2023-12-01 UTC."],[],[],null,["# NativePocStatusAsserter\n=======================\n\n\n`\npublic\n\n\nclass\nNativePocStatusAsserter\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.sts.common.NativePocStatusAsserter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[NativePocStatusAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html#NativePocStatusAsserter())`() ` |\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | ` `[assertExitCode](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html#assertExitCode(int))`(int exitCode) ` Return a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC exited with given code. |\n| ` static `[NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | ` `[assertNotExitCode](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html#assertNotExitCode(int))`(int badExitCode) ` Return a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC did not exit with given code. |\n| ` static `[NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | ` `[assertNotVulnerableExitCode](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html#assertNotVulnerableExitCode())`() ` Return a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC did not exit with code 113. |\n\nPublic constructors\n-------------------\n\n### NativePocStatusAsserter\n\n```\npublic NativePocStatusAsserter ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### assertExitCode\n\n```\npublic static NativePocAsserter assertExitCode (int exitCode)\n```\n\nReturn a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC exited with given code.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------|\n| `exitCode` | `int` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | \u003cbr /\u003e |\n\n### assertNotExitCode\n\n```\npublic static NativePocAsserter assertNotExitCode (int badExitCode)\n```\n\nReturn a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC did not exit with given code.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|--------------|\n| `badExitCode` | `int` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | \u003cbr /\u003e |\n\n### assertNotVulnerableExitCode\n\n```\npublic static NativePocAsserter assertNotVulnerableExitCode ()\n```\n\nReturn a [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) that makes sure PoC did not exit with code 113.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | \u003cbr /\u003e |"]]